Skip to content

GetEncryptionKey

Source: src/AWS/Inspector2/GetEncryptionKey.ts

Runtime binding for inspector2:GetEncryptionKey.

Gets an encryption key.

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

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