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).
Controlling Flows
Section titled “Controlling Flows”// init — bind the operation to the flowconst stopFlow = yield* AWS.MediaConnect.StopFlow(flow);
// runtime — a flow that is already in STANDBY answers with the typed// BadRequestException tagyield* stopFlow().pipe( Effect.catchTag("BadRequestException", () => Effect.void),);