1import * as paymentcryptography from "@distilled.cloud/aws/payment-cryptography";
2import * as Layer from "effect/Layer";
3import { makePaymentCryptographyKeyHttpBinding } from "./BindingHttp.ts";
4import { 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 */
11export const GetPublicKeyCertificateHttp = Layer.effect(
12 GetPublicKeyCertificate,
13 makePaymentCryptographyKeyHttpBinding({
14 tag: "AWS.PaymentCryptography.GetPublicKeyCertificate",
15 operation: paymentcryptography.getPublicKeyCertificate,
16 actions: ["payment-cryptography:GetPublicKeyCertificate"],
17 }),
18);