Skip to main content

scheduled_reports

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

Overview

Namescheduled_reports
TypeResource
Idaws.bcm_dashboards.scheduled_reports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the scheduled report. (pattern: <code>(?!.* {2})[a-zA-Z][a-zA-Z0-9 -]{0,48}[a-zA-Z0-9-]</code>)
arnstringThe ARN of the scheduled report. (pattern: <code>arn:aws[-a-z0-9]*:bcm-dashboards::[0-9]{12}:scheduled-report/(*|[-a-z0-9]+)</code>)
created_atstring (date-time)The timestamp when the scheduled report was created.
dashboard_arnstringThe ARN of the dashboard associated with the scheduled report. (pattern: <code>arn:aws[-a-z0-9]*:bcm-dashboards::[0-9]{12}:dashboard/(*|[-a-z0-9]+)</code>)
descriptionstringA description of the scheduled report's purpose or contents. (pattern: <code>(?!.* {2})[ a-zA-Z0-9.,!?;:@#$%&-_/\]*</code>)
health_statusobjectThe health status of the scheduled report at last refresh time.
last_execution_atstring (date-time)The timestamp of the most recent execution of the scheduled report.
schedule_configobjectThe schedule configuration that defines when and how often the report is generated.
scheduled_report_execution_role_arnstringThe ARN of the IAM role that the scheduled report uses to execute. Amazon Web Services Billing and Cost Management Dashboards will assume this IAM role while executing the scheduled report. (pattern: <code>arn:aws[-a-z0-9]*:iam::[0-9]{12}:role/[a-zA-Z0-9+=,.@_/-]+</code>)
updated_atstring (date-time)The timestamp when the scheduled report was last modified.
widget_date_range_overrideobjectDefines a time period with explicit start and end times for data queries.
widget_idsarrayThe list of widget identifiers included in the scheduled report.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_scheduled_reportselectregionRetrieves the configuration and metadata of a specified scheduled report.
list_scheduled_reportsselectregionReturns a list of scheduled reports in your account.
create_scheduled_reportinsertregion, scheduledReportCreates a new scheduled report for a dashboard. A scheduled report automatically generates and delivers dashboard snapshots on a recurring schedule. Reports are delivered within 15 minutes of the scheduled delivery time.
update_scheduled_reportupdateregion, arnUpdates an existing scheduled report's properties, including its name, description, schedule configuration, and widget settings. Only the parameters included in the request are updated; all other properties remain unchanged.
delete_scheduled_reportdeleteregionDeletes a specified scheduled report. This is an irreversible operation.

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)

SELECT examples

Retrieves the configuration and metadata of a specified scheduled report.

SELECT
name,
arn,
created_at,
dashboard_arn,
description,
health_status,
last_execution_at,
schedule_config,
scheduled_report_execution_role_arn,
updated_at,
widget_date_range_override,
widget_ids
FROM aws.bcm_dashboards.scheduled_reports
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new scheduled report for a dashboard. A scheduled report automatically generates and delivers dashboard snapshots on a recurring schedule. Reports are delivered within 15 minutes of the scheduled delivery time.

INSERT INTO aws.bcm_dashboards.scheduled_reports (
scheduledReport,
resourceTags,
clientToken,
region
)
SELECT
'{{ scheduledReport }}' /* required */,
'{{ resourceTags }}',
'{{ clientToken }}',
'{{ region }}'
RETURNING
arn
;

UPDATE examples

Updates an existing scheduled report's properties, including its name, description, schedule configuration, and widget settings. Only the parameters included in the request are updated; all other properties remain unchanged.

UPDATE aws.bcm_dashboards.scheduled_reports
SET
arn = '{{ arn }}',
name = '{{ name }}',
description = '{{ description }}',
dashboardArn = '{{ dashboardArn }}',
scheduledReportExecutionRoleArn = '{{ scheduledReportExecutionRoleArn }}',
scheduleConfig = '{{ scheduleConfig }}',
widgetIds = '{{ widgetIds }}',
widgetDateRangeOverride = '{{ widgetDateRangeOverride }}',
clearWidgetIds = {{ clearWidgetIds }},
clearWidgetDateRangeOverride = {{ clearWidgetDateRangeOverride }}
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required
RETURNING
arn;

DELETE examples

Deletes a specified scheduled report. This is an irreversible operation.

DELETE FROM aws.bcm_dashboards.scheduled_reports
WHERE region = '{{ region }}' --required
;