/AWS1/IF_INS=>UPDATEASSESSMENTTARGET()¶
About UpdateAssessmentTarget¶
Updates the assessment target that is specified by the ARN of the assessment target.
If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
Method Signature¶
METHODS /AWS1/IF_INS~UPDATEASSESSMENTTARGET
IMPORTING
!IV_ASSESSMENTTARGETARN TYPE /AWS1/INSARN OPTIONAL
!IV_ASSESSMENTTARGETNAME TYPE /AWS1/INSASSESSMENTTARGETNAME OPTIONAL
!IV_RESOURCEGROUPARN TYPE /AWS1/INSARN OPTIONAL
RAISING
/AWS1/CX_INSACCESSDENIEDEX
/AWS1/CX_INSINTERNALEXCEPTION
/AWS1/CX_INSINVALIDINPUTEX
/AWS1/CX_INSNOSUCHENTITYEX
/AWS1/CX_INSSVCTMPYUNAVAILEX
/AWS1/CX_INSCLIENTEXC
/AWS1/CX_INSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_assessmenttargetarn TYPE /AWS1/INSARN /AWS1/INSARN¶
The ARN of the assessment target that you want to update.
iv_assessmenttargetname TYPE /AWS1/INSASSESSMENTTARGETNAME /AWS1/INSASSESSMENTTARGETNAME¶
The name of the assessment target that you want to update.
Optional arguments:¶
iv_resourcegrouparn TYPE /AWS1/INSARN /AWS1/INSARN¶
The ARN of the resource group that is used to specify the new resource group to associate with the assessment target.
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.
lo_client->updateassessmenttarget(
iv_assessmenttargetarn = |string|
iv_assessmenttargetname = |string|
iv_resourcegrouparn = |string|
).
Update assessment target¶
Updates the assessment target that is specified by the ARN of the assessment target.
lo_client->updateassessmenttarget(
iv_assessmenttargetarn = |arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX|
iv_assessmenttargetname = |Example|
iv_resourcegrouparn = |arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-yNbgL5Pt|
).