class AWS::STS::Session

Represents a session using temporary AWS credentials. Use {AWS::STS#new_session} or {AWS::STS#new_federated_session} to get a new set of temporary credentials.

Attributes

credentials[R]

A hash containing the following keys:

  • :access_key_id

  • :secret_access_key

  • :session_token

This hash may be passed as-is to {AWS.config} or to the constructor of any service interface that supports temporary security credentials from the AWS Security Token Service.

@return [Hash]

expires_at[R]

The date on which these credentials expire.

@return [Time]

Public Class Methods

new(opts = {}) click to toggle source

@private

# File lib/aws/sts/session.rb, line 41
def initialize(opts = {})
  @credentials = opts[:credentials]
  @expires_at = opts[:expires_at]
end