A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdkforruby/api/Aws/ECSCredentials.html below:

ECSCredentials — AWS SDK for Ruby V2

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ECSCredentials
Inherits:
Object show all
Includes:
CredentialProvider
Defined in:
aws-sdk-core/lib/aws-sdk-core/ecs_credentials.rb
Instance Attribute Summary collapse Attributes included from CredentialProvider

#credentials

Instance Method Summary collapse Methods included from CredentialProvider

#access_key_id, #secret_access_key, #session_token, #set?

Constructor Details #initialize(options = {}) ⇒ ECSCredentials

Returns a new instance of ECSCredentials.

45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'aws-sdk-core/lib/aws-sdk-core/ecs_credentials.rb', line 45

def initialize options = {}
  @retries = options[:retries] || 5
  @ip_address = options[:ip_address] || '169.254.170.2'
  @port = options[:port] || 80
  @credential_path = options[:credential_path]
  @credential_path ||= ENV['AWS_CONTAINER_CREDENTIALS_RELATIVE_URI']
  unless @credential_path
    raise ArgumentError.new(
      "Cannot instantiate an ECS Credential Provider without a credential path."
    )
  end
  @http_open_timeout = options[:http_open_timeout] || 5
  @http_read_timeout = options[:http_read_timeout] || 5
  @http_debug_output = options[:http_debug_output]
  @backoff = backoff(options[:backoff])
  super
end
Instance Attribute Details #retries ⇒ Integer

Returns The number of times to retry failed attempts to fetch credentials from the instance metadata service. Defaults to 0.

65
66
67
# File 'aws-sdk-core/lib/aws-sdk-core/ecs_credentials.rb', line 65

def retries
  @retries
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4