@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 33 lines 1.16 KB
Raw
1 import type * as cloudhsm from "@distilled.cloud/aws/cloudhsm-v2";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `DeleteBackup` operation (IAM action
7 * `cloudhsm:DeleteBackup`).
8 *
9 * Marks a CloudHSM backup for deletion — it enters `PENDING_DELETION` and
10 * can still be recovered with `RestoreBackup` for 7 days. Pair with
11 * `DescribeBackups` to build a backup-pruning job. Provide the
12 * implementation with `Effect.provide(AWS.CloudHSMV2.DeleteBackupHttp)`.
13 * ### Managing Backups
14 * **Example:** Prune A Backup
15 * ```typescript
16 * const deleteBackup = yield* AWS.CloudHSMV2.DeleteBackup();
17 *
18 * const deleted = yield* deleteBackup({ BackupId: backupId });
19 * // deleted.Backup?.BackupState === "PENDING_DELETION"
20 * ```
21 *
22 * @binding
23 */
24 export interface DeleteBackup extends Binding.Service<
25 DeleteBackup,
26 "AWS.CloudHSMV2.DeleteBackup",
27 () => Effect.Effect<
28 (
29 request: cloudhsm.DeleteBackupRequest,
30 ) => Effect.Effect<cloudhsm.DeleteBackupResponse, cloudhsm.DeleteBackupError>
31 >
32 > {}
33 export const DeleteBackup = Binding.Service<DeleteBackup>("AWS.CloudHSMV2.DeleteBackup");