StartAssessment - AWS Marketplace
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

StartAssessment

Starts an assessment of a product entity against a framework. An assessment is the result of evaluating an entity against the controls of a framework. You choose the controls to run and provide the input that each control needs.

The assessment runs asynchronously. This action returns the ID of the assessment immediately. To get its status and the results of each control, use the DescribeAssessment action. To find assessments that you started earlier, use the ListAssessments action.

Request Syntax

POST /StartAssessment HTTP/1.1 Content-type: application/json { "Catalog": "string", "ClientToken": "string", "Controls": [ { "ControlId": "string", "Input": JSON value } ], "EntityId": "string", "FrameworkId": "string", "Tags": { "string" : "string" } }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

Catalog

The catalog related to the request. Fixed value: AWSMarketplace

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: ^(?![.-])(?!.*[.-]{2})(?![0-9]+\.[0-9.]+$)[a-zA-Z0-9.-]{1,47}(?<![.-])$

Required: Yes

EntityId

The unique ID of the product entity to assess.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: ^[\w\-]+$

Required: Yes

FrameworkId

The unique identifier of the framework that defines the controls to run.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: ^[\w\-@]+$

Required: Yes

ClientToken

A unique token to identify the request to ensure idempotency.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: ^[!-~]+$

Required: No

Controls

The controls to provide input for. Every control in the framework is included in the assessment, and a control that you don't specify gets no input. You can specify 1–100 controls.

Type: Array of ControlInput objects

Array Members: Minimum number of 1 item. Maximum number of 100 items.

Required: No

Tags

A map of tags to apply to the assessment when you create it. Each tag is a key-value pair. You can specify 1–200 tags.

Type: String to string map

Map Entries: Maximum number of 200 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$

Value Length Constraints: Minimum length of 0. Maximum length of 256.

Value Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "AssessmentId": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

AssessmentId

The unique ID of the assessment that was started.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: ^(assessment-[a-zA-Z0-9]+|arn:[a-zA-Z0-9-]+:[a-zA-Z0-9-]+:[a-zA-Z0-9-]*:[0-9]*:[a-zA-Z0-9-]+/Assessment/assessment-[a-zA-Z0-9]+)$

Errors

For information about the errors that are common to all actions, see Common Error Types.

AccessDeniedException

Access is denied.

HTTP status code: 403

HTTP Status Code: 403

InternalServiceException

There was an internal service exception.

HTTP status code: 500

HTTP Status Code: 500

ResourceInUseException

The resource is currently in use.

HTTP Status Code: 423

ResourceNotFoundException

The specified resource wasn't found.

HTTP status code: 404

HTTP Status Code: 404

ServiceQuotaExceededException

The maximum number of open requests per account has been exceeded.

HTTP Status Code: 402

ThrottlingException

Too many requests.

HTTP status code: 429

HTTP Status Code: 429

ValidationException

An error occurred during validation.

HTTP status code: 422

ValidationExceptionFieldList

A list of detailed entries describing the request fields that failed validation. Present when the failure can be attributed to one or more specific fields.

HTTP Status Code: 422

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: