Sha256: b4d4f5282d4c922dab9730f8c51447a27c47b5996a55973651136f187e11f378

Contents?: true

Size: 1.22 KB

Versions: 9

Compression:

Stored size: 1.22 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 This method is subject to errors from a race condition when
    # called against refreshable credential objects. This will be removed.
    # @see #credentials
    def access_key_id
      credentials ? credentials.access_key_id : nil
    end
    deprecated(:access_key_id, use: '#credentials', version: '3.75')

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

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

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
aws-sdk-core-3.74.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.73.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.72.1 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.72.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.71.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.70.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.69.1 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.69.0 lib/aws-sdk-core/credential_provider.rb
aws-sdk-core-3.68.1 lib/aws-sdk-core/credential_provider.rb