| 1 | import type * as inspector2 from "@distilled.cloud/aws/inspector2"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 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< |
| 36 | inspector2.UpdateEncryptionKeyResponse, |
| 37 | inspector2.UpdateEncryptionKeyError |
| 38 | > |
| 39 | > |
| 40 | > {} |
| 41 | export const UpdateEncryptionKey = Binding.Service<UpdateEncryptionKey>( |
| 42 | "AWS.Inspector2.UpdateEncryptionKey", |
| 43 | ); |