/AWS1/IF_GDY=>SENDOBJECTMALWARESCAN()¶
About SendObjectMalwareScan¶
Initiates a malware scan for a specific S3 object. This API allows you to perform on-demand malware scanning of individual objects in S3 buckets that have Malware Protection for S3 enabled.
When you use this API, the Amazon Web Services service terms for GuardDuty Malware Protection apply. For more information, see Amazon Web Services service terms for GuardDuty Malware Protection.
Method Signature¶
METHODS /AWS1/IF_GDY~SENDOBJECTMALWARESCAN
IMPORTING
!IO_S3OBJECT TYPE REF TO /AWS1/CL_GDYS3OBJFRSENDOBJMA00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gdysendobjmalwaresc01
RAISING
/AWS1/CX_GDYACCESSDENIEDEX
/AWS1/CX_GDYBADREQUESTEX
/AWS1/CX_GDYINTERNALSERVERER00
/AWS1/CX_GDYCLIENTEXC
/AWS1/CX_GDYSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
io_s3object TYPE REF TO /AWS1/CL_GDYS3OBJFRSENDOBJMA00 /AWS1/CL_GDYS3OBJFRSENDOBJMA00¶
The S3 object information for the object you want to scan. The bucket must have a Malware Protection plan configured to use this API.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gdysendobjmalwaresc01 /AWS1/CL_GDYSENDOBJMALWARESC01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->sendobjectmalwarescan(
io_s3object = new /aws1/cl_gdys3objfrsendobjma00(
iv_bucket = |string|
iv_key = |string|
iv_versionid = |string|
)
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.