Skip to main content

assessment_frameworks

Creates, updates, deletes, gets or lists an assessment_frameworks resource.

Overview

Nameassessment_frameworks
TypeResource
Idaws.auditmanager.assessment_frameworks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
framework_metadata_listarrayA list of metadata that the ListAssessmentFrameworks API returns for each framework.
next_tokenstringThe pagination token that's used to fetch the next set of results. (pattern: <code>^[A-Za-z0-9+/=]*$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_assessment_frameworksselectframeworkType, regionnextToken, maxResultsReturns a list of the frameworks that are available in the Audit Manager framework library.
get_assessment_frameworkselectframework_id, regionGets information about a specified framework.
create_assessment_frameworkinsertregion, name, controlSetsCreates a custom framework in Audit Manager.
update_assessment_frameworkupdateframework_id, region, name, controlSetsUpdates a custom framework in Audit Manager.
update_assessment_framework_shareupdaterequest_id, region, requestType, actionUpdates a share request for a custom framework in Audit Manager.
delete_assessment_framework_sharedeleterequest_id, requestType, regionDeletes a share request for a custom framework in Audit Manager.
delete_assessment_frameworkdeleteframework_id, regionDeletes a custom framework in Audit Manager.
start_assessment_framework_shareexecframework_id, region, destinationAccount, destinationRegionCreates a share request for a custom framework in Audit Manager. The share request specifies a recipient and notifies them that a custom framework is available. Recipients have 120 days to accept or decline the request. If no action is taken, the share request expires. When you create a share request, Audit Manager stores a snapshot of your custom framework in the US East (N. Virginia) Amazon Web Services Region. Audit Manager also stores a backup of the same snapshot in the US West (Oregon) Amazon Web Services Region. Audit Manager deletes the snapshot and the backup snapshot when one of the following events occurs: The sender revokes the share request. The recipient declines the share request. The recipient encounters an error and doesn't successfully accept the share request. The share request expires before the recipient responds to the request. When a sender resends a share request, the snapshot is replaced with an updated version that corresponds with the latest version of the custom framework. When a recipient accepts a share request, the snapshot is replicated into their Amazon Web Services account under the Amazon Web Services Region that was specified in the share request. When you invoke the StartAssessmentFrameworkShare API, you are about to share a custom framework with another Amazon Web Services account. You may not share a custom framework that is derived from a standard framework if the standard framework is designated as not eligible for sharing by Amazon Web Services, unless you have obtained permission to do so from the owner of the standard framework. To learn more about which standard frameworks are eligible for sharing, see Framework sharing eligibility in the Audit Manager User Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
frameworkTypestringThe type of framework, such as a standard framework or a custom framework.
framework_idstringThe unique identifier for the custom framework to be shared.
regionstringAWS region (default: us-east-1)
requestTypestringSpecifies whether the share request is a sent request or a received request.
request_idstringThe unique identifier for the share request to be deleted.
maxResultsintegerRepresents the maximum number of results on a page or for an API request call.
nextTokenstringThe pagination token that's used to fetch the next set of results.

SELECT examples

Returns a list of the frameworks that are available in the Audit Manager framework library.

SELECT
framework_metadata_list,
next_token
FROM aws.auditmanager.assessment_frameworks
WHERE frameworkType = '{{ frameworkType }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

INSERT examples

Creates a custom framework in Audit Manager.

INSERT INTO aws.auditmanager.assessment_frameworks (
name,
description,
complianceType,
controlSets,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ complianceType }}',
'{{ controlSets }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
framework
;

UPDATE examples

Updates a custom framework in Audit Manager.

UPDATE aws.auditmanager.assessment_frameworks
SET
name = '{{ name }}',
description = '{{ description }}',
complianceType = '{{ complianceType }}',
controlSets = '{{ controlSets }}'
WHERE
framework_id = '{{ framework_id }}' --required
AND region = '{{ region }}' --required
AND name = '{{ name }}' --required
AND controlSets = '{{ controlSets }}' --required
RETURNING
framework;

DELETE examples

Deletes a share request for a custom framework in Audit Manager.

DELETE FROM aws.auditmanager.assessment_frameworks
WHERE request_id = '{{ request_id }}' --required
AND requestType = '{{ requestType }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Creates a share request for a custom framework in Audit Manager. The share request specifies a recipient and notifies them that a custom framework is available. Recipients have 120 days to accept or decline the request. If no action is taken, the share request expires. When you create a share request, Audit Manager stores a snapshot of your custom framework in the US East (N. Virginia) Amazon Web Services Region. Audit Manager also stores a backup of the same snapshot in the US West (Oregon) Amazon Web Services Region. Audit Manager deletes the snapshot and the backup snapshot when one of the following events occurs: The sender revokes the share request. The recipient declines the share request. The recipient encounters an error and doesn't successfully accept the share request. The share request expires before the recipient responds to the request. When a sender resends a share request, the snapshot is replaced with an updated version that corresponds with the latest version of the custom framework. When a recipient accepts a share request, the snapshot is replicated into their Amazon Web Services account under the Amazon Web Services Region that was specified in the share request. When you invoke the StartAssessmentFrameworkShare API, you are about to share a custom framework with another Amazon Web Services account. You may not share a custom framework that is derived from a standard framework if the standard framework is designated as not eligible for sharing by Amazon Web Services, unless you have obtained permission to do so from the owner of the standard framework. To learn more about which standard frameworks are eligible for sharing, see Framework sharing eligibility in the Audit Manager User Guide.

EXEC aws.auditmanager.assessment_frameworks.start_assessment_framework_share
@framework_id='{{ framework_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"destinationAccount": "{{ destinationAccount }}",
"destinationRegion": "{{ destinationRegion }}",
"comment": "{{ comment }}"
}'
;