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