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.
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERT, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourceSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

List all assessments in a region.

SELECT
region,
assessment_id
FROM aws.auditmanager.assessments
WHERE region = 'us-east-1';

Gets all properties from an assessment.

SELECT
region,
framework_id,
assessment_id,
aws_account,
arn,
tags,
delegations,
roles,
scope,
assessment_reports_destination,
status,
creation_time,
name,
description
FROM aws.auditmanager.assessments
WHERE region = 'us-east-1' AND data__Identifier = '<AssessmentId>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.auditmanager.assessments
WHERE data__Identifier = '<AssessmentId>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

auditmanager:GetAssessment

Update

auditmanager:UpdateAssessment,
auditmanager:UpdateAssessmentStatus,
auditmanager:BatchCreateDelegationByAssessment,
auditmanager:BatchDeleteDelegationByAssessment

Delete

auditmanager:DeleteAssessment

List

auditmanager:ListAssessments