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

main
ts 38 lines 1.07 KB
Raw
1 import type * as inspector2 from "@distilled.cloud/aws/inspector2";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `inspector2:GetEncryptionKey`.
7 *
8 * Gets an encryption key.
9 *
10 * Provide the implementation with
11 * `Effect.provide(AWS.Inspector2.GetEncryptionKeyHttp)`.
12 * ### Account Settings & Usage
13 * **Example:** Read the CMK for a Scan Type
14 * ```typescript
15 * // init
16 * const getEncryptionKey = yield* AWS.Inspector2.GetEncryptionKey();
17 *
18 * // runtime
19 * const { kmsKeyId } = yield* getEncryptionKey({
20 * resourceType: "AWS_ECR_CONTAINER_IMAGE",
21 * scanType: "PACKAGE",
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface GetEncryptionKey extends Binding.Service<
28 GetEncryptionKey,
29 "AWS.Inspector2.GetEncryptionKey",
30 () => Effect.Effect<
31 (
32 request: inspector2.GetEncryptionKeyRequest,
33 ) => Effect.Effect<inspector2.GetEncryptionKeyResponse, inspector2.GetEncryptionKeyError>
34 >
35 > {}
36 export const GetEncryptionKey = Binding.Service<GetEncryptionKey>(
37 "AWS.Inspector2.GetEncryptionKey",
38 );