Inspector.Client.update_assessment_target(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.update_assessment_target(
assessmentTargetArn='string',
assessmentTargetName='string',
resourceGroupArn='string'
)
[REQUIRED]
The ARN of the assessment target that you want to update.
[REQUIRED]
The name of the assessment target that you want to update.
None
Exceptions
Inspector.Client.exceptions.InternalExceptionInspector.Client.exceptions.InvalidInputExceptionInspector.Client.exceptions.AccessDeniedExceptionInspector.Client.exceptions.NoSuchEntityExceptionInspector.Client.exceptions.ServiceTemporarilyUnavailableExceptionExamples
Updates the assessment target that is specified by the ARN of the assessment target.
response = client.update_assessment_target(
assessmentTargetArn='arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX',
assessmentTargetName='Example',
resourceGroupArn='arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-yNbgL5Pt',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}