Skip to main content

report_plans

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

Overview

Namereport_plans
TypeResource
Idaws.backup.report_plans

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
deployment_statusstringThe deployment status of a report plan. The statuses are: CREATE_IN_PROGRESS | UPDATE_IN_PROGRESS | DELETE_IN_PROGRESS | COMPLETED
last_attempted_execution_timestring (date-time)The date and time that a report job associated with this report plan last attempted to run, in Unix format and Coordinated Universal Time (UTC). The value of LastAttemptedExecutionTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
last_successful_execution_timestring (date-time)The date and time that a report job associated with this report plan last successfully ran, in Unix format and Coordinated Universal Time (UTC). The value of LastSuccessfulExecutionTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
report_delivery_channelobjectContains information from your report plan about where to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
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 1,024 characters. (pattern: <code>.\S.</code>)
report_plan_namestringThe unique name of the report plan. This name is between 1 and 256 characters starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). (pattern: <code>[a-zA-Z][_a-zA-Z0-9]*</code>)
report_settingobjectContains detailed information about a report setting.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_report_planselectreport_plan_name, regionReturns a list of all report plans for an Amazon Web Services account and Amazon Web Services Region.
list_report_plansselectregionMaxResults, NextTokenReturns a list of your report plans. For detailed information about a single report plan, use DescribeReportPlan.
create_report_planinsertregion, ReportPlanName, ReportDeliveryChannel, ReportSettingCreates a report plan. A report plan is a document that contains information about the contents of the report and where Backup will deliver it. If you call CreateReportPlan with a plan that already exists, you receive an AlreadyExistsException exception.
update_report_planupdatereport_plan_name, regionUpdates the specified report plan.
delete_report_plandeletereport_plan_name, regionDeletes the report plan specified by a report plan name.
start_report_jobexecreport_plan_name, regionStarts an on-demand report job for the specified report plan.

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
regionstringAWS region (default: us-east-1)
report_plan_namestringThe unique name of a report plan.
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 a list of all report plans for an Amazon Web Services account and Amazon Web Services Region.

SELECT
creation_time,
deployment_status,
last_attempted_execution_time,
last_successful_execution_time,
report_delivery_channel,
report_plan_arn,
report_plan_description,
report_plan_name,
report_setting
FROM aws.backup.report_plans
WHERE report_plan_name = '{{ report_plan_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a report plan. A report plan is a document that contains information about the contents of the report and where Backup will deliver it. If you call CreateReportPlan with a plan that already exists, you receive an AlreadyExistsException exception.

INSERT INTO aws.backup.report_plans (
ReportPlanName,
ReportPlanDescription,
ReportDeliveryChannel,
ReportSetting,
ReportPlanTags,
IdempotencyToken,
region
)
SELECT
'{{ ReportPlanName }}' /* required */,
'{{ ReportPlanDescription }}',
'{{ ReportDeliveryChannel }}' /* required */,
'{{ ReportSetting }}' /* required */,
'{{ ReportPlanTags }}',
'{{ IdempotencyToken }}',
'{{ region }}'
RETURNING
creation_time,
report_plan_arn,
report_plan_name
;

UPDATE examples

Updates the specified report plan.

UPDATE aws.backup.report_plans
SET
ReportPlanDescription = '{{ ReportPlanDescription }}',
ReportDeliveryChannel = '{{ ReportDeliveryChannel }}',
ReportSetting = '{{ ReportSetting }}',
IdempotencyToken = '{{ IdempotencyToken }}'
WHERE
report_plan_name = '{{ report_plan_name }}' --required
AND region = '{{ region }}' --required
RETURNING
creation_time,
report_plan_arn,
report_plan_name;

DELETE examples

Deletes the report plan specified by a report plan name.

DELETE FROM aws.backup.report_plans
WHERE report_plan_name = '{{ report_plan_name }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Starts an on-demand report job for the specified report plan.

EXEC aws.backup.report_plans.start_report_job
@report_plan_name='{{ report_plan_name }}' --required,
@region='{{ region }}' --required
@@json=
'{
"IdempotencyToken": "{{ IdempotencyToken }}"
}'
;