Skip to content

UpdateEncryptionKey

Source: src/AWS/Inspector2/UpdateEncryptionKey.ts

Runtime binding for inspector2:UpdateEncryptionKey.

Updates an encryption key. A ResourceNotFoundException means that an Amazon Web Services owned key is being used for encryption.

Provide the implementation with Effect.provide(AWS.Inspector2.UpdateEncryptionKeyHttp).

// init
const updateEncryptionKey = yield* AWS.Inspector2.UpdateEncryptionKey();
// runtime
yield* updateEncryptionKey({
kmsKeyId,
resourceType: "AWS_ECR_CONTAINER_IMAGE",
scanType: "PACKAGE",
});