Skip to content

aws.auditmanager.get_assessment

Example SQL Queries

SELECT * FROM
aws.auditmanager.get_assessment
WHERE
"assessment_id" = 'VALUE';

Description

Gets information about a specified assessment.

Table Definition

Column NameColumn Data Type
assessment_id Required Input Column

The unique identifier for the assessment.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
assessment

An entity that defines the scope of audit evidence collected by Audit Manager. An Audit Manager assessment is an implementation of an Audit Manager framework.

STRUCT(
"arn" VARCHAR,
"aws_account" STRUCT(
"id" VARCHAR,
"email_address" VARCHAR,
"name" VARCHAR
),
"metadata" STRUCT(
"name" VARCHAR,
"id" VARCHAR,
"description" VARCHAR,
"compliance_type" VARCHAR,
"status" VARCHAR,
"assessment_reports_destination" STRUCT(
"destination_type" VARCHAR,
"destination" VARCHAR
),
"scope" STRUCT(
"aws_accounts" STRUCT(
"id" VARCHAR,
"email_address" VARCHAR,
"name" VARCHAR
)[],
"aws_services" STRUCT(
"service_name" VARCHAR
)[]
),
"roles" STRUCT(
"role_type" VARCHAR,
"role_arn" VARCHAR
)[],
"delegations" STRUCT(
"id" VARCHAR,
"assessment_name" VARCHAR,
"assessment_id" VARCHAR,
"status" VARCHAR,
"role_arn" VARCHAR,
"role_type" VARCHAR,
"creation_time" TIMESTAMP_S,
"last_updated" TIMESTAMP_S,
"control_set_id" VARCHAR,
"comment" VARCHAR,
"created_by" VARCHAR
)[],
"creation_time" TIMESTAMP_S,
"last_updated" TIMESTAMP_S
),
"framework" STRUCT(
"id" VARCHAR,
"arn" VARCHAR,
"metadata" STRUCT(
"name" VARCHAR,
"description" VARCHAR,
"logo" VARCHAR,
"compliance_type" VARCHAR
),
"control_sets" STRUCT(
"id" VARCHAR,
"description" VARCHAR,
"status" VARCHAR,
"roles" STRUCT(
"role_type" VARCHAR,
"role_arn" VARCHAR
)[],
"controls" STRUCT(
"id" VARCHAR,
"name" VARCHAR,
"description" VARCHAR,
"status" VARCHAR,
"response" VARCHAR,
"comments" STRUCT(
"author_name" VARCHAR,
"comment_body" VARCHAR,
"posted_date" TIMESTAMP_S
)[],
"evidence_sources" VARCHAR[],
"evidence_count" BIGINT,
"assessment_report_evidence_count" BIGINT
)[],
"delegations" STRUCT(
"id" VARCHAR,
"assessment_name" VARCHAR,
"assessment_id" VARCHAR,
"status" VARCHAR,
"role_arn" VARCHAR,
"role_type" VARCHAR,
"creation_time" TIMESTAMP_S,
"last_updated" TIMESTAMP_S,
"control_set_id" VARCHAR,
"comment" VARCHAR,
"created_by" VARCHAR
)[],
"system_evidence_count" BIGINT,
"manual_evidence_count" BIGINT
)[]
),
"tags" MAP(VARCHAR, VARCHAR)
)
Show child fields
assessment.arn

The Amazon Resource Name (ARN) of the assessment.

assessment.aws_account

The Amazon Web Services account that's associated with the assessment.

Show child fields
assessment.aws_account.email_address

The email address that's associated with the Amazon Web Services account.

assessment.aws_account.id

The identifier for the Amazon Web Services account.

assessment.aws_account.name

The name of the Amazon Web Services account.

assessment.framework

The framework that the assessment was created from.

Show child fields
assessment.framework.arn

The Amazon Resource Name (ARN) of the framework.

assessment.framework.control_sets[]
Show child fields
assessment.framework.control_sets[].controls[]
Show child fields
assessment.framework.control_sets[].controls[].assessment_report_evidence_count

The amount of evidence in the assessment report.

assessment.framework.control_sets[].controls[].comments[]
Show child fields
assessment.framework.control_sets[].controls[].comments[].author_name

The name of the user who authored the comment.

assessment.framework.control_sets[].controls[].comments[].comment_body

The body text of a control comment.

assessment.framework.control_sets[].controls[].comments[].posted_date

The time when the comment was posted.

assessment.framework.control_sets[].controls[].description

The description of the control.

assessment.framework.control_sets[].controls[].evidence_count

The amount of evidence that's collected for the control.

assessment.framework.control_sets[].controls[].evidence_sources[]
assessment.framework.control_sets[].controls[].id

The identifier for the control.

assessment.framework.control_sets[].controls[].name

The name of the control.

assessment.framework.control_sets[].controls[].response

The response of the control.

assessment.framework.control_sets[].controls[].status

The status of the control.

assessment.framework.control_sets[].delegations[]
Show child fields
assessment.framework.control_sets[].delegations[].assessment_id

The identifier for the assessment that's associated with the delegation.

assessment.framework.control_sets[].delegations[].assessment_name

The name of the assessment that's associated with the delegation.

assessment.framework.control_sets[].delegations[].comment

The comment that's related to the delegation.

assessment.framework.control_sets[].delegations[].control_set_id

The identifier for the control set that's associated with the delegation.

assessment.framework.control_sets[].delegations[].created_by

The user or role that created the delegation.

assessment.framework.control_sets[].delegations[].creation_time

Specifies when the delegation was created.

assessment.framework.control_sets[].delegations[].id

The unique identifier for the delegation.

assessment.framework.control_sets[].delegations[].last_updated

Specifies when the delegation was last updated.

assessment.framework.control_sets[].delegations[].role_arn

The Amazon Resource Name (ARN) of the IAM role.

assessment.framework.control_sets[].delegations[].role_type

The type of customer persona.

In CreateAssessment, roleType can only be PROCESS_OWNER.

In UpdateSettings, roleType can only be PROCESS_OWNER.

In BatchCreateDelegationByAssessment, roleType can only be RESOURCE_OWNER.

assessment.framework.control_sets[].delegations[].status

The status of the delegation.

assessment.framework.control_sets[].description

The description for the control set.

assessment.framework.control_sets[].id

The identifier of the control set in the assessment. This is the control set name in a plain string format.

assessment.framework.control_sets[].manual_evidence_count

The total number of evidence objects that are uploaded manually to the control set.

assessment.framework.control_sets[].roles[]
Show child fields
assessment.framework.control_sets[].roles[].role_arn

The Amazon Resource Name (ARN) of the IAM role.

assessment.framework.control_sets[].roles[].role_type

The type of customer persona.

In CreateAssessment, roleType can only be PROCESS_OWNER.

In UpdateSettings, roleType can only be PROCESS_OWNER.

In BatchCreateDelegationByAssessment, roleType can only be RESOURCE_OWNER.

assessment.framework.control_sets[].status

The current status of the control set.

assessment.framework.control_sets[].system_evidence_count

The total number of evidence objects that are retrieved automatically for the control set.

assessment.framework.id

The unique identifier for the framework.

assessment.framework.metadata

The metadata of a framework, such as the name, ID, or description.

Show child fields
assessment.framework.metadata.compliance_type

The compliance standard that's associated with the framework. For example, this could be PCI DSS or HIPAA.

assessment.framework.metadata.description

The description of the framework.

assessment.framework.metadata.logo

The logo that's associated with the framework.

assessment.framework.metadata.name

The name of the framework.

assessment.metadata

The metadata for the assessment.

Show child fields
assessment.metadata.assessment_reports_destination

The destination that evidence reports are stored in for the assessment.

Show child fields
assessment.metadata.assessment_reports_destination.destination

The destination bucket where Audit Manager stores assessment reports.

assessment.metadata.assessment_reports_destination.destination_type

The destination type, such as Amazon S3.

assessment.metadata.compliance_type

The name of the compliance standard that's related to the assessment, such as PCI-DSS.

assessment.metadata.creation_time

Specifies when the assessment was created.

assessment.metadata.delegations[]
Show child fields
assessment.metadata.delegations[].assessment_id

The identifier for the assessment that's associated with the delegation.

assessment.metadata.delegations[].assessment_name

The name of the assessment that's associated with the delegation.

assessment.metadata.delegations[].comment

The comment that's related to the delegation.

assessment.metadata.delegations[].control_set_id

The identifier for the control set that's associated with the delegation.

assessment.metadata.delegations[].created_by

The user or role that created the delegation.

assessment.metadata.delegations[].creation_time

Specifies when the delegation was created.

assessment.metadata.delegations[].id

The unique identifier for the delegation.

assessment.metadata.delegations[].last_updated

Specifies when the delegation was last updated.

assessment.metadata.delegations[].role_arn

The Amazon Resource Name (ARN) of the IAM role.

assessment.metadata.delegations[].role_type

The type of customer persona.

In CreateAssessment, roleType can only be PROCESS_OWNER.

In UpdateSettings, roleType can only be PROCESS_OWNER.

In BatchCreateDelegationByAssessment, roleType can only be RESOURCE_OWNER.

assessment.metadata.delegations[].status

The status of the delegation.

assessment.metadata.description

The description of the assessment.

assessment.metadata.id

The unique identifier for the assessment.

assessment.metadata.last_updated

The time of the most recent update.

assessment.metadata.name

The name of the assessment.

assessment.metadata.roles[]
Show child fields
assessment.metadata.roles[].role_arn

The Amazon Resource Name (ARN) of the IAM role.

assessment.metadata.roles[].role_type

The type of customer persona.

In CreateAssessment, roleType can only be PROCESS_OWNER.

In UpdateSettings, roleType can only be PROCESS_OWNER.

In BatchCreateDelegationByAssessment, roleType can only be RESOURCE_OWNER.

assessment.metadata.scope

The wrapper of Amazon Web Services accounts and services that are in scope for the assessment.

Show child fields
assessment.metadata.scope.aws_accounts[]
Show child fields
assessment.metadata.scope.aws_accounts[].email_address

The email address that's associated with the Amazon Web Services account.

assessment.metadata.scope.aws_accounts[].id

The identifier for the Amazon Web Services account.

assessment.metadata.scope.aws_accounts[].name

The name of the Amazon Web Services account.

assessment.metadata.scope.aws_services[]
Show child fields
assessment.metadata.scope.aws_services[].service_name

The name of the Amazon Web Service.

assessment.metadata.status

The overall status of the assessment.

assessment.tags

The tags that are associated with the assessment.

user_role

The wrapper that contains the Audit Manager role information of the current user. This includes the role type and IAM Amazon Resource Name (ARN).

STRUCT(
"role_type" VARCHAR,
"role_arn" VARCHAR
)
Show child fields
user_role.role_arn

The Amazon Resource Name (ARN) of the IAM role.

user_role.role_type

The type of customer persona.

In CreateAssessment, roleType can only be PROCESS_OWNER.

In UpdateSettings, roleType can only be PROCESS_OWNER.

In BatchCreateDelegationByAssessment, roleType can only be RESOURCE_OWNER.