v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1437208153.9 KB

Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.

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

Query parameters

maxResultsstring

Pagination limit

nextTokenstring

Pagination token

Headers

X-Amz-Target'InspectorService.GetExclusionsPreview' required

Request body

assessmentTemplateArnstring required

The ARN that specifies the assessment template for which the exclusions preview was requested.

previewTokenstring required

The unique identifier associated of the exclusions preview.

nextTokenstring

You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the GetExclusionsPreviewRequest action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

maxResultsinteger

You can use this parameter to indicate the maximum number of items you want in the response. The default value is 100. The maximum value is 500.

locale'EN_US'

The locale into which you want to translate the exclusion's title, description, and recommendation.

Response

Success

previewStatus'WORK_IN_PROGRESS' | 'COMPLETED' required

Specifies the status of the request to generate an exclusions preview.

nextTokenstring

When a response is generated, if there is more data to be listed, this parameters 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.