Skip to main content

project_assets

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

Overview

Nameproject_assets
TypeResource
Idaws.iotsitewise.project_assets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
asset_idstringA list that contains the IDs of each asset associated with the project.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_project_assetsselectproject_id, regionnextToken, maxResultsRetrieves a paginated list of assets associated with an IoT SiteWise Monitor project.
batch_associate_project_assetsexecproject_id, region, assetIdsThe 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. Associates a group (batch) of assets with an IoT SiteWise Monitor project.
batch_disassociate_project_assetsexecproject_id, region, assetIdsDisassociates a group (batch) of assets from an IoT SiteWise Monitor project.

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
project_idstringThe ID of the project from which to disassociate the assets.
regionstringAWS region (default: us-east-1)
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 assets associated with an IoT SiteWise Monitor project.

SELECT
asset_id
FROM aws.iotsitewise.project_assets
WHERE project_id = '{{ project_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

Lifecycle Methods

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. Associates a group (batch) of assets with an IoT SiteWise Monitor project.

EXEC aws.iotsitewise.project_assets.batch_associate_project_assets
@project_id='{{ project_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"assetIds": "{{ assetIds }}",
"clientToken": "{{ clientToken }}"
}'
;