class

Amazonite::Core::Credentials

Inherits Reference < Object

A resolved set of AWS credentials - session_token/expiration are only present for temporary credentials (from a CredentialsProvider in the dynamic chain); a static access key/secret has neither.

Constructors

new(access_key_id : String, secret_access_key : String, session_token : String | Nil = nil, expiration : Time | Nil = nil)
Source

Instance methods

access_key_id
Source
expiration
Source
expired?(now : Time = Time.utc, buffer : Time::Span = 1.minute) : Bool

static credentials (no expiration) never expire; temporary credentials are treated as stale slightly before their real expiry so a refresh can happen before an in-flight request gets signed with a dead token

Source
secret_access_key
Source
session_token
Source