The best way to control Claude Code, Codex and more from any computer or phone

main
ts 16 lines 640 Bytes
Raw
1 import * as backup from "@distilled.cloud/aws/backup";
2 import * as Layer from "effect/Layer";
3 import { makeBackupVaultHttpBinding } from "./BindingHttp.ts";
4 import { DescribeRecoveryPoint } from "./DescribeRecoveryPoint.ts";
5
6 export 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 );