Skip to main content

projects

Creates, updates, deletes or gets a project resource or lists projects in a region

Overview

Nameprojects
TypeResource
DescriptionResource schema for AWS::IoTSiteWise::Project
Idaws.iotsitewise.projects

Fields

NameDatatypeDescription
portal_idstringThe ID of the portal in which to create the project.
project_idstringThe ID of the project.
project_namestringA friendly name for the project.
project_descriptionstringA description for the project.
project_arnstringThe ARN of the project.
asset_idsarrayThe IDs of the assets to be associated to the project.
tagsarrayA list of key-value pairs that contain metadata for the project.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTPortalId, ProjectName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all projects in a region.

SELECT
region,
portal_id,
project_id,
project_name,
project_description,
project_arn,
asset_ids,
tags
FROM aws.iotsitewise.projects
WHERE region = 'us-east-1';

Gets all properties from an individual project.

SELECT
region,
portal_id,
project_id,
project_name,
project_description,
project_arn,
asset_ids,
tags
FROM aws.iotsitewise.projects
WHERE region = 'us-east-1' AND data__Identifier = '<ProjectId>';

INSERT example

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

/*+ create */
INSERT INTO aws.iotsitewise.projects (
PortalId,
ProjectName,
region
)
SELECT
'{{ PortalId }}',
'{{ ProjectName }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

iotsitewise:CreateProject,
iotsitewise:DescribeProject,
iotsitewise:ListProjectAssets,
iotsitewise:ListTagsForResource,
iotsitewise:TagResource,
iotsitewise:BatchAssociateProjectAssets

Read

iotsitewise:DescribeProject,
iotsitewise:ListTagsForResource,
iotsitewise:ListProjectAssets

Update

iotsitewise:DescribeProject,
iotsitewise:UpdateProject,
iotsitewise:BatchAssociateProjectAssets,
iotsitewise:BatchDisAssociateProjectAssets,
iotsitewise:ListProjectAssets,
iotsitewise:TagResource,
iotsitewise:UntagResource,
iotsitewise:ListTagsForResource

Delete

iotsitewise:DescribeProject,
iotsitewise:DeleteProject

List

iotsitewise:ListProjects