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
| 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 | * `ListJobs` request with `accountId` and `vaultName` injected from the bound |
| 8 | * {@link Vault}. |
| 9 | */ |
| 10 | export interface ListJobsRequest extends Omit<glacier.ListJobsInput, "accountId" | "vaultName"> {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for the `ListJobs` operation (IAM action |
| 14 | * `glacier:ListJobs` on the vault ARN). |
| 15 | * |
| 16 | * Lists in-progress and recently finished jobs for the bound |
| 17 | * {@link Vault}, optionally filtered by status code or completion. |
| 18 | * Provide the implementation with |
| 19 | * `Effect.provide(AWS.Glacier.ListJobsHttp)`. |
| 20 | * ### Retrieving Archives |
| 21 | * **Example:** List the vault's jobs |
| 22 | * ```typescript |
| 23 | * const listJobs = yield* AWS.Glacier.ListJobs(vault); |
| 24 | * |
| 25 | * const { JobList } = yield* listJobs({ completed: "true" }); |
| 26 | * ``` |
| 27 | * |
| 28 | * @binding |
| 29 | */ |
| 30 | export interface ListJobs extends Binding.Service< |
| 31 | ListJobs, |
| 32 | "AWS.Glacier.ListJobs", |
| 33 | ( |
| 34 | vault: Vault, |
| 35 | ) => Effect.Effect< |
| 36 | (request?: ListJobsRequest) => Effect.Effect<glacier.ListJobsOutput, glacier.ListJobsError> |
| 37 | > |
| 38 | > {} |
| 39 | export const ListJobs = Binding.Service<ListJobs>("AWS.Glacier.ListJobs"); |