@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 40 lines 1.21 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:UpdateEncryptionKey`.
7 *
8 * Updates an encryption key. A `ResourceNotFoundException` means that an
9 * Amazon Web Services owned key is being used for encryption.
10 *
11 * Provide the implementation with
12 * `Effect.provide(AWS.Inspector2.UpdateEncryptionKeyHttp)`.
13 * ### Account Settings & Usage
14 * **Example:** Use a Customer-Managed Key
15 * ```typescript
16 * // init
17 * const updateEncryptionKey = yield* AWS.Inspector2.UpdateEncryptionKey();
18 *
19 * // runtime
20 * yield* updateEncryptionKey({
21 * kmsKeyId,
22 * resourceType: "AWS_ECR_CONTAINER_IMAGE",
23 * scanType: "PACKAGE",
24 * });
25 * ```
26 *
27 * @binding
28 */
29 export interface UpdateEncryptionKey extends Binding.Service<
30 UpdateEncryptionKey,
31 "AWS.Inspector2.UpdateEncryptionKey",
32 () => Effect.Effect<
33 (
34 request: inspector2.UpdateEncryptionKeyRequest,
35 ) => Effect.Effect<inspector2.UpdateEncryptionKeyResponse, inspector2.UpdateEncryptionKeyError>
36 >
37 > {}
38 export const UpdateEncryptionKey = Binding.Service<UpdateEncryptionKey>(
39 "AWS.Inspector2.UpdateEncryptionKey",
40 );