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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#ciphertext_blobString

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

Returns:

  • (String)


894
895
896
897
898
899
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 894

class GenerateDataKeyResponse < Struct.new(
  :ciphertext_blob,
  :plaintext,
  :key_id)
  include Aws::Structure
end

#key_idString

The identifier of the CMK under which the data encryption key was generated and encrypted.

Returns:

  • (String)


894
895
896
897
898
899
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 894

class GenerateDataKeyResponse < Struct.new(
  :ciphertext_blob,
  :plaintext,
  :key_id)
  include Aws::Structure
end

#plaintextString

The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.

Returns:

  • (String)


894
895
896
897
898
899
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 894

class GenerateDataKeyResponse < Struct.new(
  :ciphertext_blob,
  :plaintext,
  :key_id)
  include Aws::Structure
end