| 1 | import * as paymentcryptographydata from "@distilled.cloud/aws/payment-cryptography-data"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makePaymentCryptographyKeyHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GenerateAs2805KekValidation } from "./GenerateAs2805KekValidation.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GenerateAs2805KekValidation} — grants the |
| 8 | * host Function `payment-cryptography:GenerateAs2805KekValidation` on the |
| 9 | * KEK and calls the Payment Cryptography Data API at runtime. |
| 10 | */ |
| 11 | export const GenerateAs2805KekValidationHttp = Layer.effect( |
| 12 | GenerateAs2805KekValidation, |
| 13 | makePaymentCryptographyKeyHttpBinding({ |
| 14 | tag: "AWS.PaymentCryptography.GenerateAs2805KekValidation", |
| 15 | operation: paymentcryptographydata.generateAs2805KekValidation, |
| 16 | actions: ["payment-cryptography:GenerateAs2805KekValidation"], |
| 17 | }), |
| 18 | ); |