View a markdown version of this page

PutEvidence - AWS Assurance

PutEvidence

Adds evidence to support a compliance assessment. To add a new version of existing evidence, specify evidenceId.

Provide either the file content in content or a link to the document in reference, but not both.

Request Parameters

connectionId

The ID of the connection to read reference through, as returned by ListEnvironmentConnections. Each new version of the document uses this connection too.

Use this parameter only with reference.

If you omit this parameter, the operation uses the single connection that can read the document. If the environment has more than one connection to the same provider, specify this parameter.

Type: String

Length Constraints: Fixed length of 36.

Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

Required: No

content

The file content. Required for a direct upload. You can't specify both content and reference.

Type: Base64-encoded binary data object

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

Required: No

contentMIMEType

The declared Multipurpose Internet Mail Extensions (MIME) type of the file, for example application/pdf. AWS Assurance checks the declared type against the actual file content. For the list of registered types, see Media Types on the IANA website.

Type: String

Required: No

controlReferences

The controls to link the evidence to when you add it. You can specify control links only when purpose is CONTROL_EVIDENCE.

Type: Array of ControlReference objects

Array Members: Minimum number of 0 items. Maximum number of 100 items.

Required: No

description

The optional description of the evidence.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 4096.

Required: No

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

evidenceId

The ID of existing evidence. Specify it to add a new version of that evidence. Omit it to create new evidence.

Type: String

Required: No

linkMode

Specifies whether AWS Assurance analyzes the evidence and links it to relevant controls. A link shows that the evidence is relevant to a control, not that you meet the control. An assessment determines whether you meet the control. Specify one of the following values:

  • AUTO – AWS Assurance analyzes the evidence and adds control links.

  • MANUAL – AWS Assurance doesn't analyze the evidence. You add control links yourself.

Automatic linking is available only to some accounts during the preview. If you omit this parameter, the default is AUTO for those accounts and MANUAL for all other accounts. Evidence whose purpose isn't CONTROL_EVIDENCE always has the mode DISABLED, which means that it can't be linked to controls. You can't specify AUTO for that evidence.

Type: String

Valid Values: AUTO | MANUAL | DISABLED

Required: No

project

Project scope for the evidence.

Type: String

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

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

Required: Yes

purpose

What the evidence is for. Specify one of the following values:

  • CONTROL_EVIDENCE – Evidence that supports controls.

  • FRAMEWORK_SOURCE – The document that you create a custom framework from. AWS Assurance never links this evidence to controls.

You can't specify SCAN_EVIDENCE. If you omit this parameter, a new version keeps the purpose of the existing evidence, and new evidence uses CONTROL_EVIDENCE. You can't change the purpose in a new version.

Type: String

Valid Values: CONTROL_EVIDENCE | SCAN_EVIDENCE | FRAMEWORK_SOURCE

Required: No

reference

A link to the document. You can't specify both reference and content. Supported formats:

  • For a file in GitHub, a link in the form https://github.com/{owner}/{repo}/blob/{ref}/{path}.

  • For a document in SharePoint, any link to the document in the form https://{tenant}.sharepoint.com/{path}, including a sharing link.

  • For an object in Amazon S3, a URI in the form s3://{bucket}/{key}. The bucket must be the evidence bucket configured for the environment.

Type: String

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

Required: No

title

The title of the evidence. When you create new evidence, AWS Assurance derives the evidence ID from the title, in the form assurance://{sanitized-title}.

Required when you specify content. Optional when you specify reference. If you omit it, AWS Assurance uses the name of the referenced document.

Type: String

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

Required: No

Response Elements

The following elements are returned by the service.

evidenceId

The unique identifier of the evidence item.

Type: String

version

The version number of the evidence.

Type: Integer

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

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: