Skip to main content

report_plans

Creates, updates, deletes or gets a report_plan resource or lists report_plans in a region

Overview

Namereport_plans
TypeResource
DescriptionContains detailed information about a report plan in AWS Backup Audit Manager.
Idawscc.backup.report_plans

Fields

NameDatatypeDescription
report_plan_namestringThe unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
report_plan_arnstringAn Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
report_plan_descriptionstringAn optional description of the report plan with a maximum of 1,024 characters.
report_plan_tagsarrayMetadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.
report_delivery_channelobjectA structure that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
report_settingobjectIdentifies the report template for the report. Reports are built using a report template.
regionstringAWS region.

For more information, see AWS::Backup::ReportPlan.

Methods

NameResourceAccessible byRequired Params
create_resourcereport_plansINSERTReportDeliveryChannel, ReportSetting, region
delete_resourcereport_plansDELETEIdentifier, region
update_resourcereport_plansUPDATEIdentifier, PatchDocument, region
list_resourcesreport_plans_list_onlySELECTregion
get_resourcereport_plansSELECTIdentifier, region

SELECT examples

Gets all properties from an individual report_plan.

SELECT
region,
report_plan_name,
report_plan_arn,
report_plan_description,
report_plan_tags,
report_delivery_channel,
report_setting
FROM awscc.backup.report_plans
WHERE
region = 'us-east-1' AND
Identifier = '{{ report_plan_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.backup.report_plans (
ReportDeliveryChannel,
ReportSetting,
region
)
SELECT
'{{ report_delivery_channel }}',
'{{ report_setting }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.backup.report_plans
SET PatchDocument = string('{{ {
"ReportPlanDescription": report_plan_description,
"ReportPlanTags": report_plan_tags,
"ReportDeliveryChannel": report_delivery_channel,
"ReportSetting": report_setting
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ report_plan_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.backup.report_plans
WHERE
Identifier = '{{ report_plan_arn }}' AND
region = 'us-east-1';

Permissions

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

backup:CreateReportPlan,
backup:DescribeReportPlan,
backup:ListTags,
backup:TagResource,
iam:CreateServiceLinkedRole