Class AWS::STS::Session
In: lib/aws/sts/session.rb
Parent: Object

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

Methods

new  

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

@api private

[Validate]