@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 34 lines 1.18 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 `GetResourcePolicy` operation (IAM action
7 * `cloudhsm:GetResourcePolicy`).
8 *
9 * Reads the resource policy attached to a CloudHSM backup (backups are the
10 * only CloudHSM resource that supports policies — they govern cross-account
11 * backup sharing). Provide the implementation with
12 * `Effect.provide(AWS.CloudHSMV2.GetResourcePolicyHttp)`.
13 * ### Sharing Backups
14 * **Example:** Read A Backup's Sharing Policy
15 * ```typescript
16 * const getResourcePolicy = yield* AWS.CloudHSMV2.GetResourcePolicy();
17 *
18 * const { Policy } = yield* getResourcePolicy({ ResourceArn: backupArn });
19 * ```
20 *
21 * @binding
22 */
23 export interface GetResourcePolicy extends Binding.Service<
24 GetResourcePolicy,
25 "AWS.CloudHSMV2.GetResourcePolicy",
26 () => Effect.Effect<
27 (
28 request?: cloudhsm.GetResourcePolicyRequest,
29 ) => Effect.Effect<cloudhsm.GetResourcePolicyResponse, cloudhsm.GetResourcePolicyError>
30 >
31 > {}
32 export const GetResourcePolicy = Binding.Service<GetResourcePolicy>(
33 "AWS.CloudHSMV2.GetResourcePolicy",
34 );