Sha256: 208f9226d45b4ce5a1e6f156383787cbb16daf1c64dcbc14b8348543348fa493

Contents?: true

Size: 1.27 KB

Versions: 119

Compression:

Stored size: 1.27 KB

Contents

require_relative 'deprecations'

module Aws
  module CredentialProvider

    extend Deprecations

    # @return [Credentials]
    attr_reader :credentials

    # @return [Boolean]
    def set?
      !!credentials && credentials.set?
    end

    # @deprecated Deprecated in 2.1.0. This method is subject to errors
    #   from a race condition when called against refreshable credential
    #   objects. Will be removed in 2.2.0.
    # @see #credentials
    def access_key_id
      credentials ? credentials.access_key_id : nil
    end
    deprecated(:access_key_id, use: '#credentials')

    # @deprecated Deprecated in 2.1.0. This method is subject to errors
    #   from a race condition when called against refreshable credential
    #   objects. Will be removed in 2.2.0.
    # @see #credentials
    def secret_access_key
      credentials ? credentials.secret_access_key : nil
    end
    deprecated(:secret_access_key, use: '#credentials')

    # @deprecated Deprecated in 2.1.0. This method is subject to errors
    #   from a race condition when called against refreshable credential
    #   objects. Will be removed in 2.2.0.
    # @see #credentials
    def session_token
      credentials ? credentials.session_token : nil
    end
    deprecated(:session_token, use: '#credentials')

  end
end

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
aws-sdk-core-3.68.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.67.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.66.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.65.1 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.65.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.64.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.63.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.62.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.61.2 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.61.1 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.61.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.60.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.59.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.58.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.57.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.56.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.55.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.54.2 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.54.1 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.54.0 lib/aws-sdk-core/credential_provider.rb