1import * as mediaconnect from "@distilled.cloud/aws/mediaconnect";
2import * as Layer from "effect/Layer";
3import { makeMediaConnectFlowHttpBinding } from "./BindingHttp.ts";
4import { RevokeFlowEntitlement } from "./RevokeFlowEntitlement.ts";
5
6export const RevokeFlowEntitlementHttp = Layer.effect(
7 RevokeFlowEntitlement,
8 makeMediaConnectFlowHttpBinding({
9 tag: "AWS.MediaConnect.RevokeFlowEntitlement",
10 operation: mediaconnect.revokeFlowEntitlement,
11 actions: ["mediaconnect:RevokeFlowEntitlement"],
12 // The IAM resource types for RevokeFlowEntitlement 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);