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
Idawscc.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.

For more information, see AWS::IoTSiteWise::Project.

Methods

NameResourceAccessible byRequired Params
create_resourceprojectsINSERTPortalId, ProjectName, region
delete_resourceprojectsDELETEIdentifier, region
update_resourceprojectsUPDATEIdentifier, PatchDocument, region
list_resourcesprojects_list_onlySELECTregion
get_resourceprojectsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual project.

SELECT
region,
portal_id,
project_id,
project_name,
project_description,
project_arn,
asset_ids,
tags
FROM awscc.iotsitewise.projects
WHERE
region = 'us-east-1' AND
Identifier = '{{ project_id }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.iotsitewise.projects
SET PatchDocument = string('{{ {
"ProjectName": project_name,
"ProjectDescription": project_description,
"AssetIds": asset_ids,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ project_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.iotsitewise.projects
WHERE
Identifier = '{{ project_id }}' AND
region = 'us-east-1';

Permissions

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

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