data AWS::Credentials::Keys(access_key_id: String, secret_access_key: String, session_token: String?, expires_at: Time?)

Access keys: an access key id and its secret, with a session token and an expiry for temporary ones. inspect and to_s show the access key id and the expiry only: never the secret nor the token.

/home/runner/work/aws/aws/src/credentials.qz:39

Methods

def access_key_id -> String

The access key id (AKIA..., ASIA... for temporary keys).

/home/runner/work/aws/aws/src/credentials.qz:41

def secret_access_key -> String

The secret access key.

/home/runner/work/aws/aws/src/credentials.qz:43

def session_token -> String?

The session token of temporary keys.

/home/runner/work/aws/aws/src/credentials.qz:45

def expires_at -> Time?

When temporary keys expire.

/home/runner/work/aws/aws/src/credentials.qz:47

def inspect -> String

#<AWS::Credentials::Keys AKIDEXAMPLE>, with the expiry when there is one.

/home/runner/work/aws/aws/src/credentials.qz:51

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

/home/runner/work/aws/aws/src/credentials.qz:51

def with(*, access_key_id: String = …, secret_access_key: String = …, session_token: String? = …, expires_at: Time? = …) -> AWS::Credentials::Keys

A copy with the fields given replaced.

/home/runner/work/aws/aws/src/credentials.qz:51

def to_s -> String

As inspect.

/home/runner/work/aws/aws/src/credentials.qz:57

def stale?(now: Time, margin: Duration = …) -> Bool

Whether they are to be refreshed at now: within margin of their expiry (never, without one).

/home/runner/work/aws/aws/src/credentials.qz:61

def expired?(now: Time) -> Bool

Whether they have expired at now.

/home/runner/work/aws/aws/src/credentials.qz:67