/AWS1/IF_IN2=>UPDATECONFIGURATION()¶
About UpdateConfiguration¶
Updates the scan configuration for your Amazon Inspector account. If you don't specify an
accountId, this operation updates the delegated administrator's configuration
and propagates it to member accounts that have not been individually configured. If you
specify an accountId, this operation updates that member account's
configuration. Only the delegated administrator can specify an accountId;
member accounts cannot call this operation.
Method Signature¶
METHODS /AWS1/IF_IN2~UPDATECONFIGURATION
IMPORTING
!IV_ACCOUNTID TYPE /AWS1/IN2ACCOUNTID OPTIONAL
!IO_ECRCONFIGURATION TYPE REF TO /AWS1/CL_IN2ECRCONFIGURATION OPTIONAL
!IO_EC2CONFIGURATION TYPE REF TO /AWS1/CL_IN2EC2CONFIGURATION OPTIONAL
!IO_UPDATECONFINHERITANCE TYPE REF TO /AWS1/CL_IN2UPDCONFINHERITANCE OPTIONAL
PREFERRED PARAMETER io_ecrconfiguration
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_in2updateconfresponse
RAISING
/AWS1/CX_IN2ACCESSDENIEDEX
/AWS1/CX_IN2INTERNALSERVEREX
/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 update. When specified, you must be the delegated administrator for this member account. If not specified, the operation updates your own configuration and propagates changes to any member accounts that have not been individually configured.
io_ecrconfiguration TYPE REF TO /AWS1/CL_IN2ECRCONFIGURATION /AWS1/CL_IN2ECRCONFIGURATION¶
Specifies how the ECR automated re-scan will be updated for your environment.
io_ec2configuration TYPE REF TO /AWS1/CL_IN2EC2CONFIGURATION /AWS1/CL_IN2EC2CONFIGURATION¶
Specifies how the Amazon EC2 automated scan will be updated for your environment.
io_updateconfinheritance TYPE REF TO /AWS1/CL_IN2UPDCONFINHERITANCE /AWS1/CL_IN2UPDCONFINHERITANCE¶
Specifies which scan-type configurations to reset to the delegated administrator's inherited values for the targeted member account. Each member of this structure is independently optional. When specified,
ec2ConfigurationandecrConfigurationmust be absent, andaccountIdmust also be present. OnlyINHERIT_FROM_ADMINis valid for each member. If not specified, the operation uses theec2ConfigurationandecrConfigurationparameters instead.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_in2updateconfresponse /AWS1/CL_IN2UPDATECONFRESPONSE¶
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->updateconfiguration(
io_ec2configuration = new /aws1/cl_in2ec2configuration(
iv_activatevmscanner = ABAP_TRUE
iv_scanmode = |string|
)
io_ecrconfiguration = new /aws1/cl_in2ecrconfiguration(
iv_pulldaterescanduration = |string|
iv_pulldaterescanmode = |string|
iv_rescanduration = |string|
)
io_updateconfinheritance = new /aws1/cl_in2updconfinheritance(
iv_ec2configuration = |string|
iv_ecrconfiguration = |string|
)
iv_accountid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.