@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, 04:45 UTC

main
ts 39 lines 1.47 KB
Raw
1 import type * as backup from "@distilled.cloud/aws/backup";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `GetRestoreJobMetadata` operation (IAM action
7 * `backup:GetRestoreJobMetadata`).
8 *
9 * Returns the metadata of a restore job — the key/value set describing the
10 * restored resource. Together with `PutRestoreValidationResult` this is the
11 * restore-testing validation flow: AWS Backup invokes a validation Lambda
12 * after a restore-test job completes, the Lambda inspects the restored
13 * resource, then reports the verdict. Provide the implementation with
14 * `Effect.provide(AWS.Backup.GetRestoreJobMetadataHttp)`.
15 * ### Restore Testing Validation
16 * **Example:** Inspect A Restore Test's Metadata
17 * ```typescript
18 * const getRestoreJobMetadata = yield* AWS.Backup.GetRestoreJobMetadata();
19 *
20 * const { Metadata } = yield* getRestoreJobMetadata({
21 * RestoreJobId: restoreJobId,
22 * });
23 * yield* Effect.log(`restored resource metadata: ${JSON.stringify(Metadata)}`);
24 * ```
25 *
26 * @binding
27 */
28 export interface GetRestoreJobMetadata extends Binding.Service<
29 GetRestoreJobMetadata,
30 "AWS.Backup.GetRestoreJobMetadata",
31 () => Effect.Effect<
32 (
33 request: backup.GetRestoreJobMetadataInput,
34 ) => Effect.Effect<backup.GetRestoreJobMetadataOutput, backup.GetRestoreJobMetadataError>
35 >
36 > {}
37 export const GetRestoreJobMetadata = Binding.Service<GetRestoreJobMetadata>(
38 "AWS.Backup.GetRestoreJobMetadata",
39 );