Class AWS::Core::CredentialProviders::SessionProvider
In: lib/aws/core/credential_providers.rb
Parent: Object

# Session Credential Provider

The session provider consumes long term credentials (`:access_key_id` and `:secret_access_key`) and requests a session from STS. It then returns the short term credential set from STS.

Calling {refresh} causes the session provider to request a new set of credentials.

This session provider is currently only used for DynamoDB which requires session credentials.

Methods

Included Modules

Provider

External Aliases

refresh -> orig_refresh
  Aliasing the refresh method so we can call it from the refresh method defined in this class.

Public Class methods

@param [Hash] long_term_credentials A hash of credentials with

  `:access_key_id` and `:secret_access_key` (but not
  `:session_token`).

@param [Hash] long_term_credentials A hash of credentials with

  `:access_key_id` and `:secret_access_key` (but not
  `:session_token`).

Public Instance methods

Protected Instance methods

@return [nil,STS::Session] Returns nil if a session has not

  already been started.

Replaces the cached STS session with a new one. @return [nil]

[Validate]