class Aws::Plugins::RetryErrors::LegacyHandler

def refresh_credentials?(context, error)

def refresh_credentials?(context, error)
  error.expired_credentials? &&
    context.config.credentials.respond_to?(:refresh!)
end