Skip to main content

assessments

Creates, updates, deletes or gets an assessment resource or lists assessments in a region

Overview

Nameassessments
TypeResource
DescriptionAn entity that defines the scope of audit evidence collected by AWS Audit Manager.
Idawscc.auditmanager.assessments

Fields

NameDatatypeDescription
framework_idstringThe identifier for the specified framework.
assessment_idstring
aws_accountobjectThe AWS account associated with the assessment.
arnstringThe Amazon Resource Name (ARN) of the assessment.
tagsarrayThe tags associated with the assessment.
delegationsarrayThe list of delegations.
rolesarrayThe list of roles for the specified assessment.
scopeobjectThe wrapper that contains the AWS accounts and AWS services in scope for the assessment.
assessment_reports_destinationobjectThe destination in which evidence reports are stored for the specified assessment.
statusstringThe status of the specified assessment.
creation_timenumberThe sequence of characters that identifies when the event occurred.
namestringThe name of the related assessment.
descriptionstringThe description of the specified assessment.
regionstringAWS region.

For more information, see AWS::AuditManager::Assessment.

Methods

NameResourceAccessible byRequired Params
create_resourceassessmentsINSERT, region
delete_resourceassessmentsDELETEIdentifier, region
update_resourceassessmentsUPDATEIdentifier, PatchDocument, region
list_resourcesassessments_list_onlySELECTregion
get_resourceassessmentsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual assessment.

SELECT
region,
framework_id,
assessment_id,
aws_account,
arn,
tags,
delegations,
roles,
scope,
assessment_reports_destination,
status,
creation_time,
name,
description
FROM awscc.auditmanager.assessments
WHERE
region = 'us-east-1' AND
Identifier = '{{ assessment_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new assessment resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.auditmanager.assessments (
,
region
)
SELECT
'{{ }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a assessment resource, using stack-deploy.

/*+ update */
UPDATE awscc.auditmanager.assessments
SET PatchDocument = string('{{ {
"Tags": tags,
"Delegations": delegations,
"Roles": roles,
"Scope": scope,
"AssessmentReportsDestination": assessment_reports_destination,
"Status": status,
"Name": name,
"Description": description
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ assessment_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.auditmanager.assessments
WHERE
Identifier = '{{ assessment_id }}' AND
region = 'us-east-1';

Permissions

To operate on the assessments resource, the following permissions are required:

auditmanager:CreateAssessment,
auditmanager:TagResource,
auditmanager:ListTagsForResource,
auditmanager:BatchCreateDelegationByAssessment,
iam:PassRole