class Aws::InstanceProfileCredentials
def resolve_endpoint_mode(options)
def resolve_endpoint_mode(options) options[:endpoint_mode] || ENV['AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE'] || Aws.shared_config.ec2_metadata_service_endpoint_mode(profile: options[:profile]) || 'IPv4' end