Skip to main content

dashboards

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

Overview

Namedashboards
TypeResource
DescriptionResource schema for AWS::IoTSiteWise::Dashboard
Idaws.iotsitewise.dashboards

Fields

NameDatatypeDescription
project_idstringThe ID of the project in which to create the dashboard.
dashboard_idstringThe ID of the dashboard.
dashboard_namestringA friendly name for the dashboard.
dashboard_descriptionstringA description for the dashboard.
dashboard_definitionstringThe dashboard definition specified in a JSON literal.
dashboard_arnstringThe ARN of the dashboard.
tagsarrayA list of key-value pairs that contain metadata for the dashboard.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDashboardDefinition, DashboardDescription, DashboardName, 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,
project_id,
dashboard_id,
dashboard_name,
dashboard_description,
dashboard_definition,
dashboard_arn,
tags
FROM aws.iotsitewise.dashboards
WHERE region = 'us-east-1';

Gets all properties from an individual dashboard.

SELECT
region,
project_id,
dashboard_id,
dashboard_name,
dashboard_description,
dashboard_definition,
dashboard_arn,
tags
FROM aws.iotsitewise.dashboards
WHERE region = 'us-east-1' AND data__Identifier = '<DashboardId>';

INSERT example

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

/*+ create */
INSERT INTO aws.iotsitewise.dashboards (
DashboardName,
DashboardDescription,
DashboardDefinition,
region
)
SELECT
'{{ DashboardName }}',
'{{ DashboardDescription }}',
'{{ DashboardDefinition }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

iotsitewise:CreateDashboard,
iotsitewise:DescribeDashboard,
iotsitewise:ListTagsForResource,
iotsitewise:TagResource,
iotsitewise:DescribeAsset,
iotsitewise:DescribeAssetModel,
iotsitewise:ListAssetModelProperties,
iotsitewise:ListAssetModelCompositeModels

Read

iotsitewise:DescribeDashboard,
iotsitewise:ListTagsForResource

Update

iotsitewise:DescribeDashboard,
iotsitewise:UpdateDashboard,
iotsitewise:TagResource,
iotsitewise:UntagResource,
iotsitewise:ListTagsForResource,
iotsitewise:DescribeAsset,
iotsitewise:DescribeAssetModel,
iotsitewise:ListAssetModelProperties,
iotsitewise:ListAssetModelCompositeModels

Delete

iotsitewise:DescribeDashboard,
iotsitewise:DeleteDashboard

List

iotsitewise:ListDashboards