Skip to main content

scenes

Creates, updates, deletes or gets a scene resource or lists scenes in a region

Overview

Namescenes
TypeResource
DescriptionResource schema for AWS::IoTTwinMaker::Scene
Idaws.iottwinmaker.scenes

Fields

NameDatatypeDescription
scene_idstringThe ID of the scene.
arnstringThe ARN of the scene.
descriptionstringThe description of the scene.
content_locationstringThe relative path that specifies the location of the content definition file.
creation_date_timestringThe date and time when the scene was created.
update_date_timestringThe date and time of the current update.
tagsobjectA key-value pair to associate with a resource.
workspace_idstringThe ID of the scene.
capabilitiesarrayA list of capabilities that the scene uses to render.
scene_metadataobjectA key-value pair of scene metadata for the scene.
generated_scene_metadataobjectA key-value pair of generated scene metadata for the scene.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTWorkspaceId, SceneId, ContentLocation, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all scenes in a region.

SELECT
region,
scene_id,
arn,
description,
content_location,
creation_date_time,
update_date_time,
tags,
workspace_id,
capabilities,
scene_metadata,
generated_scene_metadata
FROM aws.iottwinmaker.scenes
WHERE region = 'us-east-1';

Gets all properties from an individual scene.

SELECT
region,
scene_id,
arn,
description,
content_location,
creation_date_time,
update_date_time,
tags,
workspace_id,
capabilities,
scene_metadata,
generated_scene_metadata
FROM aws.iottwinmaker.scenes
WHERE region = 'us-east-1' AND data__Identifier = '<WorkspaceId>|<SceneId>';

INSERT example

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

/*+ create */
INSERT INTO aws.iottwinmaker.scenes (
SceneId,
ContentLocation,
WorkspaceId,
region
)
SELECT
'{{ SceneId }}',
'{{ ContentLocation }}',
'{{ WorkspaceId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iottwinmaker.scenes
WHERE data__Identifier = '<WorkspaceId|SceneId>'
AND region = 'us-east-1';

Permissions

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

Create

iottwinmaker:CreateScene,
iottwinmaker:GetScene,
iottwinmaker:GetWorkspace,
iottwinmaker:ListTagsForResource,
iottwinmaker:TagResource

Read

iottwinmaker:GetWorkspace,
iottwinmaker:GetScene,
iottwinmaker:ListTagsForResource

Update

iottwinmaker:GetScene,
iottwinmaker:GetWorkspace,
iottwinmaker:ListTagsForResource,
iottwinmaker:TagResource,
iottwinmaker:UntagResource,
iottwinmaker:UpdateScene

Delete

iottwinmaker:DeleteScene,
iottwinmaker:GetScene,
iottwinmaker:GetWorkspace

List

iottwinmaker:GetWorkspace,
iottwinmaker:ListTagsForResource,
iottwinmaker:ListScenes