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