View a markdown version of this page

PutControlStatusOverride - AWS Assurance

PutControlStatusOverride

Marks a control, or one of its requirements, as not applicable to a project, or makes it applicable again. The decision applies only to the specified project and framework version, which must be enabled in the project.

Note

Marking a control or requirement not applicable cancels its open remediation tasks. Making it applicable again doesn't reopen them.

If another request changes the same control at the same time, you receive a ConflictException. Call GetControlStatus before you retry.

Request Parameters

controlId

The identifier of the control. The control must exist in the framework version.

Type: String

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

Pattern: [a-zA-Z0-9][a-zA-Z0-9._()-]*

Required: Yes

environmentArn

The Amazon Resource Name (ARN) of this governance environment.

Type: String

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

Pattern: (arn:aws[a-zA-Z-]*:assurance:[a-z0-9-]+:[0-9]{12}:environment/[a-zA-Z0-9][a-zA-Z0-9\-]*|[a-zA-Z0-9][a-zA-Z0-9\-]*)

Required: Yes

framework

The name of the compliance framework.

Type: String

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

Pattern: [a-zA-Z0-9][a-zA-Z0-9._:-]*

Required: Yes

frameworkVersion

The version of the compliance framework.

Type: String

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

Pattern: [a-zA-Z0-9][a-zA-Z0-9._-]*

Required: Yes

justification

The reason that the control or requirement doesn't apply to the project. AWS Assurance keeps it as evidence for the decision. Required when type is NOT_APPLICABLE, and must contain 1–1,024 characters that aren't all whitespace. Omit it when type is NONE.

Type: String

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

Required: No

project

The name of the project.

Type: String

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

Pattern: [a-zA-Z0-9][a-zA-Z0-9._-]*

Required: Yes

requirementId

The identifier of a requirement of the control. Specify it to declare or remove a decision on that requirement only. Omit it to apply the decision to the whole control. If the requirement doesn't belong to the control, AWS Assurance returns a ValidationException.

Type: String

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

Required: No

type

The decision to declare. Specify one of the following values:

  • NOT_APPLICABLE – Excludes the control or requirement from the project's outcome. Requires a justification. If a decision already exists, the new justification replaces it, and AWS Assurance updates declaredBy and declaredAt.

  • NONE – Removes the current decision on the specified control or requirement. If you remove the decision on a control, the decisions on its individual requirements stay in place. A requirement stays not applicable while its control is not applicable.

Type: String

Valid Values: NOT_APPLICABLE | NONE

Required: Yes

Response Elements

The following element is returned by the service.

statusOverride

The decision that now applies to the specified control or requirement. Absent when type is NONE.

Type: StatusOverride object

Errors

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

AccessDeniedException

You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.

HTTP Status Code: 403

ConflictException

A conflict occurred (for example, resource already exists).

HTTP Status Code: 409

InternalServerException

An internal server error occurred.

HTTP Status Code: 500

ResourceNotFoundException

The requested resource was not found.

HTTP Status Code: 404

ThrottlingException

The request was throttled.

HTTP Status Code: 429

ValidationException

The request failed validation.

HTTP Status Code: 400

See Also

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