Input
Source:
src/AWS/MediaLive/Input.ts
An AWS Elemental MediaLive input — the ingest endpoint or source locator a channel reads live content from (RTMP/RTP push, HLS/MP4 pull, MediaConnect flow, …).
Creating Inputs
Section titled “Creating Inputs”RTMP push input behind an allowlist
const isg = yield* MediaLive.InputSecurityGroup("Allowlist", { whitelistRules: ["0.0.0.0/0"],});const input = yield* MediaLive.Input("Stream", { type: "RTMP_PUSH", inputSecurityGroups: [isg.inputSecurityGroupId], destinations: [{ StreamName: "live/stream" }],});HLS pull input
const input = yield* MediaLive.Input("Vod", { type: "URL_PULL", sources: [{ Url: "https://example.com/stream/index.m3u8" }],});Attaching to a Channel
Section titled “Attaching to a Channel”const channel = yield* MediaLive.Channel("Live", { roleArn: role.roleArn, inputAttachments: [ { InputId: input.inputId, InputAttachmentName: "primary" }, ], encoderSettings, destinations,});