Skip to content

ListInputs

Source: src/AWS/MediaLive/ListInputs.ts

Runtime binding for medialive:ListInputs.

Enumerates the account’s MediaLive inputs (one page per call — pass NextToken from the previous response to continue) — e.g. an inventory endpoint that maps ingest endpoints to the channels they feed. Account-level: the deploy-time grant is medialive:ListInputs on *. Provide the implementation with Effect.provide(AWS.MediaLive.ListInputsHttp).

// init — bind the account-level operation
const listInputs = yield* AWS.MediaLive.ListInputs();
// runtime
const { Inputs } = yield* listInputs({ MaxResults: 20 });
const attached = (Inputs ?? []).filter((i) => i.State === "ATTACHED");