| 1 | import * as mediaconnect from "@distilled.cloud/aws/mediaconnect"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeMediaConnectFlowHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GrantFlowEntitlements } from "./GrantFlowEntitlements.ts"; |
| 5 | |
| 6 | export const GrantFlowEntitlementsHttp = Layer.effect( |
| 7 | GrantFlowEntitlements, |
| 8 | makeMediaConnectFlowHttpBinding({ |
| 9 | tag: "AWS.MediaConnect.GrantFlowEntitlements", |
| 10 | operation: mediaconnect.grantFlowEntitlements, |
| 11 | actions: ["mediaconnect:GrantFlowEntitlements"], |
| 12 | // The IAM resource types for GrantFlowEntitlements are the flow AND |
| 13 | // the entitlement; entitlement ARNs are siblings of (not derived |
| 14 | // from) the flow ARN, so they are granted by wildcard. |
| 15 | extraResources: ["arn:aws:mediaconnect:*:*:entitlement:*"], |
| 16 | }), |
| 17 | ); |