Interface ClientEncryptionCreateDataKeyProviderOptions

Options to provide when creating a new data key.

interface ClientEncryptionCreateDataKeyProviderOptions {
    keyAltNames?: string[];
    keyMaterial?: Binary | Buffer;
    masterKey?:
        | AWSEncryptionKeyOptions
        | AzureEncryptionKeyOptions
        | GCPEncryptionKeyOptions
        | KMIPEncryptionKeyOptions;
}

Properties

keyAltNames?: string[]

An optional list of string alternate names used to reference a key. If a key is created with alternate names, then encryption may refer to the key by the unique alternate name instead of by _id.

keyMaterial?: Binary | Buffer

Identifies a new KMS-specific key used to encrypt the new data key