You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::KMS::Types::GenerateDataKeyResponse

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#ciphertext_blobString

The encrypted copy of the data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

Returns:

  • (String)

    The encrypted copy of the data key.

#key_idString

The Amazon Resource Name (key ARN) of the CMK that encrypted the data key.

Returns:

  • (String)

    The Amazon Resource Name ([key ARN][1]) of the CMK that encrypted the data key.

#plaintextString

The plaintext data key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. Then, remove it from memory as soon as possible.

Returns:

  • (String)

    The plaintext data key.