project_assets
Creates, updates, deletes, gets or lists a project_assets resource.
Overview
| Name | project_assets |
| Type | Resource |
| Id | aws.iotsitewise.project_assets |
Fields
The following fields are returned by SELECT queries:
- list_project_assets
| Name | Datatype | Description |
|---|---|---|
asset_id | string | A list that contains the IDs of each asset associated with the project. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_project_assets | select | project_id, region | nextToken, maxResults | Retrieves a paginated list of assets associated with an IoT SiteWise Monitor project. |
batch_associate_project_assets | exec | project_id, region, assetIds | 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. | |
batch_disassociate_project_assets | exec | project_id, region, assetIds | Disassociates 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.
| Name | Datatype | Description |
|---|---|---|
project_id | string | The ID of the project from which to disassociate the assets. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of results to return for each paginated request. Default: 50 |
nextToken | string | The token to be used for the next set of paginated results. |
SELECT examples
- list_project_assets
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
- batch_associate_project_assets
- batch_disassociate_project_assets
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 }}"
}'
;
Disassociates a group (batch) of assets from an IoT SiteWise Monitor project.
EXEC aws.iotsitewise.project_assets.batch_disassociate_project_assets
@project_id='{{ project_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"assetIds": "{{ assetIds }}",
"clientToken": "{{ clientToken }}"
}'
;