Skip to content

RevokeFlowEntitlement

Source: src/AWS/MediaConnect/RevokeFlowEntitlement.ts

Runtime binding for mediaconnect:RevokeFlowEntitlement.

Revokes an entitlement previously granted on the bound Flow — the content immediately becomes unavailable to the subscriber and the associated output is removed from the flow. The flow ARN is injected from the binding; the entitlement to revoke is passed at runtime. Because the IAM resource types for this action are the flow AND the entitlement (a sibling ARN, not derived from the flow ARN), the deploy-time grant covers the flow ARN plus the entitlement wildcard. Provide the implementation with Effect.provide(AWS.MediaConnect.RevokeFlowEntitlementHttp).

// init — bind the operation to the flow
const revokeEntitlement = yield* AWS.MediaConnect.RevokeFlowEntitlement(flow);
// runtime
yield* revokeEntitlement({ EntitlementArn: entitlementArn });