Skip to content

StopFlow

Source: src/AWS/MediaConnect/StopFlow.ts

Runtime binding for mediaconnect:StopFlow.

Stops the bound Flow, transitioning it from ACTIVE through STOPPING back to STANDBY (where it no longer bills for transport). Stopping a flow that is not running fails with the typed BadRequestException tag. The flow ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.MediaConnect.StopFlowHttp).

// init — bind the operation to the flow
const stopFlow = yield* AWS.MediaConnect.StopFlow(flow);
// runtime — a flow that is already in STANDBY answers with the typed
// BadRequestException tag
yield* stopFlow().pipe(
Effect.catchTag("BadRequestException", () => Effect.void),
);