delete_assessment_template

delete_assessment_template(**kwargs)

Deletes the assessment template that is specified by the ARN of the assessment template.

See also: AWS API Documentation

Request Syntax

response = client.delete_assessment_template(
    assessmentTemplateArn='string'
)
Parameters
assessmentTemplateArn (string) --

[REQUIRED]

The ARN that specifies the assessment template that you want to delete.

Returns
None

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 template that is specified by the ARN of the assessment template.

response = client.delete_assessment_template(
    assessmentTemplateArn='arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}