Skip to content
GitHubXDiscord

Scene

The Scene resource lets you manage AWS IoTTwinMaker Scenes for visualizing and interacting with digital twins of real-world systems.

Create a basic IoTTwinMaker Scene with required properties and one optional description.

import AWS from "alchemy/aws/control";
const basicScene = await AWS.IoTTwinMaker.Scene("basicScene", {
SceneId: "myScene",
ContentLocation: "s3://mybucket/mySceneContent",
Description: "A basic IoTTwinMaker scene"
});

Configure a scene with additional metadata and capabilities for enhanced functionality.

const advancedScene = await AWS.IoTTwinMaker.Scene("advancedScene", {
SceneId: "advancedScene",
ContentLocation: "s3://mybucket/advancedSceneContent",
SceneMetadata: {
author: "Jane Doe",
version: "1.2.0"
},
Capabilities: ["3D", "Interactive"],
WorkspaceId: "workspace-123"
});

Create a scene that includes tags for better organization and management.

const taggedScene = await AWS.IoTTwinMaker.Scene("taggedScene", {
SceneId: "taggedScene",
ContentLocation: "s3://mybucket/taggedSceneContent",
Tags: {
environment: "production",
project: "IoTTwinMakerDemo"
},
WorkspaceId: "workspace-456"
});

Create a scene that adopts an existing resource instead of failing if it already exists.

const adoptedScene = await AWS.IoTTwinMaker.Scene("adoptedScene", {
SceneId: "existingScene",
ContentLocation: "s3://mybucket/existingSceneContent",
adopt: true, // This will adopt the existing resource
WorkspaceId: "workspace-789"
});