Class: Aws::KMS::Types::DecryptRequest

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

Overview

Note:

When making an API call, you may pass DecryptRequest data as a hash:

{
  ciphertext_blob: "data", # required
  encryption_context: {
    "EncryptionContextKey" => "EncryptionContextValue",
  },
  grant_tokens: ["GrantTokenType"],
}

Instance Attribute Summary collapse

Instance Attribute Details

#ciphertext_blobString

Ciphertext to be decrypted. The blob includes metadata.

Returns:

  • (String)


670
671
672
673
674
675
# File 'lib/aws-sdk-kms/types.rb', line 670

class DecryptRequest < Struct.new(
  :ciphertext_blob,
  :encryption_context,
  :grant_tokens)
  include Aws::Structure
end

#encryption_contextHash<String,String>

The encryption context. If this was specified in the Encrypt function, it must be specified here or the decryption operation will fail. For more information, see [Encryption Context].

[1]: docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html

Returns:

  • (Hash<String,String>)


670
671
672
673
674
675
# File 'lib/aws-sdk-kms/types.rb', line 670

class DecryptRequest < Struct.new(
  :ciphertext_blob,
  :encryption_context,
  :grant_tokens)
  include Aws::Structure
end

#grant_tokensArray<String>

A list of grant tokens.

For more information, see [Grant Tokens] in the *AWS Key Management Service Developer Guide*.

[1]: docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token

Returns:

  • (Array<String>)


670
671
672
673
674
675
# File 'lib/aws-sdk-kms/types.rb', line 670

class DecryptRequest < Struct.new(
  :ciphertext_blob,
  :encryption_context,
  :grant_tokens)
  include Aws::Structure
end