@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 32 lines 1.1 KB
Raw
1 import type * as glacier from "@distilled.cloud/aws/glacier";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Vault } from "./Vault.ts";
5
6 /**
7 * Runtime binding for the `DescribeVault` operation (IAM action
8 * `glacier:DescribeVault` on the vault ARN).
9 *
10 * Reads the bound {@link Vault}'s description — archive count, total size
11 * in bytes, and last inventory date (both as of the last nightly
12 * inventory).
13 * Provide the implementation with
14 * `Effect.provide(AWS.Glacier.DescribeVaultHttp)`.
15 * ### Inspecting Vaults
16 * **Example:** Read the vault's stats
17 * ```typescript
18 * const describeVault = yield* AWS.Glacier.DescribeVault(vault);
19 *
20 * const { NumberOfArchives, SizeInBytes } = yield* describeVault();
21 * ```
22 *
23 * @binding
24 */
25 export interface DescribeVault extends Binding.Service<
26 DescribeVault,
27 "AWS.Glacier.DescribeVault",
28 (
29 vault: Vault,
30 ) => Effect.Effect<() => Effect.Effect<glacier.DescribeVaultOutput, glacier.DescribeVaultError>>
31 > {}
32 export const DescribeVault = Binding.Service<DescribeVault>("AWS.Glacier.DescribeVault");