Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idaws.iotsitewise.projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the project. (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 project. (pattern: <code>[^\u0000-\u001F\u007F]+</code>)
creation_datestring (date-time)The date the project was created, in Unix epoch time.
descriptionstringThe project's description. (pattern: <code>[^\u0000-\u001F\u007F]+</code>)
last_update_datestring (date-time)The date the project was last updated, in Unix epoch time.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_projectsselectportalId, regionnextToken, maxResultsRetrieves a paginated list of projects for an IoT SiteWise Monitor portal.
describe_projectselectproject_id, regionRetrieves information about a project.
create_projectinsertregion, portalId, projectNameThe 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 project in the specified portal. Make sure that the project name and description don't contain confidential information.
update_projectupdateproject_id, region, projectNameThe 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 project.
delete_projectdeleteproject_id, regionclientTokenDeletes a project 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
portalIdstringThe ID of the portal.
project_idstringThe 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 projects for an IoT SiteWise Monitor portal.

SELECT
id,
name,
creation_date,
description,
last_update_date
FROM aws.iotsitewise.projects
WHERE portalId = '{{ portalId }}' -- 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 project in the specified portal. Make sure that the project name and description don't contain confidential information.

INSERT INTO aws.iotsitewise.projects (
portalId,
projectName,
projectDescription,
clientToken,
tags,
region
)
SELECT
'{{ portalId }}' /* required */,
'{{ projectName }}' /* required */,
'{{ projectDescription }}',
'{{ clientToken }}',
'{{ tags }}',
'{{ region }}'
RETURNING
project_arn,
project_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 project.

UPDATE aws.iotsitewise.projects
SET
projectName = '{{ projectName }}',
projectDescription = '{{ projectDescription }}',
clientToken = '{{ clientToken }}'
WHERE
project_id = '{{ project_id }}' --required
AND region = '{{ region }}' --required
AND projectName = '{{ projectName }}' --required;

DELETE examples

Deletes a project from IoT SiteWise Monitor.

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