class Aws::S3::EncryptionV2::Errors::LegacyDecryptionError

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

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# 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