1import * as backup from "@distilled.cloud/aws/backup";
2import * as Layer from "effect/Layer";
3import { makeBackupVaultHttpBinding } from "./BindingHttp.ts";
4import { GetRecoveryPointRestoreMetadata } from "./GetRecoveryPointRestoreMetadata.ts";
5
6export const GetRecoveryPointRestoreMetadataHttp = Layer.effect(
7 GetRecoveryPointRestoreMetadata,
8 makeBackupVaultHttpBinding({
9 tag: "AWS.Backup.GetRecoveryPointRestoreMetadata",
10 operation: backup.getRecoveryPointRestoreMetadata,
11 actions: ["backup:GetRecoveryPointRestoreMetadata"],
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);