Inspector.Client.
delete_assessment_target
(**kwargs)¶Deletes the assessment target that is specified by the ARN of the assessment target.
See also: AWS API Documentation
Request Syntax
response = client.delete_assessment_target(
assessmentTargetArn='string'
)
[REQUIRED]
The ARN that specifies the assessment target that you want to delete.
Exceptions
Inspector.Client.exceptions.InternalException
Inspector.Client.exceptions.InvalidInputException
Inspector.Client.exceptions.AssessmentRunInProgressException
Inspector.Client.exceptions.AccessDeniedException
Inspector.Client.exceptions.NoSuchEntityException
Inspector.Client.exceptions.ServiceTemporarilyUnavailableException
Examples
Deletes the assessment target that is specified by the ARN of the assessment target.
response = client.delete_assessment_target(
assessmentTargetArn='arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}