/AWS1/IF_IN2=>GETCONFIGURATION()¶
About GetConfiguration¶
Retrieves setting configurations for Amazon Inspector scans. If you specify an
accountId, this operation returns the scan configuration for that member
account. You must be the delegated administrator for the specified member account.
If you do not specify an accountId, this operation returns your own
scan configuration.
Method Signature¶
METHODS /AWS1/IF_IN2~GETCONFIGURATION
IMPORTING
!IV_ACCOUNTID TYPE /AWS1/IN2ACCOUNTID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_in2getconfresponse
RAISING
/AWS1/CX_IN2ACCESSDENIEDEX
/AWS1/CX_IN2INTERNALSERVEREX
/AWS1/CX_IN2RESOURCENOTFOUNDEX
/AWS1/CX_IN2THROTTLINGEX
/AWS1/CX_IN2VALIDATIONEX
/AWS1/CX_IN2CLIENTEXC
/AWS1/CX_IN2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_accountid TYPE /AWS1/IN2ACCOUNTID /AWS1/IN2ACCOUNTID¶
The 12-digit Amazon Web Services account ID of the member account whose scan configuration you want to retrieve. When specified, you must be the delegated administrator for this member account. If not specified, the operation returns your own configuration.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_in2getconfresponse /AWS1/CL_IN2GETCONFRESPONSE¶
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->getconfiguration( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_ecrconfigurationstate = lo_result->get_ecrconfiguration( ).
IF lo_ecrconfigurationstate IS NOT INITIAL.
lo_ecrrescandurationstate = lo_ecrconfigurationstate->get_rescandurationstate( ).
IF lo_ecrrescandurationstate IS NOT INITIAL.
lv_ecrrescanduration = lo_ecrrescandurationstate->get_rescanduration( ).
lv_ecrrescandurationstatus = lo_ecrrescandurationstate->get_status( ).
lv_datetimetimestamp = lo_ecrrescandurationstate->get_updatedat( ).
lv_ecrpulldaterescandurati = lo_ecrrescandurationstate->get_pulldaterescanduration( ).
lv_ecrpulldaterescanmode = lo_ecrrescandurationstate->get_pulldaterescanmode( ).
ENDIF.
ENDIF.
lo_ec2configurationstate = lo_result->get_ec2configuration( ).
IF lo_ec2configurationstate IS NOT INITIAL.
lo_ec2scanmodestate = lo_ec2configurationstate->get_scanmodestate( ).
IF lo_ec2scanmodestate IS NOT INITIAL.
lv_ec2scanmode = lo_ec2scanmodestate->get_scanmode( ).
lv_ec2scanmodestatus = lo_ec2scanmodestate->get_scanmodestatus( ).
ENDIF.
lo_vmscannerstate = lo_ec2configurationstate->get_vmscannerstate( ).
IF lo_vmscannerstate IS NOT INITIAL.
lv_boolean = lo_vmscannerstate->get_activated( ).
lv_datetimetimestamp = lo_vmscannerstate->get_activatedat( ).
lv_vmscannerstatus = lo_vmscannerstate->get_status( ).
ENDIF.
ENDIF.
ENDIF.