in src/Internal/SetupDecryptionHandlerV2.cs [113:120]
protected override void ThrowIfLegacyReadIsDisabled()
{
if (CryptoConfiguration.SecurityProfile == SecurityProfile.V2)
{
throw new AmazonCryptoException($"The requested object is encrypted with V1 encryption schemas that have been disabled by client configuration {nameof(SecurityProfile.V2)}." +
$" Retry with {nameof(SecurityProfile.V2AndLegacy)} enabled or reencrypt the object.");
}
}