Exception: Aws::S3::EncryptionV2::Errors::LegacyDecryptionError

Inherits:
DecryptionError
  • Object
show all
Defined in:
lib/aws-sdk-s3/encryptionV2/errors.rb

Overview

Raised when attempting to decrypt a legacy (V1) encrypted object when using a security_profile that does not support it.

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ LegacyDecryptionError

Returns a new instance of LegacyDecryptionError.



16
17
18
19
20
21
22
# File 'lib/aws-sdk-s3/encryptionV2/errors.rb', line 16

def initialize(*args)
  msg = 'The requested object is ' \
    'encrypted with V1 encryption schemas that have been disabled ' \
    'by client configuration security_profile = :v2. Retry with ' \
    ':v2_and_legacy or re-encrypt the object.'
  super(msg)
end