Skip to main content

scenes

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

Overview

Namescenes
TypeResource
Idaws.iottwinmaker.scenes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the scene. (pattern: <code>arn:((aws)|(aws-cn)|(aws-us-gov)):iottwinmaker:[a-z0-9-]+:[0-9]{12}:[/a-zA-Z0-9_-.:]+</code>)
capabilitiesarrayA list of capabilities that the scene uses to render.
content_locationstringThe relative path that specifies the location of the content definition file. (pattern: <code>[sS]3:​//[A-Za-z0-9._/-]+</code>)
creation_date_timestring (date-time)The date and time when the scene was created.
descriptionstringThe description of the scene. (pattern: <code>.*</code>)
errorobjectThe SceneResponse error.
generated_scene_metadataobjectThe generated scene metadata.
scene_idstringThe ID of the scene. (pattern: <code>[a-zA-Z_0-9][a-zA-Z_-0-9]*[a-zA-Z0-9]+</code>)
scene_metadataobjectThe response metadata.
update_date_timestring (date-time)The date and time when the scene was last updated.
workspace_idstringThe ID of the workspace that contains the scene. (pattern: <code>[a-zA-Z_0-9][a-zA-Z_-0-9]*[a-zA-Z0-9]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sceneselectworkspace_id, scene_id, regionRetrieves information about a scene.
list_scenesselectworkspace_id, regionLists all scenes in a workspace.
create_sceneinsertworkspace_id, region, sceneId, contentLocationCreates a scene.
update_sceneupdateworkspace_id, scene_id, regionUpdates a scene.
delete_scenedeleteworkspace_id, scene_id, regionDeletes a scene.

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
regionstringAWS region (default: us-east-1)
scene_idstringThe ID of the scene to delete.
workspace_idstringThe ID of the workspace.

SELECT examples

Retrieves information about a scene.

SELECT
arn,
capabilities,
content_location,
creation_date_time,
description,
error,
generated_scene_metadata,
scene_id,
scene_metadata,
update_date_time,
workspace_id
FROM aws.iottwinmaker.scenes
WHERE workspace_id = '{{ workspace_id }}' -- required
AND scene_id = '{{ scene_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a scene.

INSERT INTO aws.iottwinmaker.scenes (
sceneId,
contentLocation,
description,
capabilities,
tags,
sceneMetadata,
workspace_id,
region
)
SELECT
'{{ sceneId }}' /* required */,
'{{ contentLocation }}' /* required */,
'{{ description }}',
'{{ capabilities }}',
'{{ tags }}',
'{{ sceneMetadata }}',
'{{ workspace_id }}',
'{{ region }}'
RETURNING
arn,
creation_date_time
;

UPDATE examples

Updates a scene.

UPDATE aws.iottwinmaker.scenes
SET
contentLocation = '{{ contentLocation }}',
description = '{{ description }}',
capabilities = '{{ capabilities }}',
sceneMetadata = '{{ sceneMetadata }}'
WHERE
workspace_id = '{{ workspace_id }}' --required
AND scene_id = '{{ scene_id }}' --required
AND region = '{{ region }}' --required
RETURNING
update_date_time;

DELETE examples

Deletes a scene.

DELETE FROM aws.iottwinmaker.scenes
WHERE workspace_id = '{{ workspace_id }}' --required
AND scene_id = '{{ scene_id }}' --required
AND region = '{{ region }}' --required
;