Skip to main content

frameworks

Creates, updates, deletes, gets or lists a frameworks resource.

Overview

Nameframeworks
TypeResource
Idaws.backup.frameworks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The date and time that a framework is created, in ISO 8601 representation. The value of CreationTime is accurate to milliseconds. For example, 2020-07-10T15:00:00.000-08:00 represents the 10th of July 2020 at 3:00 PM 8 hours behind UTC.
deployment_statusstringThe deployment status of a framework. The statuses are: CREATE_IN_PROGRESS | UPDATE_IN_PROGRESS | DELETE_IN_PROGRESS | COMPLETED | FAILED
framework_arnstringAn Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
framework_controlsarrayThe controls that make up the framework. Each control in the list has a name, input parameters, and scope.
framework_descriptionstringAn optional description of the framework. (pattern: <code>.\S.</code>)
framework_namestringThe unique name of a framework. (pattern: <code>[a-zA-Z][_a-zA-Z0-9]*</code>)
framework_statusstringA framework consists of one or more controls. Each control governs a resource, such as backup plans, backup selections, backup vaults, or recovery points. You can also turn Config recording on or off for each resource. The statuses are: ACTIVE when recording is turned on for all resources governed by the framework. PARTIALLY_ACTIVE when recording is turned off for at least one resource governed by the framework. INACTIVE when recording is turned off for all resources governed by the framework. UNAVAILABLE when Backup is unable to validate recording status at this time.
idempotency_tokenstringA customer-chosen string that you can use to distinguish between otherwise identical calls to DescribeFrameworkOutput. Retrying a successful request with the same idempotency token results in a success message with no action taken.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_frameworkselectframework_name, regionReturns the framework details for the specified FrameworkName.
list_frameworksselectregionMaxResults, NextTokenReturns a list of all frameworks for an Amazon Web Services account and Amazon Web Services Region.
create_frameworkinsertregion, FrameworkName, FrameworkControlsCreates a framework with one or more controls. A framework is a collection of controls that you can use to evaluate your backup practices. By using pre-built customizable controls to define your policies, you can evaluate whether your backup practices comply with your policies and which resources are not yet in compliance.
update_frameworkupdateframework_name, regionUpdates the specified framework.
delete_frameworkdeleteframework_name, regionDeletes the framework specified by a framework name.

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
framework_namestringThe unique name of a framework.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe number of desired results from 1 to 1000. Optional. If unspecified, the query will return 1 MB of data.
NextTokenstringAn identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

SELECT examples

Returns the framework details for the specified FrameworkName.

SELECT
creation_time,
deployment_status,
framework_arn,
framework_controls,
framework_description,
framework_name,
framework_status,
idempotency_token
FROM aws.backup.frameworks
WHERE framework_name = '{{ framework_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a framework with one or more controls. A framework is a collection of controls that you can use to evaluate your backup practices. By using pre-built customizable controls to define your policies, you can evaluate whether your backup practices comply with your policies and which resources are not yet in compliance.

INSERT INTO aws.backup.frameworks (
FrameworkName,
FrameworkDescription,
FrameworkControls,
IdempotencyToken,
FrameworkTags,
region
)
SELECT
'{{ FrameworkName }}' /* required */,
'{{ FrameworkDescription }}',
'{{ FrameworkControls }}' /* required */,
'{{ IdempotencyToken }}',
'{{ FrameworkTags }}',
'{{ region }}'
RETURNING
framework_arn,
framework_name
;

UPDATE examples

Updates the specified framework.

UPDATE aws.backup.frameworks
SET
FrameworkDescription = '{{ FrameworkDescription }}',
FrameworkControls = '{{ FrameworkControls }}',
IdempotencyToken = '{{ IdempotencyToken }}'
WHERE
framework_name = '{{ framework_name }}' --required
AND region = '{{ region }}' --required
RETURNING
creation_time,
framework_arn,
framework_name;

DELETE examples

Deletes the framework specified by a framework name.

DELETE FROM aws.backup.frameworks
WHERE framework_name = '{{ framework_name }}' --required
AND region = '{{ region }}' --required
;