2026/12/01 - AWS Assurance - 91 new api methods
Changes Released on December 1, 2026, this SDK introduces AWS Assurance, a new continuous compliance and audit readiness service
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.
If another request changes the same control at the same time, you receive a ConflictException. Call GetControlStatus before you retry.
See also: AWS API Documentation
Request Syntax
client.put_control_status_override(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
requirementId='string',
type='NOT_APPLICABLE'|'NONE',
justification='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The identifier of the control. The control must exist in the framework version.
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.
string
[REQUIRED]
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.
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.
dict
Response Syntax
{
'statusOverride': {
'type': 'NOT_APPLICABLE'|'NONE',
'justification': 'string',
'declaredBy': 'string',
'declaredAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
Output of PutControlStatusOverride.
statusOverride (dict) --
The decision that now applies to the specified control or requirement. Absent when type is NONE.
type (string) --
The decision.
justification (string) --
The justification supplied with the decision.
declaredBy (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.
declaredAt (datetime) --
The time when the decision was declared. AWS Assurance sets this value and updates it each time you declare the decision again.
Lists evidence items (paginated).
See also: AWS API Documentation
Request Syntax
client.list_evidence(
environmentArn='string',
maxResults=123,
nextToken='string',
project='string',
filters=[
{
'name': 'evidence-id'|'status'|'framework'|'framework-version'|'control-id'|'purpose'|'connection-type',
'values': [
'string',
]
},
]
)
string
[REQUIRED]
The ARN of this governance environment.
integer
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.
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.
string
[REQUIRED]
The project to list evidence for. Each request is scoped to one project.
list
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.
(dict) --
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.
name (string) -- [REQUIRED]
The evidence attribute to match on.
values (list) -- [REQUIRED]
The values to match the attribute against, compared for exact equality.
(string) --
A value to match against a filter attribute. The match is exact. Wildcards aren't supported.
dict
Response Syntax
{
'evidence': [
{
'evidenceId': 'string',
'version': 123,
'title': 'string',
'project': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'status': 'VALID'|'SCANNING'|'QUARANTINED'|'SCAN_FAILED'|'NOT_AUTO_ANALYZED'|'VALID_AUTO_ANALYZED',
'linkedControls': [
{
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'linkSource': 'AUTO'|'MANUAL'
},
],
'uploadedBy': 'string',
'connectionType': 's3'|'github'|'sharepoint',
'linkMode': 'AUTO'|'MANUAL'|'DISABLED',
'purpose': 'CONTROL_EVIDENCE'|'SCAN_EVIDENCE'|'FRAMEWORK_SOURCE',
'lastAutoAnalysisStartedAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
evidence (list) --
The list of evidence summaries returned.
(dict) --
Summary view of an evidence item in list results.
evidenceId (string) --
The unique identifier of the evidence item.
version (integer) --
The version number of the evidence.
title (string) --
The human-readable title of the evidence.
project (string) --
The name of the project.
createdAt (datetime) --
The timestamp when the evidence was created.
updatedAt (datetime) --
The timestamp when the evidence was last updated.
status (string) --
The current status of the evidence item.
linkedControls (list) --
The controls this evidence is linked to.
(dict) --
A control that an evidence item is linked to, and how the link was created.
framework (string) --
The framework identifier.
frameworkVersion (string) --
The framework version.
controlId (string) --
The control identifier within the framework.
linkSource (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.
uploadedBy (string) --
The principal that supplied this evidence.
connectionType (string) --
The environment connection type used to read this reference evidence. Absent for direct uploads.
linkMode (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.
purpose (string) --
What the evidence is for. AWS Assurance sets the purpose when you add the evidence.
lastAutoAnalysisStartedAt (datetime) --
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.
nextToken (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.
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.
See also: AWS API Documentation
Request Syntax
client.list_inbound_invitations(
status='PENDING'|'ACTIVE'|'REJECTED'|'REVOKED'|'EXPIRED',
maxResults=123,
nextToken='string'
)
string
The lifecycle state to filter results by. When specified, the operation returns only invitations in this state.
integer
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.
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.
dict
Response Syntax
{
'invitationSummaries': [
{
'environmentArn': 'string',
'status': 'PENDING'|'ACTIVE'|'REJECTED'|'REVOKED'|'EXPIRED',
'expiresAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
invitationSummaries (list) --
The invitations addressed to your account, for this page of results.
(dict) --
A summary of an inbound invitation as returned by ListInboundInvitations. Because the operation returns only your own invitations, the invitee account ID is omitted.
environmentArn (string) --
The full ARN of the environment that extended the invitation to you.
status (string) --
The current lifecycle state of the invitation.
expiresAt (datetime) --
The time when the invitation expires if not accepted. Present only while the invitation is PENDING.
nextToken (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.
Adds or overwrites tags on a resource.
See also: AWS API Documentation
Request Syntax
client.tag_resource(
resourceArn='string',
tags=[
{
'key': 'string',
'value': 'string'
},
]
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
list
[REQUIRED]
The tags attached to the resource, as key-value pairs.
(dict) --
A key-value tag.
key (string) -- [REQUIRED]
The tag key.
value (string) -- [REQUIRED]
The tag value.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.start_assessment_report_export(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlIds=[
'string',
]
)
string
[REQUIRED]
The ARN of the environment.
string
[REQUIRED]
The project the request is scoped to.
string
[REQUIRED]
The name of the framework to report on.
string
[REQUIRED]
The version of the framework.
list
The control to include in the report. To report on the whole framework, omit this parameter.
(string) --
The unique identifier of the control.
dict
Response Syntax
{
'exportId': 'string'
}
Response Structure
(dict) --
Output of StartAssessmentReportExport.
exportId (string) --
The identifier of the export. Use it to check the export status and to get the report.
Disables a previously enabled framework for a specific project.
See also: AWS API Documentation
Request Syntax
client.disable_framework(
environmentArn='string',
framework='string',
frameworkVersion='string',
project='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The name of the project.
dict
Response Syntax
{
'environment': 'string',
'framework': 'string',
'project': 'string'
}
Response Structure
(dict) --
environment (string) --
The name of the governance environment the framework belongs to.
framework (string) --
The name of the compliance framework.
project (string) --
The name of the project that the framework was disabled for.
Retrieves the annotation for a specific piece of evidence.
See also: AWS API Documentation
Request Syntax
client.get_annotation(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
assessmentId='string',
evidenceId='string',
evidenceVersion=123
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The identifier of the assessment.
string
[REQUIRED]
The identifier of the evidence the annotation applies to.
integer
[REQUIRED]
The version number of the evidence the annotation applies to.
dict
Response Syntax
{
'environmentArn': 'string',
'project': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'assessmentId': 'string',
'evidenceId': 'string',
'evidenceVersion': 123,
'notes': 'string',
'createdAt': datetime(2015, 1, 1)
}
Response Structure
(dict) --
environmentArn (string) --
The ARN of this governance environment.
project (string) --
The name of the project.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
assessmentId (string) --
The identifier of the assessment.
evidenceId (string) --
The identifier of the evidence the annotation applies to.
evidenceVersion (integer) --
The version number of the evidence the annotation applies to.
notes (string) --
The free-text reviewer note attached to the evidence.
createdAt (datetime) --
The timestamp when the annotation was created.
Retrieves a framework resource by type and key fields.
See also: AWS API Documentation
Request Syntax
client.get_framework(
framework='string',
environmentArn='string',
frameworkVersion='string'
)
string
[REQUIRED]
The framework name.
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The framework version.
dict
Response Syntax
{
'framework': {
'type': 'MANAGED'|'CUSTOM',
'frameworkName': 'string',
'environment': 'string',
'frameworkVersion': 'string',
'title': 'string',
'description': 'string',
'status': 'ACTIVE'|'PENDING'|'PRE_PROD',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
framework (dict) --
The name of the compliance framework.
type (string) --
The type of the compliance framework.
frameworkName (string) --
The name of the framework. Names that begin with AWS: are reserved for AWS managed frameworks.
environment (string) --
The governance environment the framework belongs to. Present for CUSTOM frameworks.
frameworkVersion (string) --
The version that you assigned to the framework.
title (string) --
The human-readable title of the framework.
description (string) --
The optional description of the framework.
status (string) --
The lifecycle status of the framework.
createdAt (datetime) --
The timestamp when the framework was created.
updatedAt (datetime) --
The timestamp when the framework was last updated.
Lists task history across assessments for a given task, ordered by most recent first.
See also: AWS API Documentation
Request Syntax
client.list_task_history(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
taskId='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The identifier of the task.
integer
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.
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.
dict
Response Syntax
{
'history': [
{
'comment': 'string',
'modifiedBy': 'string',
'updatedAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
history (list) --
The list of task history entries returned.
(dict) --
Entry in task history.
comment (string) --
The comment.
modifiedBy (string) --
The identity of the principal who made this historical change.
updatedAt (datetime) --
The timestamp when this historical change was made.
nextToken (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.
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.
See also: AWS API Documentation
Request Syntax
client.deregister_organization_delegated_admin(
accountId='string'
)
string
[REQUIRED]
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.
dict
Response Syntax
{
'accountId': 'string',
'organizationId': 'string'
}
Response Structure
(dict) --
accountId (string) --
The account ID that was deregistered.
organizationId (string) --
The ID of the organization that AWS Assurance removed the delegated administrator from.
Retrieves a single leaf control within a framework version, including its title, description, and requirements.
See also: AWS API Documentation
Request Syntax
client.get_control(
environmentArn='string',
framework='string',
controlId='string',
frameworkVersion='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The version of the compliance framework.
dict
Response Syntax
{
'control': {
'type': 'MANAGED'|'CUSTOM',
'framework': 'string',
'controlId': 'string',
'frameworkVersion': 'string',
'groupId': 'string',
'title': 'string',
'description': 'string',
'requirements': [
{
'id': 'string',
'description': 'string'
},
],
'controlIntents': [
'string',
],
'workflowType': 'automated-scan'|'document'|'hybrid',
'status': 'ACTIVE'|'PENDING'|'PRE_PROD',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
control (dict) --
The control.
type (string) --
The type of the control.
framework (string) --
The name of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
frameworkVersion (string) --
The version of the compliance framework.
groupId (string) --
The parent group ID (for example, "A.2" for control "A.2.2").
title (string) --
The human-readable title of the control.
description (string) --
A description of the control.
requirements (list) --
The individual checks an assessment scores for this control. Absent when the control has none.
(dict) --
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.
id (string) --
The unique identifier of the requirement.
description (string) --
A description of the requirement.
controlIntents (list) --
The technical control intents classify how an assessment evaluates this leaf control. Leaf controls only.
(string) --
A technical control-intent identifier used to classify how a leaf control is evaluated.
workflowType (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.
status (string) --
The lifecycle status of the control.
createdAt (datetime) --
The time when you created the control. The response includes it only for controls in custom frameworks.
updatedAt (datetime) --
The time when the control was last modified. Returned for controls in custom frameworks only.
Lists all tasks within a governance environment.
See also: AWS API Documentation
Request Syntax
client.list_tasks(
environmentArn='string',
project='string',
filters=[
{
'name': 'framework'|'framework-version'|'control-id'|'task-id'|'status'|'priority'|'assessment-id',
'values': [
'string',
]
},
],
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The project to list tasks for. Each request is scoped to one project.
list
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.
(dict) --
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.
name (string) -- [REQUIRED]
The task attribute to match on.
values (list) -- [REQUIRED]
The values to match the attribute against, compared for exact equality.
(string) --
A value to match against a filter attribute. The match is exact. Wildcards aren't supported.
integer
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.
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.
dict
Response Syntax
{
'tasks': [
{
'environment': 'string',
'project': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'taskId': 'string',
'title': 'string',
'status': 'OPEN'|'PENDING'|'COMPLETED'|'CANCELLED',
'createdBy': 'string',
'assessmentId': 'string',
'dueAt': datetime(2015, 1, 1),
'priority': 'HIGH'|'MEDIUM'|'LOW'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
tasks (list) --
The list of tasks.
(dict) --
Contains a summary of a task.
environment (string) --
The name of the governance environment the task belongs to.
project (string) --
The name of the project.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
taskId (string) --
The identifier of the task.
title (string) --
The human-readable title of the task.
status (string) --
The current lifecycle state of the task.
createdBy (string) --
The identity of the principal who created the task.
assessmentId (string) --
The assessment whose task history this task was reached through. Present when the request selected an assessment.
dueAt (datetime) --
The deadline for the task.
priority (string) --
The relative priority of the item.
nextToken (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.
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.
See also: AWS API Documentation
Request Syntax
client.start_resource_activities_query(
environmentArn='string',
project='string',
actorArn='string',
startTime=datetime(2015, 1, 1),
endTime=datetime(2015, 1, 1),
aggregationLevels=[
'ACTION'|'RESOURCE'|'SESSION',
],
filters=[
{
'name': 'sessionId',
'values': [
'string',
]
},
]
)
string
[REQUIRED]
The ARN of the environment to query in.
string
[REQUIRED]
The project to query in.
string
[REQUIRED]
The ARN of the agent runtime whose activity to query. The agent runtime must be in your AWS account.
datetime
The start of the time range to query, inclusive. The default is 24 hours before the request.
datetime
The end of the time range to query, exclusive. The default is the time of the request.
list
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.
(string) --
The ways to group the results of a resource activities query.
list
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.
(dict) --
A filter for the results of a resource activities query.
name (string) -- [REQUIRED]
The field to filter on. The only supported value is sessionId.
values (list) -- [REQUIRED]
The values to match exactly. A result matches the filter if it matches any of these values.
(string) --
The ID of an agent session, as reported by Amazon Bedrock AgentCore Runtime.
dict
Response Syntax
{
'queryId': 'string'
}
Response Structure
(dict) --
queryId (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.
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.
See also: AWS API Documentation
Request Syntax
client.list_control_resources(
environmentArn='string',
framework='string',
frameworkVersion='string',
controlId='string',
project='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The identifier of the control.
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.
integer
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.
string
The pagination token returned by a previous request. Use it to retrieve the next page of results.
dict
Response Syntax
{
'resources': [
{
'resourceIdentifier': 'string',
'resourceType': 'string',
'accountId': 'string',
'region': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
resources (list) --
The discovered resources that are in scope for the control.
(dict) --
A resource that is in scope for an environment, project, or control, as returned by ListDiscoveredResources and ListControlResources.
resourceIdentifier (string) --
The identifier (typically the ARN) of the resource.
resourceType (string) --
The resource type, in lowercase service:type form (for example, s3:bucket). This is the form that resourcetype: filters use.
accountId (string) --
The AWS account the resource belongs to.
region (string) --
The AWS Region that the resource is in. The value is global for global resources such as IAM.
nextToken (string) --
The pagination token for the next page of results. If the value is null, there are no more results to return.
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.
See also: AWS API Documentation
Request Syntax
client.register_organization_delegated_admin(
accountId='string'
)
string
[REQUIRED]
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.
dict
Response Syntax
{
'accountId': 'string',
'organizationId': 'string'
}
Response Structure
(dict) --
accountId (string) --
The account ID that was registered as delegated administrator.
organizationId (string) --
The ID of the organization in which AWS Assurance registered the delegated administrator.
Creates a new project with a list of resources in a governance environment.
See also: AWS API Documentation
Request Syntax
client.create_project(
environmentArn='string',
project='string',
resourceFilters=[
'string',
]
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
list
The filters that determine which resources are in scope.
(string) --
A resource filter that uses AWS Resource Explorer query syntax.
dict
Response Syntax
{
'project': 'string',
'resourceFilters': [
'string',
]
}
Response Structure
(dict) --
project (string) --
The name of the project.
resourceFilters (list) --
The filters that determine which resources are in scope.
(string) --
A resource filter that uses AWS Resource Explorer query syntax.
Lists permission set assignments for an environment.
See also: AWS API Documentation
Request Syntax
client.list_permission_set_assignments(
environmentArn='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
integer
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.
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.
dict
Response Syntax
{
'assignments': [
{
'assignmentId': 'string',
'principalType': 'USER'|'GROUP',
'principalId': 'string',
'permissionSetId': 'string',
'scopeType': 'ENVIRONMENT'|'PROJECT',
'scopeId': 'string',
'createdAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
assignments (list) --
The list of permission set assignments.
(dict) --
A permission set assignment record.
assignmentId (string) --
The unique identifier of the permission set assignment.
principalType (string) --
The type of principal the permission set is assigned to.
principalId (string) --
The unique identifier of the principal the permission set is assigned to.
permissionSetId (string) --
The identifier of the permission set.
scopeType (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.
scopeId (string) --
The identifier of the scoped resource. Omitted for environment-wide assignments.
createdAt (datetime) --
The timestamp when the assignment was created.
nextToken (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.
Lists the annotations on one version of a piece of evidence within a project, paginated.
See also: AWS API Documentation
Request Syntax
client.list_evidence_annotations(
environmentArn='string',
project='string',
evidenceId='string',
evidenceVersion=123,
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The project scope for the annotation list. Each request is scoped to one project.
string
[REQUIRED]
The identifier of the evidence whose annotations are listed.
integer
[REQUIRED]
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.
integer
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.
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.
dict
Response Syntax
{
'annotations': [
{
'environment': 'string',
'evidenceId': 'string',
'evidenceVersion': 123,
'project': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'assessmentId': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
annotations (list) --
The list of annotation summaries returned by the request.
(dict) --
Summary view of an annotation returned in list results.
environment (string) --
The name of the governance environment the annotation belongs to.
evidenceId (string) --
The identifier of the evidence the annotation applies to.
evidenceVersion (integer) --
The version number of the evidence the annotation applies to.
project (string) --
The name of the project.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
assessmentId (string) --
The identifier of the assessment.
nextToken (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.
Starts a streaming chat turn with the AWS Assurance agent. Returns an event stream of chat events, including chunks, tool calls, and errors.
See also: AWS API Documentation
Request Syntax
client.chat(
message='string',
sessionId='string',
environmentArn='string',
expectedSequenceNumber=123
)
string
[REQUIRED]
The chat message to send to the AWS Assurance agent.
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.
string
[REQUIRED]
The ARN of this governance environment.
integer
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.
dict
The response of this operation contains an :class:`.EventStream` member. When iterated the :class:`.EventStream` will yield events based on the structure below, where only one of the top level keys will be present for any given event.
Response Syntax
{
'eventStream': EventStream({
'chunk': {
'message': 'string'
},
'toolCall': {
'message': 'string',
'eventDescription': 'string'
},
'response': {},
'error': {
'message': 'string'
}
}),
'sessionId': 'string',
'sequenceNumber': 123
}
Response Structure
(dict) --
eventStream (:class:`.EventStream`) --
The stream of chat events returned by the agent.
chunk (dict) --
A partial streamed text chunk of the assistant response.
message (string) --
The chunk text content.
toolCall (dict) --
An event indicating the agent invoked a tool.
message (string) --
The tool call message content.
eventDescription (string) --
A human-readable description of the tool invocation.
response (dict) --
An event marking the end of the assistant response. Receiving this event confirms that the stream completed successfully rather than being dropped.
error (dict) --
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.
message (string) --
The error message text.
sessionId (string) --
The ID of the session. If you omitted sessionId in the request, use this value to continue the session in subsequent calls.
sequenceNumber (integer) --
The updated sequence number for this session. Pass this value as expectedSequenceNumber on your next call.
Updates a custom control. Supply only the fields you want to change; the operation leaves omitted fields unchanged.
See also: AWS API Documentation
Request Syntax
client.update_control(
environmentArn='string',
framework='string',
frameworkVersion='string',
controlId='string',
parentControlId='string',
title='string',
description='string',
requirements=[
{
'id': 'string',
'description': 'string'
},
],
displayOrder=123,
controlIntents=[
'string',
],
workflowType='automated-scan'|'document'|'hybrid'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
The identifier of the parent control group.
string
The new display name for the control. Omit to leave it unchanged.
string
The new description for the control. Omit to leave it unchanged.
list
The replacement set of requirements. Supplying this replaces the control's existing requirements in full; omit to leave them unchanged.
(dict) --
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.
id (string) -- [REQUIRED]
The unique identifier of the requirement.
description (string) -- [REQUIRED]
A description of the requirement.
integer
The ordering key that determines the display sequence within the framework.
list
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.
(string) --
A technical control-intent identifier used to classify how a leaf control is evaluated.
string
The optional evaluation workflow type. When omitted and controlIntents are present, the service defaults this to automated-scan. Leaf controls only.
dict
Response Syntax
{}
Response Structure
(dict) --
Adds a new comment to a specific control.
See also: AWS API Documentation
Request Syntax
client.create_comment(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
taskId='string',
content='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
The identifier of the task to scope the comment to. Optional.
string
The free-text content of the comment.
dict
Response Syntax
{
'commentId': 'string'
}
Response Structure
(dict) --
commentId (string) --
The unique identifier of the comment.
Retrieves a specific task by its identifying fields.
See also: AWS API Documentation
Request Syntax
client.get_task(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
taskId='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The identifier of the task.
dict
Response Syntax
{
'task': {
'environment': 'string',
'project': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'taskId': 'string',
'title': 'string',
'description': 'string',
'status': 'OPEN'|'PENDING'|'COMPLETED'|'CANCELLED',
'createdBy': 'string',
'dueAt': datetime(2015, 1, 1),
'priority': 'HIGH'|'MEDIUM'|'LOW',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
task (dict) --
The task.
environment (string) --
The name of the governance environment the task belongs to.
project (string) --
The name of the project.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
taskId (string) --
The identifier of the task.
title (string) --
The human-readable title of the task.
description (string) --
A description of the task.
status (string) --
The current lifecycle state of the task.
createdBy (string) --
The identity of the principal who created the task.
dueAt (datetime) --
The deadline for the task.
priority (string) --
The relative priority of the item.
createdAt (datetime) --
The timestamp when the task was created.
updatedAt (datetime) --
The timestamp when the task was last updated.
Creates a new permission set in the environment. Returns the identifier the service assigned to it; retrieve its attributes with GetPermissionSet.
See also: AWS API Documentation
Request Syntax
client.create_permission_set(
environmentArn='string',
name='string',
description='string',
permissions=[
'string',
]
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the permission set.
string
A description of the permission set.
list
[REQUIRED]
The permissions granted by the permission set.
(string) --
A permission, such as manage_projects or project:view.
dict
Response Syntax
{
'permissionSetId': 'string'
}
Response Structure
(dict) --
permissionSetId (string) --
The identifier of the newly created permission set.
Retrieves a specific comment by its identifying fields.
See also: AWS API Documentation
Request Syntax
client.get_comment(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
commentId='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The unique identifier of the comment.
dict
Response Syntax
{
'comment': {
'environment': 'string',
'project': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'taskId': 'string',
'commentId': 'string',
'content': 'string',
'addedBy': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
comment (dict) --
The comment.
environment (string) --
The name of the governance environment the comment belongs to.
project (string) --
The name of the project.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
taskId (string) --
The identifier of the task.
commentId (string) --
The unique identifier of the comment.
content (string) --
The free-text content of the comment.
addedBy (string) --
The identity of the principal who added the comment.
createdAt (datetime) --
The timestamp when the comment was created.
updatedAt (datetime) --
The timestamp when the comment was last updated.
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.
See also: AWS API Documentation
Request Syntax
client.reject_invitation(
environmentArn='string'
)
string
[REQUIRED]
The ARN of the environment that sent the invitation.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.batch_get_control(
environmentArn='string',
keys=[
{
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string'
},
]
)
string
[REQUIRED]
The ARN of this governance environment.
list
[REQUIRED]
The controls to retrieve, 1 to 100 per request. Keys must be unique within a request.
(dict) --
Identifying key for a single control in a batch request (within the environment named in the request).
framework (string) -- [REQUIRED]
The name of the compliance framework.
frameworkVersion (string) -- [REQUIRED]
The version of the compliance framework.
controlId (string) -- [REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
dict
Response Syntax
{
'controls': [
{
'type': 'MANAGED'|'CUSTOM',
'framework': 'string',
'controlId': 'string',
'frameworkVersion': 'string',
'groupId': 'string',
'title': 'string',
'description': 'string',
'requirements': [
{
'id': 'string',
'description': 'string'
},
],
'controlIntents': [
'string',
],
'workflowType': 'automated-scan'|'document'|'hybrid',
'status': 'ACTIVE'|'PENDING'|'PRE_PROD',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
],
'errors': [
{
'key': {
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string'
},
'code': 'string',
'message': 'string'
},
]
}
Response Structure
(dict) --
controls (list) --
The controls that were successfully retrieved.
(dict) --
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.
type (string) --
The type of the control.
framework (string) --
The name of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
frameworkVersion (string) --
The version of the compliance framework.
groupId (string) --
The parent group ID (for example, "A.2" for control "A.2.2").
title (string) --
The human-readable title of the control.
description (string) --
A description of the control.
requirements (list) --
The individual checks an assessment scores for this control. Absent when the control has none.
(dict) --
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.
id (string) --
The unique identifier of the requirement.
description (string) --
A description of the requirement.
controlIntents (list) --
The technical control intents classify how an assessment evaluates this leaf control. Leaf controls only.
(string) --
A technical control-intent identifier used to classify how a leaf control is evaluated.
workflowType (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.
status (string) --
The lifecycle status of the control.
createdAt (datetime) --
The time when you created the control. The response includes it only for controls in custom frameworks.
updatedAt (datetime) --
The time when the control was last modified. Returned for controls in custom frameworks only.
errors (list) --
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.
(dict) --
A requested control that the operation could not return, along with the reason.
key (dict) --
The identifier of the control that the operation could not retrieve.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
code (string) --
The error code. Known values: NOT_FOUND, ACCESS_DENIED, THROTTLED, INTERNAL_ERROR.
message (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.
Retrieves a project and all its associated resources.
See also: AWS API Documentation
Request Syntax
client.get_project(
environmentArn='string',
project='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
dict
Response Syntax
{
'project': 'string',
'resourceFilters': [
'string',
]
}
Response Structure
(dict) --
project (string) --
The name of the project.
resourceFilters (list) --
The filters that determine which resources are in scope.
(string) --
A resource filter that uses AWS Resource Explorer query syntax.
Gets messages for a chat session in chronological order.
See also: AWS API Documentation
Request Syntax
client.get_chat_messages(
environmentArn='string',
sessionId='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The identifier of the chat session.
integer
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.
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.
dict
Response Syntax
{
'messages': [
{
'author': 'user'|'agent',
'content': 'string',
'createdAt': datetime(2015, 1, 1),
'sequenceNumber': 123
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
messages (list) --
The list of chat messages in chronological order.
(dict) --
A single message in a chat session.
author (string) --
The principal that authored the message.
content (string) --
The message text content.
createdAt (datetime) --
The timestamp when the message was created.
sequenceNumber (integer) --
The position of this message in the session's sequence.
nextToken (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.
Deletes a project and all its associated resources.
See also: AWS API Documentation
Request Syntax
client.delete_project(
environmentArn='string',
project='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
dict
Response Syntax
{
'message': 'string'
}
Response Structure
(dict) --
message (string) --
A human-readable confirmation message describing the deletion result.
Lists all projects within a governance environment.
See also: AWS API Documentation
Request Syntax
client.list_projects(
environmentArn='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
integer
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.
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.
dict
Response Syntax
{
'projects': [
{
'project': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
projects (list) --
The list of projects.
(dict) --
Summary of a project.
project (string) --
The name of the project.
nextToken (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.
Retrieves a governance environment by ARN or domain. Provide exactly one of environmentArn or domain.
See also: AWS API Documentation
Request Syntax
client.get_environment(
lookup={
'environmentArn': 'string',
'domain': 'string'
}
)
dict
[REQUIRED]
The lookup criteria used to resolve the item.
environmentArn (string) --
Specifies lookup by environment ARN.
domain (string) --
Specifies lookup by domain prefix or UUID.
dict
Response Syntax
{
'environment': {
'environmentId': 'string',
'environmentName': 'string',
'environmentArn': 'string',
'description': 'string',
'identityStore': {
'applicationArn': 'string',
'instanceArn': 'string',
'region': 'string',
'identityCenterRole': 'string'
},
'domainPrefix': 'string',
'serviceRole': 'string',
'operatorRole': 'string',
'kmsKeyArn': 'string',
'status': 'CREATED',
'regions': [
'string',
],
'environmentScope': 'ORGANIZATION'|'SINGLE_ACCOUNT',
'organizationalUnitIds': [
'string',
],
'evidenceLocation': 'string',
'tags': [
{
'key': 'string',
'value': 'string'
},
],
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
environment (dict) --
The governance environment that was retrieved.
environmentId (string) --
The unique identifier of the environment.
environmentName (string) --
The name of the environment.
environmentArn (string) --
The ARN of this governance environment.
description (string) --
A description of the environment.
identityStore (dict) --
The identity store configuration.
applicationArn (string) --
The IAM Identity Center application ARN—created and managed by AWS Assurance.
instanceArn (string) --
The ARN of your IAM Identity Center instance, as provided at create or update time.
region (string) --
The AWS Region of the IAM Identity Center instance.
identityCenterRole (string) --
The IAM role assumed through Trusted Identity Propagation to issue temporary credentials for IAM Identity Center users.
domainPrefix (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.
serviceRole (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.
operatorRole (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.
kmsKeyArn (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.
status (string) --
The current lifecycle state of the environment.
regions (list) --
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.
(string) --
An AWS Region code, such as aa-example-3.
environmentScope (string) --
The set of AWS accounts this environment evaluates (read-only).
organizationalUnitIds (list) --
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.
(string) --
The ID of an organizational unit (OU) in AWS Organizations.
evidenceLocation (string) --
The evidence bucket location. Read-only. To configure evidence sources, use CreateEnvironmentConnection.
tags (list) --
The tags attached to the resource, as key-value pairs.
(dict) --
A key-value tag.
key (string) --
The tag key.
value (string) --
The tag value.
createdAt (datetime) --
The timestamp when the environment was created.
updatedAt (datetime) --
The timestamp when the environment was last updated.
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.
See also: AWS API Documentation
Request Syntax
client.get_resource_activities_query_results(
environmentArn='string',
project='string',
queryId='string',
nextToken='string',
maxResults=123
)
string
[REQUIRED]
The ARN of the environment that the query ran in.
string
[REQUIRED]
The project that the query ran in.
string
[REQUIRED]
The ID of the query, as returned by StartResourceActivitiesQuery.
string
The pagination token returned by a previous request for the same queryId. Use it to retrieve the next page of results.
integer
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.
dict
Response Syntax
{
'status': 'RUNNING'|'COMPLETE'|'FAILED'|'EXPIRED',
'entries': [
{
'actionDetail': {
'service': 'string',
'api': 'string',
'successCount': 123,
'failureCount': 123
},
'resourceDetail': {
'resourceType': 'string',
'arn': 'string',
'accessType': 'WRITE'|'READ',
'successCount': 123,
'failureCount': 123
},
'sessionDetail': {
'sessionId': 'string'
}
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
status (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.
entries (list) --
A page of query results. The response includes this field only when status is COMPLETE and the query found activity.
(dict) --
One query result. The field that's set shows how the result is grouped.
actionDetail (dict) --
The calls that the agent made to one API action.
service (string) --
The endpoint name of the AWS service, such as dynamodb.amazonaws.com.
api (string) --
The name of the API action, such as PutItem.
successCount (integer) --
The number of calls to the API action that succeeded.
failureCount (integer) --
The number of calls to the API action that failed.
resourceDetail (dict) --
The calls that the agent made to one resource.
resourceType (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.
arn (string) --
The ARN of the resource.
accessType (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.
successCount (integer) --
The number of calls to the resource that succeeded.
failureCount (integer) --
The number of calls to the resource that failed.
sessionDetail (dict) --
An agent session in the time range of the query.
sessionId (string) --
The ID of the session, as reported by Amazon Bedrock AgentCore Runtime.
nextToken (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.
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.
See also: AWS API Documentation
Request Syntax
client.delete_framework(
environmentArn='string',
framework='string',
frameworkVersion='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
dict
Response Syntax
{}
Response Structure
(dict) --
Returns the content of an evidence item.
See also: AWS API Documentation
Request Syntax
client.get_evidence_content(
environmentArn='string',
evidenceId='string',
evidenceVersion=123,
project='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of this governance environment.
string
[REQUIRED]
The unique identifier of the evidence item.
integer
The version of the evidence to get. To get the latest version, omit this parameter.
string
[REQUIRED]
The name of the project.
dict
Response Syntax
{
'content': b'bytes',
'contentType': 'string',
'title': 'string',
'checksum': 'string',
'version': 123
}
Response Structure
(dict) --
Output of GetEvidenceContent: the content of one evidence version.
content (bytes) --
The evidence file content.
contentType (string) --
The MIME type of the content.
title (string) --
The title of the evidence.
checksum (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.
version (integer) --
The version number of the evidence that the content belongs to.
Lists chat sessions for you in a governance environment.
See also: AWS API Documentation
Request Syntax
client.list_chat_sessions(
environmentArn='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
integer
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.
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.
dict
Response Syntax
{
'sessions': [
{
'sessionId': 'string',
'lastMessageAt': datetime(2015, 1, 1),
'sequenceNumber': 123
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
sessions (list) --
The list of chat session summaries.
(dict) --
Summary of a chat session in list results.
sessionId (string) --
The identifier of the chat session.
lastMessageAt (datetime) --
The timestamp of the most recent message in the session.
sequenceNumber (integer) --
The current sequence number for the session.
nextToken (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.
Creates a leaf control, which is a control with no child controls, in a custom framework.
See also: AWS API Documentation
Request Syntax
client.create_control(
environmentArn='string',
framework='string',
frameworkVersion='string',
controlId='string',
parentControlId='string',
title='string',
description='string',
requirements=[
{
'id': 'string',
'description': 'string'
},
],
displayOrder=123,
controlIntents=[
'string',
],
workflowType='automated-scan'|'document'|'hybrid'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The identifier of the parent control group.
string
[REQUIRED]
The display name for the control.
string
A description of the control.
list
The individual checks an assessment scores for this control. Assign each one an id that findings, assessment results, and remediation tasks reference.
(dict) --
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.
id (string) -- [REQUIRED]
The unique identifier of the requirement.
description (string) -- [REQUIRED]
A description of the requirement.
integer
The ordering key that determines the display sequence within the framework.
list
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.
(string) --
A technical control-intent identifier used to classify how a leaf control is evaluated.
string
The optional evaluation workflow type. When omitted and controlIntents are present, the service defaults this to automated-scan. Leaf controls only.
dict
Response Syntax
{}
Response Structure
(dict) --
Updates a governance environment.
See also: AWS API Documentation
Request Syntax
client.update_environment(
environmentArn='string',
description='string',
identityStore={
'config': {
'instanceArn': 'string',
'identityCenterRole': 'string'
},
'disabled': True|False
},
operatorRole='string',
kmsKeyArn='string',
regions=[
'string',
],
environmentScope='ORGANIZATION'|'SINGLE_ACCOUNT',
organizationalUnitIds={
'organizationalUnitIds': [
'string',
],
'cleared': True|False
}
)
string
[REQUIRED]
The ARN of this governance environment.
string
A description of the environment.
dict
The update to the identity store configuration. You can provide a new configuration or disable the identity store.
config (dict) --
The new identity store configuration to apply.
instanceArn (string) -- [REQUIRED]
The ARN of your IAM Identity Center instance.
identityCenterRole (string) -- [REQUIRED]
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.
disabled (boolean) --
Specifies whether to disable or remove identity store configuration.
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.
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.
list
The AWS Regions to evaluate across. Replaces existing list. Send empty list to revert to all generally available Regions in the partition.
(string) --
An AWS Region code, such as aa-example-3.
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.
dict
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.
organizationalUnitIds (list) --
The replacement list of organizational units. Accounts in nested organizational units under a listed organizational unit are included.
(string) --
The ID of an organizational unit (OU) in AWS Organizations.
cleared (boolean) --
Specifies whether to clear OU scoping and evaluate the entire organization.
dict
Response Syntax
{}
Response Structure
(dict) --
Modifies the content of an existing comment.
See also: AWS API Documentation
Request Syntax
client.update_comment(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
commentId='string',
content='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The unique identifier of the comment.
string
The replacement free-text content of the comment.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.accept_invitation(
environmentArn='string'
)
string
[REQUIRED]
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.
dict
Response Syntax
{
'status': 'PENDING'|'ACTIVE'|'REJECTED'|'REVOKED'|'EXPIRED'
}
Response Structure
(dict) --
status (string) --
The lifecycle state of the invitation. ACTIVE when the connection is live.
Removes tags from a resource.
See also: AWS API Documentation
Request Syntax
client.untag_resource(
resourceArn='string',
tagKeys=[
'string',
]
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
list
[REQUIRED]
The keys of the tags to remove from the resource.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
Deletes a permission set.
See also: AWS API Documentation
Request Syntax
client.delete_permission_set(
environmentArn='string',
permissionSetId='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The identifier of the permission set.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.list_assessment_outcomes(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
resourceIdentifier='string',
aggregationLevel='FRAMEWORK'|'CONTROL',
startTime=datetime(2015, 1, 1),
endTime=datetime(2015, 1, 1),
period='ONE_HOUR'|'ONE_DAY',
statistic='LAST'|'MAX'|'MIN'|'AVG',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of the environment.
string
[REQUIRED]
The project the request is scoped to.
string
[REQUIRED]
The name of the framework.
string
[REQUIRED]
The version of the framework.
string
Narrows the series to one control's score over time. Omit for the whole framework's score over time.
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.
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.
datetime
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.
datetime
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.
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.
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.
integer
The maximum number of points to return on one page. If you omit it, the operation uses its default page size.
string
The token for the next page of results, from a previous response.
dict
Response Syntax
{
'assessmentOutcomes': [
{
'timestamp': datetime(2015, 1, 1),
'outcomes': [
{
'controlId': 'string',
'outcomePercentage': ...
},
]
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
Output of ListAssessmentOutcomes.
assessmentOutcomes (list) --
The points in the window, newest first. Buckets that have no score aren't included.
(dict) --
The compliance scores for one time bucket.
timestamp (datetime) --
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.
outcomes (list) --
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.
(dict) --
A compliance score in a time bucket.
controlId (string) --
The control this score is for. Absent at FRAMEWORK level, where the score spans the framework rather than any one control.
outcomePercentage (float) --
The compliance score, from 0 to 100.
nextToken (string) --
The token to pass to get the next page of results. Absent on the last page.
Lists the frameworks enabled in a governance environment, optionally narrowed by filters.
See also: AWS API Documentation
Request Syntax
client.list_enabled_frameworks(
environmentArn='string',
project='string',
filters=[
{
'name': 'framework'|'framework-version'|'project'|'type',
'values': [
'string',
]
},
],
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
The project to list enabled frameworks for. Each request is scoped to one project.
list
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.
(dict) --
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.
name (string) -- [REQUIRED]
The enabled-framework attribute to match on.
values (list) -- [REQUIRED]
The values to match the attribute against, compared for exact equality.
(string) --
A value to match against a filter attribute. The match is exact. Wildcards aren't supported.
integer
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.
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.
dict
Response Syntax
{
'enabledFrameworks': [
{
'framework': 'string',
'frameworkVersion': 'string',
'assessmentMode': 'SCHEDULED'|'CONTINUOUS',
'project': 'string',
'type': 'MANAGED'|'CUSTOM',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
enabledFrameworks (list) --
The compliance frameworks that are enabled.
(dict) --
Summary of an enabled framework record.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
assessmentMode (string) --
The way that assessments run for the framework. This field is empty if assessment modes aren't available for your account.
project (string) --
The name of the project.
type (string) --
The type of the compliance framework.
createdAt (datetime) --
The timestamp when the framework was enabled.
updatedAt (datetime) --
The timestamp when the enablement was last updated.
nextToken (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.
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.
See also: AWS API Documentation
Request Syntax
client.batch_get_task(
environmentArn='string',
project='string',
keys=[
{
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'taskId': 'string'
},
]
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
list
[REQUIRED]
The tasks to retrieve, 1 to 100 per request. Keys must be unique within a request.
(dict) --
Identifying key for a single task in a batch request (within the environment and project named in the request).
framework (string) -- [REQUIRED]
The name of the compliance framework.
frameworkVersion (string) -- [REQUIRED]
The version of the compliance framework.
controlId (string) -- [REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
taskId (string) -- [REQUIRED]
The identifier of the task.
dict
Response Syntax
{
'tasks': [
{
'environment': 'string',
'project': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'taskId': 'string',
'title': 'string',
'description': 'string',
'status': 'OPEN'|'PENDING'|'COMPLETED'|'CANCELLED',
'createdBy': 'string',
'dueAt': datetime(2015, 1, 1),
'priority': 'HIGH'|'MEDIUM'|'LOW',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
],
'errors': [
{
'key': {
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'taskId': 'string'
},
'code': 'string',
'message': 'string'
},
]
}
Response Structure
(dict) --
tasks (list) --
The list of tasks.
(dict) --
Full task structure returned in responses.
environment (string) --
The name of the governance environment the task belongs to.
project (string) --
The name of the project.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
taskId (string) --
The identifier of the task.
title (string) --
The human-readable title of the task.
description (string) --
A description of the task.
status (string) --
The current lifecycle state of the task.
createdBy (string) --
The identity of the principal who created the task.
dueAt (datetime) --
The deadline for the task.
priority (string) --
The relative priority of the item.
createdAt (datetime) --
The timestamp when the task was created.
updatedAt (datetime) --
The timestamp when the task was last updated.
errors (list) --
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.
(dict) --
A requested task that the operation could not return, along with the reason.
key (dict) --
The identifier of the task that the operation could not retrieve.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
taskId (string) --
The identifier of the task.
code (string) --
The error code. Known values: NOT_FOUND, ACCESS_DENIED, THROTTLED, INTERNAL_ERROR.
message (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.
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.
See also: AWS API Documentation
Request Syntax
client.list_discovered_resources(
environmentArn='string',
project='string',
accountId='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
The name of the project.
string
The AWS account whose resources the operation returns. When set, the operation returns only resources owned by this account.
integer
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.
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.
dict
Response Syntax
{
'resourceIdentifiers': [
{
'resourceIdentifier': 'string',
'resourceType': 'string',
'accountId': 'string',
'region': 'string'
},
],
'coverage': 'COMPLETE'|'PARTIAL',
'nextToken': 'string'
}
Response Structure
(dict) --
resourceIdentifiers (list) --
The resources for this page of results.
(dict) --
A resource that is in scope for an environment, project, or control, as returned by ListDiscoveredResources and ListControlResources.
resourceIdentifier (string) --
The identifier (typically the ARN) of the resource.
resourceType (string) --
The resource type, in lowercase service:type form (for example, s3:bucket). This is the form that resourcetype: filters use.
accountId (string) --
The AWS account the resource belongs to.
region (string) --
The AWS Region that the resource is in. The value is global for global resources such as IAM.
coverage (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 (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.
Deletes a specific comment by its identifying fields.
See also: AWS API Documentation
Request Syntax
client.delete_comment(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
commentId='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The unique identifier of the comment.
dict
Response Syntax
{}
Response Structure
(dict) --
Publishes a custom framework, transitioning its status from PENDING to ACTIVE. You can enable only ACTIVE frameworks on an environment.
See also: AWS API Documentation
Request Syntax
client.publish_framework(
environmentArn='string',
framework='string',
frameworkVersion='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
dict
Response Syntax
{
'framework': {
'type': 'MANAGED'|'CUSTOM',
'frameworkName': 'string',
'environment': 'string',
'frameworkVersion': 'string',
'title': 'string',
'description': 'string',
'status': 'ACTIVE'|'PENDING'|'PRE_PROD',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
framework (dict) --
The name of the compliance framework.
type (string) --
The type of the compliance framework.
frameworkName (string) --
The name of the framework. Names that begin with AWS: are reserved for AWS managed frameworks.
environment (string) --
The governance environment the framework belongs to. Present for CUSTOM frameworks.
frameworkVersion (string) --
The version that you assigned to the framework.
title (string) --
The human-readable title of the framework.
description (string) --
The optional description of the framework.
status (string) --
The lifecycle status of the framework.
createdAt (datetime) --
The timestamp when the framework was created.
updatedAt (datetime) --
The timestamp when the framework was last updated.
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.
See also: AWS API Documentation
Request Syntax
client.batch_get_comment(
environmentArn='string',
project='string',
keys=[
{
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'commentId': 'string'
},
]
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
list
[REQUIRED]
The comments to retrieve, 1 to 100 per request. Keys must be unique within a request.
(dict) --
Identifying key for a single comment in a batch request (within the environment and project named in the request).
framework (string) -- [REQUIRED]
The name of the compliance framework.
frameworkVersion (string) -- [REQUIRED]
The version of the compliance framework.
controlId (string) -- [REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
commentId (string) -- [REQUIRED]
The unique identifier of the comment.
dict
Response Syntax
{
'comments': [
{
'environment': 'string',
'project': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'taskId': 'string',
'commentId': 'string',
'content': 'string',
'addedBy': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
],
'errors': [
{
'key': {
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'commentId': 'string'
},
'code': 'string',
'message': 'string'
},
]
}
Response Structure
(dict) --
comments (list) --
The list of comments.
(dict) --
Full comment structure returned in responses.
environment (string) --
The name of the governance environment the comment belongs to.
project (string) --
The name of the project.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
taskId (string) --
The identifier of the task.
commentId (string) --
The unique identifier of the comment.
content (string) --
The free-text content of the comment.
addedBy (string) --
The identity of the principal who added the comment.
createdAt (datetime) --
The timestamp when the comment was created.
updatedAt (datetime) --
The timestamp when the comment was last updated.
errors (list) --
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.
(dict) --
A requested comment that the operation could not return, along with the reason.
key (dict) --
The identifier of the comment that the operation could not retrieve.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
commentId (string) --
The unique identifier of the comment.
code (string) --
The error code. Known values: NOT_FOUND, ACCESS_DENIED, THROTTLED, INTERNAL_ERROR.
message (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.
Retrieves a single assessment.
See also: AWS API Documentation
Request Syntax
client.get_assessment(
environmentArn='string',
framework='string',
frameworkVersion='string',
controlId='string',
project='string',
assessmentId='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The identifier of the assessment.
dict
Response Syntax
{
'assessmentId': 'string',
'environment': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'project': 'string',
'status': 'SCHEDULED'|'IN_PROGRESS'|'NEEDS_ATTENTION'|'FINISHED'|'NOT_APPLICABLE'|'ERROR'|'USER_ERROR',
'result': 'string',
'outcomePercentage': ...,
'context': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'organizationSummary': {
'totalAccounts': 123,
'evaluatedAccounts': 123,
'passedCount': 123,
'failedCount': 123,
'partiallyPassedCount': 123,
'notApplicableCount': 123,
'failedRunCount': 123,
'lowestScoringAccounts': [
{
'accountId': 'string',
'outcomePercentage': ...,
'findingsSummary': 'string'
},
]
},
'trigger': 'SCHEDULE'|'DETECTED_CHANGE'|'USER_ACTION'
}
Response Structure
(dict) --
assessmentId (string) --
The identifier of the assessment.
environment (string) --
The name of the governance environment the assessment belongs to.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
project (string) --
The name of the project.
status (string) --
The canonical state of the assessment.
result (string) --
The detailed result of the assessment.
outcomePercentage (float) --
The numeric percentage score of the assessment outcome.
context (string) --
The optional user-provided context or guidance for the assessment evaluation.
createdAt (datetime) --
The timestamp when the assessment was created.
updatedAt (datetime) --
The timestamp when the assessment was last updated.
organizationSummary (dict) --
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.
totalAccounts (integer) --
The total number of member accounts included in the assessment.
evaluatedAccounts (integer) --
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.
passedCount (integer) --
The accounts whose score was exactly 100.
failedCount (integer) --
The accounts whose score was exactly 0.
partiallyPassedCount (integer) --
The accounts scoring strictly between 0 and 100.
notApplicableCount (integer) --
The accounts excluded from the score because the control did not apply (no in-scope resources).
failedRunCount (integer) --
The accounts for which the assessment run failed before producing an outcome. These accounts are excluded from the score.
lowestScoringAccounts (list) --
The lowest-scoring accounts, ascending by score, at most 5.
(dict) --
The scored outcome of one member account in an organization assessment. Use it to find the accounts that need remediation.
accountId (string) --
The AWS account the outcome belongs to.
outcomePercentage (float) --
The per-account compliance score.
findingsSummary (string) --
A summary of the findings.
trigger (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.
Enables a compliance framework for a project in a governance environment. AWS Assurance then assesses the project's resources against the framework's controls.
See also: AWS API Documentation
Request Syntax
client.enable_framework(
environmentArn='string',
framework='string',
project='string',
frameworkVersion='string',
assessmentMode='SCHEDULED'|'CONTINUOUS'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The name of the project.
string
The version of the compliance framework.
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.
dict
Response Syntax
{
'environment': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'project': 'string',
'type': 'MANAGED'|'CUSTOM',
'assessmentMode': 'SCHEDULED'|'CONTINUOUS'
}
Response Structure
(dict) --
environment (string) --
The name of the governance environment the framework belongs to.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
project (string) --
The name of the project.
type (string) --
The type of the compliance framework.
assessmentMode (string) --
The way that assessments run for the framework. This field is empty if assessment modes aren't available for your account.
Revokes a permission set assignment.
See also: AWS API Documentation
Request Syntax
client.revoke_permission_set(
environmentArn='string',
assignmentId='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The unique identifier of the permission set assignment.
dict
Response Syntax
{}
Response Structure
(dict) --
Lists assessment journal records, paginated.
See also: AWS API Documentation
Request Syntax
client.list_assessment_journal_records(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
assessmentId='string',
nextToken='string',
maxResults=123
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The identifier of the assessment.
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.
integer
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.
dict
Response Syntax
{
'records': [
{
'recordId': 'string',
'recordType': 'phase_start'|'narrative'|'thinking'|'tool_start'|'tool_result'|'executed_scan_plan'|'error',
'phase': 'gathering_context'|'evaluating'|'auditor'|'finalising'|'needs_input'|'failed',
'createdAt': datetime(2015, 1, 1),
'content': 'string',
'invocationId': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
records (list) --
The list of assessment journal records.
(dict) --
A single journal or audit record produced during an assessment run.
recordId (string) --
The unique identifier of the journal record.
recordType (string) --
The kind of journal record.
phase (string) --
The assessment phase the record belongs to.
createdAt (datetime) --
The timestamp when the record was created.
content (string) --
The payload of the journal record.
invocationId (string) --
The identifier of the agent invocation that produced the record.
nextToken (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.
Updates a control group.
See also: AWS API Documentation
Request Syntax
client.update_control_group(
environmentArn='string',
framework='string',
frameworkVersion='string',
controlId='string',
title='string',
description='string',
displayOrder=123
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
The new display name for the control group. Omit to leave it unchanged.
string
The new description for the control group. Omit to leave it unchanged.
integer
The ordering key that determines the display sequence within the framework.
dict
Response Syntax
{}
Response Structure
(dict) --
Updates an existing project. Omit any field to leave it unchanged.
See also: AWS API Documentation
Request Syntax
client.update_project(
environmentArn='string',
project='string',
resourceFilters=[
'string',
]
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
list
The filters that determine which resources are in scope.
(string) --
A resource filter that uses AWS Resource Explorer query syntax.
dict
Response Syntax
{
'project': 'string',
'resourceFilters': [
'string',
]
}
Response Structure
(dict) --
project (string) --
The name of the project.
resourceFilters (list) --
The filters that determine which resources are in scope.
(string) --
A resource filter that uses AWS Resource Explorer query syntax.
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.
See also: AWS API Documentation
Request Syntax
client.list_environments(
maxResults=123,
nextToken='string'
)
integer
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.
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.
dict
Response Syntax
{
'environments': [
{
'environmentId': 'string',
'environmentName': 'string',
'environmentArn': 'string',
'status': 'CREATED'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
environments (list) --
The list of environments.
(dict) --
Summary of a governance environment, containing only limited information.
environmentId (string) --
The unique identifier of the environment.
environmentName (string) --
The name of the environment.
environmentArn (string) --
The ARN of this governance environment.
status (string) --
The current lifecycle state of the environment.
nextToken (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.
Deletes a custom control. The operation also removes any associated evaluation metadata (control intents and workflow type).
See also: AWS API Documentation
Request Syntax
client.delete_control(
environmentArn='string',
framework='string',
frameworkVersion='string',
controlId='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
dict
Response Syntax
{}
Response Structure
(dict) --
Lists the leaf controls within a single control group in a framework version. Supports pagination through maxResults and nextToken.
See also: AWS API Documentation
Request Syntax
client.list_controls(
environmentArn='string',
framework='string',
frameworkVersion='string',
controlGroupId='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control group whose controls the operation returns.
integer
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.
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.
dict
Response Syntax
{
'controls': [
{
'type': 'MANAGED'|'CUSTOM',
'controlId': 'string',
'title': 'string',
'description': 'string',
'workflowType': 'automated-scan'|'document'|'hybrid',
'status': 'ACTIVE'|'PENDING'|'PRE_PROD'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
controls (list) --
The leaf controls in the requested control group, for this page of results.
(dict) --
A summary of a leaf control returned by ListControls, including identity and display attributes. To retrieve requirements and control intents, use GetControl or BatchGetControl.
type (string) --
The type of the control.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
title (string) --
The human-readable title of the control.
description (string) --
A description of the control.
workflowType (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.
status (string) --
The lifecycle status of the control.
nextToken (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.
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.
See also: AWS API Documentation
Request Syntax
client.get_assessment_report_content(
environmentArn='string',
project='string',
exportId='string'
)
string
[REQUIRED]
The ARN of the environment.
string
[REQUIRED]
The project the export belongs to.
string
[REQUIRED]
The identifier of an export that has the status COMPLETED.
dict
Response Syntax
{
'content': b'bytes',
'contentType': 'application/pdf'
}
Response Structure
(dict) --
Output of GetAssessmentReportContent: the prepared report.
content (bytes) --
The report file.
contentType (string) --
The media type of the report. The only value is PDF.
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.
See also: AWS API Documentation
Request Syntax
client.create_environment_connection(
environmentArn='string',
providerConfig={
's3': {
'sourceUri': 'string',
'expectedBucketOwner': 'string'
},
'github': {
'account': 'string'
},
'sharepoint': {
'tenantId': 'string',
'sites': [
'string',
]
}
}
)
string
[REQUIRED]
The ARN of this governance environment.
dict
[REQUIRED]
The evidence source to connect. Set exactly one member.
s3 (dict) --
An Amazon S3 bucket, or a prefix within a bucket.
sourceUri (string) -- [REQUIRED]
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.
expectedBucketOwner (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.
github (dict) --
A GitHub organization or user account.
account (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.
sharepoint (dict) --
A SharePoint Online tenant and the sites to read.
tenantId (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.
sites (list) -- [REQUIRED]
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.
(string) --
The URL of a SharePoint site, such as https://contoso.sharepoint.com/sites/finance.
dict
Response Syntax
{
'status': 'ACTIVE'|'PENDING',
'authorizationUrl': 'string'
}
Response Structure
(dict) --
status (string) --
The status of the connection. To get the other attributes of the connection, call ListEnvironmentConnections.
authorizationUrl (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.
Deletes a control group. The group must be empty (no child controls) before you delete it.
See also: AWS API Documentation
Request Syntax
client.delete_control_group(
environmentArn='string',
framework='string',
frameworkVersion='string',
controlId='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
dict
Response Syntax
{}
Response Structure
(dict) --
Updates evidence metadata and manages control links (add or remove) and re-analysis without creating a new evidence version.
See also: AWS API Documentation
Request Syntax
client.update_evidence(
environmentArn='string',
project='string',
evidenceId='string',
title='string',
description='string',
addControlReferenceLinks=[
{
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string'
},
],
removeControlReferenceLinks=[
{
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string'
},
],
linkMode='AUTO'|'MANUAL'|'DISABLED'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The unique identifier of the evidence item.
string
The optional new title.
string
The optional new description.
list
The control links to add.
(dict) --
Reference to a specific control within a framework version.
framework (string) -- [REQUIRED]
The framework identifier.
frameworkVersion (string) -- [REQUIRED]
The framework version.
controlId (string) -- [REQUIRED]
The control identifier within the framework.
list
The control links to remove. AWS Assurance doesn't suggest removed links again.
(dict) --
Reference to a specific control within a framework version.
framework (string) -- [REQUIRED]
The framework identifier.
frameworkVersion (string) -- [REQUIRED]
The framework version.
controlId (string) -- [REQUIRED]
The control identifier within the framework.
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.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.delete_invitation(
environmentArn='string',
inviteeAccountId='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The invited or connected account whose invitation or connection to delete.
dict
Response Syntax
{}
Response Structure
(dict) --
Lists the invitations that you extended from an environment you own. Supports pagination and an optional status filter.
See also: AWS API Documentation
Request Syntax
client.list_outbound_invitations(
environmentArn='string',
status='PENDING'|'ACTIVE'|'REJECTED'|'REVOKED'|'EXPIRED',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
The lifecycle state to filter results by. When specified, the operation returns only invitations in this state.
integer
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.
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.
dict
Response Syntax
{
'invitationSummaries': [
{
'inviteeAccountId': 'string',
'status': 'PENDING'|'ACTIVE'|'REJECTED'|'REVOKED'|'EXPIRED',
'expiresAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
invitationSummaries (list) --
The invitations extended from the environment, for this page of results.
(dict) --
A summary view of an invitation returned in list responses. Additional fields (such as roleArn and updatedAt) are available through GetInvitation.
inviteeAccountId (string) --
The ID of the invited AWS account.
status (string) --
The current lifecycle state of the invitation.
expiresAt (datetime) --
The time when the invitation expires if not accepted. Present only while the invitation is PENDING.
nextToken (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.
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.
See also: AWS API Documentation
Request Syntax
client.update_framework(
environmentArn='string',
framework='string',
frameworkVersion='string',
title='string',
description='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
The human-readable title of the framework.
string
A description of the framework.
dict
Response Syntax
{
'framework': {
'type': 'MANAGED'|'CUSTOM',
'frameworkName': 'string',
'environment': 'string',
'frameworkVersion': 'string',
'title': 'string',
'description': 'string',
'status': 'ACTIVE'|'PENDING'|'PRE_PROD',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
framework (dict) --
The name of the compliance framework.
type (string) --
The type of the compliance framework.
frameworkName (string) --
The name of the framework. Names that begin with AWS: are reserved for AWS managed frameworks.
environment (string) --
The governance environment the framework belongs to. Present for CUSTOM frameworks.
frameworkVersion (string) --
The version that you assigned to the framework.
title (string) --
The human-readable title of the framework.
description (string) --
The optional description of the framework.
status (string) --
The lifecycle status of the framework.
createdAt (datetime) --
The timestamp when the framework was created.
updatedAt (datetime) --
The timestamp when the framework was last updated.
Gets the status of an assessment report export.
See also: AWS API Documentation
Request Syntax
client.get_assessment_report_export(
environmentArn='string',
project='string',
exportId='string'
)
string
[REQUIRED]
The ARN of the environment.
string
[REQUIRED]
The project the export belongs to.
string
[REQUIRED]
The identifier of the export.
dict
Response Syntax
{
'exportId': 'string',
'status': 'QUEUED'|'IN_PROGRESS'|'COMPLETED'|'FAILED',
'framework': 'string',
'frameworkVersion': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'controlIds': [
'string',
],
'failureReason': 'SYSTEM_ERROR'|'ENCRYPTED_CONTENT_UNREADABLE',
'failureMessage': 'string'
}
Response Structure
(dict) --
Output of GetAssessmentReportExport: the state of one export.
exportId (string) --
The identifier of the export.
status (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.
framework (string) --
The name of the framework the report covers.
frameworkVersion (string) --
The version of the framework.
createdAt (datetime) --
The time when the export started.
updatedAt (datetime) --
The time when the export status last changed.
controlIds (list) --
The control that the report covers. This field is absent when the report covers the whole framework.
(string) --
The unique identifier of the control.
failureReason (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.
failureMessage (string) --
A description of the failure. This field is present only when status is FAILED.
Retrieves metadata for an evidence item.
See also: AWS API Documentation
Request Syntax
client.get_evidence(
environmentArn='string',
evidenceId='string',
evidenceVersion=123,
project='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The unique identifier of the evidence item.
integer
Specifies the version. Omit to get the latest version.
string
[REQUIRED]
The name of the project.
dict
Response Syntax
{
'evidenceId': 'string',
'version': 123,
'title': 'string',
'description': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'status': 'VALID'|'SCANNING'|'QUARANTINED'|'SCAN_FAILED'|'NOT_AUTO_ANALYZED'|'VALID_AUTO_ANALYZED',
'checksum': 'string',
'reference': 'string',
'linkedControls': [
{
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'linkSource': 'AUTO'|'MANUAL'
},
],
'uploadedBy': 'string',
'linkMode': 'AUTO'|'MANUAL'|'DISABLED',
'purpose': 'CONTROL_EVIDENCE'|'SCAN_EVIDENCE'|'FRAMEWORK_SOURCE',
'lastAutoAnalysisStartedAt': datetime(2015, 1, 1)
}
Response Structure
(dict) --
evidenceId (string) --
The unique identifier of the evidence item.
version (integer) --
The version number of the evidence.
title (string) --
The human-readable title of the evidence.
description (string) --
The optional description of the evidence.
createdAt (datetime) --
The timestamp when the evidence was created.
updatedAt (datetime) --
The timestamp when the evidence was last updated.
status (string) --
The lifecycle status of the evidence.
checksum (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.
reference (string) --
The external reference URI if this is reference-based evidence.
linkedControls (list) --
The controls this evidence is linked to.
(dict) --
A control that an evidence item is linked to, and how the link was created.
framework (string) --
The framework identifier.
frameworkVersion (string) --
The framework version.
controlId (string) --
The control identifier within the framework.
linkSource (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.
uploadedBy (string) --
The principal that supplied this evidence.
linkMode (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.
purpose (string) --
What the evidence is for. AWS Assurance sets the purpose when you add the evidence.
lastAutoAnalysisStartedAt (datetime) --
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.
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.
See also: AWS API Documentation
Request Syntax
client.get_invitation(
environmentArn='string',
inviteeAccountId='string'
)
string
[REQUIRED]
The ARN of the environment the invitation is for.
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.
dict
Response Syntax
{
'environmentArn': 'string',
'inviteeAccountId': 'string',
'status': 'PENDING'|'ACTIVE'|'REJECTED'|'REVOKED'|'EXPIRED',
'roleArn': 'string',
'createdAt': datetime(2015, 1, 1),
'expiresAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
Response Structure
(dict) --
environmentArn (string) --
The ARN of the environment that extended the invitation to you. Use this value to identify the environment or owner account inviting you.
inviteeAccountId (string) --
The ID of the invited AWS account.
status (string) --
The current lifecycle state of the invitation.
roleArn (string) --
The ARN of the role that AWS Assurance assumes in the invitee account. Present only when status is ACTIVE.
createdAt (datetime) --
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.
expiresAt (datetime) --
The time when the invitation expires if not accepted.
updatedAt (datetime) --
The time when the invitation last changed state (accept, reject, or revoke).
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.
See also: AWS API Documentation
Request Syntax
client.create_invitation(
environmentArn='string',
inviteeAccountId='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The ID of the invited AWS account.
dict
Response Syntax
{
'status': 'PENDING'|'ACTIVE'|'REJECTED'|'REVOKED'|'EXPIRED',
'expiresAt': datetime(2015, 1, 1)
}
Response Structure
(dict) --
status (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.
expiresAt (datetime) --
The time when the invitation expires if not accepted.
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.
See also: AWS API Documentation
Request Syntax
client.get_control_group(
environmentArn='string',
framework='string',
controlId='string',
frameworkVersion='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The version of the compliance framework.
dict
Response Syntax
{
'controlGroup': {
'type': 'MANAGED'|'CUSTOM',
'framework': 'string',
'controlId': 'string',
'frameworkVersion': 'string',
'title': 'string',
'description': 'string',
'status': 'ACTIVE'|'PENDING'|'PRE_PROD'
}
}
Response Structure
(dict) --
controlGroup (dict) --
The control group.
type (string) --
The type of the control group.
framework (string) --
The name of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
frameworkVersion (string) --
The version of the compliance framework.
title (string) --
The human-readable title of the control group.
description (string) --
A description of the control group.
status (string) --
The lifecycle status of the control group.
Deletes a governance environment.
See also: AWS API Documentation
Request Syntax
client.delete_environment(
environmentArn='string'
)
string
[REQUIRED]
The ARN of this governance environment.
dict
Response Syntax
{}
Response Structure
(dict) --
Creates a control group within a custom framework.
See also: AWS API Documentation
Request Syntax
client.create_control_group(
environmentArn='string',
framework='string',
frameworkVersion='string',
controlId='string',
title='string',
description='string',
displayOrder=123
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control group ID (for example, "A.1").
string
[REQUIRED]
The display name for the control group.
string
A description of the control group.
integer
The ordering key that determines the display sequence within the framework.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.create_environment(
environmentName='string',
description='string',
domainPrefix='string',
operatorRole='string',
identityStore={
'instanceArn': 'string',
'identityCenterRole': 'string'
},
kmsKeyArn='string',
regions=[
'string',
],
environmentScope='ORGANIZATION'|'SINGLE_ACCOUNT',
organizationalUnitIds=[
'string',
],
tags=[
{
'key': 'string',
'value': 'string'
},
]
)
string
[REQUIRED]
The name of the environment.
string
A description of the environment.
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.
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.
dict
The identity store configuration.
instanceArn (string) -- [REQUIRED]
The ARN of your IAM Identity Center instance.
identityCenterRole (string) -- [REQUIRED]
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.
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.
list
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.
(string) --
An AWS Region code, such as aa-example-3.
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.
list
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.
(string) --
The ID of an organizational unit (OU) in AWS Organizations.
list
The tags attached to the resource, as key-value pairs.
(dict) --
A key-value tag.
key (string) -- [REQUIRED]
The tag key.
value (string) -- [REQUIRED]
The tag value.
dict
Response Syntax
{
'environmentArn': 'string'
}
Response Structure
(dict) --
environmentArn (string) --
The ARN of the newly created governance environment.
Updates an existing permission set. Omitted fields are left unchanged. Returns no content; retrieve the updated attributes with GetPermissionSet.
See also: AWS API Documentation
Request Syntax
client.update_permission_set(
environmentArn='string',
permissionSetId='string',
name='string',
description='string',
permissions=[
'string',
]
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The identifier of the permission set.
string
The name of the permission set.
string
A description of the permission set.
list
The permissions granted by the permission set.
(string) --
A permission, such as manage_projects or project:view.
dict
Response Syntax
{}
Response Structure
(dict) --
Lists tags for a resource.
See also: AWS API Documentation
Request Syntax
client.list_tags_for_resource(
resourceArn='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
dict
Response Syntax
{
'tags': [
{
'key': 'string',
'value': 'string'
},
]
}
Response Structure
(dict) --
tags (list) --
The tags attached to the resource, as key-value pairs.
(dict) --
A key-value tag.
key (string) --
The tag key.
value (string) --
The tag value.
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.
See also: AWS API Documentation
Request Syntax
client.put_evidence(
environmentArn='string',
content=b'bytes',
title='string',
description='string',
evidenceId='string',
contentMIMEType='string',
project='string',
reference='string',
connectionId='string',
controlReferences=[
{
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string'
},
],
linkMode='AUTO'|'MANUAL'|'DISABLED',
purpose='CONTROL_EVIDENCE'|'SCAN_EVIDENCE'|'FRAMEWORK_SOURCE'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of this governance environment.
bytes
The file content. Required for a direct upload. You can't specify both content and reference.
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.
string
The optional description of the evidence.
string
The ID of existing evidence. Specify it to add a new version of that evidence. Omit it to create new evidence.
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.
string
[REQUIRED]
Project scope for the evidence.
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.
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.
list
The controls to link the evidence to when you add it. You can specify control links only when purpose is CONTROL_EVIDENCE.
(dict) --
Reference to a specific control within a framework version.
framework (string) -- [REQUIRED]
The framework identifier.
frameworkVersion (string) -- [REQUIRED]
The framework version.
controlId (string) -- [REQUIRED]
The control identifier within the framework.
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.
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.
dict
Response Syntax
{
'evidenceId': 'string',
'version': 123
}
Response Structure
(dict) --
Output of PutEvidence: the evidence item and its version.
evidenceId (string) --
The unique identifier of the evidence item.
version (integer) --
The version number of the evidence.
Begins a new assessment for a control or framework.
See also: AWS API Documentation
Request Syntax
client.start_assessment(
environmentArn='string',
framework='string',
frameworkVersion='string',
controlId='string',
project='string',
context='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The name of the project.
string
The optional user-provided context or guidance for the assessment evaluation.
dict
Response Syntax
{
'assessmentId': 'string'
}
Response Structure
(dict) --
assessmentId (string) --
The identifier of the newly started assessment.
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.
See also: AWS API Documentation
Request Syntax
client.list_connection_items(
environmentArn='string',
connectionId='string',
providerConfig={
's3': {
'sourceUri': 'string'
},
'github': {
'account': 'string'
},
'sharepoint': {
'tenantId': 'string'
}
},
parentId='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of this governance environment.
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.
dict
The connection to browse, identified by what it connects to.
s3 (dict) --
An Amazon S3 connection, identified by its source URI.
sourceUri (string) -- [REQUIRED]
The Amazon S3 URI of the connection. To find it, call ListEnvironmentConnections and read s3.sourceUri.
github (dict) --
The account of a GitHub connection.
account (string) -- [REQUIRED]
The name of the GitHub organization or user account. This is the github.account value in ListEnvironmentConnections.
sharepoint (dict) --
The tenant of a SharePoint connection.
tenantId (string) -- [REQUIRED]
The ID of the Microsoft Entra tenant. This is the sharepoint.tenantId value in ListEnvironmentConnections.
string
The ID of the item whose contents you want to list. To list the top level, omit this parameter.
integer
The maximum number of items to return on one page. If you omit it, the operation uses its default page size.
string
The token for the next page of results, from a previous response.
dict
Response Syntax
{
'items': [
{
'id': 'string',
'kind': 'REPOSITORY'|'SITE'|'LIBRARY'|'FOLDER'|'FILE',
'name': 'string',
'url': 'string',
'sizeBytes': 123,
'updatedAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
items (list) --
The items at the requested level.
(dict) --
An item that a connection can access, such as a folder or a file.
id (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 (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 (string) --
The display name of the item.
url (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.
sizeBytes (integer) --
The size of the item in bytes. This field is present for a FILE.
updatedAt (datetime) --
The time when the provider last recorded a change to the item. This field is present for a FILE.
nextToken (string) --
The token to pass to get the next page of results. Absent on the last page.
Removes an evidence item.
See also: AWS API Documentation
Request Syntax
client.delete_evidence(
environmentArn='string',
evidenceId='string',
project='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The unique identifier of the evidence item.
string
[REQUIRED]
The name of the project.
dict
Response Syntax
{}
Response Structure
(dict) --
Updates an existing task.
See also: AWS API Documentation
Request Syntax
client.update_task(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
assessmentId='string',
taskId='string',
status='OPEN'|'PENDING'|'COMPLETED'|'CANCELLED',
dueAt=datetime(2015, 1, 1),
priority='HIGH'|'MEDIUM'|'LOW'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
The identifier of the assessment.
string
[REQUIRED]
The identifier of the task.
string
The lifecycle state to set on the task.
datetime
The new deadline for the task.
string
The relative priority of the item.
dict
Response Syntax
{
'task': {
'environment': 'string',
'project': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'taskId': 'string',
'title': 'string',
'description': 'string',
'status': 'OPEN'|'PENDING'|'COMPLETED'|'CANCELLED',
'createdBy': 'string',
'dueAt': datetime(2015, 1, 1),
'priority': 'HIGH'|'MEDIUM'|'LOW',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
task (dict) --
The remediation task after the update, including its status, priority and due date.
environment (string) --
The name of the governance environment the task belongs to.
project (string) --
The name of the project.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
taskId (string) --
The identifier of the task.
title (string) --
The human-readable title of the task.
description (string) --
A description of the task.
status (string) --
The current lifecycle state of the task.
createdBy (string) --
The identity of the principal who created the task.
dueAt (datetime) --
The deadline for the task.
priority (string) --
The relative priority of the item.
createdAt (datetime) --
The timestamp when the task was created.
updatedAt (datetime) --
The timestamp when the task was last updated.
Assigns a permission set to a principal with optional scopes.
See also: AWS API Documentation
Request Syntax
client.assign_permission_set(
environmentArn='string',
principalType='USER'|'GROUP',
principalId='string',
permissionSetId='string',
scopes=[
{
'type': 'ENVIRONMENT'|'PROJECT',
'id': 'string'
},
]
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The type of principal the permission set is assigned to.
string
[REQUIRED]
The unique identifier of the principal the permission set is assigned to.
string
[REQUIRED]
The identifier of the permission set.
list
The scopes the assignment applies to.
(dict) --
A scope entry for permission set assignment.
type (string) -- [REQUIRED]
The type of the scope entry. Only PROJECT is accepted; to assign across the whole environment, omit scopes rather than sending ENVIRONMENT.
id (string) -- [REQUIRED]
The identifier of the scoped resource.
dict
Response Syntax
{
'assignmentIds': [
'string',
]
}
Response Structure
(dict) --
assignmentIds (list) --
The unique identifiers of the permission set assignments.
(string) --
The unique identifier of the permission set assignment.
Lists the connections for a governance environment. To return only some connections, specify filters.
See also: AWS API Documentation
Request Syntax
client.list_environment_connections(
environmentArn='string',
filters=[
{
'name': 'connection-type',
'values': [
'string',
]
},
],
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
list
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.
(dict) --
A filter criterion for ListEnvironmentConnections.
name (string) -- [REQUIRED]
The connection attribute to match. The only valid value is connection-type, which matches the provider type of the connection, such as s3.
values (list) -- [REQUIRED]
The values to match the attribute against. A connection matches if its attribute equals any of the values.
(string) --
A value to match against a filter attribute. The match is exact. Wildcards aren't supported.
integer
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.
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.
dict
Response Syntax
{
'items': [
{
'connectionType': 's3'|'github'|'sharepoint',
'status': 'ACTIVE'|'PENDING',
'connectionId': 'string',
's3': {
'sourceUri': 'string',
'expectedBucketOwner': 'string'
},
'github': {
'account': 'string'
},
'sharepoint': {
'tenantId': 'string',
'siteUrl': 'string',
'sites': [
'string',
]
},
'createdAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
items (list) --
The connections in the environment that match the filters, for this page of results.
(dict) --
Summary view of a single environment connection.
connectionType (string) --
The type of provider for the connection.
status (string) --
The current lifecycle state of the environment connection.
connectionId (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.
s3 (dict) --
The configuration of an Amazon S3 connection. Present when connectionType is s3.
sourceUri (string) --
The Amazon S3 URI of the connection. To delete the connection, pass this value to DeleteEnvironmentConnection in providerConfig.s3.sourceUri.
expectedBucketOwner (string) --
The ID of the AWS account that must own the bucket. Absent if the connection doesn't specify an expected bucket owner.
github (dict) --
The configuration of a GitHub connection. The summary includes this field when connectionType is github.
account (string) --
The name of the GitHub organization or user account that has the AWS Assurance app installed.
sharepoint (dict) --
The configuration of a SharePoint connection. The summary includes this field when connectionType is sharepoint.
tenantId (string) --
The ID of the Microsoft Entra tenant that the administrator approved access in.
siteUrl (string) --
A site URL that the connection resolved. This field is empty if the connection didn't resolve a site URL.
sites (list) --
The URLs of the SharePoint sites that the connection can read.
(string) --
The URL of a SharePoint site, such as https://contoso.sharepoint.com/sites/finance.
createdAt (datetime) --
The timestamp when the connection was created.
nextToken (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.
Lists permission sets for an environment.
See also: AWS API Documentation
Request Syntax
client.list_permission_sets(
environmentArn='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
integer
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.
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.
dict
Response Syntax
{
'permissionSets': [
{
'permissionSetId': 'string',
'name': 'string',
'permissionCount': 123
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
permissionSets (list) --
The list of permission sets.
(dict) --
Summary of a permission set for list operations.
permissionSetId (string) --
The identifier of the permission set.
name (string) --
The name of the permission set.
permissionCount (integer) --
The number of permissions in the permission set.
nextToken (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.
Lists the annotations on one assessment, paginated.
See also: AWS API Documentation
Request Syntax
client.list_assessment_annotations(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
assessmentId='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The project the assessment belongs to.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
string
[REQUIRED]
The assessment whose annotations are listed.
integer
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.
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.
dict
Response Syntax
{
'annotations': [
{
'environment': 'string',
'evidenceId': 'string',
'evidenceVersion': 123,
'project': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'assessmentId': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
annotations (list) --
The list of annotation summaries returned by the request.
(dict) --
Summary view of an annotation returned in list results.
environment (string) --
The name of the governance environment the annotation belongs to.
evidenceId (string) --
The identifier of the evidence the annotation applies to.
evidenceVersion (integer) --
The version number of the evidence the annotation applies to.
project (string) --
The name of the project.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
assessmentId (string) --
The identifier of the assessment.
nextToken (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.
Lists assessments, paginated.
See also: AWS API Documentation
Request Syntax
client.list_assessments(
environmentArn='string',
project='string',
filters=[
{
'name': 'framework'|'framework-version'|'control-id'|'assessment-id'|'status',
'values': [
'string',
]
},
],
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The project to list assessments for. Each request is scoped to one project.
list
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.
(dict) --
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.
name (string) -- [REQUIRED]
The assessment attribute to match on.
values (list) -- [REQUIRED]
The values to match the attribute against, compared for exact equality.
(string) --
A value to match against a filter attribute. The match is exact. Wildcards aren't supported.
integer
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.
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.
dict
Response Syntax
{
'assessments': [
{
'assessmentId': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'project': 'string',
'status': 'SCHEDULED'|'IN_PROGRESS'|'NEEDS_ATTENTION'|'FINISHED'|'NOT_APPLICABLE'|'ERROR'|'USER_ERROR',
'outcomePercentage': ...,
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'trigger': 'SCHEDULE'|'DETECTED_CHANGE'|'USER_ACTION'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
assessments (list) --
The list of assessment summaries.
(dict) --
Summary view of an assessment in list results.
assessmentId (string) --
The identifier of the assessment.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
project (string) --
The name of the project.
status (string) --
The canonical state of the assessment.
outcomePercentage (float) --
The numeric percentage score of the assessment outcome.
createdAt (datetime) --
The timestamp when the assessment was created.
updatedAt (datetime) --
The timestamp when the assessment was last updated.
trigger (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.
nextToken (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.
Lists the comments on a specific control, optionally narrowed to a task.
See also: AWS API Documentation
Request Syntax
client.list_comments(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string',
filters=[
{
'name': 'task-id',
'values': [
'string',
]
},
],
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
list
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.
(dict) --
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.
name (string) -- [REQUIRED]
The comment attribute to match on.
values (list) -- [REQUIRED]
The values to match the attribute against, compared for exact equality.
(string) --
A value to match against a filter attribute. The match is exact. Wildcards aren't supported.
integer
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.
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.
dict
Response Syntax
{
'comments': [
{
'environment': 'string',
'project': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'controlId': 'string',
'taskId': 'string',
'commentId': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
comments (list) --
The list of comments.
(dict) --
Contains a summary of a comment, without its content or author.
environment (string) --
The name of the governance environment the comment belongs to.
project (string) --
The name of the project.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
taskId (string) --
The identifier of the task.
commentId (string) --
The unique identifier of the comment.
nextToken (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.
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.
See also: AWS API Documentation
Request Syntax
client.delete_environment_connection(
environmentArn='string',
connectionId='string',
providerConfig={
's3': {
'sourceUri': 'string'
},
'github': {
'account': 'string'
},
'sharepoint': {
'tenantId': 'string'
}
}
)
string
[REQUIRED]
The ARN of this governance environment.
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.
dict
The connection to delete, identified by the source that it connects to.
s3 (dict) --
An Amazon S3 connection, identified by its source URI.
sourceUri (string) -- [REQUIRED]
The Amazon S3 URI of the connection. To find it, call ListEnvironmentConnections and read s3.sourceUri.
github (dict) --
The account of a GitHub connection.
account (string) -- [REQUIRED]
The name of the GitHub organization or user account. This is the github.account value in ListEnvironmentConnections.
sharepoint (dict) --
The tenant of a SharePoint connection.
tenantId (string) -- [REQUIRED]
The ID of the Microsoft Entra tenant. This is the sharepoint.tenantId value in ListEnvironmentConnections.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.list_control_groups(
environmentArn='string',
framework='string',
frameworkVersion='string',
maxResults=123,
nextToken='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
integer
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.
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.
dict
Response Syntax
{
'controlGroups': [
{
'type': 'MANAGED'|'CUSTOM',
'controlId': 'string',
'framework': 'string',
'frameworkVersion': 'string',
'title': 'string',
'description': 'string',
'status': 'ACTIVE'|'PENDING'|'PRE_PROD'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
controlGroups (list) --
The control groups in the framework version, for this page of results.
(dict) --
Summary view of a control group, without its child controls. Use ListControls with the group's controlId to retrieve the controls within a group.
type (string) --
The type of the control group.
controlId (string) --
The control identifier. Optional. If omitted, the operation applies to the full framework.
framework (string) --
The name of the compliance framework.
frameworkVersion (string) --
The version of the compliance framework.
title (string) --
The human-readable title of the control group.
description (string) --
A description of the control group.
status (string) --
The lifecycle status of the control group.
nextToken (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.
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.
See also: AWS API Documentation
Request Syntax
client.create_framework(
environmentArn='string',
framework='string',
frameworkVersion='string',
title='string',
description='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The name of the framework. The name must not start with AWS:.
string
[REQUIRED]
The version that you assign to the framework.
string
The human-readable title of the framework.
string
A description of the framework.
dict
Response Syntax
{
'framework': {
'type': 'MANAGED'|'CUSTOM',
'frameworkName': 'string',
'environment': 'string',
'frameworkVersion': 'string',
'title': 'string',
'description': 'string',
'status': 'ACTIVE'|'PENDING'|'PRE_PROD',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
framework (dict) --
The name of the compliance framework.
type (string) --
The type of the compliance framework.
frameworkName (string) --
The name of the framework. Names that begin with AWS: are reserved for AWS managed frameworks.
environment (string) --
The governance environment the framework belongs to. Present for CUSTOM frameworks.
frameworkVersion (string) --
The version that you assigned to the framework.
title (string) --
The human-readable title of the framework.
description (string) --
The optional description of the framework.
status (string) --
The lifecycle status of the framework.
createdAt (datetime) --
The timestamp when the framework was created.
updatedAt (datetime) --
The timestamp when the framework was last updated.
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.
See also: AWS API Documentation
Request Syntax
client.get_control_status(
environmentArn='string',
project='string',
framework='string',
frameworkVersion='string',
controlId='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of this governance environment.
string
[REQUIRED]
The name of the project.
string
[REQUIRED]
The name of the compliance framework.
string
[REQUIRED]
The version of the compliance framework.
string
[REQUIRED]
The identifier of the control. The control must exist in the framework version.
dict
Response Syntax
{
'controlId': 'string',
'controlGroupId': 'string',
'status': 'COMPLIANT'|'NEEDS_ATTENTION'|'NOT_APPLICABLE'|'NOT_ASSESSED',
'outcomePercentage': 123.0,
'applicableRequirementCount': 123,
'excludedRequirementCount': 123,
'statusOverride': {
'type': 'NOT_APPLICABLE'|'NONE',
'justification': 'string',
'declaredBy': 'string',
'declaredAt': datetime(2015, 1, 1)
},
'lastAssessmentId': 'string',
'lastAssessedAt': datetime(2015, 1, 1),
'lastAssessmentStatus': 'SCHEDULED'|'IN_PROGRESS'|'NEEDS_ATTENTION'|'FINISHED'|'NOT_APPLICABLE'|'ERROR'|'USER_ERROR',
'requirementStatuses': [
{
'requirementId': 'string',
'description': 'string',
'status': 'met'|'partial'|'not_met'|'not_applicable'|'unable_to_assess',
'statusOverride': {
'type': 'NOT_APPLICABLE'|'NONE',
'justification': 'string',
'declaredBy': 'string',
'declaredAt': datetime(2015, 1, 1)
},
'rationale': 'string',
'taskId': 'string'
},
]
}
Response Structure
(dict) --
Output of GetControlStatus: the effective status of one control in a project.
controlId (string) --
The identifier of the control.
controlGroupId (string) --
The identifier of the control group that contains the control. Absent when the control isn't in a control group.
status (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.
outcomePercentage (float) --
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.
applicableRequirementCount (integer) --
The number of the control's requirements that apply to the project.
excludedRequirementCount (integer) --
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.
statusOverride (dict) --
The decision declared on the control itself. Absent when no decision is declared on the control. Decisions on individual requirements are returned in requirementStatuses.
type (string) --
The decision.
justification (string) --
The justification supplied with the decision.
declaredBy (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.
declaredAt (datetime) --
The time when the decision was declared. AWS Assurance sets this value and updates it each time you declare the decision again.
lastAssessmentId (string) --
The identifier of the most recent assessment of the control in the project. Absent if no assessment has run for the control.
lastAssessedAt (datetime) --
The time when the most recent assessment of the control was last updated.
lastAssessmentStatus (string) --
The state of the most recent assessment of the control.
requirementStatuses (list) --
The effective status of each of the control's requirements, including requirements that are not applicable.
(dict) --
The effective status of a single requirement of a control in a project.
requirementId (string) --
The unique identifier of the requirement.
description (string) --
A description of the requirement.
status (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 (dict) --
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.
type (string) --
The decision.
justification (string) --
The justification supplied with the decision.
declaredBy (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.
declaredAt (datetime) --
The time when the decision was declared. AWS Assurance sets this value and updates it each time you declare the decision again.
rationale (string) --
The evaluator's explanation of the outcome from the most recent assessment.
taskId (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.
Lists frameworks by type, with optional pagination. When type is omitted, the operation returns both MANAGED and CUSTOM frameworks.
See also: AWS API Documentation
Request Syntax
client.list_frameworks(
type='MANAGED'|'CUSTOM',
environmentArn='string',
maxResults=123,
nextToken='string'
)
string
The optional filter. Values are MANAGED, CUSTOM, or omit for both.
string
[REQUIRED]
The ARN of this governance environment.
integer
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.
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.
dict
Response Syntax
{
'frameworks': [
{
'type': 'MANAGED'|'CUSTOM',
'framework': 'string',
'environment': 'string',
'frameworkVersion': 'string',
'title': 'string',
'status': 'ACTIVE'|'PENDING'|'PRE_PROD'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
frameworks (list) --
The list of compliance frameworks.
(dict) --
Summary of a framework resource.
type (string) --
The type of the compliance framework.
framework (string) --
The name of the compliance framework.
environment (string) --
The name of the governance environment the framework belongs to.
frameworkVersion (string) --
The framework version.
title (string) --
The human-readable title of the framework.
status (string) --
The lifecycle status of the framework.
nextToken (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.
Retrieves a permission set by ID.
See also: AWS API Documentation
Request Syntax
client.get_permission_set(
environmentArn='string',
permissionSetId='string'
)
string
[REQUIRED]
The ARN of this governance environment.
string
[REQUIRED]
The identifier of the permission set.
dict
Response Syntax
{
'permissionSet': {
'permissionSetId': 'string',
'name': 'string',
'description': 'string',
'permissions': [
'string',
],
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
permissionSet (dict) --
The permission set.
permissionSetId (string) --
The identifier of the permission set.
name (string) --
The name of the permission set.
description (string) --
A description of the permission set.
permissions (list) --
The permissions granted by the permission set.
(string) --
A permission, such as manage_projects or project:view.
createdAt (datetime) --
The timestamp when the permission set was created.
updatedAt (datetime) --
The timestamp when the permission set was last updated.