SignalingChannel
The SignalingChannel resource allows you to manage AWS KinesisVideo SignalingChannels for real-time communication between devices and applications.
Minimal Example
Section titled “Minimal Example”Create a basic signaling channel with a specified name and message TTL.
import AWS from "alchemy/aws/control";
const signalingChannel = await AWS.KinesisVideo.SignalingChannel("mySignalingChannel", { name: "MySignalingChannel", messageTtlSeconds: 300, // TTL of 5 minutes});
Advanced Configuration
Section titled “Advanced Configuration”Configure a signaling channel with additional options like the type and tags.
const advancedSignalingChannel = await AWS.KinesisVideo.SignalingChannel("advancedChannel", { name: "AdvancedSignalingChannel", type: "SINGLE_MASTER", // Specify the type of signaling channel messageTtlSeconds: 600, // TTL of 10 minutes tags: [ { key: "Environment", value: "Production" }, { key: "App", value: "VideoStreaming" } ],});
Adoption of Existing Resource
Section titled “Adoption of Existing Resource”If you want to adopt an existing signaling channel instead of failing when the resource already exists, you can set the adopt property.
const adoptExistingChannel = await AWS.KinesisVideo.SignalingChannel("existingChannel", { name: "ExistingSignalingChannel", adopt: true // Adopts existing resource if it already exists});
Create with Custom Tags
Section titled “Create with Custom Tags”Create a signaling channel while applying custom tags for better organization and management.
const taggedSignalingChannel = await AWS.KinesisVideo.SignalingChannel("taggedChannel", { name: "TaggedSignalingChannel", tags: [ { key: "Project", value: "KinesisVideoDemo" }, { key: "Owner", value: "DevTeam" } ],});