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