Skip to main content

dashboards

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

Overview

Namedashboards
TypeResource
Idaws.iotsitewise.dashboards

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the dashboard. (pattern: <code>^(?!00000000-0000-0000-0000-000000000000)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)
namestringThe name of the dashboard (pattern: <code>[^\u0000-\u001F\u007F]+</code>)
creation_datestring (date-time)The date the dashboard was created, in Unix epoch time.
descriptionstringThe dashboard's description. (pattern: <code>[^\u0000-\u001F\u007F]+</code>)
last_update_datestring (date-time)The date the dashboard was last updated, in Unix epoch time.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_dashboardsselectprojectId, regionnextToken, maxResultsRetrieves a paginated list of dashboards for an IoT SiteWise Monitor project.
describe_dashboardselectdashboard_id, regionRetrieves information about a dashboard.
create_dashboardinsertregion, projectId, dashboardName, dashboardDefinitionThe IoT SiteWise Monitor feature will no longer be open to new customers starting November 7, 2025. If you would like to use the IoT SiteWise Monitor feature, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see IoT SiteWise Monitor availability change. Creates a dashboard in an IoT SiteWise Monitor project.
update_dashboardupdatedashboard_id, region, dashboardName, dashboardDefinitionThe IoT SiteWise Monitor feature will no longer be open to new customers starting November 7, 2025. If you would like to use the IoT SiteWise Monitor feature, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see IoT SiteWise Monitor availability change. Updates an IoT SiteWise Monitor dashboard.
delete_dashboarddeletedashboard_id, regionclientTokenDeletes a dashboard from IoT SiteWise Monitor.

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
dashboard_idstringThe ID of the dashboard to delete.
projectIdstringThe ID of the project.
regionstringAWS region (default: us-east-1)
clientTokenstringA unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
maxResultsintegerThe maximum number of results to return for each paginated request. Default: 50
nextTokenstringThe token to be used for the next set of paginated results.

SELECT examples

Retrieves a paginated list of dashboards for an IoT SiteWise Monitor project.

SELECT
id,
name,
creation_date,
description,
last_update_date
FROM aws.iotsitewise.dashboards
WHERE projectId = '{{ projectId }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

INSERT examples

The IoT SiteWise Monitor feature will no longer be open to new customers starting November 7, 2025. If you would like to use the IoT SiteWise Monitor feature, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see IoT SiteWise Monitor availability change. Creates a dashboard in an IoT SiteWise Monitor project.

INSERT INTO aws.iotsitewise.dashboards (
projectId,
dashboardName,
dashboardDescription,
dashboardDefinition,
clientToken,
tags,
region
)
SELECT
'{{ projectId }}' /* required */,
'{{ dashboardName }}' /* required */,
'{{ dashboardDescription }}',
'{{ dashboardDefinition }}' /* required */,
'{{ clientToken }}',
'{{ tags }}',
'{{ region }}'
RETURNING
dashboard_arn,
dashboard_id
;

UPDATE examples

The IoT SiteWise Monitor feature will no longer be open to new customers starting November 7, 2025. If you would like to use the IoT SiteWise Monitor feature, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see IoT SiteWise Monitor availability change. Updates an IoT SiteWise Monitor dashboard.

UPDATE aws.iotsitewise.dashboards
SET
dashboardName = '{{ dashboardName }}',
dashboardDescription = '{{ dashboardDescription }}',
dashboardDefinition = '{{ dashboardDefinition }}',
clientToken = '{{ clientToken }}'
WHERE
dashboard_id = '{{ dashboard_id }}' --required
AND region = '{{ region }}' --required
AND dashboardName = '{{ dashboardName }}' --required
AND dashboardDefinition = '{{ dashboardDefinition }}' --required;

DELETE examples

Deletes a dashboard from IoT SiteWise Monitor.

DELETE FROM aws.iotsitewise.dashboards
WHERE dashboard_id = '{{ dashboard_id }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}'
;