SDK for PHP V3

Client: Aws\Assurance\AssuranceClient
Service ID: assurance
Version: 2022-07-26

This page describes the parameters and results for the operations of the AWS Assurance (2022-07-26), and shows how to use the Aws\Assurance\AssuranceClient object to call the described operations. This documentation is specific to the 2022-07-26 API version of the service.

Service Description

AWS Assurance is a compliance service that helps you achieve and maintain compliance with security and governance frameworks by discovering in-scope resources, running assessments against framework controls, capturing evidence, and tracking remediation tasks.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

AcceptInvitation ( array $params = [] )
Accepts a pending invitation to connect your account to an environment.
AssignPermissionSet ( array $params = [] )
Assigns a permission set to a principal with optional scopes.
BatchGetComment ( array $params = [] )
Retrieves multiple comments in a single request.
BatchGetControl ( array $params = [] )
Retrieves multiple controls in a single request.
BatchGetTask ( array $params = [] )
Retrieves multiple tasks in a single request.
Chat ( array $params = [] )
Starts a streaming chat turn with the AWS Assurance agent.
CreateComment ( array $params = [] )
Adds a new comment to a specific control.
CreateControl ( array $params = [] )
Creates a leaf control, which is a control with no child controls, in a custom framework.
CreateControlGroup ( array $params = [] )
Creates a control group within a custom framework.
CreateEnvironment ( array $params = [] )
Creates a new governance environment with the specified name and service role.
CreateEnvironmentConnection ( array $params = [] )
Creates a connection between a governance environment and an evidence source.
CreateFramework ( array $params = [] )
Creates a custom framework.
CreateInvitation ( array $params = [] )
Creates a pending invitation for a customer account to connect to an environment.
CreatePermissionSet ( array $params = [] )
Creates a new permission set in the environment.
CreateProject ( array $params = [] )
Creates a new project with a list of resources in a governance environment.
DeleteComment ( array $params = [] )
Deletes a specific comment by its identifying fields.
DeleteControl ( array $params = [] )
Deletes a custom control.
DeleteControlGroup ( array $params = [] )
Deletes a control group.
DeleteEnvironment ( array $params = [] )
Deletes a governance environment.
DeleteEnvironmentConnection ( array $params = [] )
Deletes a connection from a governance environment.
DeleteEvidence ( array $params = [] )
Removes an evidence item.
DeleteFramework ( array $params = [] )
Deletes a custom framework that you no longer need.
DeleteInvitation ( array $params = [] )
Deletes an invitation or unlinks a connected account for an environment.
DeletePermissionSet ( array $params = [] )
Deletes a permission set.
DeleteProject ( array $params = [] )
Deletes a project and all its associated resources.
DeregisterOrganizationDelegatedAdmin ( array $params = [] )
Removes the delegated administrator for AWS Assurance from your organization.
DisableFramework ( array $params = [] )
Disables a previously enabled framework for a specific project.
EnableFramework ( array $params = [] )
Enables a compliance framework for a project in a governance environment.
GetAnnotation ( array $params = [] )
Retrieves the annotation for a specific piece of evidence.
GetAssessment ( array $params = [] )
Retrieves a single assessment.
GetAssessmentReportContent ( array $params = [] )
Returns an assessment report.
GetAssessmentReportExport ( array $params = [] )
Gets the status of an assessment report export.
GetChatMessages ( array $params = [] )
Gets messages for a chat session in chronological order.
GetComment ( array $params = [] )
Retrieves a specific comment by its identifying fields.
GetControl ( array $params = [] )
Retrieves a single leaf control within a framework version, including its title, description, and requirements.
GetControlGroup ( array $params = [] )
Retrieves a single control group's own attributes (title, description, status) within a framework version.
GetControlStatus ( array $params = [] )
Retrieves the effective compliance status of a control in a project.
GetEnvironment ( array $params = [] )
Retrieves a governance environment by ARN or domain.
GetEvidence ( array $params = [] )
Retrieves metadata for an evidence item.
GetEvidenceContent ( array $params = [] )
Returns the content of an evidence item.
GetFramework ( array $params = [] )
Retrieves a framework resource by type and key fields.
GetInvitation ( array $params = [] )
Retrieves a single invitation, identified by environmentArn and inviteeAccountId.
GetPermissionSet ( array $params = [] )
Retrieves a permission set by ID.
GetProject ( array $params = [] )
Retrieves a project and all its associated resources.
GetResourceActivitiesQueryResults ( array $params = [] )
Gets the status of a query that StartResourceActivitiesQuery started, and one page of its results.
GetTask ( array $params = [] )
Retrieves a specific task by its identifying fields.
ListAssessmentAnnotations ( array $params = [] )
Lists the annotations on one assessment, paginated.
ListAssessmentJournalRecords ( array $params = [] )
Lists assessment journal records, paginated.
ListAssessmentOutcomes ( array $params = [] )
Returns the compliance score of a framework in a project over a time range.
ListAssessments ( array $params = [] )
Lists assessments, paginated.
ListChatSessions ( array $params = [] )
Lists chat sessions for you in a governance environment.
ListComments ( array $params = [] )
Lists the comments on a specific control, optionally narrowed to a task.
ListConnectionItems ( array $params = [] )
Lists the items that a connection can access, one level at a time, to help you find a document without knowing its URL.
ListControlGroups ( array $params = [] )
Lists the control groups in a framework version.
ListControlResources ( array $params = [] )
Lists the resources that are in scope for the automated evaluation of a control.
ListControls ( array $params = [] )
Lists the leaf controls within a single control group in a framework version.
ListDiscoveredResources ( array $params = [] )
Lists the resources that are in scope for an environment or project.
ListEnabledFrameworks ( array $params = [] )
Lists the frameworks enabled in a governance environment, optionally narrowed by filters.
ListEnvironmentConnections ( array $params = [] )
Lists the connections for a governance environment.
ListEnvironments ( array $params = [] )
Lists your governance environments.
ListEvidence ( array $params = [] )
Lists evidence items (paginated).
ListEvidenceAnnotations ( array $params = [] )
Lists the annotations on one version of a piece of evidence within a project, paginated.
ListFrameworks ( array $params = [] )
Lists frameworks by type, with optional pagination.
ListInboundInvitations ( array $params = [] )
Lists the invitations addressed to your account, across all environments.
ListOutboundInvitations ( array $params = [] )
Lists the invitations that you extended from an environment you own.
ListPermissionSetAssignments ( array $params = [] )
Lists permission set assignments for an environment.
ListPermissionSets ( array $params = [] )
Lists permission sets for an environment.
ListProjects ( array $params = [] )
Lists all projects within a governance environment.
ListTagsForResource ( array $params = [] )
Lists tags for a resource.
ListTaskHistory ( array $params = [] )
Lists task history across assessments for a given task, ordered by most recent first.
ListTasks ( array $params = [] )
Lists all tasks within a governance environment.
PublishFramework ( array $params = [] )
Publishes a custom framework, transitioning its status from PENDING to ACTIVE.
PutControlStatusOverride ( array $params = [] )
Marks a control, or one of its requirements, as not applicable to a project, or makes it applicable again.
PutEvidence ( array $params = [] )
Adds evidence to support a compliance assessment.
RegisterOrganizationDelegatedAdmin ( array $params = [] )
Registers a member account of your organization as the delegated administrator for AWS Assurance.
RejectInvitation ( array $params = [] )
Rejects (declines) a pending invitation.
RevokePermissionSet ( array $params = [] )
Revokes a permission set assignment.
StartAssessment ( array $params = [] )
Begins a new assessment for a control or framework.
StartAssessmentReportExport ( array $params = [] )
Starts preparing an assessment report for a framework in a project.
StartResourceActivitiesQuery ( array $params = [] )
Starts a query of the AWS API calls that an artificial intelligence (AI) agent on Amazon Bedrock AgentCore Runtime made.
TagResource ( array $params = [] )
Adds or overwrites tags on a resource.
UntagResource ( array $params = [] )
Removes tags from a resource.
UpdateComment ( array $params = [] )
Modifies the content of an existing comment.
UpdateControl ( array $params = [] )
Updates a custom control.
UpdateControlGroup ( array $params = [] )
Updates a control group.
UpdateEnvironment ( array $params = [] )
Updates a governance environment.
UpdateEvidence ( array $params = [] )
Updates evidence metadata and manages control links (add or remove) and re-analysis without creating a new evidence version.
UpdateFramework ( array $params = [] )
Updates the title or description of a custom framework.
UpdatePermissionSet ( array $params = [] )
Updates an existing permission set.
UpdateProject ( array $params = [] )
Updates an existing project.
UpdateTask ( array $params = [] )
Updates an existing task.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

GetChatMessages
GetResourceActivitiesQueryResults
ListAssessmentAnnotations
ListAssessmentJournalRecords
ListAssessmentOutcomes
ListAssessments
ListChatSessions
ListComments
ListConnectionItems
ListControlGroups
ListControlResources
ListControls
ListDiscoveredResources
ListEnabledFrameworks
ListEnvironmentConnections
ListEnvironments
ListEvidence
ListEvidenceAnnotations
ListFrameworks
ListInboundInvitations
ListOutboundInvitations
ListPermissionSetAssignments
ListPermissionSets
ListProjects
ListTaskHistory
ListTasks

Operations

AcceptInvitation

$result = $client->acceptInvitation([/* ... */]);
$promise = $client->acceptInvitationAsync([/* ... */]);

Accepts a pending invitation to connect your account to an environment. To use this operation, you must have permission to call iam:CreateServiceLinkedRole.

The invitation becomes ACTIVE when AWS Assurance can assume its service-linked role in your account. If AWS Assurance can't create or assume the role, the request fails and the invitation stays PENDING.

Parameter Syntax

$result = $client->acceptInvitation([
    'environmentArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of the environment that sent the invitation. At most one active or pending invitation exists for a given account and environment at a time.

Result Syntax

[
    'status' => 'PENDING|ACTIVE|REJECTED|REVOKED|EXPIRED',
]

Result Details

Members
status
Required: Yes
Type: string

The lifecycle state of the invitation. ACTIVE when the connection is live.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Accept an invitation

Accepts the invitation to connect the payments team's member account to the governance environment with the AWS Assurance service-linked role.

$result = $client->acceptInvitation([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
    'status' => 'ACTIVE',
]

AssignPermissionSet

$result = $client->assignPermissionSet([/* ... */]);
$promise = $client->assignPermissionSetAsync([/* ... */]);

Assigns a permission set to a principal with optional scopes.

Parameter Syntax

$result = $client->assignPermissionSet([
    'environmentArn' => '<string>', // REQUIRED
    'permissionSetId' => '<string>', // REQUIRED
    'principalId' => '<string>', // REQUIRED
    'principalType' => 'USER|GROUP', // REQUIRED
    'scopes' => [
        [
            'id' => '<string>', // REQUIRED
            'type' => 'ENVIRONMENT|PROJECT', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

permissionSetId
Required: Yes
Type: string

The identifier of the permission set.

principalId
Required: Yes
Type: string

The unique identifier of the principal the permission set is assigned to.

principalType
Required: Yes
Type: string

The type of principal the permission set is assigned to.

scopes
Type: Array of AssignmentScope structures

The scopes the assignment applies to.

Result Syntax

[
    'assignmentIds' => ['<string>', ...],
]

Result Details

Members
assignmentIds
Required: Yes
Type: Array of strings

The unique identifiers of the permission set assignments.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Assign a permission set

Assigns the payments auditor permission set to an auditor's IAM Identity Center user, scoped to the payments-prod project.

$result = $client->assignPermissionSet([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'permissionSetId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
    'principalId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE12345',
    'principalType' => 'USER',
    'scopes' => [
        [
            'type' => 'PROJECT',
            'id' => 'payments-prod',
        ],
    ],
]);

Result syntax:

[
    'assignmentIds' => [
        'a1b2c3d4-5678-90ab-cdef-EXAMPLE99999',
    ],
]

BatchGetComment

$result = $client->batchGetComment([/* ... */]);
$promise = $client->batchGetCommentAsync([/* ... */]);

Retrieves multiple comments in a single request. Use it instead of calling GetComment for each comment. If the operation can't return a comment, it lists the comment in errors and still succeeds.

Parameter Syntax

$result = $client->batchGetComment([
    'environmentArn' => '<string>', // REQUIRED
    'keys' => [ // REQUIRED
        [
            'commentId' => '<string>', // REQUIRED
            'controlId' => '<string>', // REQUIRED
            'framework' => '<string>', // REQUIRED
            'frameworkVersion' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

keys
Required: Yes
Type: Array of CommentKey structures

The comments to retrieve, 1 to 100 per request. Keys must be unique within a request.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'comments' => [
        [
            'addedBy' => '<string>',
            'commentId' => '<string>',
            'content' => '<string>',
            'controlId' => '<string>',
            'createdAt' => <DateTime>,
            'environment' => '<string>',
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'project' => '<string>',
            'taskId' => '<string>',
            'updatedAt' => <DateTime>,
        ],
        // ...
    ],
    'errors' => [
        [
            'code' => '<string>',
            'key' => [
                'commentId' => '<string>',
                'controlId' => '<string>',
                'framework' => '<string>',
                'frameworkVersion' => '<string>',
            ],
            'message' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
comments
Required: Yes
Type: Array of Comment structures

The list of comments.

errors
Required: Yes
Type: Array of BatchGetCommentError structures

The entries for requested comments that the operation could not return. Empty when the operation returned all of them; a request in which every comment failed still succeeds.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Batch get comments on a control

Retrieves several comments on a control in one request during the PCI DSS review.

$result = $client->batchGetComment([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'keys' => [
        [
            'commentId' => '1773484200000',
            'controlId' => '8.2.1',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
        ],
    ],
    'project' => 'payments-prod',
]);

Result syntax:

[
    'errors' => [
    ],
    'comments' => [
        [
            'addedBy' => 'arn:aws:iam::111122223333:role/AssuranceAuditor',
            'commentId' => '1773484200000',
            'content' => 'Evidence attached; the Q1 cardholder data environment scan is complete.',
            'controlId' => '8.2.1',
            'createdAt' => ,
            'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'project' => 'payments-prod',
            'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
            'updatedAt' => ,
        ],
    ],
]

BatchGetControl

$result = $client->batchGetControl([/* ... */]);
$promise = $client->batchGetControlAsync([/* ... */]);

Retrieves multiple controls in a single request. Use it instead of calling GetControl for each control. If the operation can't return a control, it lists the control in errors and still succeeds.

Parameter Syntax

$result = $client->batchGetControl([
    'environmentArn' => '<string>', // REQUIRED
    'keys' => [ // REQUIRED
        [
            'controlId' => '<string>', // REQUIRED
            'framework' => '<string>', // REQUIRED
            'frameworkVersion' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

keys
Required: Yes
Type: Array of ControlKey structures

The controls to retrieve, 1 to 100 per request. Keys must be unique within a request.

Result Syntax

[
    'controls' => [
        [
            'controlId' => '<string>',
            'controlIntents' => ['<string>', ...],
            'createdAt' => <DateTime>,
            'description' => '<string>',
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'groupId' => '<string>',
            'requirements' => [
                [
                    'description' => '<string>',
                    'id' => '<string>',
                ],
                // ...
            ],
            'status' => 'ACTIVE|PENDING|PRE_PROD',
            'title' => '<string>',
            'type' => 'MANAGED|CUSTOM',
            'updatedAt' => <DateTime>,
            'workflowType' => 'automated-scan|document|hybrid',
        ],
        // ...
    ],
    'errors' => [
        [
            'code' => '<string>',
            'key' => [
                'controlId' => '<string>',
                'framework' => '<string>',
                'frameworkVersion' => '<string>',
            ],
            'message' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
controls
Required: Yes
Type: Array of Control structures

The controls that were successfully retrieved.

errors
Required: Yes
Type: Array of BatchGetControlError structures

The entries for requested controls that the operation could not return. Empty when the operation returned all of them; a request in which every control failed still succeeds.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Batch get controls

Retrieves several PCI DSS controls in one request while scoping the payments-prod assessment, with any control that could not be returned reported per item.

$result = $client->batchGetControl([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'keys' => [
        [
            'controlId' => '8.2.1',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
        ],
        [
            'controlId' => '99.1.1',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
        ],
    ],
]);

Result syntax:

[
    'errors' => [
        [
            'key' => [
                'controlId' => '99.1.1',
                'framework' => 'AWS:PCI-DSS',
                'frameworkVersion' => '4',
            ],
            'code' => 'NOT_FOUND',
            'message' => 'No control was found for the requested key in this framework version.',
        ],
    ],
    'controls' => [
        [
            'type' => 'MANAGED',
            'controlId' => '8.2.1',
            'controlIntents' => [
                'identityAuthenticationConfiguration',
            ],
            'description' => 'All users are assigned a unique ID before access to system components or cardholder data is allowed. Applicability Notes This requirement is not intended to apply to user accounts within point-of-sale terminals that have access to only one card number at a time to facilitate a single transaction (such as IDs used by cashiers on point-of-sale terminals).Purpose:The ability to trace actions performed on a computer system to an individual establishes accountability and traceability and is fundamental to establishing effective access controls. By ensuring each user is uniquely identified, instead of using one ID for several employees, an organization can maintain individual responsibility for actions and an effective record in the audit log per employee. In addition, this will assist with issue resolution and containment when misuse or malicious intent occurs.',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'groupId' => '8.',
            'requirements' => [
                [
                    'description' => 'Each user with access to system components or cardholder data is assigned a unique ID that is not shared with any other user. (This does not apply to user accounts within point-of-sale terminals that have access to only one card number at a time to facilitate a single transaction.)',
                    'id' => '8.2.1-R1',
                ],
                [
                    'description' => 'A unique user ID is assigned to each user before that user is permitted access to system components or cardholder data.',
                    'id' => '8.2.1-R2',
                ],
            ],
            'status' => 'ACTIVE',
            'title' => 'User identification and related accounts for users and administrators are strictly managed throughout an accounts lifecycle.',
            'workflowType' => 'automated-scan',
        ],
    ],
]

BatchGetTask

$result = $client->batchGetTask([/* ... */]);
$promise = $client->batchGetTaskAsync([/* ... */]);

Retrieves multiple tasks in a single request. Use it instead of calling GetTask for each task. If the operation can't return a task, it lists the task in errors and still succeeds.

Parameter Syntax

$result = $client->batchGetTask([
    'environmentArn' => '<string>', // REQUIRED
    'keys' => [ // REQUIRED
        [
            'controlId' => '<string>', // REQUIRED
            'framework' => '<string>', // REQUIRED
            'frameworkVersion' => '<string>', // REQUIRED
            'taskId' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

keys
Required: Yes
Type: Array of TaskKey structures

The tasks to retrieve, 1 to 100 per request. Keys must be unique within a request.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'errors' => [
        [
            'code' => '<string>',
            'key' => [
                'controlId' => '<string>',
                'framework' => '<string>',
                'frameworkVersion' => '<string>',
                'taskId' => '<string>',
            ],
            'message' => '<string>',
        ],
        // ...
    ],
    'tasks' => [
        [
            'controlId' => '<string>',
            'createdAt' => <DateTime>,
            'createdBy' => '<string>',
            'description' => '<string>',
            'dueAt' => <DateTime>,
            'environment' => '<string>',
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'priority' => 'HIGH|MEDIUM|LOW',
            'project' => '<string>',
            'status' => 'OPEN|PENDING|COMPLETED|CANCELLED',
            'taskId' => '<string>',
            'title' => '<string>',
            'updatedAt' => <DateTime>,
        ],
        // ...
    ],
]

Result Details

Members
errors
Required: Yes
Type: Array of BatchGetTaskError structures

The entries for requested tasks that the operation could not return. Empty when the operation returned all of them; a request in which every task failed still succeeds.

tasks
Required: Yes
Type: Array of Task structures

The list of tasks.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get multiple tasks

Retrieves several payments-prod PCI-DSS remediation tasks in one request instead of calling GetTask for each.

$result = $client->batchGetTask([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'keys' => [
        [
            'controlId' => '8.2.1',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
        ],
        [
            'controlId' => '8.2.1',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
        ],
    ],
    'project' => 'payments-prod',
]);

Result syntax:

[
    'errors' => [
    ],
    'tasks' => [
        [
            'controlId' => '8.2.1',
            'createdAt' => ,
            'createdBy' => 'Assurance',
            'description' => 'Replace the shared payments-prod database account with per-user IDs so every user is assigned a unique ID before access is granted.',
            'dueAt' => ,
            'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'priority' => 'HIGH',
            'project' => 'payments-prod',
            'status' => 'COMPLETED',
            'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
            'title' => 'Assign unique user IDs for payments-prod database access',
            'updatedAt' => ,
        ],
        [
            'controlId' => '8.2.1',
            'createdAt' => ,
            'createdBy' => 'Assurance',
            'description' => 'Document the payments-prod unique user ID standard so the PCI-DSS control has supporting evidence.',
            'dueAt' => ,
            'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'priority' => 'MEDIUM',
            'project' => 'payments-prod',
            'status' => 'OPEN',
            'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
            'title' => 'Document the payments-prod unique user ID standard for PCI-DSS 8.2.1',
            'updatedAt' => ,
        ],
    ],
]

Chat

$result = $client->chat([/* ... */]);
$promise = $client->chatAsync([/* ... */]);

Starts a streaming chat turn with the AWS Assurance agent. Returns an event stream of chat events, including chunks, tool calls, and errors.

Parameter Syntax

$result = $client->chat([
    'environmentArn' => '<string>', // REQUIRED
    'expectedSequenceNumber' => <integer>,
    'message' => '<string>', // REQUIRED
    'sessionId' => '<string>',
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

expectedSequenceNumber
Type: long (int|float)

The sequence number of the last message you received. If the service detects a more recent sequence number, the request fails with ConflictException, indicating a concurrent update.

message
Required: Yes
Type: string

The chat message to send to the AWS Assurance agent.

sessionId
Type: string

The session to continue. Pass the sessionId returned by a previous Chat call to continue that session. If you omit it, AWS Assurance starts a new session. If the session doesn't exist or has expired, the operation returns ResourceNotFoundException. If the format isn't valid, the operation returns ValidationException.

Result Syntax

[
    'eventStream' => [ // EventParsingIterator
        'chunk' => [
            'message' => '<string>',
        ],
        'error' => [
            'message' => '<string>',
        ],
        'response' => [
        ],
        'toolCall' => [
            'eventDescription' => '<string>',
            'message' => '<string>',
        ],
    ],
    'sequenceNumber' => <integer>,
    'sessionId' => '<string>',
]

Result Details

Members
eventStream
Required: Yes
Type: EventParsingIterator supplying the following structures: ChatChunkEvent, ChatToolCallEvent, ChatResponseEvent, ChatErrorEvent

The stream of chat events returned by the agent.

sequenceNumber
Required: Yes
Type: long (int|float)

The updated sequence number for this session. Pass this value as expectedSequenceNumber on your next call.

sessionId
Required: Yes
Type: string

The ID of the session. If you omitted sessionId in the request, use this value to continue the session in subsequent calls.

Using an EventParsingIterator

To use an EventParsingIterator, you will need to loop over the events it will generate and check the top-level field to determine which type of event it is.

foreach($result['eventStream'] as $event) {
    if (isset($event['chunk'])) {
        // Handle the 'chunk' event.
    } else if (isset($event['error'])) {
        // Handle the 'error' event.
    } else if (isset($event['response'])) {
        // Handle the 'response' event.
    } else if (isset($event['toolCall'])) {
        // Handle the 'toolCall' event.
    }
}

Errors

ServiceQuotaExceededException:

The request would exceed a service quota.

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Continue a chat session

Sends a follow-up question to the AWS Assurance agent to review the open controls in a PCI-DSS assessment.

$result = $client->chat([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'expectedSequenceNumber' => 2,
    'message' => 'Summarize the open controls in my PCI-DSS assessment.',
    'sessionId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
]);

Result syntax:

[
    'eventStream' => [
        'chunk' => [
            'message' => 'Your payments-prod assessment has 3 open controls awaiting evidence.',
        ],
    ],
    'sequenceNumber' => 3,
    'sessionId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
]

CreateComment

$result = $client->createComment([/* ... */]);
$promise = $client->createCommentAsync([/* ... */]);

Adds a new comment to a specific control.

Parameter Syntax

$result = $client->createComment([
    'content' => '<string>',
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
    'taskId' => '<string>',
]);

Parameter Details

Members
content
Type: string

The free-text content of the comment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

taskId
Type: string

The identifier of the task to scope the comment to. Optional.

Result Syntax

[
    'commentId' => '<string>',
]

Result Details

Members
commentId
Required: Yes
Type: string

The unique identifier of the comment.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Add a comment to a control

Adds a reviewer note to a control in the payments-prod project's PCI DSS assessment.

$result = $client->createComment([
    'content' => 'Attach the Q1 cardholder data environment scan as evidence for this control.',
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
    'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
]);

Result syntax:

[
    'commentId' => '1773484200000',
]

CreateControl

$result = $client->createControl([/* ... */]);
$promise = $client->createControlAsync([/* ... */]);

Creates a leaf control, which is a control with no child controls, in a custom framework.

Parameter Syntax

$result = $client->createControl([
    'controlId' => '<string>', // REQUIRED
    'controlIntents' => ['<string>', ...],
    'description' => '<string>',
    'displayOrder' => <integer>,
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'parentControlId' => '<string>', // REQUIRED
    'requirements' => [
        [
            'description' => '<string>', // REQUIRED
            'id' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'title' => '<string>', // REQUIRED
    'workflowType' => 'automated-scan|document|hybrid',
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

controlIntents
Type: Array of strings

The technical control intents that classify how an assessment evaluates this leaf control. Supplying at least one intent makes the control eligible for automated scanning. Leaf controls only.

description
Type: string

A description of the control.

displayOrder
Type: int

The ordering key that determines the display sequence within the framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

parentControlId
Required: Yes
Type: string

The identifier of the parent control group.

requirements
Type: Array of Requirement structures

The individual checks an assessment scores for this control. Assign each one an id that findings, assessment results, and remediation tasks reference.

title
Required: Yes
Type: string

The display name for the control.

workflowType
Type: string

The optional evaluation workflow type. When omitted and controlIntents are present, the service defaults this to automated-scan. Leaf controls only.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Create a control

Creates a leaf control in the payments team's custom framework while it is still a draft, with a requirement the payments-prod assessment will score.

$result = $client->createControl([
    'controlId' => 'PAY-1.1',
    'controlIntents' => [
        'storageEncryptionConfiguration',
    ],
    'description' => 'Requires that stored cardholder data is encrypted with a customer-managed key.',
    'displayOrder' => 1,
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'payments-pci-dss',
    'frameworkVersion' => '1.0',
    'parentControlId' => 'PAY-1',
    'requirements' => [
        [
            'description' => 'Confirm that storage holding cardholder data has encryption enabled.',
            'id' => 'PAY-1.1-R1',
        ],
    ],
    'title' => 'Encrypt cardholder data at rest',
    'workflowType' => 'automated-scan',
]);

Result syntax:

[
]

CreateControlGroup

$result = $client->createControlGroup([/* ... */]);
$promise = $client->createControlGroupAsync([/* ... */]);

Creates a control group within a custom framework.

Parameter Syntax

$result = $client->createControlGroup([
    'controlId' => '<string>', // REQUIRED
    'description' => '<string>',
    'displayOrder' => <integer>,
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'title' => '<string>', // REQUIRED
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The control group ID (for example, "A.1").

description
Type: string

A description of the control group.

displayOrder
Type: int

The ordering key that determines the display sequence within the framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

title
Required: Yes
Type: string

The display name for the control group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Create a control group

Creates a control group in the payments team's custom framework while it is still a draft, to organize the controls it will track for payments-prod alongside PCI DSS.

$result = $client->createControlGroup([
    'controlId' => 'PAY-1',
    'description' => 'Custom controls the payments team tracks for cardholder data handling.',
    'displayOrder' => 1,
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'payments-pci-dss',
    'frameworkVersion' => '1.0',
    'title' => 'Payments data protection',
]);

Result syntax:

[
]

CreateEnvironment

$result = $client->createEnvironment([/* ... */]);
$promise = $client->createEnvironmentAsync([/* ... */]);

Creates a new governance environment with the specified name and service role. If you provide identityStore, AWS Assurance creates an IAM Identity Center managed application for the environment.

Parameter Syntax

$result = $client->createEnvironment([
    'description' => '<string>',
    'domainPrefix' => '<string>',
    'environmentName' => '<string>', // REQUIRED
    'environmentScope' => 'ORGANIZATION|SINGLE_ACCOUNT',
    'identityStore' => [
        'identityCenterRole' => '<string>', // REQUIRED
        'instanceArn' => '<string>', // REQUIRED
    ],
    'kmsKeyArn' => '<string>',
    'operatorRole' => '<string>',
    'organizationalUnitIds' => ['<string>', ...],
    'regions' => ['<string>', ...],
    'tags' => [
        [
            'key' => '<string>', // REQUIRED
            'value' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
description
Type: string

A description of the environment.

domainPrefix
Type: string

The optional custom domain prefix for the environment portal URL. The prefix must be unique within the AWS Region. If you don't specify a prefix, AWS Assurance uses the environment ID. You can't change the prefix after you create the environment.

environmentName
Required: Yes
Type: string

The name of the environment.

environmentScope
Type: string

The set of AWS accounts that the new environment evaluates. If you omit the scope, AWS Assurance uses SINGLE_ACCOUNT. Valid values:

  • ORGANIZATION – Evaluates the member accounts in your organization in AWS Organizations. Call this operation from the management account or a delegated administrator account, with trusted access for AWS Assurance turned on.

  • SINGLE_ACCOUNT – Evaluates only the account where you create the environment.

identityStore
Type: IdentityStoreConfig structure

The identity store configuration.

kmsKeyArn
Type: string

The ARN of an optional AWS KMS key that encrypts evidence. The AWS Assurance service role must have kms:Decrypt and kms:GenerateDataKey permissions on this key.

operatorRole
Type: string

The AWS Identity and Access Management (IAM) role that AWS Assurance assumes to issue temporary credentials to operators who use your application. You must specify this role to support operator sessions. The role's trust policy must allow the AWS Assurance service principal to call sts:AssumeRole.

organizationalUnitIds
Type: Array of strings

The organizational units to scope the organization environment's evaluation to. Only valid when the environment scope is ORGANIZATION. When omitted, the entire organization is in scope. Must contain at least one OU when provided. Accounts in nested OUs under a listed OU are included.

regions
Type: Array of strings

The AWS Regions to evaluate across. When empty or omitted, the environment evaluates all generally available Regions in the partition. Applies to all accounts in scope.

tags
Type: Array of Tag structures

The tags attached to the resource, as key-value pairs.

Result Syntax

[
    'environmentArn' => '<string>',
]

Result Details

Members
environmentArn
Required: Yes
Type: string

The ARN of the newly created governance environment.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

Examples

Example 1: Create a governance environment

Creates a single-account governance environment for the payments team to run its PCI-DSS assessment.

$result = $client->createEnvironment([
    'description' => 'Governance environment for the payments team's PCI-DSS assessment.',
    'domainPrefix' => 'payments-prod',
    'environmentName' => 'payments-governance',
    'environmentScope' => 'SINGLE_ACCOUNT',
]);

Result syntax:

[
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]

CreateEnvironmentConnection

$result = $client->createEnvironmentConnection([/* ... */]);
$promise = $client->createEnvironmentConnectionAsync([/* ... */]);

Creates a connection between a governance environment and an evidence source. Specify the source in providerConfig.

If you call this operation again for a source that is already connected, AWS Assurance returns the current status of the connection and doesn't create a second one.

Parameter Syntax

$result = $client->createEnvironmentConnection([
    'environmentArn' => '<string>', // REQUIRED
    'providerConfig' => [ // REQUIRED
        'github' => [
            'account' => '<string>',
        ],
        's3' => [
            'expectedBucketOwner' => '<string>',
            'sourceUri' => '<string>', // REQUIRED
        ],
        'sharepoint' => [
            'sites' => ['<string>', ...], // REQUIRED
            'tenantId' => '<string>',
        ],
    ],
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

providerConfig
Required: Yes
Type: ConnectionProviderConfig structure

The evidence source to connect. Set exactly one member.

Result Syntax

[
    'authorizationUrl' => '<string>',
    'status' => 'ACTIVE|PENDING',
]

Result Details

Members
authorizationUrl
Type: string

The URL to open in a browser to approve access at GitHub or Microsoft. The response includes this URL only for a github or sharepoint connection with a status of PENDING. The connection becomes ACTIVE after you approve access.

The response includes this URL only once. If you lose it, call CreateEnvironmentConnection again.

status
Required: Yes
Type: string

The status of the connection. To get the other attributes of the connection, call ListEnvironmentConnections.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Create an S3 evidence connection

Creates an Amazon S3 connection so the payments team can collect PCI-DSS evidence from a bucket into the governance environment.

$result = $client->createEnvironmentConnection([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'providerConfig' => [
        's3' => [
            'expectedBucketOwner' => '111122223333',
            'sourceUri' => 's3://payments-prod-evidence/pci-dss/',
        ],
    ],
]);

Result syntax:

[
    'status' => 'ACTIVE',
]

CreateFramework

$result = $client->createFramework([/* ... */]);
$promise = $client->createFrameworkAsync([/* ... */]);

Creates a custom framework. The framework name must not start with AWS:. New frameworks are created in PENDING status. Use PublishFramework to make them ACTIVE.

Parameter Syntax

$result = $client->createFramework([
    'description' => '<string>',
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'title' => '<string>',
]);

Parameter Details

Members
description
Type: string

A description of the framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the framework. The name must not start with AWS:.

frameworkVersion
Required: Yes
Type: string

The version that you assign to the framework.

title
Type: string

The human-readable title of the framework.

Result Syntax

[
    'framework' => [
        'createdAt' => <DateTime>,
        'description' => '<string>',
        'environment' => '<string>',
        'frameworkName' => '<string>',
        'frameworkVersion' => '<string>',
        'status' => 'ACTIVE|PENDING|PRE_PROD',
        'title' => '<string>',
        'type' => 'MANAGED|CUSTOM',
        'updatedAt' => <DateTime>,
    ],
]

Result Details

Members
framework
Required: Yes
Type: Framework structure

The name of the compliance framework.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Create a custom framework

Creates a custom PCI-DSS framework in a governance environment for the payments team assessment.

$result = $client->createFramework([
    'description' => 'Custom control framework for the payments team PCI-DSS v4 assessment.',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'payments-pci-dss',
    'frameworkVersion' => '1.0',
    'title' => 'Payments PCI-DSS v4 Framework',
]);

Result syntax:

[
    'framework' => [
        'type' => 'CUSTOM',
        'createdAt' => ,
        'description' => 'Custom control framework for the payments team PCI-DSS v4 assessment.',
        'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
        'frameworkName' => 'payments-pci-dss',
        'frameworkVersion' => '1.0',
        'status' => 'PENDING',
        'title' => 'Payments PCI-DSS v4 Framework',
    ],
]

CreateInvitation

$result = $client->createInvitation([/* ... */]);
$promise = $client->createInvitationAsync([/* ... */]);

Creates a pending invitation for a customer account to connect to an environment. Call this operation from the account that owns the environment.

At most one non-terminal (PENDING or ACTIVE) invitation can exist per (environment, inviteeAccountId) pair. If you call this operation when a non-terminal invitation already exists, the service returns ConflictException.

Parameter Syntax

$result = $client->createInvitation([
    'environmentArn' => '<string>', // REQUIRED
    'inviteeAccountId' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

inviteeAccountId
Required: Yes
Type: string

The ID of the invited AWS account.

Result Syntax

[
    'expiresAt' => <DateTime>,
    'status' => 'PENDING|ACTIVE|REJECTED|REVOKED|EXPIRED',
]

Result Details

Members
expiresAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the invitation expires if not accepted.

status
Required: Yes
Type: string

The lifecycle state of the created invitation. PENDING for a freshly created invitation. If an active invitation already exists for the same environment and account, the operation returns the current state (for example, ACTIVE) unchanged.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Invite an account to an environment

Invites the payments team's member account to connect to the governance environment running the PCI-DSS assessment.

$result = $client->createInvitation([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'inviteeAccountId' => '444455556666',
]);

Result syntax:

[
    'expiresAt' => ,
    'status' => 'PENDING',
]

CreatePermissionSet

$result = $client->createPermissionSet([/* ... */]);
$promise = $client->createPermissionSetAsync([/* ... */]);

Creates a new permission set in the environment. Returns the identifier the service assigned to it; retrieve its attributes with GetPermissionSet.

Parameter Syntax

$result = $client->createPermissionSet([
    'description' => '<string>',
    'environmentArn' => '<string>', // REQUIRED
    'name' => '<string>', // REQUIRED
    'permissions' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
description
Type: string

A description of the permission set.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

name
Required: Yes
Type: string

The name of the permission set.

permissions
Required: Yes
Type: Array of strings

The permissions granted by the permission set.

Result Syntax

[
    'permissionSetId' => '<string>',
]

Result Details

Members
permissionSetId
Required: Yes
Type: string

The identifier of the newly created permission set.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Create a permission set

Creates a permission set for the payments compliance team running a PCI-DSS assessment.

$result = $client->createPermissionSet([
    'name' => 'Payments Auditor',
    'description' => 'Access for the payments compliance team to review the PCI-DSS assessment and manage its projects.',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'permissions' => [
        'view_assessments',
        'manage_projects',
    ],
]);

Result syntax:

[
    'permissionSetId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
]

CreateProject

$result = $client->createProject([/* ... */]);
$promise = $client->createProjectAsync([/* ... */]);

Creates a new project with a list of resources in a governance environment.

Parameter Syntax

$result = $client->createProject([
    'environmentArn' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
    'resourceFilters' => ['<string>', ...],
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

project
Required: Yes
Type: string

The name of the project.

resourceFilters
Type: Array of strings

The filters that determine which resources are in scope.

Result Syntax

[
    'project' => '<string>',
    'resourceFilters' => ['<string>', ...],
]

Result Details

Members
project
Type: string

The name of the project.

resourceFilters
Type: Array of strings

The filters that determine which resources are in scope.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Create a project

Creates the payments-prod project scoped to the account's payment-processing resources so a PCI-DSS assessment can track them.

$result = $client->createProject([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'project' => 'payments-prod',
    'resourceFilters' => [
        'tag:app=payments-prod',
        'region:us-east-1 resourcetype:rds:db',
    ],
]);

Result syntax:

[
    'project' => 'payments-prod',
    'resourceFilters' => [
        'tag:app=payments-prod',
        'region:us-east-1 resourcetype:rds:db',
    ],
]

DeleteComment

$result = $client->deleteComment([/* ... */]);
$promise = $client->deleteCommentAsync([/* ... */]);

Deletes a specific comment by its identifying fields.

Parameter Syntax

$result = $client->deleteComment([
    'commentId' => '<string>', // REQUIRED
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
commentId
Required: Yes
Type: string

The unique identifier of the comment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Delete a comment from a control

Removes a comment from a control once its review note is no longer needed.

$result = $client->deleteComment([
    'commentId' => '1773484200000',
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
]

DeleteControl

$result = $client->deleteControl([/* ... */]);
$promise = $client->deleteControlAsync([/* ... */]);

Deletes a custom control. The operation also removes any associated evaluation metadata (control intents and workflow type).

Parameter Syntax

$result = $client->deleteControl([
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Delete a control

Deletes a custom control from the payments team's draft framework, before it is published, once it no longer applies to the payments-prod assessment.

$result = $client->deleteControl([
    'controlId' => 'PAY-1.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'payments-pci-dss',
    'frameworkVersion' => '1.0',
]);

Result syntax:

[
]

DeleteControlGroup

$result = $client->deleteControlGroup([/* ... */]);
$promise = $client->deleteControlGroupAsync([/* ... */]);

Deletes a control group. The group must be empty (no child controls) before you delete it.

Parameter Syntax

$result = $client->deleteControlGroup([
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Delete a control group

Deletes an empty control group from the payments team's draft custom framework, before it is published, once its controls are no longer planned for payments-prod.

$result = $client->deleteControlGroup([
    'controlId' => 'PAY-1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'payments-pci-dss',
    'frameworkVersion' => '1.0',
]);

Result syntax:

[
]

DeleteEnvironment

$result = $client->deleteEnvironment([/* ... */]);
$promise = $client->deleteEnvironmentAsync([/* ... */]);

Deletes a governance environment.

Parameter Syntax

$result = $client->deleteEnvironment([
    'environmentArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Delete a governance environment

Deletes the payments team's governance environment once its PCI-DSS assessment is complete.

$result = $client->deleteEnvironment([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
]

DeleteEnvironmentConnection

$result = $client->deleteEnvironmentConnection([/* ... */]);
$promise = $client->deleteEnvironmentConnectionAsync([/* ... */]);

Deletes a connection from a governance environment. Specify the connection in providerConfig. Deleting a connection doesn't delete any evidence.

If the connection doesn't exist, the operation succeeds without returning an error.

Parameter Syntax

$result = $client->deleteEnvironmentConnection([
    'connectionId' => '<string>',
    'environmentArn' => '<string>', // REQUIRED
    'providerConfig' => [
        'github' => [
            'account' => '<string>', // REQUIRED
        ],
        's3' => [
            'sourceUri' => '<string>', // REQUIRED
        ],
        'sharepoint' => [
            'tenantId' => '<string>', // REQUIRED
        ],
    ],
]);

Parameter Details

Members
connectionId
Type: string

The ID of the GitHub or SharePoint connection to delete, as returned by ListEnvironmentConnections. An Amazon S3 connection has no ID. To delete one, use providerConfig.

Specify either connectionId or providerConfig, but not both.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

providerConfig
Type: ConnectionProviderKey structure

The connection to delete, identified by the source that it connects to.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Delete an S3 evidence connection

Removes the Amazon S3 evidence connection from the payments team's governance environment.

$result = $client->deleteEnvironmentConnection([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'providerConfig' => [
        's3' => [
            'sourceUri' => 's3://payments-prod-evidence/pci-dss/',
        ],
    ],
]);

Result syntax:

[
]

DeleteEvidence

$result = $client->deleteEvidence([/* ... */]);
$promise = $client->deleteEvidenceAsync([/* ... */]);

Removes an evidence item.

Parameter Syntax

$result = $client->deleteEvidence([
    'environmentArn' => '<string>', // REQUIRED
    'evidenceId' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

evidenceId
Required: Yes
Type: string

The unique identifier of the evidence item.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Delete an evidence item

Removes the user access review evidence from the payments-prod project.

$result = $client->deleteEvidence([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
    'project' => 'payments-prod',
]);

Result syntax:

[
]

DeleteFramework

$result = $client->deleteFramework([/* ... */]);
$promise = $client->deleteFrameworkAsync([/* ... */]);

Deletes a custom framework that you no longer need. You can delete only custom frameworks. Managed frameworks are read-only. Before you delete a framework, you must disable it in every project where it is enabled. Otherwise, you receive a ConflictException.

A framework in PENDING status must be empty (no control groups or controls) before you delete it. Otherwise, you receive a ConflictException. When you delete an ACTIVE (published) framework, AWS Assurance also deletes its control groups and controls.

In every project, AWS Assurance also deletes your data for this framework version:

  • Assessments and their results

  • Annotations

  • Tasks, task history, and comments

  • Decisions that mark a control or requirement as not applicable, and their justifications

Consider this data permanently deleted as soon as the operation succeeds. Your evidence remains available, but it is no longer linked to the framework's controls.

To keep an assessment report, export it before you disable the framework. First, call StartAssessmentReportExport. Then wait until GetAssessmentReportExport reports COMPLETED. Finally, get the report with GetAssessmentReportContent.

The deletion can continue after the operation returns and might take some time. For example, the deletion might take longer while an assessment that uses the framework is still running. Until the deletion completes, creating a framework with the same name and version returns a ConflictException.

Parameter Syntax

$result = $client->deleteFramework([
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Delete a custom framework

Deletes a published custom PCI-DSS framework that is no longer enabled for any project, together with its control groups and controls.

$result = $client->deleteFramework([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'payments-pci-dss',
    'frameworkVersion' => '1.0',
]);

Result syntax:

[
]

DeleteInvitation

$result = $client->deleteInvitation([/* ... */]);
$promise = $client->deleteInvitationAsync([/* ... */]);

Deletes an invitation or unlinks a connected account for an environment. Call this operation from the environment owner account. This operation is idempotent—deleting an already-removed invitation or connection has no effect.

Withdraws a pending invitation or removes an active connection, in any state. After you remove the connection, AWS Assurance no longer evaluates that account.

Parameter Syntax

$result = $client->deleteInvitation([
    'environmentArn' => '<string>', // REQUIRED
    'inviteeAccountId' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

inviteeAccountId
Required: Yes
Type: string

The invited or connected account whose invitation or connection to delete.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Delete an invitation or unlink an account

Unlinks the payments team's member account from the governance environment after the PCI-DSS assessment concludes.

$result = $client->deleteInvitation([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'inviteeAccountId' => '444455556666',
]);

Result syntax:

[
]

DeletePermissionSet

$result = $client->deletePermissionSet([/* ... */]);
$promise = $client->deletePermissionSetAsync([/* ... */]);

Deletes a permission set.

Parameter Syntax

$result = $client->deletePermissionSet([
    'environmentArn' => '<string>', // REQUIRED
    'permissionSetId' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

permissionSetId
Required: Yes
Type: string

The identifier of the permission set.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Delete a permission set

Deletes the payments auditor permission set after the PCI-DSS assessment is complete.

$result = $client->deletePermissionSet([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'permissionSetId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
]);

Result syntax:

[
]

DeleteProject

$result = $client->deleteProject([/* ... */]);
$promise = $client->deleteProjectAsync([/* ... */]);

Deletes a project and all its associated resources.

Parameter Syntax

$result = $client->deleteProject([
    'environmentArn' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'message' => '<string>',
]

Result Details

Members
message
Type: string

A human-readable confirmation message describing the deletion result.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Delete a project

Deletes the payments-prod project and all of its associated resources after the PCI-DSS assessment is complete.

$result = $client->deleteProject([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'message' => 'Project deleted: payments-prod',
]

DeregisterOrganizationDelegatedAdmin

$result = $client->deregisterOrganizationDelegatedAdmin([/* ... */]);
$promise = $client->deregisterOrganizationDelegatedAdminAsync([/* ... */]);

Removes the delegated administrator for AWS Assurance from your organization. The account that was the delegated administrator can no longer manage organization-scoped environments. The management account keeps ownership of any resources that the delegated administrator created.

Only the management account of the organization can call this operation.

Parameter Syntax

$result = $client->deregisterOrganizationDelegatedAdmin([
    'accountId' => '<string>', // REQUIRED
]);

Parameter Details

Members
accountId
Required: Yes
Type: string

The 12-digit AWS account ID of the delegated administrator to deregister. Must currently be registered as a delegated administrator for AWS Assurance in the caller's organization.

Result Syntax

[
    'accountId' => '<string>',
    'organizationId' => '<string>',
]

Result Details

Members
accountId
Required: Yes
Type: string

The account ID that was deregistered.

organizationId
Required: Yes
Type: string

The ID of the organization that AWS Assurance removed the delegated administrator from.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Deregister the delegated administrator

Removes the delegated administrator for AWS Assurance after the payments team's PCI-DSS assessment is complete, returning administration to the management account.

$result = $client->deregisterOrganizationDelegatedAdmin([
    'accountId' => '444455556666',
]);

Result syntax:

[
    'accountId' => '444455556666',
    'organizationId' => 'o-example12345',
]

DisableFramework

$result = $client->disableFramework([/* ... */]);
$promise = $client->disableFrameworkAsync([/* ... */]);

Disables a previously enabled framework for a specific project.

Parameter Syntax

$result = $client->disableFramework([
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'environment' => '<string>',
    'framework' => '<string>',
    'project' => '<string>',
]

Result Details

Members
environment
Required: Yes
Type: string

The name of the governance environment the framework belongs to.

framework
Required: Yes
Type: string

The name of the compliance framework.

project
Required: Yes
Type: string

The name of the project that the framework was disabled for.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Disable a framework for a project

Disables the PCI-DSS framework for the payments-prod project once the assessment is complete, so its controls are no longer evaluated.

$result = $client->disableFramework([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'project' => 'payments-prod',
]

EnableFramework

$result = $client->enableFramework([/* ... */]);
$promise = $client->enableFrameworkAsync([/* ... */]);

Enables a compliance framework for a project in a governance environment. AWS Assurance then assesses the project's resources against the framework's controls.

Parameter Syntax

$result = $client->enableFramework([
    'assessmentMode' => 'SCHEDULED|CONTINUOUS',
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>',
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
assessmentMode
Type: string

The way that assessments run for the framework. The default is SCHEDULED.

  • CONTINUOUS – Runs assessments when a relevant change occurs.

  • SCHEDULED – Runs assessments on a recurring schedule.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'assessmentMode' => 'SCHEDULED|CONTINUOUS',
    'environment' => '<string>',
    'framework' => '<string>',
    'frameworkVersion' => '<string>',
    'project' => '<string>',
    'type' => 'MANAGED|CUSTOM',
]

Result Details

Members
assessmentMode
Type: string

The way that assessments run for the framework. This field is empty if assessment modes aren't available for your account.

environment
Required: Yes
Type: string

The name of the governance environment the framework belongs to.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

type
Required: Yes
Type: string

The type of the compliance framework.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Enable a framework for a project

Enables the PCI-DSS framework for the payments-prod project so its controls are assessed in the governance environment.

$result = $client->enableFramework([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'type' => 'MANAGED',
    'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]

GetAnnotation

$result = $client->getAnnotation([/* ... */]);
$promise = $client->getAnnotationAsync([/* ... */]);

Retrieves the annotation for a specific piece of evidence.

Parameter Syntax

$result = $client->getAnnotation([
    'assessmentId' => '<string>', // REQUIRED
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'evidenceId' => '<string>', // REQUIRED
    'evidenceVersion' => <integer>, // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
assessmentId
Required: Yes
Type: string

The identifier of the assessment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

evidenceId
Required: Yes
Type: string

The identifier of the evidence the annotation applies to.

evidenceVersion
Required: Yes
Type: int

The version number of the evidence the annotation applies to.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'assessmentId' => '<string>',
    'controlId' => '<string>',
    'createdAt' => <DateTime>,
    'environmentArn' => '<string>',
    'evidenceId' => '<string>',
    'evidenceVersion' => <integer>,
    'framework' => '<string>',
    'frameworkVersion' => '<string>',
    'notes' => '<string>',
    'project' => '<string>',
]

Result Details

Members
assessmentId
Required: Yes
Type: string

The identifier of the assessment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the annotation was created.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

evidenceId
Required: Yes
Type: string

The identifier of the evidence the annotation applies to.

evidenceVersion
Required: Yes
Type: int

The version number of the evidence the annotation applies to.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

notes
Type: string

The free-text reviewer note attached to the evidence.

project
Required: Yes
Type: string

The name of the project.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get an annotation

Retrieves the reviewer note attached to a specific evidence version while auditing a PCI-DSS control.

$result = $client->getAnnotation([
    'assessmentId' => '1773480600000',
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
    'evidenceVersion' => 1,
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'assessmentId' => '1773480600000',
    'controlId' => '8.2.1',
    'createdAt' => ,
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
    'evidenceVersion' => 1,
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'notes' => 'Confirmed every payments-prod database user has a unique ID; this evidence satisfies the control.',
    'project' => 'payments-prod',
]

GetAssessment

$result = $client->getAssessment([/* ... */]);
$promise = $client->getAssessmentAsync([/* ... */]);

Retrieves a single assessment.

Parameter Syntax

$result = $client->getAssessment([
    'assessmentId' => '<string>', // REQUIRED
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
assessmentId
Required: Yes
Type: string

The identifier of the assessment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'assessmentId' => '<string>',
    'context' => '<string>',
    'controlId' => '<string>',
    'createdAt' => <DateTime>,
    'environment' => '<string>',
    'framework' => '<string>',
    'frameworkVersion' => '<string>',
    'organizationSummary' => [
        'evaluatedAccounts' => <integer>,
        'failedCount' => <integer>,
        'failedRunCount' => <integer>,
        'lowestScoringAccounts' => [
            [
                'accountId' => '<string>',
                'findingsSummary' => '<string>',
                'outcomePercentage' => <float>,
            ],
            // ...
        ],
        'notApplicableCount' => <integer>,
        'partiallyPassedCount' => <integer>,
        'passedCount' => <integer>,
        'totalAccounts' => <integer>,
    ],
    'outcomePercentage' => <float>,
    'project' => '<string>',
    'result' => '<string>',
    'status' => 'SCHEDULED|IN_PROGRESS|NEEDS_ATTENTION|FINISHED|NOT_APPLICABLE|ERROR|USER_ERROR',
    'trigger' => 'SCHEDULE|DETECTED_CHANGE|USER_ACTION',
    'updatedAt' => <DateTime>,
]

Result Details

Members
assessmentId
Required: Yes
Type: string

The identifier of the assessment.

context
Type: string

The optional user-provided context or guidance for the assessment evaluation.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the assessment was created.

environment
Required: Yes
Type: string

The name of the governance environment the assessment belongs to.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

organizationSummary
Type: OrganizationSummary structure

A summary of the assessment across an organization. While the assessment is IN_PROGRESS, totalAccounts and evaluatedAccounts report progress; the full summary is available once the assessment finalizes. Omitted for single-account assessments.

outcomePercentage
Type: float

The numeric percentage score of the assessment outcome.

project
Required: Yes
Type: string

The name of the project.

result
Type: string

The detailed result of the assessment.

status
Required: Yes
Type: string

The canonical state of the assessment.

trigger
Type: string

The event that started the assessment. The trigger field of the StartAssessment event in your AWS CloudTrail logs has the same value.

  • SCHEDULE – The framework's assessment schedule.

  • DETECTED_CHANGE – A relevant change to your resources.

  • USER_ACTION – A StartAssessment call.

This field is empty for assessments that ran before this value was available, or if the value isn't available for your account.

updatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the assessment was last updated.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get an assessment

Retrieves the current status and score of a PCI-DSS assessment in the payments-prod project.

$result = $client->getAssessment([
    'assessmentId' => '1773480600000',
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'assessmentId' => '1773480600000',
    'controlId' => '8.2.1',
    'createdAt' => ,
    'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'outcomePercentage' => 75,
    'project' => 'payments-prod',
    'result' => '1 of 2 requirements met, 1 partially met; one open remediation task remains.',
    'status' => 'NEEDS_ATTENTION',
    'updatedAt' => ,
]

GetAssessmentReportContent

$result = $client->getAssessmentReportContent([/* ... */]);
$promise = $client->getAssessmentReportContentAsync([/* ... */]);

Returns an assessment report. The export must have the status COMPLETED.

A completed report stays available for at least 12 hours after the export starts. If the report is no longer available, start a new export.

Parameter Syntax

$result = $client->getAssessmentReportContent([
    'environmentArn' => '<string>', // REQUIRED
    'exportId' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of the environment.

exportId
Required: Yes
Type: string

The identifier of an export that has the status COMPLETED.

project
Required: Yes
Type: string

The project the export belongs to.

Result Syntax

[
    'content' => <string || resource || Psr\Http\Message\StreamInterface>,
    'contentType' => 'application/pdf',
]

Result Details

Members
content
Required: Yes
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The report file.

contentType
Required: Yes
Type: string

The media type of the report. The only value is PDF.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get the content of a finished assessment report
$result = $client->getAssessmentReportContent([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'exportId' => 'a3f29c1d4b5e4a7c8d9e1a2b3c4d5e6f',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'content' => <BLOB>,
    'contentType' => 'application/pdf',
]

GetAssessmentReportExport

$result = $client->getAssessmentReportExport([/* ... */]);
$promise = $client->getAssessmentReportExportAsync([/* ... */]);

Gets the status of an assessment report export.

Parameter Syntax

$result = $client->getAssessmentReportExport([
    'environmentArn' => '<string>', // REQUIRED
    'exportId' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of the environment.

exportId
Required: Yes
Type: string

The identifier of the export.

project
Required: Yes
Type: string

The project the export belongs to.

Result Syntax

[
    'controlIds' => ['<string>', ...],
    'createdAt' => <DateTime>,
    'exportId' => '<string>',
    'failureMessage' => '<string>',
    'failureReason' => 'SYSTEM_ERROR|ENCRYPTED_CONTENT_UNREADABLE',
    'framework' => '<string>',
    'frameworkVersion' => '<string>',
    'status' => 'QUEUED|IN_PROGRESS|COMPLETED|FAILED',
    'updatedAt' => <DateTime>,
]

Result Details

Members
controlIds
Type: Array of strings

The control that the report covers. This field is absent when the report covers the whole framework.

createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the export started.

exportId
Required: Yes
Type: string

The identifier of the export.

failureMessage
Type: string

A description of the failure. This field is present only when status is FAILED.

failureReason
Type: string

The reason that the export failed. This field is present only when status is FAILED. The reason is one of the following values:

  • ENCRYPTED_CONTENT_UNREADABLE – AWS Assurance couldn't decrypt content that the report needs. Restore access to the environment's AWS KMS key, and then start a new export.

  • SYSTEM_ERROR – AWS Assurance couldn't prepare the report. Start a new export to try again.

framework
Required: Yes
Type: string

The name of the framework the report covers.

frameworkVersion
Required: Yes
Type: string

The version of the framework.

status
Required: Yes
Type: string

The status of the export. The status is one of the following values:

  • QUEUED – The export is waiting to start.

  • IN_PROGRESS – AWS Assurance is preparing the report.

  • COMPLETED – The report is ready. Call GetAssessmentReportContent to get it.

  • FAILED – AWS Assurance couldn't prepare the report. failureReason and failureMessage describe the failure.

updatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the export status last changed.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get an assessment report export
$result = $client->getAssessmentReportExport([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'exportId' => 'a3f29c1d4b5e4a7c8d9e1a2b3c4d5e6f',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'controlIds' => [
        '8.2.1',
    ],
    'createdAt' => ,
    'exportId' => 'a3f29c1d4b5e4a7c8d9e1a2b3c4d5e6f',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'status' => 'COMPLETED',
    'updatedAt' => ,
]

GetChatMessages

$result = $client->getChatMessages([/* ... */]);
$promise = $client->getChatMessagesAsync([/* ... */]);

Gets messages for a chat session in chronological order.

Parameter Syntax

$result = $client->getChatMessages([
    'environmentArn' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'sessionId' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

sessionId
Required: Yes
Type: string

The identifier of the chat session.

Result Syntax

[
    'messages' => [
        [
            'author' => 'user|agent',
            'content' => '<string>',
            'createdAt' => <DateTime>,
            'sequenceNumber' => <integer>,
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
messages
Required: Yes
Type: Array of ChatMessage structures

The list of chat messages in chronological order.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get chat session messages

Retrieves the messages in a chat session in chronological order to review a PCI-DSS assessment conversation.

$result = $client->getChatMessages([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'sessionId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
]);

Result syntax:

[
    'messages' => [
        [
            'author' => 'user',
            'content' => 'Summarize the open controls in my PCI-DSS assessment.',
            'createdAt' => ,
            'sequenceNumber' => 3,
        ],
        [
            'author' => 'agent',
            'content' => 'Your payments-prod assessment has 3 open controls awaiting evidence.',
            'createdAt' => ,
            'sequenceNumber' => 3,
        ],
    ],
]

GetComment

$result = $client->getComment([/* ... */]);
$promise = $client->getCommentAsync([/* ... */]);

Retrieves a specific comment by its identifying fields.

Parameter Syntax

$result = $client->getComment([
    'commentId' => '<string>', // REQUIRED
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
commentId
Required: Yes
Type: string

The unique identifier of the comment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'comment' => [
        'addedBy' => '<string>',
        'commentId' => '<string>',
        'content' => '<string>',
        'controlId' => '<string>',
        'createdAt' => <DateTime>,
        'environment' => '<string>',
        'framework' => '<string>',
        'frameworkVersion' => '<string>',
        'project' => '<string>',
        'taskId' => '<string>',
        'updatedAt' => <DateTime>,
    ],
]

Result Details

Members
comment
Required: Yes
Type: Comment structure

The comment.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get a comment on a control

Retrieves a single comment on a control in the payments-prod PCI DSS assessment.

$result = $client->getComment([
    'commentId' => '1773484200000',
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'comment' => [
        'addedBy' => 'arn:aws:iam::111122223333:role/AssuranceAuditor',
        'commentId' => '1773484200000',
        'content' => 'Evidence attached; the Q1 cardholder data environment scan is complete.',
        'controlId' => '8.2.1',
        'createdAt' => ,
        'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
        'framework' => 'AWS:PCI-DSS',
        'frameworkVersion' => '4',
        'project' => 'payments-prod',
        'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
        'updatedAt' => ,
    ],
]

GetControl

$result = $client->getControl([/* ... */]);
$promise = $client->getControlAsync([/* ... */]);

Retrieves a single leaf control within a framework version, including its title, description, and requirements.

Parameter Syntax

$result = $client->getControl([
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

Result Syntax

[
    'control' => [
        'controlId' => '<string>',
        'controlIntents' => ['<string>', ...],
        'createdAt' => <DateTime>,
        'description' => '<string>',
        'framework' => '<string>',
        'frameworkVersion' => '<string>',
        'groupId' => '<string>',
        'requirements' => [
            [
                'description' => '<string>',
                'id' => '<string>',
            ],
            // ...
        ],
        'status' => 'ACTIVE|PENDING|PRE_PROD',
        'title' => '<string>',
        'type' => 'MANAGED|CUSTOM',
        'updatedAt' => <DateTime>,
        'workflowType' => 'automated-scan|document|hybrid',
    ],
]

Result Details

Members
control
Required: Yes
Type: Control structure

The control.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get a PCI DSS control

Retrieves one control from the PCI DSS framework so the payments team can review its requirements before assessing payments-prod.

$result = $client->getControl([
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
]);

Result syntax:

[
    'control' => [
        'type' => 'MANAGED',
        'controlId' => '8.2.1',
        'controlIntents' => [
            'identityAuthenticationConfiguration',
        ],
        'description' => 'All users are assigned a unique ID before access to system components or cardholder data is allowed. Applicability Notes This requirement is not intended to apply to user accounts within point-of-sale terminals that have access to only one card number at a time to facilitate a single transaction (such as IDs used by cashiers on point-of-sale terminals).Purpose:The ability to trace actions performed on a computer system to an individual establishes accountability and traceability and is fundamental to establishing effective access controls. By ensuring each user is uniquely identified, instead of using one ID for several employees, an organization can maintain individual responsibility for actions and an effective record in the audit log per employee. In addition, this will assist with issue resolution and containment when misuse or malicious intent occurs.',
        'framework' => 'AWS:PCI-DSS',
        'frameworkVersion' => '4',
        'groupId' => '8.',
        'requirements' => [
            [
                'description' => 'Each user with access to system components or cardholder data is assigned a unique ID that is not shared with any other user. (This does not apply to user accounts within point-of-sale terminals that have access to only one card number at a time to facilitate a single transaction.)',
                'id' => '8.2.1-R1',
            ],
            [
                'description' => 'A unique user ID is assigned to each user before that user is permitted access to system components or cardholder data.',
                'id' => '8.2.1-R2',
            ],
        ],
        'status' => 'ACTIVE',
        'title' => 'User identification and related accounts for users and administrators are strictly managed throughout an accounts lifecycle.',
        'workflowType' => 'automated-scan',
    ],
]

GetControlGroup

$result = $client->getControlGroup([/* ... */]);
$promise = $client->getControlGroupAsync([/* ... */]);

Retrieves a single control group's own attributes (title, description, status) within a framework version. Use ListControls with the group's controlId to retrieve the leaf controls within it.

Parameter Syntax

$result = $client->getControlGroup([
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

Result Syntax

[
    'controlGroup' => [
        'controlId' => '<string>',
        'description' => '<string>',
        'framework' => '<string>',
        'frameworkVersion' => '<string>',
        'status' => 'ACTIVE|PENDING|PRE_PROD',
        'title' => '<string>',
        'type' => 'MANAGED|CUSTOM',
    ],
]

Result Details

Members
controlGroup
Required: Yes
Type: ControlGroup structure

The control group.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get a control group

Retrieves the authentication control group in the PCI DSS framework so the payments team can see its title and description before listing its controls.

$result = $client->getControlGroup([
    'controlId' => '8.',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
]);

Result syntax:

[
    'controlGroup' => [
        'type' => 'MANAGED',
        'controlId' => '8.',
        'description' => 'Implement Strong Access Control Measures',
        'framework' => 'AWS:PCI-DSS',
        'frameworkVersion' => '4',
        'title' => 'Identify Users and Authenticate Access to System Components',
    ],
]

GetControlStatus

$result = $client->getControlStatus([/* ... */]);
$promise = $client->getControlStatusAsync([/* ... */]);

Retrieves the effective compliance status of a control in a project. The status combines the most recent assessment of the control with the not-applicable decisions that you declare on the control or its requirements. The framework version must be enabled in the project.

Parameter Syntax

$result = $client->getControlStatus([
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

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

environmentArn
Required: Yes
Type: string

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

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'applicableRequirementCount' => <integer>,
    'controlGroupId' => '<string>',
    'controlId' => '<string>',
    'excludedRequirementCount' => <integer>,
    'lastAssessedAt' => <DateTime>,
    'lastAssessmentId' => '<string>',
    'lastAssessmentStatus' => 'SCHEDULED|IN_PROGRESS|NEEDS_ATTENTION|FINISHED|NOT_APPLICABLE|ERROR|USER_ERROR',
    'outcomePercentage' => <float>,
    'requirementStatuses' => [
        [
            'description' => '<string>',
            'rationale' => '<string>',
            'requirementId' => '<string>',
            'status' => 'met|partial|not_met|not_applicable|unable_to_assess',
            'statusOverride' => [
                'declaredAt' => <DateTime>,
                'declaredBy' => '<string>',
                'justification' => '<string>',
                'type' => 'NOT_APPLICABLE|NONE',
            ],
            'taskId' => '<string>',
        ],
        // ...
    ],
    'status' => 'COMPLIANT|NEEDS_ATTENTION|NOT_APPLICABLE|NOT_ASSESSED',
    'statusOverride' => [
        'declaredAt' => <DateTime>,
        'declaredBy' => '<string>',
        'justification' => '<string>',
        'type' => 'NOT_APPLICABLE|NONE',
    ],
]

Result Details

Members
applicableRequirementCount
Required: Yes
Type: int

The number of the control's requirements that apply to the project.

controlGroupId
Type: string

The identifier of the control group that contains the control. Absent when the control isn't in a control group.

controlId
Required: Yes
Type: string

The identifier of the control.

excludedRequirementCount
Required: Yes
Type: int

The number of the control's requirements whose status is not_applicable. The count includes requirements that you declare not applicable, directly or through the control. It also includes requirements that the assessment determines don't apply.

lastAssessedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the most recent assessment of the control was last updated.

lastAssessmentId
Type: string

The identifier of the most recent assessment of the control in the project. Absent if no assessment has run for the control.

lastAssessmentStatus
Type: string

The state of the most recent assessment of the control.

outcomePercentage
Type: double

The compliance percentage that the most recent assessment of the control calculated. A decision that you declare after that assessment doesn't change this value. The next assessment calculates a new percentage. Absent when status is NOT_ASSESSED or NOT_APPLICABLE.

requirementStatuses
Required: Yes
Type: Array of RequirementStatus structures

The effective status of each of the control's requirements, including requirements that are not applicable.

status
Required: Yes
Type: string

The effective compliance status of the control. Valid values:

  • COMPLIANT or NEEDS_ATTENTION – Based on the compliance percentage that the most recent assessment calculated.

  • NOT_APPLICABLE – The control, or every one of its requirements, is not applicable to the project.

  • NOT_ASSESSED – The most recent assessment hasn't finished, ended in an error, or found no outcome for any applicable requirement.

statusOverride
Type: StatusOverride structure

The decision declared on the control itself. Absent when no decision is declared on the control. Decisions on individual requirements are returned in requirementStatuses.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

GetEnvironment

$result = $client->getEnvironment([/* ... */]);
$promise = $client->getEnvironmentAsync([/* ... */]);

Retrieves a governance environment by ARN or domain. Provide exactly one of environmentArn or domain.

Parameter Syntax

$result = $client->getEnvironment([
    'lookup' => [ // REQUIRED
        'domain' => '<string>',
        'environmentArn' => '<string>',
    ],
]);

Parameter Details

Members
lookup
Required: Yes
Type: EnvironmentLookup structure

The lookup criteria used to resolve the item.

Result Syntax

[
    'environment' => [
        'createdAt' => <DateTime>,
        'description' => '<string>',
        'domainPrefix' => '<string>',
        'environmentArn' => '<string>',
        'environmentId' => '<string>',
        'environmentName' => '<string>',
        'environmentScope' => 'ORGANIZATION|SINGLE_ACCOUNT',
        'evidenceLocation' => '<string>',
        'identityStore' => [
            'applicationArn' => '<string>',
            'identityCenterRole' => '<string>',
            'instanceArn' => '<string>',
            'region' => '<string>',
        ],
        'kmsKeyArn' => '<string>',
        'operatorRole' => '<string>',
        'organizationalUnitIds' => ['<string>', ...],
        'regions' => ['<string>', ...],
        'serviceRole' => '<string>',
        'status' => 'CREATED',
        'tags' => [
            [
                'key' => '<string>',
                'value' => '<string>',
            ],
            // ...
        ],
        'updatedAt' => <DateTime>,
    ],
]

Result Details

Members
environment
Required: Yes
Type: Environment structure

The governance environment that was retrieved.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get a governance environment

Retrieves the payments team's governance environment by ARN to review its PCI-DSS assessment configuration.

$result = $client->getEnvironment([
    'lookup' => [
        'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    ],
]);

Result syntax:

[
    'environment' => [
        'createdAt' => ,
        'description' => 'Governance environment for the payments team's PCI-DSS assessment (Q1 scope).',
        'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
        'environmentId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
        'environmentName' => 'payments-governance',
        'environmentScope' => 'SINGLE_ACCOUNT',
        'status' => 'CREATED',
        'updatedAt' => ,
    ],
]

GetEvidence

$result = $client->getEvidence([/* ... */]);
$promise = $client->getEvidenceAsync([/* ... */]);

Retrieves metadata for an evidence item.

Parameter Syntax

$result = $client->getEvidence([
    'environmentArn' => '<string>', // REQUIRED
    'evidenceId' => '<string>', // REQUIRED
    'evidenceVersion' => <integer>,
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

evidenceId
Required: Yes
Type: string

The unique identifier of the evidence item.

evidenceVersion
Type: int

Specifies the version. Omit to get the latest version.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'checksum' => '<string>',
    'createdAt' => <DateTime>,
    'description' => '<string>',
    'evidenceId' => '<string>',
    'lastAutoAnalysisStartedAt' => <DateTime>,
    'linkMode' => 'AUTO|MANUAL|DISABLED',
    'linkedControls' => [
        [
            'controlId' => '<string>',
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'linkSource' => 'AUTO|MANUAL',
        ],
        // ...
    ],
    'purpose' => 'CONTROL_EVIDENCE|SCAN_EVIDENCE|FRAMEWORK_SOURCE',
    'reference' => '<string>',
    'status' => 'VALID|SCANNING|QUARANTINED|SCAN_FAILED|NOT_AUTO_ANALYZED|VALID_AUTO_ANALYZED',
    'title' => '<string>',
    'updatedAt' => <DateTime>,
    'uploadedBy' => '<string>',
    'version' => <integer>,
]

Result Details

Members
checksum
Type: string

The checksum of the evidence content. Uploaded and Amazon S3 evidence use SHA-256. GitHub evidence uses SHA-1, because GitHub reports content hashes only in SHA-1.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the evidence was created.

description
Type: string

The optional description of the evidence.

evidenceId
Required: Yes
Type: string

The unique identifier of the evidence item.

lastAutoAnalysisStartedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the most recent automatic linking analysis of this evidence version started. For the result, see status. This field is absent if no analysis of this version has started.

linkMode
Type: string

The auto-linking mode in effect for the evidence. AWS Assurance sets it when you add the evidence, or sets it to AUTO when you start a new analysis with UpdateEvidence.

linkedControls
Type: Array of ControlReferenceDetail structures

The controls this evidence is linked to.

purpose
Type: string

What the evidence is for. AWS Assurance sets the purpose when you add the evidence.

reference
Type: string

The external reference URI if this is reference-based evidence.

status
Type: string

The lifecycle status of the evidence.

title
Required: Yes
Type: string

The human-readable title of the evidence.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the evidence was last updated.

uploadedBy
Type: string

The principal that supplied this evidence.

version
Required: Yes
Type: int

The version number of the evidence.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get evidence metadata

Retrieves metadata for the user access review evidence in the payments-prod project.

$result = $client->getEvidence([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'version' => 1,
    'createdAt' => ,
    'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
    'status' => 'VALID',
    'title' => 'PCI-DSS user access review.pdf',
]

GetEvidenceContent

$result = $client->getEvidenceContent([/* ... */]);
$promise = $client->getEvidenceContentAsync([/* ... */]);

Returns the content of an evidence item.

Parameter Syntax

$result = $client->getEvidenceContent([
    'environmentArn' => '<string>', // REQUIRED
    'evidenceId' => '<string>', // REQUIRED
    'evidenceVersion' => <integer>,
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

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

evidenceId
Required: Yes
Type: string

The unique identifier of the evidence item.

evidenceVersion
Type: int

The version of the evidence to get. To get the latest version, omit this parameter.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'checksum' => '<string>',
    'content' => <string || resource || Psr\Http\Message\StreamInterface>,
    'contentType' => '<string>',
    'title' => '<string>',
    'version' => <integer>,
]

Result Details

Members
checksum
Type: string

The checksum of the evidence content. Uploaded and Amazon S3 evidence use SHA-256. GitHub evidence uses SHA-1, because GitHub reports content hashes only in SHA-1.

content
Required: Yes
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The evidence file content.

contentType
Required: Yes
Type: string

The MIME type of the content.

title
Required: Yes
Type: string

The title of the evidence.

version
Required: Yes
Type: int

The version number of the evidence that the content belongs to.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

IntegrityException:

The evidence item failed integrity verification. The evidence content might have been modified or the version might no longer be available. Verify the evidence item and try your request again.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get evidence content

Gets the file content of the user access review evidence for offline review.

$result = $client->getEvidenceContent([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'version' => 1,
    'checksum' => 'e5c62df5dab5c87b6a015ef3d43597074d1eec433b15f51aec63b8582d0e4ab4',
    'content' => <BLOB>,
    'contentType' => 'application/pdf',
    'title' => 'PCI-DSS user access review.pdf',
]

GetFramework

$result = $client->getFramework([/* ... */]);
$promise = $client->getFrameworkAsync([/* ... */]);

Retrieves a framework resource by type and key fields.

Parameter Syntax

$result = $client->getFramework([
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The framework name.

frameworkVersion
Required: Yes
Type: string

The framework version.

Result Syntax

[
    'framework' => [
        'createdAt' => <DateTime>,
        'description' => '<string>',
        'environment' => '<string>',
        'frameworkName' => '<string>',
        'frameworkVersion' => '<string>',
        'status' => 'ACTIVE|PENDING|PRE_PROD',
        'title' => '<string>',
        'type' => 'MANAGED|CUSTOM',
        'updatedAt' => <DateTime>,
    ],
]

Result Details

Members
framework
Required: Yes
Type: Framework structure

The name of the compliance framework.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get a framework

Retrieves a custom PCI-DSS framework by name and version so an auditor can review its details.

$result = $client->getFramework([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'payments-pci-dss',
    'frameworkVersion' => '1.0',
]);

Result syntax:

[
    'framework' => [
        'type' => 'CUSTOM',
        'createdAt' => ,
        'description' => 'Custom control framework for the payments team PCI-DSS v4 assessment.',
        'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
        'frameworkName' => 'payments-pci-dss',
        'frameworkVersion' => '1.0',
        'status' => 'ACTIVE',
        'title' => 'Payments PCI-DSS v4 Framework',
        'updatedAt' => ,
    ],
]

GetInvitation

$result = $client->getInvitation([/* ... */]);
$promise = $client->getInvitationAsync([/* ... */]);

Retrieves a single invitation, identified by environmentArn and inviteeAccountId. You can call this operation from the account that owns the environment or from the invited account.

Parameter Syntax

$result = $client->getInvitation([
    'environmentArn' => '<string>', // REQUIRED
    'inviteeAccountId' => '<string>',
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of the environment the invitation is for.

inviteeAccountId
Type: string

The AWS account ID of the invited account. Supply this value when you are the environment owner reading a specific invitee's invitation. Omit it when you are the invited account reading your own invitation for the environment.

Result Syntax

[
    'createdAt' => <DateTime>,
    'environmentArn' => '<string>',
    'expiresAt' => <DateTime>,
    'inviteeAccountId' => '<string>',
    'roleArn' => '<string>',
    'status' => 'PENDING|ACTIVE|REJECTED|REVOKED|EXPIRED',
    'updatedAt' => <DateTime>,
]

Result Details

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when you created the invitation. If you called CreateInvitation again after the invitation was rejected, revoked, or expired, this is the time of your most recent call.

environmentArn
Type: string

The ARN of the environment that extended the invitation to you. Use this value to identify the environment or owner account inviting you.

expiresAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the invitation expires if not accepted.

inviteeAccountId
Required: Yes
Type: string

The ID of the invited AWS account.

roleArn
Type: string

The ARN of the role that AWS Assurance assumes in the invitee account. Present only when status is ACTIVE.

status
Required: Yes
Type: string

The current lifecycle state of the invitation.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the invitation last changed state (accept, reject, or revoke).

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Retrieve an invitation

Retrieves the invitation extended to the payments team's member account for the governance environment running the PCI-DSS assessment.

$result = $client->getInvitation([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'inviteeAccountId' => '444455556666',
]);

Result syntax:

[
    'createdAt' => ,
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'inviteeAccountId' => '444455556666',
    'roleArn' => 'arn:aws:iam::444455556666:role/aws-service-role/assurance.amazonaws.com/AWSServiceRoleForAssurance',
    'status' => 'ACTIVE',
    'updatedAt' => ,
]

GetPermissionSet

$result = $client->getPermissionSet([/* ... */]);
$promise = $client->getPermissionSetAsync([/* ... */]);

Retrieves a permission set by ID.

Parameter Syntax

$result = $client->getPermissionSet([
    'environmentArn' => '<string>', // REQUIRED
    'permissionSetId' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

permissionSetId
Required: Yes
Type: string

The identifier of the permission set.

Result Syntax

[
    'permissionSet' => [
        'createdAt' => <DateTime>,
        'description' => '<string>',
        'name' => '<string>',
        'permissionSetId' => '<string>',
        'permissions' => ['<string>', ...],
        'updatedAt' => <DateTime>,
    ],
]

Result Details

Members
permissionSet
Required: Yes
Type: PermissionSetDetail structure

The permission set.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get a permission set

Retrieves the payments auditor permission set to confirm the permissions it grants before assigning it.

$result = $client->getPermissionSet([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'permissionSetId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
]);

Result syntax:

[
    'permissionSet' => [
        'name' => 'Payments Auditor',
        'createdAt' => ,
        'description' => 'Access for the payments compliance team to review the PCI-DSS assessment and manage its projects.',
        'permissionSetId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
        'permissions' => [
            'view_assessments',
            'manage_projects',
        ],
        'updatedAt' => ,
    ],
]

GetProject

$result = $client->getProject([/* ... */]);
$promise = $client->getProjectAsync([/* ... */]);

Retrieves a project and all its associated resources.

Parameter Syntax

$result = $client->getProject([
    'environmentArn' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'project' => '<string>',
    'resourceFilters' => ['<string>', ...],
]

Result Details

Members
project
Type: string

The name of the project.

resourceFilters
Type: Array of strings

The filters that determine which resources are in scope.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get a project

Retrieves the payments-prod project with its resource filters.

$result = $client->getProject([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'project' => 'payments-prod',
    'resourceFilters' => [
        'tag:app=payments-prod',
        'region:us-east-1 resourcetype:rds:db',
    ],
]

GetResourceActivitiesQueryResults

$result = $client->getResourceActivitiesQueryResults([/* ... */]);
$promise = $client->getResourceActivitiesQueryResultsAsync([/* ... */]);

Gets the status of a query that StartResourceActivitiesQuery started, and one page of its results. To get the next page, pass the nextToken value from the response in your next request.

Call this operation until status is COMPLETE, FAILED, or EXPIRED. The response includes results and a pagination token only when status is COMPLETE.

Parameter Syntax

$result = $client->getResourceActivitiesQueryResults([
    'environmentArn' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>', // REQUIRED
    'queryId' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of the environment that the query ran in.

maxResults
Type: int

The maximum number of results to return on one page. The default is 50. If more results are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request for the same queryId. Use it to retrieve the next page of results.

project
Required: Yes
Type: string

The project that the query ran in.

queryId
Required: Yes
Type: string

The ID of the query, as returned by StartResourceActivitiesQuery.

Result Syntax

[
    'entries' => [
        [
            'actionDetail' => [
                'api' => '<string>',
                'failureCount' => <integer>,
                'service' => '<string>',
                'successCount' => <integer>,
            ],
            'resourceDetail' => [
                'accessType' => 'WRITE|READ',
                'arn' => '<string>',
                'failureCount' => <integer>,
                'resourceType' => '<string>',
                'successCount' => <integer>,
            ],
            'sessionDetail' => [
                'sessionId' => '<string>',
            ],
        ],
        // ...
    ],
    'nextToken' => '<string>',
    'status' => 'RUNNING|COMPLETE|FAILED|EXPIRED',
]

Result Details

Members
entries
Type: Array of ResourceActivitiesEntry structures

A page of query results. The response includes this field only when status is COMPLETE and the query found activity.

nextToken
Type: string

The pagination token for the next page of results. The response includes this field only when status is COMPLETE and more results are available.

status
Required: Yes
Type: string

The status of the query. Valid values:

  • COMPLETE – The query finished, and the results are available.

  • EXPIRED – The query and its results are no longer available. Start a new query.

  • FAILED – The query failed, and no results are available.

  • RUNNING – The query is still running. Call the operation again later.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

GetTask

$result = $client->getTask([/* ... */]);
$promise = $client->getTaskAsync([/* ... */]);

Retrieves a specific task by its identifying fields.

Parameter Syntax

$result = $client->getTask([
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
    'taskId' => '<string>', // REQUIRED
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

taskId
Required: Yes
Type: string

The identifier of the task.

Result Syntax

[
    'task' => [
        'controlId' => '<string>',
        'createdAt' => <DateTime>,
        'createdBy' => '<string>',
        'description' => '<string>',
        'dueAt' => <DateTime>,
        'environment' => '<string>',
        'framework' => '<string>',
        'frameworkVersion' => '<string>',
        'priority' => 'HIGH|MEDIUM|LOW',
        'project' => '<string>',
        'status' => 'OPEN|PENDING|COMPLETED|CANCELLED',
        'taskId' => '<string>',
        'title' => '<string>',
        'updatedAt' => <DateTime>,
    ],
]

Result Details

Members
task
Required: Yes
Type: Task structure

The task.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Get a task

Retrieves the unique-user-ID task and its current status for the payments-prod PCI-DSS assessment.

$result = $client->getTask([
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
    'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
]);

Result syntax:

[
    'task' => [
        'controlId' => '8.2.1',
        'createdAt' => ,
        'createdBy' => 'Assurance',
        'description' => 'Replace the shared payments-prod database account with per-user IDs so every user is assigned a unique ID before access is granted.',
        'dueAt' => ,
        'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
        'framework' => 'AWS:PCI-DSS',
        'frameworkVersion' => '4',
        'priority' => 'HIGH',
        'project' => 'payments-prod',
        'status' => 'OPEN',
        'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
        'title' => 'Assign unique user IDs for payments-prod database access',
        'updatedAt' => ,
    ],
]

ListAssessmentAnnotations

$result = $client->listAssessmentAnnotations([/* ... */]);
$promise = $client->listAssessmentAnnotationsAsync([/* ... */]);

Lists the annotations on one assessment, paginated.

Parameter Syntax

$result = $client->listAssessmentAnnotations([
    'assessmentId' => '<string>', // REQUIRED
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
assessmentId
Required: Yes
Type: string

The assessment whose annotations are listed.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

project
Required: Yes
Type: string

The project the assessment belongs to.

Result Syntax

[
    'annotations' => [
        [
            'assessmentId' => '<string>',
            'controlId' => '<string>',
            'environment' => '<string>',
            'evidenceId' => '<string>',
            'evidenceVersion' => <integer>,
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'project' => '<string>',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
annotations
Required: Yes
Type: Array of AnnotationSummary structures

The list of annotation summaries returned by the request.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List annotations for an assessment

Lists every reviewer note recorded for a control in the payments-prod PCI-DSS assessment.

$result = $client->listAssessmentAnnotations([
    'assessmentId' => '1773480600000',
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'annotations' => [
        [
            'assessmentId' => '1773480600000',
            'controlId' => '8.2.1',
            'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
            'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
            'evidenceVersion' => 1,
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'project' => 'payments-prod',
        ],
    ],
]

ListAssessmentJournalRecords

$result = $client->listAssessmentJournalRecords([/* ... */]);
$promise = $client->listAssessmentJournalRecordsAsync([/* ... */]);

Lists assessment journal records, paginated.

Parameter Syntax

$result = $client->listAssessmentJournalRecords([
    'assessmentId' => '<string>', // REQUIRED
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
assessmentId
Required: Yes
Type: string

The identifier of the assessment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'nextToken' => '<string>',
    'records' => [
        [
            'content' => '<string>',
            'createdAt' => <DateTime>,
            'invocationId' => '<string>',
            'phase' => 'gathering_context|evaluating|auditor|finalising|needs_input|failed',
            'recordId' => '<string>',
            'recordType' => 'phase_start|narrative|thinking|tool_start|tool_result|executed_scan_plan|error',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

records
Required: Yes
Type: Array of AssessmentJournalRecord structures

The list of assessment journal records.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List assessment journal records

Lists the audit journal records produced during a PCI-DSS assessment run so an auditor can review each phase of the evaluation for the payments-prod project.

$result = $client->listAssessmentJournalRecords([
    'assessmentId' => '1773480600000',
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'records' => [
        [
            'content' => '{"type":"conclusion","node":"evaluating","text":"Evaluated the payments-prod cardholder data environment against the control's requirements."}',
            'createdAt' => ,
            'invocationId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE99999',
            'phase' => 'evaluating',
            'recordId' => '00mmq4k4w0k4m2xq',
            'recordType' => 'narrative',
        ],
    ],
]

ListAssessmentOutcomes

$result = $client->listAssessmentOutcomes([/* ... */]);
$promise = $client->listAssessmentOutcomesAsync([/* ... */]);

Returns the compliance score of a framework in a project over a time range. You can narrow the score to one control, one resource, or one control on one resource. You can also get one score per control for a resource.

The operation returns either the current score or a history of scores, depending on whether you specify a time range.

  • Current score. If you don't specify startTime or endTime, and you use the default LAST statistic, the operation returns the most recent score as a single data point. Its timestamp is the time of the assessment that produced the score. This option isn't available when you get one score per control.

  • History. If you specify startTime, endTime, or both, or you specify the MAX, MIN, or AVG statistic, the operation divides the time range into buckets of one hour or one day (set by period). It returns one data point for each bucket that has a score, newest first. Buckets with no score are left out, so match each data point to its bucket by timestamp.

Specify times in UTC. The time range includes startTime and excludes endTime.

Parameter Syntax

$result = $client->listAssessmentOutcomes([
    'aggregationLevel' => 'FRAMEWORK|CONTROL',
    'controlId' => '<string>',
    'endTime' => <integer || string || DateTime>,
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'period' => 'ONE_HOUR|ONE_DAY',
    'project' => '<string>', // REQUIRED
    'resourceIdentifier' => '<string>',
    'startTime' => <integer || string || DateTime>,
    'statistic' => 'LAST|MAX|MIN|AVG',
]);

Parameter Details

Members
aggregationLevel
Type: string

The level of the scores in each point. Specify one of the following values:

  • FRAMEWORK – One score for the framework. This is the default.

  • CONTROL – One score for each control that has a score in the bucket. The controls can differ from one point to the next. Specify a window with startTime and endTime, or use the MAX, MIN, or AVG statistic.

You can specify this parameter only together with resourceIdentifier, and not together with controlId.

controlId
Type: string

Narrows the series to one control's score over time. Omit for the whole framework's score over time.

endTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The end of the window, exclusive, in UTC. The default is the time of the request. endTime must be later than startTime. To get the most recent score instead of a series, omit both startTime and endTime.

environmentArn
Required: Yes
Type: string

The ARN of the environment.

framework
Required: Yes
Type: string

The name of the framework.

frameworkVersion
Required: Yes
Type: string

The version of the framework.

maxResults
Type: int

The maximum number of points to return on one page. If you omit it, the operation uses its default page size.

nextToken
Type: string

The token for the next page of results, from a previous response.

period
Type: string

The width of each time bucket. Valid values are ONE_HOUR and ONE_DAY. The default is ONE_DAY. This parameter has no effect when the response is the most recent score.

project
Required: Yes
Type: string

The project the request is scoped to.

resourceIdentifier
Type: string

Use this parameter to narrow the series to one resource. Specify the resource identifier that ListDiscoveredResources returns, which is its ARN if one exists, or its AWS Config resource type and resource ID (separated by a slash) otherwise. If you omit this parameter, the series reports the score for the whole project.

startTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The start of the window, inclusive, in UTC. The default is 7 days before endTime. To get the most recent score instead of a series, omit both startTime and endTime.

statistic
Type: string

How AWS Assurance combines the scores of the assessments in a bucket. Specify one of the following values:

  • LAST – The score of the most recent assessment in the bucket. If that assessment has no score, the bucket is left out. This is the default.

  • MAX – The highest score in the bucket.

  • MIN – The lowest score in the bucket.

  • AVG – The average score in the bucket. Each assessment counts once, so assessments that run more often carry more weight.

At CONTROL aggregation, the statistic is applied to each control separately.

Result Syntax

[
    'assessmentOutcomes' => [
        [
            'outcomes' => [
                [
                    'controlId' => '<string>',
                    'outcomePercentage' => <float>,
                ],
                // ...
            ],
            'timestamp' => <DateTime>,
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
assessmentOutcomes
Required: Yes
Type: Array of AssessmentOutcomeDataPoint structures

The points in the window, newest first. Buckets that have no score aren't included.

nextToken
Type: string

The token to pass to get the next page of results. Absent on the last page.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Daily score history for one control on one S3 bucket

Lists how a PCI DSS control has scored a payments bucket day by day, so the team can see whether a remediation took effect.

$result = $client->listAssessmentOutcomes([
    'controlId' => '8.2.1',
    'endTime' => ,
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'period' => 'ONE_DAY',
    'project' => 'payments-prod',
    'resourceIdentifier' => 'arn:aws:s3:::payments-prod-transaction-logs',
    'startTime' => ,
    'statistic' => 'LAST',
]);

Result syntax:

[
    'assessmentOutcomes' => [
        [
            'outcomes' => [
                [
                    'outcomePercentage' => 100,
                ],
            ],
            'timestamp' => ,
        ],
        [
            'outcomes' => [
                [
                    'outcomePercentage' => 50,
                ],
            ],
            'timestamp' => ,
        ],
    ],
]
Example 2: The current score for a project, with no window named

Reads the score the most recent assessment produced, for a dashboard tile that shows where the project stands now.

$result = $client->listAssessmentOutcomes([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'assessmentOutcomes' => [
        [
            'outcomes' => [
                [
                    'outcomePercentage' => 100,
                ],
            ],
            'timestamp' => ,
        ],
    ],
]

ListAssessments

$result = $client->listAssessments([/* ... */]);
$promise = $client->listAssessmentsAsync([/* ... */]);

Lists assessments, paginated.

Parameter Syntax

$result = $client->listAssessments([
    'environmentArn' => '<string>', // REQUIRED
    'filters' => [
        [
            'name' => 'framework|framework-version|control-id|assessment-id|status', // REQUIRED
            'values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

filters
Type: Array of AssessmentFilter structures

The response filter criteria. Optional. See AssessmentFilterName for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting filters returns every assessment in the project.

Each criterion is matched against response attributes for exact equality. Criteria are independent, so control-id is valid without framework.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

project
Required: Yes
Type: string

The project to list assessments for. Each request is scoped to one project.

Result Syntax

[
    'assessments' => [
        [
            'assessmentId' => '<string>',
            'controlId' => '<string>',
            'createdAt' => <DateTime>,
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'outcomePercentage' => <float>,
            'project' => '<string>',
            'status' => 'SCHEDULED|IN_PROGRESS|NEEDS_ATTENTION|FINISHED|NOT_APPLICABLE|ERROR|USER_ERROR',
            'trigger' => 'SCHEDULE|DETECTED_CHANGE|USER_ACTION',
            'updatedAt' => <DateTime>,
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
assessments
Required: Yes
Type: Array of AssessmentSummary structures

The list of assessment summaries.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List assessments for a project

Lists the PCI-DSS assessments recorded for the payments-prod project.

$result = $client->listAssessments([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'assessments' => [
        [
            'assessmentId' => '1773480600000',
            'controlId' => '8.2.1',
            'createdAt' => ,
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'outcomePercentage' => 75,
            'project' => 'payments-prod',
            'status' => 'NEEDS_ATTENTION',
            'updatedAt' => ,
        ],
    ],
]

ListChatSessions

$result = $client->listChatSessions([/* ... */]);
$promise = $client->listChatSessionsAsync([/* ... */]);

Lists chat sessions for you in a governance environment.

Parameter Syntax

$result = $client->listChatSessions([
    'environmentArn' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Result Syntax

[
    'nextToken' => '<string>',
    'sessions' => [
        [
            'lastMessageAt' => <DateTime>,
            'sequenceNumber' => <integer>,
            'sessionId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

sessions
Required: Yes
Type: Array of ChatSessionSummary structures

The list of chat session summaries.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List chat sessions

Lists the caller's chat sessions with the AWS Assurance agent in a governance environment.

$result = $client->listChatSessions([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
    'sessions' => [
        [
            'lastMessageAt' => ,
            'sequenceNumber' => 3,
            'sessionId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
        ],
    ],
]

ListComments

$result = $client->listComments([/* ... */]);
$promise = $client->listCommentsAsync([/* ... */]);

Lists the comments on a specific control, optionally narrowed to a task.

Parameter Syntax

$result = $client->listComments([
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'filters' => [
        [
            'name' => 'task-id', // REQUIRED
            'values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

filters
Type: Array of CommentFilter structures

The response filter criteria. Optional. See CommentFilterName for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting filters returns every comment in the control.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'comments' => [
        [
            'commentId' => '<string>',
            'controlId' => '<string>',
            'environment' => '<string>',
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'project' => '<string>',
            'taskId' => '<string>',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
comments
Required: Yes
Type: Array of CommentSummary structures

The list of comments.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List comments on a control

Lists the comments on a control, narrowed to a specific task in the PCI DSS assessment.

$result = $client->listComments([
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'filters' => [
        [
            'name' => 'task-id',
            'values' => [
                'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
            ],
        ],
    ],
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'comments' => [
        [
            'commentId' => '1773484200000',
            'controlId' => '8.2.1',
            'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'project' => 'payments-prod',
            'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
        ],
    ],
]

ListConnectionItems

$result = $client->listConnectionItems([/* ... */]);
$promise = $client->listConnectionItemsAsync([/* ... */]);

Lists the items that a connection can access, one level at a time, to help you find a document without knowing its URL. The list contains only items that the connection is authorized to access. If more results are available, the response includes nextToken. To get the next page, call this operation again with that token.

To list the top level, omit parentId. To list the contents of an item, such as a repository, site, library, or folder, specify its id. You can't list the contents of a FILE.

Parameter Syntax

$result = $client->listConnectionItems([
    'connectionId' => '<string>',
    'environmentArn' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'parentId' => '<string>',
    'providerConfig' => [
        'github' => [
            'account' => '<string>', // REQUIRED
        ],
        's3' => [
            'sourceUri' => '<string>', // REQUIRED
        ],
        'sharepoint' => [
            'tenantId' => '<string>', // REQUIRED
        ],
    ],
]);

Parameter Details

Members
connectionId
Type: string

The ID of the GitHub or SharePoint connection to browse, as returned by ListEnvironmentConnections. An Amazon S3 connection has no ID. To browse one, use providerConfig.

Specify either connectionId or providerConfig, but not both.

environmentArn
Required: Yes
Type: string

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

maxResults
Type: int

The maximum number of items to return on one page. If you omit it, the operation uses its default page size.

nextToken
Type: string

The token for the next page of results, from a previous response.

parentId
Type: string

The ID of the item whose contents you want to list. To list the top level, omit this parameter.

providerConfig
Type: ConnectionProviderKey structure

The connection to browse, identified by what it connects to.

Result Syntax

[
    'items' => [
        [
            'id' => '<string>',
            'kind' => 'REPOSITORY|SITE|LIBRARY|FOLDER|FILE',
            'name' => '<string>',
            'sizeBytes' => <integer>,
            'updatedAt' => <DateTime>,
            'url' => '<string>',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
items
Required: Yes
Type: Array of ConnectionItem structures

The items at the requested level.

nextToken
Type: string

The token to pass to get the next page of results. Absent on the last page.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Browse an S3 connection

Lists the prefixes and objects at the top of an S3 connection, named by its source URI.

$result = $client->listConnectionItems([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'providerConfig' => [
        's3' => [
            'sourceUri' => 's3://payments-prod-evidence/pci-dss/',
        ],
    ],
]);

Result syntax:

[
    'items' => [
        [
            'name' => '2026',
            'id' => 'eyJsZXZlbCI6ImZvbGRlciJ9',
            'kind' => 'FOLDER',
        ],
        [
            'name' => 'scan-report.xml',
            'id' => 'eyJsZXZlbCI6ImZpbGUifQ',
            'kind' => 'FILE',
            'sizeBytes' => 810,
            'url' => 's3://payments-prod-evidence/pci-dss/scan-report.xml',
        ],
    ],
]

ListControlGroups

$result = $client->listControlGroups([/* ... */]);
$promise = $client->listControlGroupsAsync([/* ... */]);

Lists the control groups in a framework version. Each entry is a summary without the group's child controls. To get the controls in a group, call ListControls with the group's controlId.

Parameter Syntax

$result = $client->listControlGroups([
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Result Syntax

[
    'controlGroups' => [
        [
            'controlId' => '<string>',
            'description' => '<string>',
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'status' => 'ACTIVE|PENDING|PRE_PROD',
            'title' => '<string>',
            'type' => 'MANAGED|CUSTOM',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
controlGroups
Required: Yes
Type: Array of ControlGroupSummary structures

The control groups in the framework version, for this page of results.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List control groups in a framework

Lists the top-level control groups in the PCI DSS framework so the payments team can navigate the framework while scoping its payments-prod assessment.

$result = $client->listControlGroups([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
]);

Result syntax:

[
    'controlGroups' => [
        [
            'type' => 'MANAGED',
            'controlId' => '8.',
            'description' => 'Implement Strong Access Control Measures',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'title' => 'Identify Users and Authenticate Access to System Components',
        ],
    ],
]

ListControlResources

$result = $client->listControlResources([/* ... */]);
$promise = $client->listControlResourcesAsync([/* ... */]);

Lists the resources that are in scope for the automated evaluation of a control. If no resource types apply to the control, the list is empty.

Parameter Syntax

$result = $client->listControlResources([
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>',
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The identifier of the control.

environmentArn
Required: Yes
Type: string

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

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

maxResults
Type: int

The maximum number of results to return on one page. The default is 50. If more results are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results.

project
Type: string

Optional project scope. When provided, only resources that match the project's resource filters are considered. When omitted, all of the environment's resources are considered.

Result Syntax

[
    'nextToken' => '<string>',
    'resources' => [
        [
            'accountId' => '<string>',
            'region' => '<string>',
            'resourceIdentifier' => '<string>',
            'resourceType' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

The pagination token for the next page of results. If the value is null, there are no more results to return.

resources
Required: Yes
Type: Array of DiscoveredResource structures

The discovered resources that are in scope for the control.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List resources in scope for a control

Lists the resources discovered for the payments-prod project that a PCI DSS control is evaluated against during an automated scan.

$result = $client->listControlResources([
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'resources' => [
        [
            'accountId' => '111122223333',
            'region' => 'global',
            'resourceIdentifier' => 'arn:aws:iam::111122223333:user/payments-operator',
            'resourceType' => 'iam:user',
        ],
    ],
]

ListControls

$result = $client->listControls([/* ... */]);
$promise = $client->listControlsAsync([/* ... */]);

Lists the leaf controls within a single control group in a framework version. Supports pagination through maxResults and nextToken.

Parameter Syntax

$result = $client->listControls([
    'controlGroupId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
controlGroupId
Required: Yes
Type: string

The control group whose controls the operation returns.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Result Syntax

[
    'controls' => [
        [
            'controlId' => '<string>',
            'description' => '<string>',
            'status' => 'ACTIVE|PENDING|PRE_PROD',
            'title' => '<string>',
            'type' => 'MANAGED|CUSTOM',
            'workflowType' => 'automated-scan|document|hybrid',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
controls
Required: Yes
Type: Array of ControlSummary structures

The leaf controls in the requested control group, for this page of results.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List controls in a group

Lists the leaf controls in the authentication group of the PCI DSS framework so the payments team can select which controls apply to payments-prod.

$result = $client->listControls([
    'controlGroupId' => '8.',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
]);

Result syntax:

[
    'controls' => [
        [
            'type' => 'MANAGED',
            'controlId' => '8.2.1',
            'description' => 'All users are assigned a unique ID before access to system components or cardholder data is allowed. Applicability Notes This requirement is not intended to apply to user accounts within point-of-sale terminals that have access to only one card number at a time to facilitate a single transaction (such as IDs used by cashiers on point-of-sale terminals).Purpose:The ability to trace actions performed on a computer system to an individual establishes accountability and traceability and is fundamental to establishing effective access controls. By ensuring each user is uniquely identified, instead of using one ID for several employees, an organization can maintain individual responsibility for actions and an effective record in the audit log per employee. In addition, this will assist with issue resolution and containment when misuse or malicious intent occurs.',
            'status' => 'ACTIVE',
            'title' => 'User identification and related accounts for users and administrators are strictly managed throughout an accounts lifecycle.',
            'workflowType' => 'automated-scan',
        ],
    ],
]

ListDiscoveredResources

$result = $client->listDiscoveredResources([/* ... */]);
$promise = $client->listDiscoveredResourcesAsync([/* ... */]);

Lists the resources that are in scope for an environment or project. Results are paginated. If more results are available, use the nextToken value returned in the response to retrieve the next page.

Parameter Syntax

$result = $client->listDiscoveredResources([
    'accountId' => '<string>',
    'environmentArn' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>',
]);

Parameter Details

Members
accountId
Type: string

The AWS account whose resources the operation returns. When set, the operation returns only resources owned by this account.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

project
Type: string

The name of the project.

Result Syntax

[
    'coverage' => 'COMPLETE|PARTIAL',
    'nextToken' => '<string>',
    'resourceIdentifiers' => [
        [
            'accountId' => '<string>',
            'region' => '<string>',
            'resourceIdentifier' => '<string>',
            'resourceType' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
coverage
Type: string

Specifies whether the environment's resource inventory has finished loading. When the value is absent, treat it as COMPLETE. Valid values:

  • COMPLETE – The inventory has finished loading.

  • PARTIAL – The inventory is still loading after the environment was created, so the list can be missing resources that a later call returns.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

resourceIdentifiers
Required: Yes
Type: Array of DiscoveredResource structures

The resources for this page of results.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List discovered resources

Lists the resources found in the payments-prod project so the team can confirm PCI-DSS assessment scope.

$result = $client->listDiscoveredResources([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'resourceIdentifiers' => [
        [
            'accountId' => '111122223333',
            'region' => 'us-east-1',
            'resourceIdentifier' => 'arn:aws:s3:::payments-prod-transaction-logs',
            'resourceType' => 's3:bucket',
        ],
        [
            'accountId' => '111122223333',
            'region' => 'us-east-1',
            'resourceIdentifier' => 'arn:aws:dynamodb:us-east-1:111122223333:table/payments-prod-ledger',
            'resourceType' => 'dynamodb:table',
        ],
    ],
]

ListEnabledFrameworks

$result = $client->listEnabledFrameworks([/* ... */]);
$promise = $client->listEnabledFrameworksAsync([/* ... */]);

Lists the frameworks enabled in a governance environment, optionally narrowed by filters.

Parameter Syntax

$result = $client->listEnabledFrameworks([
    'environmentArn' => '<string>', // REQUIRED
    'filters' => [
        [
            'name' => 'framework|framework-version|project|type', // REQUIRED
            'values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>',
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

filters
Type: Array of EnabledFrameworkFilter structures

The response filter criteria. Optional. See EnabledFrameworkFilterName for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting filters returns every enabled framework in the environment.

A criterion whose value matches nothing returns an empty page.

When you supply a single-valued project criterion alongside the project parameter, both values must match. If they differ, the response is empty.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

project
Type: string

The project to list enabled frameworks for. Each request is scoped to one project.

Result Syntax

[
    'enabledFrameworks' => [
        [
            'assessmentMode' => 'SCHEDULED|CONTINUOUS',
            'createdAt' => <DateTime>,
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'project' => '<string>',
            'type' => 'MANAGED|CUSTOM',
            'updatedAt' => <DateTime>,
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
enabledFrameworks
Required: Yes
Type: Array of EnabledFrameworkSummary structures

The compliance frameworks that are enabled.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List enabled frameworks for a project

Lists the frameworks enabled for the payments-prod project to confirm PCI-DSS is active before starting an assessment.

$result = $client->listEnabledFrameworks([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'enabledFrameworks' => [
        [
            'type' => 'MANAGED',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'project' => 'payments-prod',
        ],
    ],
]

ListEnvironmentConnections

$result = $client->listEnvironmentConnections([/* ... */]);
$promise = $client->listEnvironmentConnectionsAsync([/* ... */]);

Lists the connections for a governance environment. To return only some connections, specify filters.

Parameter Syntax

$result = $client->listEnvironmentConnections([
    'environmentArn' => '<string>', // REQUIRED
    'filters' => [
        [
            'name' => 'connection-type', // REQUIRED
            'values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

filters
Type: Array of ConnectionFilter structures

The criteria to filter connections by. Criteria for different attributes are combined with AND, and values within one criterion are combined with OR. If you omit this parameter, the response includes every connection in the environment.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Result Syntax

[
    'items' => [
        [
            'connectionId' => '<string>',
            'connectionType' => 's3|github|sharepoint',
            'createdAt' => <DateTime>,
            'github' => [
                'account' => '<string>',
            ],
            's3' => [
                'expectedBucketOwner' => '<string>',
                'sourceUri' => '<string>',
            ],
            'sharepoint' => [
                'siteUrl' => '<string>',
                'sites' => ['<string>', ...],
                'tenantId' => '<string>',
            ],
            'status' => 'ACTIVE|PENDING',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
items
Required: Yes
Type: Array of EnvironmentConnectionSummary structures

The connections in the environment that match the filters, for this page of results.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List all connections

Lists all connections configured for the payments team's governance environment.

$result = $client->listEnvironmentConnections([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
    'items' => [
        [
            'connectionType' => 's3',
            'createdAt' => ,
            's3' => [
                'sourceUri' => 's3://payments-prod-evidence/pci-dss/',
            ],
            'status' => 'ACTIVE',
        ],
    ],
]
Example 2: List S3 connections only

Lists only Amazon S3 connections by filtering on connection-type.

$result = $client->listEnvironmentConnections([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'filters' => [
        [
            'name' => 'connection-type',
            'values' => [
                's3',
            ],
        ],
    ],
]);

Result syntax:

[
    'items' => [
        [
            'connectionType' => 's3',
            'createdAt' => ,
            's3' => [
                'sourceUri' => 's3://payments-prod-evidence/pci-dss/',
            ],
            'status' => 'ACTIVE',
        ],
    ],
]

ListEnvironments

$result = $client->listEnvironments([/* ... */]);
$promise = $client->listEnvironmentsAsync([/* ... */]);

Lists your governance environments. If more results are available, the response includes a nextToken value. To get the next page, pass that value in your next request.

Parameter Syntax

$result = $client->listEnvironments([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Result Syntax

[
    'environments' => [
        [
            'environmentArn' => '<string>',
            'environmentId' => '<string>',
            'environmentName' => '<string>',
            'status' => 'CREATED',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
environments
Required: Yes
Type: Array of EnvironmentSummary structures

The list of environments.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

Examples

Example 1: List governance environments

Lists the governance environments in the account so the payments team can find the one hosting its PCI-DSS assessment.

$result = $client->listEnvironments([
    'maxResults' => 10,
]);

Result syntax:

[
    'environments' => [
        [
            'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
            'environmentId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
            'environmentName' => 'payments-governance',
            'status' => 'CREATED',
        ],
    ],
]

ListEvidence

$result = $client->listEvidence([/* ... */]);
$promise = $client->listEvidenceAsync([/* ... */]);

Lists evidence items (paginated).

Parameter Syntax

$result = $client->listEvidence([
    'environmentArn' => '<string>', // REQUIRED
    'filters' => [
        [
            'name' => 'evidence-id|status|framework|framework-version|control-id|purpose|connection-type', // REQUIRED
            'values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

filters
Type: Array of EvidenceFilter structures

The response filter criteria. Optional. See EvidenceFilterName for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting filters returns every evidence item in scope.

The framework, framework-version, and control-id filters match an evidence item when one of its linked controls matches all of them.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

project
Required: Yes
Type: string

The project to list evidence for. Each request is scoped to one project.

Result Syntax

[
    'evidence' => [
        [
            'connectionType' => 's3|github|sharepoint',
            'createdAt' => <DateTime>,
            'evidenceId' => '<string>',
            'lastAutoAnalysisStartedAt' => <DateTime>,
            'linkMode' => 'AUTO|MANUAL|DISABLED',
            'linkedControls' => [
                [
                    'controlId' => '<string>',
                    'framework' => '<string>',
                    'frameworkVersion' => '<string>',
                    'linkSource' => 'AUTO|MANUAL',
                ],
                // ...
            ],
            'project' => '<string>',
            'purpose' => 'CONTROL_EVIDENCE|SCAN_EVIDENCE|FRAMEWORK_SOURCE',
            'status' => 'VALID|SCANNING|QUARANTINED|SCAN_FAILED|NOT_AUTO_ANALYZED|VALID_AUTO_ANALYZED',
            'title' => '<string>',
            'updatedAt' => <DateTime>,
            'uploadedBy' => '<string>',
            'version' => <integer>,
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
evidence
Required: Yes
Type: Array of EvidenceSummary structures

The list of evidence summaries returned.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List evidence for a project

Lists the valid evidence items collected for the payments-prod PCI-DSS assessment.

$result = $client->listEvidence([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'filters' => [
        [
            'name' => 'status',
            'values' => [
                'VALID',
            ],
        ],
    ],
    'project' => 'payments-prod',
]);

Result syntax:

[
    'evidence' => [
        [
            'version' => 1,
            'createdAt' => ,
            'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
            'linkedControls' => [
                [
                    'controlId' => '8.2.1',
                    'framework' => 'AWS:PCI-DSS',
                    'frameworkVersion' => '4',
                    'linkSource' => 'AUTO',
                ],
            ],
            'project' => 'payments-prod',
            'status' => 'VALID',
            'title' => 'PCI-DSS user access review.pdf',
            'updatedAt' => ,
        ],
    ],
]

ListEvidenceAnnotations

$result = $client->listEvidenceAnnotations([/* ... */]);
$promise = $client->listEvidenceAnnotationsAsync([/* ... */]);

Lists the annotations on one version of a piece of evidence within a project, paginated.

Parameter Syntax

$result = $client->listEvidenceAnnotations([
    'environmentArn' => '<string>', // REQUIRED
    'evidenceId' => '<string>', // REQUIRED
    'evidenceVersion' => <integer>, // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

evidenceId
Required: Yes
Type: string

The identifier of the evidence whose annotations are listed.

evidenceVersion
Required: Yes
Type: int

The version number of the evidence whose annotations are listed. Required. The operation returns annotations for exactly one version. To retrieve annotations across all versions, call ListEvidence to get the available versions, then call this operation once for each version.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

project
Required: Yes
Type: string

The project scope for the annotation list. Each request is scoped to one project.

Result Syntax

[
    'annotations' => [
        [
            'assessmentId' => '<string>',
            'controlId' => '<string>',
            'environment' => '<string>',
            'evidenceId' => '<string>',
            'evidenceVersion' => <integer>,
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'project' => '<string>',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
annotations
Required: Yes
Type: Array of AnnotationSummary structures

The list of annotation summaries returned by the request.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List annotations for an evidence version

Lists the reviewer notes attached to one version of an evidence item during a PCI-DSS review.

$result = $client->listEvidenceAnnotations([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
    'evidenceVersion' => 1,
    'project' => 'payments-prod',
]);

Result syntax:

[
    'annotations' => [
        [
            'assessmentId' => '1773480600000',
            'controlId' => '8.2.1',
            'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
            'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
            'evidenceVersion' => 1,
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'project' => 'payments-prod',
        ],
    ],
]

ListFrameworks

$result = $client->listFrameworks([/* ... */]);
$promise = $client->listFrameworksAsync([/* ... */]);

Lists frameworks by type, with optional pagination. When type is omitted, the operation returns both MANAGED and CUSTOM frameworks.

Parameter Syntax

$result = $client->listFrameworks([
    'environmentArn' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'type' => 'MANAGED|CUSTOM',
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

type
Type: string

The optional filter. Values are MANAGED, CUSTOM, or omit for both.

Result Syntax

[
    'frameworks' => [
        [
            'environment' => '<string>',
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'status' => 'ACTIVE|PENDING|PRE_PROD',
            'title' => '<string>',
            'type' => 'MANAGED|CUSTOM',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
frameworks
Required: Yes
Type: Array of FrameworkSummary structures

The list of compliance frameworks.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List the managed frameworks in an environment

Lists the AWS-managed frameworks available in a governance environment before starting an assessment. Omit the type filter to page through custom frameworks as well.

$result = $client->listFrameworks([
    'type' => 'MANAGED',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
    'frameworks' => [
        [
            'type' => 'MANAGED',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'status' => 'ACTIVE',
        ],
    ],
]

ListInboundInvitations

$result = $client->listInboundInvitations([/* ... */]);
$promise = $client->listInboundInvitationsAsync([/* ... */]);

Lists the invitations addressed to your account, across all environments. This operation returns only the invitations sent to you. You can optionally filter by status.

Parameter Syntax

$result = $client->listInboundInvitations([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'status' => 'PENDING|ACTIVE|REJECTED|REVOKED|EXPIRED',
]);

Parameter Details

Members
maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

status
Type: string

The lifecycle state to filter results by. When specified, the operation returns only invitations in this state.

Result Syntax

[
    'invitationSummaries' => [
        [
            'environmentArn' => '<string>',
            'expiresAt' => <DateTime>,
            'status' => 'PENDING|ACTIVE|REJECTED|REVOKED|EXPIRED',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
invitationSummaries
Required: Yes
Type: Array of InboundInvitationSummary structures

The invitations addressed to your account, for this page of results.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

Examples

Example 1: List invitations addressed to your account

Lists pending invitations addressed to the payments team's member account across all governance environments.

$result = $client->listInboundInvitations([
    'status' => 'PENDING',
]);

Result syntax:

[
    'invitationSummaries' => [
        [
            'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
            'expiresAt' => ,
            'status' => 'PENDING',
        ],
    ],
]

ListOutboundInvitations

$result = $client->listOutboundInvitations([/* ... */]);
$promise = $client->listOutboundInvitationsAsync([/* ... */]);

Lists the invitations that you extended from an environment you own. Supports pagination and an optional status filter.

Parameter Syntax

$result = $client->listOutboundInvitations([
    'environmentArn' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'status' => 'PENDING|ACTIVE|REJECTED|REVOKED|EXPIRED',
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

status
Type: string

The lifecycle state to filter results by. When specified, the operation returns only invitations in this state.

Result Syntax

[
    'invitationSummaries' => [
        [
            'expiresAt' => <DateTime>,
            'inviteeAccountId' => '<string>',
            'status' => 'PENDING|ACTIVE|REJECTED|REVOKED|EXPIRED',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
invitationSummaries
Required: Yes
Type: Array of InvitationSummary structures

The invitations extended from the environment, for this page of results.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List invitations from an owned environment

Lists the invitations the payments team extended from its governance environment to customer accounts.

$result = $client->listOutboundInvitations([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'status' => 'ACTIVE',
]);

Result syntax:

[
    'invitationSummaries' => [
        [
            'inviteeAccountId' => '444455556666',
            'status' => 'ACTIVE',
        ],
    ],
]

ListPermissionSetAssignments

$result = $client->listPermissionSetAssignments([/* ... */]);
$promise = $client->listPermissionSetAssignmentsAsync([/* ... */]);

Lists permission set assignments for an environment.

Parameter Syntax

$result = $client->listPermissionSetAssignments([
    'environmentArn' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Result Syntax

[
    'assignments' => [
        [
            'assignmentId' => '<string>',
            'createdAt' => <DateTime>,
            'permissionSetId' => '<string>',
            'principalId' => '<string>',
            'principalType' => 'USER|GROUP',
            'scopeId' => '<string>',
            'scopeType' => 'ENVIRONMENT|PROJECT',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
assignments
Required: Yes
Type: Array of PermissionSetAssignment structures

The list of permission set assignments.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List permission set assignments

Lists the permission set assignments in the environment to audit who has access to the payments-prod project during the PCI-DSS assessment.

$result = $client->listPermissionSetAssignments([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
    'assignments' => [
        [
            'assignmentId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE99999',
            'createdAt' => ,
            'permissionSetId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
            'principalId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE12345',
            'principalType' => 'USER',
            'scopeId' => 'payments-prod',
            'scopeType' => 'PROJECT',
        ],
    ],
]

ListPermissionSets

$result = $client->listPermissionSets([/* ... */]);
$promise = $client->listPermissionSetsAsync([/* ... */]);

Lists permission sets for an environment.

Parameter Syntax

$result = $client->listPermissionSets([
    'environmentArn' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Result Syntax

[
    'nextToken' => '<string>',
    'permissionSets' => [
        [
            'name' => '<string>',
            'permissionCount' => <integer>,
            'permissionSetId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

permissionSets
Required: Yes
Type: Array of PermissionSetSummary structures

The list of permission sets.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List permission sets

Lists the permission sets defined in the environment to review who can be granted access during the PCI-DSS assessment.

$result = $client->listPermissionSets([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
    'permissionSets' => [
        [
            'name' => 'Payments Auditor',
            'permissionCount' => 2,
            'permissionSetId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
        ],
    ],
]

ListProjects

$result = $client->listProjects([/* ... */]);
$promise = $client->listProjectsAsync([/* ... */]);

Lists all projects within a governance environment.

Parameter Syntax

$result = $client->listProjects([
    'environmentArn' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Result Syntax

[
    'nextToken' => '<string>',
    'projects' => [
        [
            'project' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

projects
Type: Array of ProjectSummary structures

The list of projects.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List projects

Lists the projects in the governance environment so the payments team can find its payments-prod project.

$result = $client->listProjects([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'maxResults' => 25,
]);

Result syntax:

[
    'projects' => [
        [
            'project' => 'payments-prod',
        ],
    ],
]

ListTagsForResource

$result = $client->listTagsForResource([/* ... */]);
$promise = $client->listTagsForResourceAsync([/* ... */]);

Lists tags for a resource.

Parameter Syntax

$result = $client->listTagsForResource([
    'resourceArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource.

Result Syntax

[
    'tags' => [
        [
            'key' => '<string>',
            'value' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
tags
Type: Array of Tag structures

The tags attached to the resource, as key-value pairs.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List tags for a governance environment

Lists the tags currently applied to the governance environment.

$result = $client->listTagsForResource([
    'resourceArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
    'tags' => [
        [
            'key' => 'compliance-program',
            'value' => 'pci-dss',
        ],
        [
            'key' => 'team',
            'value' => 'payments',
        ],
    ],
]

ListTaskHistory

$result = $client->listTaskHistory([/* ... */]);
$promise = $client->listTaskHistoryAsync([/* ... */]);

Lists task history across assessments for a given task, ordered by most recent first.

Parameter Syntax

$result = $client->listTaskHistory([
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>', // REQUIRED
    'taskId' => '<string>', // REQUIRED
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

project
Required: Yes
Type: string

The name of the project.

taskId
Required: Yes
Type: string

The identifier of the task.

Result Syntax

[
    'history' => [
        [
            'comment' => '<string>',
            'modifiedBy' => '<string>',
            'updatedAt' => <DateTime>,
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
history
Required: Yes
Type: Array of TaskHistoryEntry structures

The list of task history entries returned.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List a task's history

Lists the history of the unique-user-ID task to show how it progressed across the payments-prod PCI-DSS assessments.

$result = $client->listTaskHistory([
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
    'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
]);

Result syntax:

[
    'history' => [
        [
            'comment' => 'Updated fields: status',
            'modifiedBy' => 'Customer',
            'updatedAt' => ,
        ],
        [
            'comment' => 'Created task: Assign unique user IDs for payments-prod database access',
            'modifiedBy' => 'Assessment 1773480600000',
            'updatedAt' => ,
        ],
    ],
]

ListTasks

$result = $client->listTasks([/* ... */]);
$promise = $client->listTasksAsync([/* ... */]);

Lists all tasks within a governance environment.

Parameter Syntax

$result = $client->listTasks([
    'environmentArn' => '<string>', // REQUIRED
    'filters' => [
        [
            'name' => 'framework|framework-version|control-id|task-id|status|priority|assessment-id', // REQUIRED
            'values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

filters
Type: Array of TaskFilter structures

The response filter criteria. Optional. See TaskFilterName for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting filters returns every task in the project.

A single-valued criterion for framework, framework-version, or control-id narrows the results when every broader component is also supplied. When a broader component is absent, the criterion is applied to the returned results.

An assessment-id criterion returns the task history for that assessment. It accepts one value and requires single-valued framework, framework-version, and control-id criteria alongside it.

maxResults
Type: int

The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

project
Required: Yes
Type: string

The project to list tasks for. Each request is scoped to one project.

Result Syntax

[
    'nextToken' => '<string>',
    'tasks' => [
        [
            'assessmentId' => '<string>',
            'controlId' => '<string>',
            'createdBy' => '<string>',
            'dueAt' => <DateTime>,
            'environment' => '<string>',
            'framework' => '<string>',
            'frameworkVersion' => '<string>',
            'priority' => 'HIGH|MEDIUM|LOW',
            'project' => '<string>',
            'status' => 'OPEN|PENDING|COMPLETED|CANCELLED',
            'taskId' => '<string>',
            'title' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

tasks
Required: Yes
Type: Array of TaskSummary structures

The list of tasks.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: List open tasks in a project

Lists the open tasks in the payments-prod project so the team can see the remaining PCI-DSS remediation work.

$result = $client->listTasks([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'filters' => [
        [
            'name' => 'status',
            'values' => [
                'OPEN',
            ],
        ],
    ],
    'maxResults' => 20,
    'project' => 'payments-prod',
]);

Result syntax:

[
    'tasks' => [
        [
            'controlId' => '8.2.1',
            'createdBy' => 'Assurance',
            'dueAt' => ,
            'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
            'priority' => 'HIGH',
            'project' => 'payments-prod',
            'status' => 'OPEN',
            'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
            'title' => 'Assign unique user IDs for payments-prod database access',
        ],
    ],
]

PublishFramework

$result = $client->publishFramework([/* ... */]);
$promise = $client->publishFrameworkAsync([/* ... */]);

Publishes a custom framework, transitioning its status from PENDING to ACTIVE. You can enable only ACTIVE frameworks on an environment.

Parameter Syntax

$result = $client->publishFramework([
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

Result Syntax

[
    'framework' => [
        'createdAt' => <DateTime>,
        'description' => '<string>',
        'environment' => '<string>',
        'frameworkName' => '<string>',
        'frameworkVersion' => '<string>',
        'status' => 'ACTIVE|PENDING|PRE_PROD',
        'title' => '<string>',
        'type' => 'MANAGED|CUSTOM',
        'updatedAt' => <DateTime>,
    ],
]

Result Details

Members
framework
Required: Yes
Type: Framework structure

The name of the compliance framework.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Publish a custom framework

Publishes a custom PCI-DSS framework so it can be enabled on the governance environment.

$result = $client->publishFramework([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'payments-pci-dss',
    'frameworkVersion' => '1.0',
]);

Result syntax:

[
    'framework' => [
        'type' => 'CUSTOM',
        'createdAt' => ,
        'description' => 'Custom control framework for the payments team PCI-DSS v4 assessment.',
        'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
        'frameworkName' => 'payments-pci-dss',
        'frameworkVersion' => '1.0',
        'status' => 'ACTIVE',
        'title' => 'Payments PCI-DSS v4 Framework',
        'updatedAt' => ,
    ],
]

PutControlStatusOverride

$result = $client->putControlStatusOverride([/* ... */]);
$promise = $client->putControlStatusOverrideAsync([/* ... */]);

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.

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.

Parameter Syntax

$result = $client->putControlStatusOverride([
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'justification' => '<string>',
    'project' => '<string>', // REQUIRED
    'requirementId' => '<string>',
    'type' => 'NOT_APPLICABLE|NONE', // REQUIRED
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

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

environmentArn
Required: Yes
Type: string

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

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

justification
Type: string

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.

project
Required: Yes
Type: string

The name of the project.

requirementId
Type: string

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
Required: Yes
Type: string

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.

Result Syntax

[
    'statusOverride' => [
        'declaredAt' => <DateTime>,
        'declaredBy' => '<string>',
        'justification' => '<string>',
        'type' => 'NOT_APPLICABLE|NONE',
    ],
]

Result Details

Members
statusOverride
Type: StatusOverride structure

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

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

PutEvidence

$result = $client->putEvidence([/* ... */]);
$promise = $client->putEvidenceAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->putEvidence([
    'connectionId' => '<string>',
    'content' => <string || resource || Psr\Http\Message\StreamInterface>,
    'contentMIMEType' => '<string>',
    'controlReferences' => [
        [
            'controlId' => '<string>', // REQUIRED
            'framework' => '<string>', // REQUIRED
            'frameworkVersion' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'description' => '<string>',
    'environmentArn' => '<string>', // REQUIRED
    'evidenceId' => '<string>',
    'linkMode' => 'AUTO|MANUAL|DISABLED',
    'project' => '<string>', // REQUIRED
    'purpose' => 'CONTROL_EVIDENCE|SCAN_EVIDENCE|FRAMEWORK_SOURCE',
    'reference' => '<string>',
    'title' => '<string>',
]);

Parameter Details

Members
connectionId
Type: string

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.

content
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

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

contentMIMEType
Type: string

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.

controlReferences
Type: Array of ControlReference structures

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

description
Type: string

The optional description of the evidence.

environmentArn
Required: Yes
Type: string

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

evidenceId
Type: string

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

linkMode
Type: string

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.

project
Required: Yes
Type: string

Project scope for the evidence.

purpose
Type: string

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.

reference
Type: string

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.

title
Type: string

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.

Result Syntax

[
    'evidenceId' => '<string>',
    'version' => <integer>,
]

Result Details

Members
evidenceId
Required: Yes
Type: string

The unique identifier of the evidence item.

version
Required: Yes
Type: int

The version number of the evidence.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Add evidence for an assessment

Adds a user access review as evidence for the payments-prod PCI-DSS assessment.

$result = $client->putEvidence([
    'content' => <BLOB>,
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'project' => 'payments-prod',
    'title' => 'PCI-DSS user access review.pdf',
]);

Result syntax:

[
    'version' => 1,
    'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
]

RegisterOrganizationDelegatedAdmin

$result = $client->registerOrganizationDelegatedAdmin([/* ... */]);
$promise = $client->registerOrganizationDelegatedAdminAsync([/* ... */]);

Registers a member account of your organization as the delegated administrator for AWS Assurance. The delegated administrator can then manage organization-scoped environments together with the management account.

Only the management account of the organization can call this operation.

Parameter Syntax

$result = $client->registerOrganizationDelegatedAdmin([
    'accountId' => '<string>', // REQUIRED
]);

Parameter Details

Members
accountId
Required: Yes
Type: string

The 12-digit AWS account ID of the member account to register as the delegated administrator. The account must be an active member of the caller's organization.

Result Syntax

[
    'accountId' => '<string>',
    'organizationId' => '<string>',
]

Result Details

Members
accountId
Required: Yes
Type: string

The account ID that was registered as delegated administrator.

organizationId
Required: Yes
Type: string

The ID of the organization in which AWS Assurance registered the delegated administrator.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Register a delegated administrator

Registers a member account as the AWS Assurance delegated administrator so it can help run the payments team's PCI-DSS assessment across the organization.

$result = $client->registerOrganizationDelegatedAdmin([
    'accountId' => '444455556666',
]);

Result syntax:

[
    'accountId' => '444455556666',
    'organizationId' => 'o-example12345',
]

RejectInvitation

$result = $client->rejectInvitation([/* ... */]);
$promise = $client->rejectInvitationAsync([/* ... */]);

Rejects (declines) a pending invitation. Call this operation from the invited account. This operation is idempotent—re-rejecting an already REJECTED invitation has no effect.

Parameter Syntax

$result = $client->rejectInvitation([
    'environmentArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of the environment that sent the invitation.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Reject an invitation

Declines a pending invitation to connect the account to the governance environment running the PCI-DSS assessment.

$result = $client->rejectInvitation([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
]

RevokePermissionSet

$result = $client->revokePermissionSet([/* ... */]);
$promise = $client->revokePermissionSetAsync([/* ... */]);

Revokes a permission set assignment.

Parameter Syntax

$result = $client->revokePermissionSet([
    'assignmentId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
assignmentId
Required: Yes
Type: string

The unique identifier of the permission set assignment.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Revoke a permission set assignment

Revokes the auditor's permission set assignment on the payments-prod project once the PCI-DSS assessment work is done.

$result = $client->revokePermissionSet([
    'assignmentId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE99999',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
]

StartAssessment

$result = $client->startAssessment([/* ... */]);
$promise = $client->startAssessmentAsync([/* ... */]);

Begins a new assessment for a control or framework.

Parameter Syntax

$result = $client->startAssessment([
    'context' => '<string>',
    'controlId' => '<string>',
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
context
Type: string

The optional user-provided context or guidance for the assessment evaluation.

controlId
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[
    'assessmentId' => '<string>',
]

Result Details

Members
assessmentId
Type: string

The identifier of the newly started assessment.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Start a PCI-DSS assessment

Begins a PCI-DSS 4.0 assessment for a control in the payments-prod project.

$result = $client->startAssessment([
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'assessmentId' => '1773480600000',
]

StartAssessmentReportExport

$result = $client->startAssessmentReportExport([/* ... */]);
$promise = $client->startAssessmentReportExportAsync([/* ... */]);

Starts preparing an assessment report for a framework in a project. To check progress, call GetAssessmentReportExport until the export status is COMPLETED. Then call GetAssessmentReportContent to get the report.

If an export for the same scope is already in progress, this operation returns the identifier of that export instead of starting a new one.

Parameter Syntax

$result = $client->startAssessmentReportExport([
    'controlIds' => ['<string>', ...],
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
controlIds
Type: Array of strings

The control to include in the report. To report on the whole framework, omit this parameter.

environmentArn
Required: Yes
Type: string

The ARN of the environment.

framework
Required: Yes
Type: string

The name of the framework to report on.

frameworkVersion
Required: Yes
Type: string

The version of the framework.

project
Required: Yes
Type: string

The project the request is scoped to.

Result Syntax

[
    'exportId' => '<string>',
]

Result Details

Members
exportId
Required: Yes
Type: string

The identifier of the export. Use it to check the export status and to get the report.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Start an assessment report export
$result = $client->startAssessmentReportExport([
    'controlIds' => [
        '8.2.1',
    ],
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
    'exportId' => 'a3f29c1d4b5e4a7c8d9e1a2b3c4d5e6f',
]

StartResourceActivitiesQuery

$result = $client->startResourceActivitiesQuery([/* ... */]);
$promise = $client->startResourceActivitiesQueryAsync([/* ... */]);

Starts a query of the AWS API calls that an artificial intelligence (AI) agent on Amazon Bedrock AgentCore Runtime made. Use the results to audit which resources the agent touched in your account. Returns a query ID. To check the status of the query and get its results, call GetResourceActivitiesQueryResults.

The agent runtime that you query must be in your AWS account.

Parameter Syntax

$result = $client->startResourceActivitiesQuery([
    'actorArn' => '<string>', // REQUIRED
    'aggregationLevels' => ['<string>', ...],
    'endTime' => <integer || string || DateTime>,
    'environmentArn' => '<string>', // REQUIRED
    'filters' => [
        [
            'name' => 'sessionId', // REQUIRED
            'values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'project' => '<string>', // REQUIRED
    'startTime' => <integer || string || DateTime>,
]);

Parameter Details

Members
actorArn
Required: Yes
Type: string

The ARN of the agent runtime whose activity to query. The agent runtime must be in your AWS account.

aggregationLevels
Type: Array of strings

The ways to group the results. By default, the results include every grouping. Valid values:

  • ACTION – Call counts for each AWS service and API action.

  • RESOURCE – Call counts for each resource.

  • SESSION – The agent sessions in the time range.

endTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The end of the time range to query, exclusive. The default is the time of the request.

environmentArn
Required: Yes
Type: string

The ARN of the environment to query in.

filters
Type: Array of ResourceActivitiesFilter structures

The filters to apply to the results. A result must match every filter. Within one filter, a result must match at least one of the values. If you don't specify any filters, the query returns all activity in the time range.

project
Required: Yes
Type: string

The project to query in.

startTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The start of the time range to query, inclusive. The default is 24 hours before the request.

Result Syntax

[
    'queryId' => '<string>',
]

Result Details

Members
queryId
Required: Yes
Type: string

The ID of the query. Pass it to GetResourceActivitiesQueryResults to get the status and results of the query. The ID doesn't give access to the results.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

TagResource

$result = $client->tagResource([/* ... */]);
$promise = $client->tagResourceAsync([/* ... */]);

Adds or overwrites tags on a resource.

Parameter Syntax

$result = $client->tagResource([
    'resourceArn' => '<string>', // REQUIRED
    'tags' => [ // REQUIRED
        [
            'key' => '<string>', // REQUIRED
            'value' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource.

tags
Required: Yes
Type: Array of Tag structures

The tags attached to the resource, as key-value pairs.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Tag a governance environment

Applies compliance-program and team tags to the governance environment so the payments team can track it alongside their other resources.

$result = $client->tagResource([
    'resourceArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'tags' => [
        [
            'key' => 'compliance-program',
            'value' => 'pci-dss',
        ],
        [
            'key' => 'team',
            'value' => 'payments',
        ],
    ],
]);

Result syntax:

[
]

UntagResource

$result = $client->untagResource([/* ... */]);
$promise = $client->untagResourceAsync([/* ... */]);

Removes tags from a resource.

Parameter Syntax

$result = $client->untagResource([
    'resourceArn' => '<string>', // REQUIRED
    'tagKeys' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource.

tagKeys
Required: Yes
Type: Array of strings

The keys of the tags to remove from the resource.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Remove a tag from a governance environment

Removes the team tag from the governance environment when ownership of the environment changes.

$result = $client->untagResource([
    'resourceArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'tagKeys' => [
        'team',
    ],
]);

Result syntax:

[
]

UpdateComment

$result = $client->updateComment([/* ... */]);
$promise = $client->updateCommentAsync([/* ... */]);

Modifies the content of an existing comment.

Parameter Syntax

$result = $client->updateComment([
    'commentId' => '<string>', // REQUIRED
    'content' => '<string>',
    'controlId' => '<string>', // REQUIRED
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
]);

Parameter Details

Members
commentId
Required: Yes
Type: string

The unique identifier of the comment.

content
Type: string

The replacement free-text content of the comment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Update a comment on a control

Revises an existing reviewer note on a control after the requested evidence is attached.

$result = $client->updateComment([
    'commentId' => '1773484200000',
    'content' => 'Evidence attached; the Q1 cardholder data environment scan is complete.',
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
]);

Result syntax:

[
]

UpdateControl

$result = $client->updateControl([/* ... */]);
$promise = $client->updateControlAsync([/* ... */]);

Updates a custom control. Supply only the fields you want to change; the operation leaves omitted fields unchanged.

Parameter Syntax

$result = $client->updateControl([
    'controlId' => '<string>', // REQUIRED
    'controlIntents' => ['<string>', ...],
    'description' => '<string>',
    'displayOrder' => <integer>,
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'parentControlId' => '<string>',
    'requirements' => [
        [
            'description' => '<string>', // REQUIRED
            'id' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'title' => '<string>',
    'workflowType' => 'automated-scan|document|hybrid',
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

controlIntents
Type: Array of strings

The technical control intents that classify how an assessment evaluates this leaf control. Supplying at least one intent makes the control eligible for automated scanning. Leaf controls only.

description
Type: string

The new description for the control. Omit to leave it unchanged.

displayOrder
Type: int

The ordering key that determines the display sequence within the framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

parentControlId
Type: string

The identifier of the parent control group.

requirements
Type: Array of Requirement structures

The replacement set of requirements. Supplying this replaces the control's existing requirements in full; omit to leave them unchanged.

title
Type: string

The new display name for the control. Omit to leave it unchanged.

workflowType
Type: string

The optional evaluation workflow type. When omitted and controlIntents are present, the service defaults this to automated-scan. Leaf controls only.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Update a control

Revises the description of a custom control in the payments team's draft framework, before it is published, to clarify what the payments-prod assessment will check for.

$result = $client->updateControl([
    'controlId' => 'PAY-1.1',
    'description' => 'Requires cardholder data at rest to be encrypted with a customer-managed KMS key.',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'payments-pci-dss',
    'frameworkVersion' => '1.0',
]);

Result syntax:

[
]

UpdateControlGroup

$result = $client->updateControlGroup([/* ... */]);
$promise = $client->updateControlGroupAsync([/* ... */]);

Updates a control group.

Parameter Syntax

$result = $client->updateControlGroup([
    'controlId' => '<string>', // REQUIRED
    'description' => '<string>',
    'displayOrder' => <integer>,
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'title' => '<string>',
]);

Parameter Details

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

description
Type: string

The new description for the control group. Omit to leave it unchanged.

displayOrder
Type: int

The ordering key that determines the display sequence within the framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

title
Type: string

The new display name for the control group. Omit to leave it unchanged.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Update a control group

Renames a control group in the payments team's draft custom framework, before it is published, so its title reflects the payments-prod scope.

$result = $client->updateControlGroup([
    'controlId' => 'PAY-1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'payments-pci-dss',
    'frameworkVersion' => '1.0',
    'title' => 'Payments data protection (payments-prod)',
]);

Result syntax:

[
]

UpdateEnvironment

$result = $client->updateEnvironment([/* ... */]);
$promise = $client->updateEnvironmentAsync([/* ... */]);

Updates a governance environment.

Parameter Syntax

$result = $client->updateEnvironment([
    'description' => '<string>',
    'environmentArn' => '<string>', // REQUIRED
    'environmentScope' => 'ORGANIZATION|SINGLE_ACCOUNT',
    'identityStore' => [
        'config' => [
            'identityCenterRole' => '<string>', // REQUIRED
            'instanceArn' => '<string>', // REQUIRED
        ],
        'disabled' => true || false,
    ],
    'kmsKeyArn' => '<string>',
    'operatorRole' => '<string>',
    'organizationalUnitIds' => [
        'cleared' => true || false,
        'organizationalUnitIds' => ['<string>', ...],
    ],
    'regions' => ['<string>', ...],
]);

Parameter Details

Members
description
Type: string

A description of the environment.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

environmentScope
Type: string

The set of AWS accounts this environment evaluates.

ORGANIZATION: convert the environment into an organization environment. Only valid when the environment is owned by the organization's management account and AWS Organizations trusted access for AWS Assurance is enabled; you must be in that organization. Idempotent when the scope is already ORGANIZATION.

SINGLE_ACCOUNT: revert the environment to evaluating only its own account. This operation is idempotent when the scope is already SINGLE_ACCOUNT. After this change, the environment no longer evaluates organization member accounts.

null or omitted: leaves the environment's scope unchanged.

identityStore
Type: IdentityStoreUpdate structure

The update to the identity store configuration. You can provide a new configuration or disable the identity store.

kmsKeyArn
Type: string

The ARN of the AWS KMS key that encrypts evidence. To change the key, specify a new ARN. To remove the key, specify an empty string.

operatorRole
Type: string

The IAM role that AWS Assurance assumes to issue temporary credentials to operators who use your application. The role's trust policy must allow the AWS Assurance service principal to call sts:AssumeRole.

organizationalUnitIds
Type: OrganizationalUnitIdsUpdate structure

The replacement organizational unit scope for the environment. Provide a replacement list of organizational units, or set cleared to evaluate the entire organization. Only valid on an organization environment, or together with a scope change to ORGANIZATION. Null or omitted leaves organizational unit scoping unchanged.

regions
Type: Array of strings

The AWS Regions to evaluate across. Replaces existing list. Send empty list to revert to all generally available Regions in the partition.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Update a governance environment

Updates the description of the payments team's governance environment.

$result = $client->updateEnvironment([
    'description' => 'Governance environment for the payments team's PCI-DSS assessment (Q1 scope).',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
]

UpdateEvidence

$result = $client->updateEvidence([/* ... */]);
$promise = $client->updateEvidenceAsync([/* ... */]);

Updates evidence metadata and manages control links (add or remove) and re-analysis without creating a new evidence version.

Parameter Syntax

$result = $client->updateEvidence([
    'addControlReferenceLinks' => [
        [
            'controlId' => '<string>', // REQUIRED
            'framework' => '<string>', // REQUIRED
            'frameworkVersion' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'description' => '<string>',
    'environmentArn' => '<string>', // REQUIRED
    'evidenceId' => '<string>', // REQUIRED
    'linkMode' => 'AUTO|MANUAL|DISABLED',
    'project' => '<string>', // REQUIRED
    'removeControlReferenceLinks' => [
        [
            'controlId' => '<string>', // REQUIRED
            'framework' => '<string>', // REQUIRED
            'frameworkVersion' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'title' => '<string>',
]);

Parameter Details

Members
addControlReferenceLinks
Type: Array of ControlReference structures

The control links to add.

description
Type: string

The optional new description.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

evidenceId
Required: Yes
Type: string

The unique identifier of the evidence item.

linkMode
Type: string

Controls whether AWS Assurance analyzes the latest version of the evidence again and suggests new control links. Specify one of the following values:

  • AUTO – Starts an analysis. The analysis only adds links. It keeps existing links, and it doesn't suggest links that you removed.

  • MANUAL – Doesn't run an analysis. This is the default if you omit this parameter.

You can't specify DISABLED. If an analysis that started less than 10 minutes ago is still running, AWS Assurance returns a ConflictException. Other changes in the same request might already be applied, so it's safe to retry.

project
Required: Yes
Type: string

The name of the project.

removeControlReferenceLinks
Type: Array of ControlReference structures

The control links to remove. AWS Assurance doesn't suggest removed links again.

title
Type: string

The optional new title.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Link evidence to a control

Links the user access review evidence to a PCI-DSS control in the payments-prod project.

$result = $client->updateEvidence([
    'addControlReferenceLinks' => [
        [
            'controlId' => '8.2.1',
            'framework' => 'AWS:PCI-DSS',
            'frameworkVersion' => '4',
        ],
    ],
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'evidenceId' => 'assurance://PCI-DSS-user-access-review.pdf',
    'project' => 'payments-prod',
]);

Result syntax:

[
]

UpdateFramework

$result = $client->updateFramework([/* ... */]);
$promise = $client->updateFrameworkAsync([/* ... */]);

Updates the title or description of a custom framework. You cannot change its name or version. You can update only custom frameworks; managed frameworks are read-only.

Parameter Syntax

$result = $client->updateFramework([
    'description' => '<string>',
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'title' => '<string>',
]);

Parameter Details

Members
description
Type: string

A description of the framework.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

title
Type: string

The human-readable title of the framework.

Result Syntax

[
    'framework' => [
        'createdAt' => <DateTime>,
        'description' => '<string>',
        'environment' => '<string>',
        'frameworkName' => '<string>',
        'frameworkVersion' => '<string>',
        'status' => 'ACTIVE|PENDING|PRE_PROD',
        'title' => '<string>',
        'type' => 'MANAGED|CUSTOM',
        'updatedAt' => <DateTime>,
    ],
]

Result Details

Members
framework
Required: Yes
Type: Framework structure

The name of the compliance framework.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Update a custom framework

Updates the title and description of a custom PCI-DSS framework.

$result = $client->updateFramework([
    'description' => 'Updated custom control framework for the payments team PCI-DSS v4 assessment.',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'payments-pci-dss',
    'frameworkVersion' => '1.0',
    'title' => 'Payments PCI-DSS v4 Framework (2026)',
]);

Result syntax:

[
    'framework' => [
        'type' => 'CUSTOM',
        'createdAt' => ,
        'description' => 'Updated custom control framework for the payments team PCI-DSS v4 assessment.',
        'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
        'frameworkName' => 'payments-pci-dss',
        'frameworkVersion' => '1.0',
        'status' => 'ACTIVE',
        'title' => 'Payments PCI-DSS v4 Framework (2026)',
        'updatedAt' => ,
    ],
]

UpdatePermissionSet

$result = $client->updatePermissionSet([/* ... */]);
$promise = $client->updatePermissionSetAsync([/* ... */]);

Updates an existing permission set. Omitted fields are left unchanged. Returns no content; retrieve the updated attributes with GetPermissionSet.

Parameter Syntax

$result = $client->updatePermissionSet([
    'description' => '<string>',
    'environmentArn' => '<string>', // REQUIRED
    'name' => '<string>',
    'permissionSetId' => '<string>', // REQUIRED
    'permissions' => ['<string>', ...],
]);

Parameter Details

Members
description
Type: string

A description of the permission set.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

name
Type: string

The name of the permission set.

permissionSetId
Required: Yes
Type: string

The identifier of the permission set.

permissions
Type: Array of strings

The permissions granted by the permission set.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Update a permission set

Upgrades the payments auditor permission set from reviewing assessments to running them.

$result = $client->updatePermissionSet([
    'description' => 'Access for the payments compliance team to run the PCI-DSS assessment and manage its projects.',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'permissionSetId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE88888',
    'permissions' => [
        'run_assessments',
        'manage_projects',
    ],
]);

Result syntax:

[
]

UpdateProject

$result = $client->updateProject([/* ... */]);
$promise = $client->updateProjectAsync([/* ... */]);

Updates an existing project. Omit any field to leave it unchanged.

Parameter Syntax

$result = $client->updateProject([
    'environmentArn' => '<string>', // REQUIRED
    'project' => '<string>', // REQUIRED
    'resourceFilters' => ['<string>', ...],
]);

Parameter Details

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

project
Required: Yes
Type: string

The name of the project.

resourceFilters
Type: Array of strings

The filters that determine which resources are in scope.

Result Syntax

[
    'project' => '<string>',
    'resourceFilters' => ['<string>', ...],
]

Result Details

Members
project
Type: string

The name of the project.

resourceFilters
Type: Array of strings

The filters that determine which resources are in scope.

Errors

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Update a project

Broadens the payments-prod project's scope to also include the account's S3 buckets during the PCI-DSS assessment.

$result = $client->updateProject([
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'project' => 'payments-prod',
    'resourceFilters' => [
        'tag:app=payments-prod',
        'region:us-east-1 resourcetype:rds:db',
        'region:us-east-1 resourcetype:s3:bucket',
    ],
]);

Result syntax:

[
    'project' => 'payments-prod',
    'resourceFilters' => [
        'tag:app=payments-prod',
        'region:us-east-1 resourcetype:rds:db',
        'region:us-east-1 resourcetype:s3:bucket',
    ],
]

UpdateTask

$result = $client->updateTask([/* ... */]);
$promise = $client->updateTaskAsync([/* ... */]);

Updates an existing task.

Parameter Syntax

$result = $client->updateTask([
    'assessmentId' => '<string>',
    'controlId' => '<string>', // REQUIRED
    'dueAt' => <integer || string || DateTime>,
    'environmentArn' => '<string>', // REQUIRED
    'framework' => '<string>', // REQUIRED
    'frameworkVersion' => '<string>', // REQUIRED
    'priority' => 'HIGH|MEDIUM|LOW',
    'project' => '<string>', // REQUIRED
    'status' => 'OPEN|PENDING|COMPLETED|CANCELLED',
    'taskId' => '<string>', // REQUIRED
]);

Parameter Details

Members
assessmentId
Type: string

The identifier of the assessment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

dueAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The new deadline for the task.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

priority
Type: string

The relative priority of the item.

project
Required: Yes
Type: string

The name of the project.

status
Type: string

The lifecycle state to set on the task.

taskId
Required: Yes
Type: string

The identifier of the task.

Result Syntax

[
    'task' => [
        'controlId' => '<string>',
        'createdAt' => <DateTime>,
        'createdBy' => '<string>',
        'description' => '<string>',
        'dueAt' => <DateTime>,
        'environment' => '<string>',
        'framework' => '<string>',
        'frameworkVersion' => '<string>',
        'priority' => 'HIGH|MEDIUM|LOW',
        'project' => '<string>',
        'status' => 'OPEN|PENDING|COMPLETED|CANCELLED',
        'taskId' => '<string>',
        'title' => '<string>',
        'updatedAt' => <DateTime>,
    ],
]

Result Details

Members
task
Required: Yes
Type: Task structure

The remediation task after the update, including its status, priority and due date.

Errors

ConflictException:

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

ValidationException:

The request failed validation.

InternalServerException:

An internal server error occurred.

ThrottlingException:

The request was throttled.

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.

ResourceNotFoundException:

The requested resource was not found.

Examples

Example 1: Mark a task complete

Marks the task complete after the payments team replaces the shared database account with per-user IDs.

$result = $client->updateTask([
    'controlId' => '8.2.1',
    'environmentArn' => 'arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'framework' => 'AWS:PCI-DSS',
    'frameworkVersion' => '4',
    'project' => 'payments-prod',
    'status' => 'COMPLETED',
    'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
]);

Result syntax:

[
    'task' => [
        'controlId' => '8.2.1',
        'createdAt' => ,
        'createdBy' => 'Assurance',
        'description' => 'Replace the shared payments-prod database account with per-user IDs so every user is assigned a unique ID before access is granted.',
        'dueAt' => ,
        'environment' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
        'framework' => 'AWS:PCI-DSS',
        'frameworkVersion' => '4',
        'priority' => 'HIGH',
        'project' => 'payments-prod',
        'status' => 'COMPLETED',
        'taskId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE66666',
        'title' => 'Assign unique user IDs for payments-prod database access',
        'updatedAt' => ,
    ],
]

Shapes

AccessDeniedException

Description

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.

Members
message
Required: Yes
Type: string

AccountOutcome

Description

The scored outcome of one member account in an organization assessment. Use it to find the accounts that need remediation.

Members
accountId
Type: string

The AWS account the outcome belongs to.

findingsSummary
Type: string

A summary of the findings.

outcomePercentage
Type: float

The per-account compliance score.

ActionCallDetail

Description

Shows how many calls the agent made to one API action of one AWS service, and how many of those calls succeeded and failed.

Members
api
Required: Yes
Type: string

The name of the API action, such as PutItem.

failureCount
Required: Yes
Type: int

The number of calls to the API action that failed.

service
Required: Yes
Type: string

The endpoint name of the AWS service, such as dynamodb.amazonaws.com.

successCount
Required: Yes
Type: int

The number of calls to the API action that succeeded.

AnnotationSummary

Description

Summary view of an annotation returned in list results.

Members
assessmentId
Required: Yes
Type: string

The identifier of the assessment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environment
Required: Yes
Type: string

The name of the governance environment the annotation belongs to.

evidenceId
Required: Yes
Type: string

The identifier of the evidence the annotation applies to.

evidenceVersion
Required: Yes
Type: int

The version number of the evidence the annotation applies to.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

AssessmentFilter

Description

One ListAssessments filter criterion.

A result matches if it equals any of the values you give for one attribute, and must match every attribute you name. Repeating an attribute name combines its value lists.

Members
name
Required: Yes
Type: string

The assessment attribute to match on.

values
Required: Yes
Type: Array of strings

The values to match the attribute against, compared for exact equality.

AssessmentJournalRecord

Description

A single journal or audit record produced during an assessment run.

Members
content
Type: string

The payload of the journal record.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the record was created.

invocationId
Type: string

The identifier of the agent invocation that produced the record.

phase
Type: string

The assessment phase the record belongs to.

recordId
Required: Yes
Type: string

The unique identifier of the journal record.

recordType
Type: string

The kind of journal record.

AssessmentOutcomeDataPoint

Description

The compliance scores for one time bucket.

Members
outcomes
Required: Yes
Type: Array of AssessmentOutcomeEntry structures

The scores in the bucket. At FRAMEWORK aggregation, this list contains one entry with no controlId. At CONTROL aggregation, it contains one entry for each control that has a score in the bucket, in ascending order of control ID. The list is never empty.

timestamp
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The start of the bucket that the point covers. When the response is the most recent score, this is the time of the assessment that produced the score.

AssessmentOutcomeEntry

Description

A compliance score in a time bucket.

Members
controlId
Type: string

The control this score is for. Absent at FRAMEWORK level, where the score spans the framework rather than any one control.

outcomePercentage
Type: float

The compliance score, from 0 to 100.

AssessmentSummary

Description

Summary view of an assessment in list results.

Members
assessmentId
Required: Yes
Type: string

The identifier of the assessment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the assessment was created.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

outcomePercentage
Type: float

The numeric percentage score of the assessment outcome.

project
Required: Yes
Type: string

The name of the project.

status
Type: string

The canonical state of the assessment.

trigger
Type: string

The event that started the assessment: SCHEDULE, DETECTED_CHANGE, or USER_ACTION. This field is empty for assessments that ran before this value was available, or if the value isn't available for your account.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the assessment was last updated.

AssignmentScope

Description

A scope entry for permission set assignment.

Members
id
Required: Yes
Type: string

The identifier of the scoped resource.

type
Required: Yes
Type: string

The type of the scope entry. Only PROJECT is accepted; to assign across the whole environment, omit scopes rather than sending ENVIRONMENT.

BatchGetCommentError

Description

A requested comment that the operation could not return, along with the reason.

Members
code
Required: Yes
Type: string

The error code. Known values: NOT_FOUND, ACCESS_DENIED, THROTTLED, INTERNAL_ERROR.

key
Required: Yes
Type: CommentKey structure

The identifier of the comment that the operation could not retrieve.

message
Required: Yes
Type: string

A human-readable explanation of why the operation could not return this comment. Intended for display and logging; match on code for programmatic handling.

BatchGetControlError

Description

A requested control that the operation could not return, along with the reason.

Members
code
Required: Yes
Type: string

The error code. Known values: NOT_FOUND, ACCESS_DENIED, THROTTLED, INTERNAL_ERROR.

key
Required: Yes
Type: ControlKey structure

The identifier of the control that the operation could not retrieve.

message
Required: Yes
Type: string

A human-readable explanation of why the operation could not return this control. Intended for display and logging; match on code for programmatic handling.

BatchGetTaskError

Description

A requested task that the operation could not return, along with the reason.

Members
code
Required: Yes
Type: string

The error code. Known values: NOT_FOUND, ACCESS_DENIED, THROTTLED, INTERNAL_ERROR.

key
Required: Yes
Type: TaskKey structure

The identifier of the task that the operation could not retrieve.

message
Required: Yes
Type: string

A human-readable explanation of why the operation could not return this task. Intended for display and logging; match on code for programmatic handling.

ChatChunkEvent

Description

A partial streamed chunk of assistant output.

Members
message
Type: string

The chunk text content.

ChatErrorEvent

Description

Event carrying an error that occurred mid-stream.

Members
message
Type: string

The error message text.

ChatEventStream

Description

Streaming union of chat events emitted during a session.

Members
chunk
Type: ChatChunkEvent structure

A partial streamed text chunk of the assistant response.

error
Type: ChatErrorEvent structure

An error event in the stream. The stream carries this event when an error occurs after the response has started; otherwise the operation returns a standard exception.

response
Type: ChatResponseEvent structure

An event marking the end of the assistant response. Receiving this event confirms that the stream completed successfully rather than being dropped.

toolCall
Type: ChatToolCallEvent structure

An event indicating the agent invoked a tool.

ChatMessage

Description

A single message in a chat session.

Members
author
Required: Yes
Type: string

The principal that authored the message.

content
Required: Yes
Type: string

The message text content.

createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the message was created.

sequenceNumber
Required: Yes
Type: long (int|float)

The position of this message in the session's sequence.

ChatResponseEvent

Description

Event marking completion of the assistant response.

Members

ChatSessionSummary

Description

Summary of a chat session in list results.

Members
lastMessageAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp of the most recent message in the session.

sequenceNumber
Required: Yes
Type: long (int|float)

The current sequence number for the session.

sessionId
Required: Yes
Type: string

The identifier of the chat session.

ChatToolCallEvent

Description

Event emitted when the agent calls a tool.

Members
eventDescription
Type: string

A human-readable description of the tool invocation.

message
Type: string

The tool call message content.

Comment

Description

Full comment structure returned in responses.

Members
addedBy
Type: string

The identity of the principal who added the comment.

commentId
Required: Yes
Type: string

The unique identifier of the comment.

content
Required: Yes
Type: string

The free-text content of the comment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the comment was created.

environment
Required: Yes
Type: string

The name of the governance environment the comment belongs to.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

taskId
Type: string

The identifier of the task.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the comment was last updated.

CommentFilter

Description

One ListComments filter criterion.

A result matches if it equals any of the values you give for one attribute, and must match every attribute you name. Repeating an attribute name combines its value lists.

Members
name
Required: Yes
Type: string

The comment attribute to match on.

values
Required: Yes
Type: Array of strings

The values to match the attribute against, compared for exact equality.

CommentKey

Description

Identifying key for a single comment in a batch request (within the environment and project named in the request).

Members
commentId
Required: Yes
Type: string

The unique identifier of the comment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

CommentSummary

Description

Contains a summary of a comment, without its content or author.

Members
commentId
Required: Yes
Type: string

The unique identifier of the comment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

environment
Required: Yes
Type: string

The name of the governance environment the comment belongs to.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

project
Required: Yes
Type: string

The name of the project.

taskId
Type: string

The identifier of the task.

ConflictException

Description

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

Members
message
Required: Yes
Type: string

ConnectionFilter

Description

A filter criterion for ListEnvironmentConnections.

Members
name
Required: Yes
Type: string

The connection attribute to match. The only valid value is connection-type, which matches the provider type of the connection, such as s3.

values
Required: Yes
Type: Array of strings

The values to match the attribute against. A connection matches if its attribute equals any of the values.

ConnectionItem

Description

An item that a connection can access, such as a folder or a file.

Members
id
Required: Yes
Type: string

The identifier of the item. To list the contents of the item, pass this value as parentId. This doesn't apply to a FILE.

kind
Required: Yes
Type: string

The type of item. Valid values:

  • FILE – A document that you can link as evidence.

  • FOLDER – A folder that contains other items.

  • LIBRARY – A SharePoint document library.

  • REPOSITORY – A GitHub repository.

  • SITE – A SharePoint site.

name
Required: Yes
Type: string

The display name of the item.

sizeBytes
Type: long (int|float)

The size of the item in bytes. This field is present for a FILE.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the provider last recorded a change to the item. This field is present for a FILE.

url
Type: string

The URL of the item. This field is present for a FILE. To add the file as evidence, pass this value as reference to PutEvidence.

ConnectionProviderConfig

Description

Specifies the evidence source of a connection. Set exactly one member.

Members
github
Type: GitHubConnectionConfig structure

A GitHub organization or user account.

s3
Type: S3ConnectionConfig structure

An Amazon S3 bucket, or a prefix within a bucket.

sharepoint
Type: SharePointConnectionConfig structure

A SharePoint Online tenant and the sites to read.

ConnectionProviderKey

Description

Identifies a connection by the source that it connects to. Exactly one member is set.

Members
github
Type: GitHubConnectionKey structure

The account of a GitHub connection.

s3
Type: S3ConnectionKey structure

An Amazon S3 connection, identified by its source URI.

sharepoint
Type: SharePointConnectionKey structure

The tenant of a SharePoint connection.

Control

Description

A leaf control within a framework version, with its full attributes including its requirements. To retrieve the attributes of the control group it belongs to, use GetControlGroup. To retrieve the other controls in that group, use ListControls.

Members
controlId
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

controlIntents
Type: Array of strings

The technical control intents classify how an assessment evaluates this leaf control. Leaf controls only.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when you created the control. The response includes it only for controls in custom frameworks.

description
Type: string

A description of the control.

framework
Type: string

The name of the compliance framework.

frameworkVersion
Type: string

The version of the compliance framework.

groupId
Type: string

The parent group ID (for example, "A.2" for control "A.2.2").

requirements
Type: Array of Requirement structures

The individual checks an assessment scores for this control. Absent when the control has none.

status
Type: string

The lifecycle status of the control.

title
Type: string

The human-readable title of the control.

type
Required: Yes
Type: string

The type of the control.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the control was last modified. Returned for controls in custom frameworks only.

workflowType
Type: string

How AWS Assurance evaluates the control. Applies only to leaf controls. Valid values:

  • automated-scan – Evaluates the configuration of your AWS resources.

  • document – Evaluates the evidence documents that you provide.

  • hybrid – Evaluates both resource configuration and evidence documents.

ControlGroup

Description

A control group's own attributes, without its child leaf controls. To retrieve the leaf controls within a group, use ListControls with the group's controlId.

Members
controlId
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

description
Type: string

A description of the control group.

framework
Type: string

The name of the compliance framework.

frameworkVersion
Type: string

The version of the compliance framework.

status
Type: string

The lifecycle status of the control group.

title
Type: string

The human-readable title of the control group.

type
Required: Yes
Type: string

The type of the control group.

ControlGroupSummary

Description

Summary view of a control group, without its child controls. Use ListControls with the group's controlId to retrieve the controls within a group.

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

description
Type: string

A description of the control group.

framework
Type: string

The name of the compliance framework.

frameworkVersion
Type: string

The version of the compliance framework.

status
Type: string

The lifecycle status of the control group.

title
Required: Yes
Type: string

The human-readable title of the control group.

type
Required: Yes
Type: string

The type of the control group.

ControlKey

Description

Identifying key for a single control in a batch request (within the environment named in the request).

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

ControlReference

Description

Reference to a specific control within a framework version.

Members
controlId
Required: Yes
Type: string

The control identifier within the framework.

framework
Required: Yes
Type: string

The framework identifier.

frameworkVersion
Required: Yes
Type: string

The framework version.

ControlReferenceDetail

Description

A control that an evidence item is linked to, and how the link was created.

Members
controlId
Required: Yes
Type: string

The control identifier within the framework.

framework
Required: Yes
Type: string

The framework identifier.

frameworkVersion
Required: Yes
Type: string

The framework version.

linkSource
Type: string

The source of the link. The value is one of the following:

  • AUTO – AWS Assurance added the link based on the evidence content.

  • MANUAL – You added the link.

ControlSummary

Description

A summary of a leaf control returned by ListControls, including identity and display attributes. To retrieve requirements and control intents, use GetControl or BatchGetControl.

Members
controlId
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

description
Type: string

A description of the control.

status
Type: string

The lifecycle status of the control.

title
Type: string

The human-readable title of the control.

type
Required: Yes
Type: string

The type of the control.

workflowType
Type: string

How AWS Assurance evaluates the control. Applies only to leaf controls. Valid values:

  • automated-scan – Evaluates the configuration of your AWS resources.

  • document – Evaluates the evidence documents that you provide.

  • hybrid – Evaluates both resource configuration and evidence documents.

DiscoveredResource

Description

A resource that is in scope for an environment, project, or control, as returned by ListDiscoveredResources and ListControlResources.

Members
accountId
Type: string

The AWS account the resource belongs to.

region
Type: string

The AWS Region that the resource is in. The value is global for global resources such as IAM.

resourceIdentifier
Required: Yes
Type: string

The identifier (typically the ARN) of the resource.

resourceType
Required: Yes
Type: string

The resource type, in lowercase service:type form (for example, s3:bucket). This is the form that resourcetype: filters use.

EnabledFrameworkFilter

Description

One ListEnabledFrameworks filter criterion.

A result matches if it equals any of the values you give for one attribute, and must match every attribute you name. Repeating an attribute name combines its value lists.

Members
name
Required: Yes
Type: string

The enabled-framework attribute to match on.

values
Required: Yes
Type: Array of strings

The values to match the attribute against, compared for exact equality.

EnabledFrameworkSummary

Description

Summary of an enabled framework record.

Members
assessmentMode
Type: string

The way that assessments run for the framework. This field is empty if assessment modes aren't available for your account.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the framework was enabled.

framework
Type: string

The name of the compliance framework.

frameworkVersion
Type: string

The version of the compliance framework.

project
Type: string

The name of the project.

type
Type: string

The type of the compliance framework.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the enablement was last updated.

Environment

Description

Contains details about a governance environment, including its configuration, connected identity store, service role, evaluation scope, and lifecycle status.

Members
createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the environment was created.

description
Type: string

A description of the environment.

domainPrefix
Type: string

The optional custom domain prefix for the environment portal URL. The prefix must be unique within the AWS Region. If you don't specify a prefix, AWS Assurance uses the environment ID. You can't change the prefix after you create the environment.

environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

environmentId
Required: Yes
Type: string

The unique identifier of the environment.

environmentName
Type: string

The name of the environment.

environmentScope
Type: string

The set of AWS accounts this environment evaluates (read-only).

evidenceLocation
Type: string

The evidence bucket location. Read-only. To configure evidence sources, use CreateEnvironmentConnection.

identityStore
Type: IdentityStoreInfo structure

The identity store configuration.

kmsKeyArn
Type: string

The ARN of a customer managed AWS KMS key used to encrypt evidence at rest. When set, the service encrypts new evidence uploads using this key.

operatorRole
Type: string

The IAM role assumed to issue temporary credentials for operator application users (both IAM and IAM Identity Center flows). Trust policy must allow the AWS Assurance service principal to sts:AssumeRole.

organizationalUnitIds
Type: Array of strings

The organizational units this environment's evaluation is scoped to. Only present on organization environments. When absent, the entire organization is in scope. Accounts in nested OUs under a listed OU are included.

regions
Type: Array of strings

The AWS Regions in scope for evaluation. When empty or omitted, the environment evaluates all generally available Regions in the partition. Applies to all accounts.

serviceRole
Type: string

The IAM role AWS Assurance assumes to discover and evaluate the account's resources. Not set for ORGANIZATION environments, which always use the AWS Assurance service-linked role (AWSServiceRoleForAssurance) in each member account.

status
Required: Yes
Type: string

The current lifecycle state of the environment.

tags
Type: Array of Tag structures

The tags attached to the resource, as key-value pairs.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the environment was last updated.

EnvironmentConnectionSummary

Description

Summary view of a single environment connection.

Members
connectionId
Type: string

The ID of the connection. Pass it as connectionId to ListConnectionItems, PutEvidence, and DeleteEnvironmentConnection. An environment can have more than one connection to the same provider, and this ID identifies one of them.

An Amazon S3 connection doesn't have this value. To identify an Amazon S3 connection, use s3.sourceUri.

connectionType
Required: Yes
Type: string

The type of provider for the connection.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the connection was created.

github
Type: GitHubConnectionDetails structure

The configuration of a GitHub connection. The summary includes this field when connectionType is github.

s3
Type: S3ConnectionDetails structure

The configuration of an Amazon S3 connection. Present when connectionType is s3.

sharepoint
Type: SharePointConnectionDetails structure

The configuration of a SharePoint connection. The summary includes this field when connectionType is sharepoint.

status
Required: Yes
Type: string

The current lifecycle state of the environment connection.

EnvironmentLookup

Description

The criteria used to identify the environment. Provide exactly one of environmentArn or domain.

Members
domain
Type: string

Specifies lookup by domain prefix or UUID.

environmentArn
Type: string

Specifies lookup by environment ARN.

EnvironmentSummary

Description

Summary of a governance environment, containing only limited information.

Members
environmentArn
Required: Yes
Type: string

The ARN of this governance environment.

environmentId
Required: Yes
Type: string

The unique identifier of the environment.

environmentName
Required: Yes
Type: string

The name of the environment.

status
Required: Yes
Type: string

The current lifecycle state of the environment.

EvidenceFilter

Description

One ListEvidence filter criterion.

A result matches if it equals any of the values you give for one attribute, and must match every attribute you name. Repeating an attribute name combines its value lists.

Members
name
Required: Yes
Type: string

The evidence attribute to match on.

values
Required: Yes
Type: Array of strings

The values to match the attribute against, compared for exact equality.

EvidenceSummary

Description

Summary view of an evidence item in list results.

Members
connectionType
Type: string

The environment connection type used to read this reference evidence. Absent for direct uploads.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the evidence was created.

evidenceId
Required: Yes
Type: string

The unique identifier of the evidence item.

lastAutoAnalysisStartedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the most recent automatic linking analysis of this evidence version started. For the result, see status. This field is absent if no analysis of this version has started.

linkMode
Type: string

The auto-linking mode in effect for the evidence. AWS Assurance sets it when you add the evidence, or sets it to AUTO when you start a new analysis with UpdateEvidence.

linkedControls
Type: Array of ControlReferenceDetail structures

The controls this evidence is linked to.

project
Type: string

The name of the project.

purpose
Type: string

What the evidence is for. AWS Assurance sets the purpose when you add the evidence.

status
Type: string

The current status of the evidence item.

title
Required: Yes
Type: string

The human-readable title of the evidence.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the evidence was last updated.

uploadedBy
Type: string

The principal that supplied this evidence.

version
Required: Yes
Type: int

The version number of the evidence.

Framework

Description

Contains details about a compliance framework, including its name, version, type (MANAGED or CUSTOM), status, and the environment it belongs to.

Members
createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the framework was created.

description
Type: string

The optional description of the framework.

environment
Type: string

The governance environment the framework belongs to. Present for CUSTOM frameworks.

frameworkName
Type: string

The name of the framework. Names that begin with AWS: are reserved for AWS managed frameworks.

frameworkVersion
Type: string

The version that you assigned to the framework.

status
Type: string

The lifecycle status of the framework.

title
Type: string

The human-readable title of the framework.

type
Required: Yes
Type: string

The type of the compliance framework.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the framework was last updated.

FrameworkSummary

Description

Summary of a framework resource.

Members
environment
Type: string

The name of the governance environment the framework belongs to.

framework
Type: string

The name of the compliance framework.

frameworkVersion
Type: string

The framework version.

status
Type: string

The lifecycle status of the framework.

title
Type: string

The human-readable title of the framework.

type
Required: Yes
Type: string

The type of the compliance framework.

GitHubConnectionConfig

Description

The GitHub account to connect.

Members
account
Type: string

The name of the GitHub organization or user account to connect. You can omit it for the first connection to an account. Specify it if another environment already installed the AWS Assurance app on the account.

GitHubConnectionDetails

Description

The GitHub account that a connection reads.

Members
account
Required: Yes
Type: string

The name of the GitHub organization or user account that has the AWS Assurance app installed.

GitHubConnectionKey

Description

Identifies a GitHub connection by the account that it reads.

Members
account
Required: Yes
Type: string

The name of the GitHub organization or user account. This is the github.account value in ListEnvironmentConnections.

IdentityStoreConfig

Description

Identity store configuration you provide when creating or updating an environment. AWS Assurance creates and manages the IAM Identity Center application on your behalf.

Members
identityCenterRole
Required: Yes
Type: string

The IAM role assumed through Trusted Identity Propagation to issue temporary credentials for IAM Identity Center users. Trust policy must allow the AWS Assurance service principal to sts:AssumeRole and sts:SetContext.

instanceArn
Required: Yes
Type: string

The ARN of your IAM Identity Center instance.

IdentityStoreInfo

Description

Identity store information returned in responses, includes the service-created application ARN.

Members
applicationArn
Type: string

The IAM Identity Center application ARN—created and managed by AWS Assurance.

identityCenterRole
Type: string

The IAM role assumed through Trusted Identity Propagation to issue temporary credentials for IAM Identity Center users.

instanceArn
Type: string

The ARN of your IAM Identity Center instance, as provided at create or update time.

region
Type: string

The AWS Region of the IAM Identity Center instance.

IdentityStoreUpdate

Description

Updates the identity store configuration. Provide a new configuration or set disabled to remove the current configuration.

Members
config
Type: IdentityStoreConfig structure

The new identity store configuration to apply.

disabled
Type: boolean

Specifies whether to disable or remove identity store configuration.

InboundInvitationSummary

Description

A summary of an inbound invitation as returned by ListInboundInvitations. Because the operation returns only your own invitations, the invitee account ID is omitted.

Members
environmentArn
Required: Yes
Type: string

The full ARN of the environment that extended the invitation to you.

expiresAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the invitation expires if not accepted. Present only while the invitation is PENDING.

status
Required: Yes
Type: string

The current lifecycle state of the invitation.

IntegrityException

Description

The evidence item failed integrity verification. The evidence content might have been modified or the version might no longer be available. Verify the evidence item and try your request again.

Members
message
Required: Yes
Type: string

InternalServerException

Description

An internal server error occurred.

Members
message
Required: Yes
Type: string

InvitationSummary

Description

A summary view of an invitation returned in list responses. Additional fields (such as roleArn and updatedAt) are available through GetInvitation.

Members
expiresAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the invitation expires if not accepted. Present only while the invitation is PENDING.

inviteeAccountId
Required: Yes
Type: string

The ID of the invited AWS account.

status
Required: Yes
Type: string

The current lifecycle state of the invitation.

OrganizationSummary

Description

A summary of a multi-account assessment across an organization.

While the assessment is in progress, only totalAccounts and evaluatedAccounts are populated. When the assessment finishes, the remaining members are populated and evaluatedAccounts equals totalAccounts.

Not present for single-account assessments.

Members
evaluatedAccounts
Type: int

The number of evaluated member accounts, whether they completed or failed. Together with totalAccounts, this value shows assessment progress. Equals totalAccounts when the assessment finalizes.

failedCount
Type: int

The accounts whose score was exactly 0.

failedRunCount
Type: int

The accounts for which the assessment run failed before producing an outcome. These accounts are excluded from the score.

lowestScoringAccounts
Type: Array of AccountOutcome structures

The lowest-scoring accounts, ascending by score, at most 5.

notApplicableCount
Type: int

The accounts excluded from the score because the control did not apply (no in-scope resources).

partiallyPassedCount
Type: int

The accounts scoring strictly between 0 and 100.

passedCount
Type: int

The accounts whose score was exactly 100.

totalAccounts
Type: int

The total number of member accounts included in the assessment.

OrganizationalUnitIdsUpdate

Description

Updates the organizational unit scope for the environment. Provide a replacement OU list or set cleared to evaluate the entire organization.

Members
cleared
Type: boolean

Specifies whether to clear OU scoping and evaluate the entire organization.

organizationalUnitIds
Type: Array of strings

The replacement list of organizational units. Accounts in nested organizational units under a listed organizational unit are included.

PermissionSetAssignment

Description

A permission set assignment record.

Members
assignmentId
Required: Yes
Type: string

The unique identifier of the permission set assignment.

createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the assignment was created.

permissionSetId
Required: Yes
Type: string

The identifier of the permission set.

principalId
Required: Yes
Type: string

The unique identifier of the principal the permission set is assigned to.

principalType
Required: Yes
Type: string

The type of principal the permission set is assigned to.

scopeId
Type: string

The identifier of the scoped resource. Omitted for environment-wide assignments.

scopeType
Type: string

The type of the assignment scope. ENVIRONMENT for an environment-wide assignment, PROJECT when the assignment is scoped to the project named by scopeId.

PermissionSetDetail

Description

Full detail of a permission set.

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the permission set was created.

description
Type: string

A description of the permission set.

name
Required: Yes
Type: string

The name of the permission set.

permissionSetId
Required: Yes
Type: string

The identifier of the permission set.

permissions
Required: Yes
Type: Array of strings

The permissions granted by the permission set.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the permission set was last updated.

PermissionSetSummary

Description

Summary of a permission set for list operations.

Members
name
Required: Yes
Type: string

The name of the permission set.

permissionCount
Required: Yes
Type: int

The number of permissions in the permission set.

permissionSetId
Required: Yes
Type: string

The identifier of the permission set.

ProjectSummary

Description

Summary of a project.

Members
project
Required: Yes
Type: string

The name of the project.

Requirement

Description

A single check within a leaf control, scored independently during an assessment. For document-based controls, the description defines what the evaluation looks for. Findings, assessment results, and remediation tasks reference the requirement by id.

Members
description
Required: Yes
Type: string

A description of the requirement.

id
Required: Yes
Type: string

The unique identifier of the requirement.

RequirementStatus

Description

The effective status of a single requirement of a control in a project.

Members
description
Required: Yes
Type: string

A description of the requirement.

rationale
Type: string

The evaluator's explanation of the outcome from the most recent assessment.

requirementId
Required: Yes
Type: string

The unique identifier of the requirement.

status
Required: Yes
Type: string

The effective outcome of the requirement. The outcome is not_applicable when the requirement or its control is declared not applicable, or when the most recent assessment determined that the requirement doesn't apply. It's unable_to_assess when no assessment produced an outcome for the requirement.

statusOverride
Type: StatusOverride structure

The decision declared directly on this requirement. Absent when no decision is declared on the requirement, including when the requirement is not applicable only because its control is declared not applicable.

taskId
Type: string

The identifier of the remediation task for this requirement in the project, when one exists. The task can be in any state, including CANCELLED.

ResourceActivitiesEntry

Description

One query result. The field that's set shows how the result is grouped.

Members
actionDetail
Type: ActionCallDetail structure

The calls that the agent made to one API action.

resourceDetail
Type: ResourceCallDetail structure

The calls that the agent made to one resource.

sessionDetail
Type: SessionDetail structure

An agent session in the time range of the query.

ResourceActivitiesFilter

Description

A filter for the results of a resource activities query.

Members
name
Required: Yes
Type: string

The field to filter on. The only supported value is sessionId.

values
Required: Yes
Type: Array of strings

The values to match exactly. A result matches the filter if it matches any of these values.

ResourceCallDetail

Description

Shows how many calls the agent made to one AWS resource, the kind of access, and how many of those calls succeeded and failed.

Members
accessType
Required: Yes
Type: string

The kind of access that the agent had to the resource. Valid values:

  • READ – The agent only read the resource.

  • WRITE – The agent made at least one call that changed the resource.

arn
Required: Yes
Type: string

The ARN of the resource.

failureCount
Required: Yes
Type: int

The number of calls to the resource that failed.

resourceType
Type: string

The AWS CloudFormation resource type of the resource, such as AWS::DynamoDB::Table. The response omits this field when the type isn't known.

successCount
Required: Yes
Type: int

The number of calls to the resource that succeeded.

ResourceNotFoundException

Description

The requested resource was not found.

Members
message
Required: Yes
Type: string

S3ConnectionConfig

Description

The Amazon S3 location that a connection reads evidence from.

Members
expectedBucketOwner
Type: string

The ID of the AWS account that must own the bucket. Required for a bucket in another account. AWS Assurance sends this value with each request to the bucket, and the request fails if a different account owns the bucket.

sourceUri
Required: Yes
Type: string

The S3 URI of the bucket or prefix, for example s3://amzn-s3-demo-bucket/compliance/. The bucket must be in the same AWS Region as the governance environment.

S3ConnectionDetails

Description

Contains the source URI and, optionally, the expected bucket owner for an Amazon S3 connection.

Members
expectedBucketOwner
Type: string

The ID of the AWS account that must own the bucket. Absent if the connection doesn't specify an expected bucket owner.

sourceUri
Required: Yes
Type: string

The Amazon S3 URI of the connection. To delete the connection, pass this value to DeleteEnvironmentConnection in providerConfig.s3.sourceUri.

S3ConnectionKey

Description

Identifies an Amazon S3 connection.

Members
sourceUri
Required: Yes
Type: string

The Amazon S3 URI of the connection. To find it, call ListEnvironmentConnections and read s3.sourceUri.

ServiceQuotaExceededException

Description

The request would exceed a service quota.

Members
message
Required: Yes
Type: string

SessionDetail

Description

An agent session on Amazon Bedrock AgentCore Runtime.

Members
sessionId
Required: Yes
Type: string

The ID of the session, as reported by Amazon Bedrock AgentCore Runtime.

SharePointConnectionConfig

Description

The Microsoft Entra tenant and the SharePoint Online sites to connect.

Members
sites
Required: Yes
Type: Array of strings

The URLs of the SharePoint sites that the connection can read, from 1 to 50. Ask a SharePoint administrator to grant the AWS Assurance application read access to each site. The connection can't discover which sites your administrator granted, so list each one here.

tenantId
Type: string

The ID of the Microsoft Entra tenant, in globally unique identifier (GUID) format. If you specify it, your administrator approves access in one visit to Microsoft. If you omit it, your administrator approves access in two visits.

SharePointConnectionDetails

Description

The Microsoft Entra tenant and SharePoint Online sites that a connection reads.

Members
siteUrl
Type: string

A site URL that the connection resolved. This field is empty if the connection didn't resolve a site URL.

sites
Type: Array of strings

The URLs of the SharePoint sites that the connection can read.

tenantId
Required: Yes
Type: string

The ID of the Microsoft Entra tenant that the administrator approved access in.

SharePointConnectionKey

Description

Identifies a SharePoint connection by its Microsoft Entra tenant.

Members
tenantId
Required: Yes
Type: string

The ID of the Microsoft Entra tenant. This is the sharepoint.tenantId value in ListEnvironmentConnections.

StatusOverride

Description

A decision declared on a control or requirement in a project, with its justification and attribution.

Members
declaredAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the decision was declared. AWS Assurance sets this value and updates it each time you declare the decision again.

declaredBy
Required: Yes
Type: string

The principal who declared the decision. If you sign in through AWS IAM Identity Center, this is your user identifier. Otherwise, it's the ARN of the AWS Identity and Access Management (IAM) principal that you used to make the request.

justification
Required: Yes
Type: string

The justification supplied with the decision.

type
Required: Yes
Type: string

The decision.

Tag

Description

A key-value tag.

Members
key
Required: Yes
Type: string

The tag key.

value
Required: Yes
Type: string

The tag value.

Task

Description

Full task structure returned in responses.

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the task was created.

createdBy
Type: string

The identity of the principal who created the task.

description
Type: string

A description of the task.

dueAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The deadline for the task.

environment
Required: Yes
Type: string

The name of the governance environment the task belongs to.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

priority
Type: string

The relative priority of the item.

project
Required: Yes
Type: string

The name of the project.

status
Required: Yes
Type: string

The current lifecycle state of the task.

taskId
Required: Yes
Type: string

The identifier of the task.

title
Required: Yes
Type: string

The human-readable title of the task.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the task was last updated.

TaskFilter

Description

A single ListTasks filter criterion. Values within one criterion are combined with OR; criteria naming different attributes are combined with AND. Repeating an attribute name unions its value lists. Every criterion matches on exact equality.

Members
name
Required: Yes
Type: string

The task attribute to match on.

values
Required: Yes
Type: Array of strings

The values to match the attribute against, compared for exact equality.

TaskHistoryEntry

Description

Entry in task history.

Members
comment
Required: Yes
Type: string

The comment.

modifiedBy
Required: Yes
Type: string

The identity of the principal who made this historical change.

updatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when this historical change was made.

TaskKey

Description

Identifying key for a single task in a batch request (within the environment and project named in the request).

Members
controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

taskId
Required: Yes
Type: string

The identifier of the task.

TaskSummary

Description

Contains a summary of a task.

Members
assessmentId
Type: string

The assessment whose task history this task was reached through. Present when the request selected an assessment.

controlId
Required: Yes
Type: string

The control identifier. Optional. If omitted, the operation applies to the full framework.

createdBy
Type: string

The identity of the principal who created the task.

dueAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The deadline for the task.

environment
Required: Yes
Type: string

The name of the governance environment the task belongs to.

framework
Required: Yes
Type: string

The name of the compliance framework.

frameworkVersion
Required: Yes
Type: string

The version of the compliance framework.

priority
Type: string

The relative priority of the item.

project
Required: Yes
Type: string

The name of the project.

status
Required: Yes
Type: string

The current lifecycle state of the task.

taskId
Required: Yes
Type: string

The identifier of the task.

title
Required: Yes
Type: string

The human-readable title of the task.

ThrottlingException

Description

The request was throttled.

Members
message
Required: Yes
Type: string

ValidationException

Description

The request failed validation.

Members
message
Required: Yes
Type: string