Skip to main content

dashboards

Creates, updates, deletes or gets a dashboard resource or lists dashboards in a region

Overview

Namedashboards
TypeResource
DescriptionThe Amazon CloudTrail dashboard resource allows customers to manage managed dashboards and create custom dashboards. You can manually refresh custom and managed dashboards. For custom dashboards, you can also set up an automatic refresh schedule and modify dashboard widgets.
Idaws.cloudtrail.dashboards

Fields

NameDatatypeDescription
widgetsarrayList of widgets on the dashboard
created_timestampstringThe timestamp of the dashboard creation.
dashboard_arnstringThe ARN of the dashboard.
refresh_scheduleobjectConfigures the automatic refresh schedule for the dashboard. Includes the frequency unit (DAYS or HOURS) and value, as well as the status (ENABLED or DISABLED) of the refresh schedule.
namestringThe name of the dashboard.
statusstringThe status of the dashboard. Values are CREATING, CREATED, UPDATING, UPDATED and DELETING.
termination_protection_enabledbooleanIndicates whether the dashboard is protected from termination.
typestringThe type of the dashboard. Values are CUSTOM and MANAGED.
updated_timestampstringThe timestamp showing when the dashboard was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.
tagsarray
regionstringAWS region.

For more information, see AWS::CloudTrail::Dashboard.

Methods

NameAccessible byRequired Params
create_resourceINSERT, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all dashboards in a region.

SELECT
region,
widgets,
created_timestamp,
dashboard_arn,
refresh_schedule,
name,
status,
termination_protection_enabled,
type,
updated_timestamp,
tags
FROM aws.cloudtrail.dashboards
WHERE region = 'us-east-1';

Gets all properties from an individual dashboard.

SELECT
region,
widgets,
created_timestamp,
dashboard_arn,
refresh_schedule,
name,
status,
termination_protection_enabled,
type,
updated_timestamp,
tags
FROM aws.cloudtrail.dashboards
WHERE region = 'us-east-1' AND data__Identifier = '<DashboardArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.cloudtrail.dashboards (
,
region
)
SELECT
'{{ }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cloudtrail.dashboards
WHERE data__Identifier = '<DashboardArn>'
AND region = 'us-east-1';

Permissions

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

Create

CloudTrail:CreateDashboard,
CloudTrail:AddTags,
CloudTrail:StartQuery,
CloudTrail:StartDashboardRefresh

Read

CloudTrail:GetDashboard,
CloudTrail:ListDashboards,
CloudTrail:ListTags

Update

CloudTrail:UpdateDashboard,
CloudTrail:AddTags,
CloudTrail:RemoveTags,
CloudTrail:StartQuery,
CloudTrail:StartDashboardRefresh

Delete

CloudTrail:DeleteDashboard,
CloudTrail:UpdateDashboard

List

CloudTrail:ListDashboards,
CloudTrail:GetDashboard,
CloudTrail:ListTags