1import type * as inspector2 from "@distilled.cloud/aws/inspector2";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
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 */
27export interface GetEncryptionKey extends Binding.Service<
28 GetEncryptionKey,
29 "AWS.Inspector2.GetEncryptionKey",
30 () => Effect.Effect<
31 (
32 request: inspector2.GetEncryptionKeyRequest,
33 ) => Effect.Effect<
34 inspector2.GetEncryptionKeyResponse,
35 inspector2.GetEncryptionKeyError
36 >
37 >
38> {}
39export const GetEncryptionKey = Binding.Service<GetEncryptionKey>(
40 "AWS.Inspector2.GetEncryptionKey",
41);