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:ResetEncryptionKey`.
7 *
8 * Resets an encryption key. After the key is reset your resources will be encrypted by an
9 * Amazon Web Services owned key.
10 *
11 * Provide the implementation with
12 * `Effect.provide(AWS.Inspector2.ResetEncryptionKeyHttp)`.
13 * ### Account Settings & Usage
14 * **Example:** Reset to the AWS-Owned Key
15 * ```typescript
16 * // init
17 * const resetEncryptionKey = yield* AWS.Inspector2.ResetEncryptionKey();
18 *
19 * // runtime
20 * yield* resetEncryptionKey({
21 * resourceType: "AWS_ECR_CONTAINER_IMAGE",
22 * scanType: "PACKAGE",
23 * });
24 * ```
25 *
26 * @binding
27 */
28export interface ResetEncryptionKey extends Binding.Service<
29 ResetEncryptionKey,
30 "AWS.Inspector2.ResetEncryptionKey",
31 () => Effect.Effect<
32 (
33 request: inspector2.ResetEncryptionKeyRequest,
34 ) => Effect.Effect<
35 inspector2.ResetEncryptionKeyResponse,
36 inspector2.ResetEncryptionKeyError
37 >
38 >
39> {}
40export const ResetEncryptionKey = Binding.Service<ResetEncryptionKey>(
41 "AWS.Inspector2.ResetEncryptionKey",
42);