v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1437208153.9 KB

Creates an assessment template for the assessment target that is specified by the ARN of the assessment target. If the <a href="https://docs.aws.amazon.com/inspector/latest/userguide/inspector_slr.html">service-linked role</a> isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments.

post/#X-Amz-Target=InspectorService.CreateAssessmentTemplate

Headers

X-Amz-Target'InspectorService.CreateAssessmentTemplate' required

Request body

assessmentTargetArnstring required

The ARN that specifies the assessment target for which you want to create the assessment template.

assessmentTemplateNamestring required

The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.

durationInSecondsinteger required

The duration of the assessment run in seconds.

rulesPackageArnsArn[] required

The ARNs that specify the rules packages that you want to attach to the assessment template.

Response

Success

assessmentTemplateArnstring required

The ARN that specifies the assessment template that is created.

Example response

{
  "assessmentTemplateArn": "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T"
}