1import * as backup from "@distilled.cloud/aws/backup";
2import * as Layer from "effect/Layer";
3import { makeBackupVaultHttpBinding } from "./BindingHttp.ts";
4import { DescribeRecoveryPoint } from "./DescribeRecoveryPoint.ts";
5
6export const DescribeRecoveryPointHttp = Layer.effect(
7 DescribeRecoveryPoint,
8 makeBackupVaultHttpBinding({
9 tag: "AWS.Backup.DescribeRecoveryPoint",
10 operation: backup.describeRecoveryPoint,
11 actions: ["backup:DescribeRecoveryPoint"],
12 // Recovery-point actions authorize on the recovery point ARN (the
13 // underlying resource's snapshot ARN), not the vault ARN.
14 wildcardIam: true,
15 }),
16);