Amazon Inspector Inspector Assessment Template API
The Inspector Assessment Template API from Amazon Inspector — 4 operation(s) for inspector assessment template.
The Inspector Assessment Template API from Amazon Inspector — 4 operation(s) for inspector assessment template.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/amazon-inspector:amazon-inspector-assessment-template-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: Inspector2 Assessment Template API
version: '2020-06-08'
description: Generated from AWS's published Smithy model for Inspector2. 4 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://inspector.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/#CreateAssessmentTemplate:
post:
operationId: CreateAssessmentTemplate
summary: Create Assessment Template
description: Creates an assessment template for the assessment target that is specified by the ARN of the assessment
target. If the service-linked role 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.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/CreateAssessmentTemplateResponse'
example:
assessmentTemplateArn: arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T
'403':
description: AccessDeniedException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InspectorAccessDeniedException'
'500':
description: InternalException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InternalException'
'400':
description: InvalidInputException; LimitExceededException; NoSuchEntityException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidInputException'
'503':
description: ServiceTemporarilyUnavailableException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ServiceTemporarilyUnavailableException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- InspectorService.CreateAssessmentTemplate
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/CreateAssessmentTemplateRequest'
example:
assessmentTargetArn: arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX
assessmentTemplateName: ExampleAssessmentTemplate
durationInSeconds: 180
rulesPackageArns:
- arn:aws:inspector:us-west-2:758058086616:rulespackage/0-11B9DBXp
userAttributesForFindings:
- key: Example
value: example
tags:
- Assessment Template
/#DeleteAssessmentTemplate:
post:
operationId: DeleteAssessmentTemplate
summary: Delete Assessment Template
description: Deletes the assessment template that is specified by the ARN of the assessment template.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
type: string
'403':
description: AccessDeniedException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InspectorAccessDeniedException'
'400':
description: AssessmentRunInProgressException; InvalidInputException; NoSuchEntityException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/AssessmentRunInProgressException'
'500':
description: InternalException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InternalException'
'503':
description: ServiceTemporarilyUnavailableException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ServiceTemporarilyUnavailableException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- InspectorService.DeleteAssessmentTemplate
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeleteAssessmentTemplateRequest'
example:
assessmentTemplateArn: arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T
tags:
- Assessment Template
/#DescribeAssessmentTemplates:
post:
operationId: DescribeAssessmentTemplates
summary: Describe Assessment Templates
description: Describes the assessment templates that are specified by the ARNs of the assessment templates.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DescribeAssessmentTemplatesResponse'
'500':
description: InternalException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InternalException'
'400':
description: InvalidInputException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidInputException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- InspectorService.DescribeAssessmentTemplates
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DescribeAssessmentTemplatesRequest'
tags:
- Assessment Template
/#ListAssessmentTemplates:
post:
operationId: ListAssessmentTemplates
summary: List Assessment Templates
description: Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs
of the assessment targets.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListAssessmentTemplatesResponse'
example:
assessmentTemplateArns:
- arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw
- arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-Uza6ihLh
nextToken: '1'
'403':
description: AccessDeniedException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InspectorAccessDeniedException'
'500':
description: InternalException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InternalException'
'400':
description: InvalidInputException; NoSuchEntityException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidInputException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- InspectorService.ListAssessmentTemplates
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListAssessmentTemplatesRequest'
example:
assessmentTargetArns:
- arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq
maxResults: 123
tags:
- Assessment Template
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: inspector
schemas:
AssessmentRunInProgressException:
type: object
properties:
message:
type: string
description: Details of the exception error.
assessmentRunArns:
type: array
items:
type: string
description: The ARNs of the assessment runs that are currently in progress.
assessmentRunArnsTruncated:
type: boolean
description: Boolean value that indicates whether the ARN list of the assessment runs is truncated.
canRetry:
type: boolean
description: You can immediately retry your request.
required:
- message
- assessmentRunArns
- assessmentRunArnsTruncated
- canRetry
AssessmentTemplate:
type: object
properties:
arn:
type: string
description: The ARN of the assessment template.
name:
type: string
description: The name of the assessment template.
assessmentTargetArn:
type: string
description: The ARN of the assessment target that corresponds to this assessment template.
durationInSeconds:
type: integer
description: The duration in seconds specified for this assessment template. The default value is 3600 seconds (one
hour). The maximum value is 86400 seconds (one day).
rulesPackageArns:
type: array
items:
type: string
description: The rules packages that are specified for this assessment template.
userAttributesForFindings:
type: array
items:
$ref: '#/components/schemas/Attribute'
description: The user-defined attributes that are assigned to every generated finding from the assessment run that
uses this assessment template.
lastAssessmentRunArn:
type: string
description: The Amazon Resource Name (ARN) of the most recent assessment run associated with this assessment template.
This value exists only when the value of assessmentRunCount is greaterpa than zero.
assessmentRunCount:
type: integer
description: The number of existing assessment runs associated with this assessment template. This value can be
zero or a positive integer.
createdAt:
type: string
format: date-time
description: The time at which the assessment template is created.
required:
- arn
- name
- assessmentTargetArn
- durationInSeconds
- rulesPackageArns
- userAttributesForFindings
- assessmentRunCount
- createdAt
AssessmentTemplateFilter:
type: object
properties:
namePattern:
type: string
description: For a record to match a filter, an explicit value or a string that contains a wildcard that is specified
for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate
data type.
durationRange:
$ref: '#/components/schemas/DurationRange'
rulesPackageArns:
type: array
items:
type: string
description: For a record to match a filter, the values that are specified for this data type property must be contained
in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.
Attribute:
type: object
properties:
key:
type: string
description: The attribute key.
value:
type: string
description: The value assigned to the attribute key.
required:
- key
CreateAssessmentTemplateRequest:
type: object
properties:
assessmentTargetArn:
type: string
description: The ARN that specifies the assessment target for which you want to create the assessment template.
assessmentTemplateName:
type: string
description: 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.
durationInSeconds:
type: integer
description: The duration of the assessment run in seconds.
rulesPackageArns:
type: array
items:
type: string
description: The ARNs that specify the rules packages that you want to attach to the assessment template.
userAttributesForFindings:
type: array
items:
$ref: '#/components/schemas/Attribute'
description: The user-defined attributes that are assigned to every finding that is generated by the assessment
run that uses this assessment template. An attribute is a key and value pair (an Attribute object). Within an
assessment template, each key must be unique.
required:
- assessmentTargetArn
- assessmentTemplateName
- durationInSeconds
- rulesPackageArns
CreateAssessmentTemplateResponse:
type: object
properties:
assessmentTemplateArn:
type: string
description: The ARN that specifies the assessment template that is created.
required:
- assessmentTemplateArn
DeleteAssessmentTemplateRequest:
type: object
properties:
assessmentTemplateArn:
type: string
description: The ARN that specifies the assessment template that you want to delete.
required:
- assessmentTemplateArn
DescribeAssessmentTemplatesRequest:
type: object
properties:
assessmentTemplateArns:
type: array
items:
type: string
required:
- assessmentTemplateArns
DescribeAssessmentTemplatesResponse:
type: object
properties:
assessmentTemplates:
type: array
items:
$ref: '#/components/schemas/AssessmentTemplate'
description: Information about the assessment templates.
failedItems:
type: object
additionalProperties:
$ref: '#/components/schemas/FailedItemDetails'
description: Assessment template details that cannot be described. An error code is provided for each failed item.
required:
- assessmentTemplates
- failedItems
DurationRange:
type: object
properties:
minSeconds:
type: integer
description: The minimum value of the duration range. Must be greater than zero.
maxSeconds:
type: integer
description: The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
FailedItemDetails:
type: object
properties:
failureCode:
type: string
enum:
- INVALID_ARN
- DUPLICATE_ARN
- ITEM_DOES_NOT_EXIST
- ACCESS_DENIED
- LIMIT_EXCEEDED
- INTERNAL_ERROR
description: The status code of a failed item.
retryable:
type: boolean
description: Indicates whether you can immediately retry a request for this item for a specified resource.
required:
- failureCode
- retryable
InspectorAccessDeniedException:
type: object
properties:
message:
type: string
description: Details of the exception error.
errorCode:
type: string
enum:
- ACCESS_DENIED_TO_ASSESSMENT_TARGET
- ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE
- ACCESS_DENIED_TO_ASSESSMENT_RUN
- ACCESS_DENIED_TO_FINDING
- ACCESS_DENIED_TO_RESOURCE_GROUP
- ACCESS_DENIED_TO_RULES_PACKAGE
- ACCESS_DENIED_TO_SNS_TOPIC
- ACCESS_DENIED_TO_IAM_ROLE
description: Code that indicates the type of error that is generated.
canRetry:
type: boolean
description: You can immediately retry your request.
required:
- message
- errorCode
- canRetry
InternalException:
type: object
properties:
message:
type: string
description: Details of the exception error.
canRetry:
type: boolean
description: You can immediately retry your request.
required:
- message
- canRetry
InvalidInputException:
type: object
properties:
message:
type: string
description: Details of the exception error.
errorCode:
type: string
enum:
- INVALID_ASSESSMENT_TARGET_ARN
- INVALID_ASSESSMENT_TEMPLATE_ARN
- INVALID_ASSESSMENT_RUN_ARN
- INVALID_FINDING_ARN
- INVALID_RESOURCE_GROUP_ARN
- INVALID_RULES_PACKAGE_ARN
- INVALID_RESOURCE_ARN
- INVALID_SNS_TOPIC_ARN
- INVALID_IAM_ROLE_ARN
- INVALID_ASSESSMENT_TARGET_NAME
- INVALID_ASSESSMENT_TARGET_NAME_PATTERN
- INVALID_ASSESSMENT_TEMPLATE_NAME
- INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN
- INVALID_ASSESSMENT_TEMPLATE_DURATION
- INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE
- INVALID_ASSESSMENT_RUN_DURATION_RANGE
- INVALID_ASSESSMENT_RUN_START_TIME_RANGE
- INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE
- INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE
- INVALID_ASSESSMENT_RUN_STATE
- INVALID_TAG
- INVALID_TAG_KEY
- INVALID_TAG_VALUE
- INVALID_RESOURCE_GROUP_TAG_KEY
- INVALID_RESOURCE_GROUP_TAG_VALUE
- INVALID_ATTRIBUTE
- INVALID_USER_ATTRIBUTE
- INVALID_USER_ATTRIBUTE_KEY
- INVALID_USER_ATTRIBUTE_VALUE
- INVALID_PAGINATION_TOKEN
- INVALID_MAX_RESULTS
- INVALID_AGENT_ID
- INVALID_AUTO_SCALING_GROUP
- INVALID_RULE_NAME
- INVALID_SEVERITY
- INVALID_LOCALE
- INVALID_EVENT
- ASSESSMENT_TARGET_NAME_ALREADY_TAKEN
- ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN
- INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS
- INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS
- INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS
- INVALID_NUMBER_OF_FINDING_ARNS
- INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS
- INVALID_NUMBER_OF_RULES_PACKAGE_ARNS
- INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES
- INVALID_NUMBER_OF_TAGS
- INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS
- INVALID_NUMBER_OF_ATTRIBUTES
- INVALID_NUMBER_OF_USER_ATTRIBUTES
- INVALID_NUMBER_OF_AGENT_IDS
- INVALID_NUMBER_OF_AUTO_SCALING_GROUPS
- INVALID_NUMBER_OF_RULE_NAMES
- INVALID_NUMBER_OF_SEVERITIES
description: Code that indicates the type of error that is generated.
canRetry:
type: boolean
description: You can immediately retry your request.
required:
- message
- errorCode
- canRetry
ListAssessmentTemplatesRequest:
type: object
properties:
assessmentTargetArns:
type: array
items:
type: string
description: A list of ARNs that specifies the assessment targets whose assessment templates you want to list.
filter:
$ref: '#/components/schemas/AssessmentTemplateFilter'
nextToken:
type: string
description: You can use this parameter when paginating results. Set the value of this parameter to null on your
first call to the ListAssessmentTemplates action. Subsequent calls to the action fill nextToken in the request
with the value of NextToken from the previous response to continue listing data.
maxResults:
type: integer
description: You can use this parameter to indicate the maximum number of items you want in the response. The default
value is 10. The maximum value is 500.
ListAssessmentTemplatesResponse:
type: object
properties:
assessmentTemplateArns:
type: array
items:
type: string
description: A list of ARNs that specifies the assessment templates returned by the action.
nextToken:
type: string
description: When a response is generated, if there is more data to be listed, this parameter is present in the
response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there
is no more data to be listed, this parameter is set to null.
required:
- assessmentTemplateArns
ServiceTemporarilyUnavailableException:
type: object
properties:
message:
type: string
description: Details of the exception error.
canRetry:
type: boolean
description: You can wait and then retry your request.
required:
- message
- canRetry
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/inspector/service/2016-02-16/inspector-2016-02-16.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)