Skip to content

GrantFlowEntitlements

Source: src/AWS/MediaConnect/GrantFlowEntitlements.ts

Runtime binding for mediaconnect:GrantFlowEntitlements.

Grants entitlements on the bound Flow so other AWS accounts can subscribe to its content — e.g. a self-service affiliate portal that provisions access for a new subscriber account on demand. Granting more entitlements than the flow allows fails with the typed GrantFlowEntitlements420Exception tag. The flow ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.MediaConnect.GrantFlowEntitlementsHttp).

// init — bind the operation to the flow
const grantEntitlements = yield* AWS.MediaConnect.GrantFlowEntitlements(flow);
// runtime
const { Entitlements } = yield* grantEntitlements({
Entitlements: [
{ Name: "affiliate-west", Subscribers: ["111122223333"] },
],
});