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).
def secret_access_key -> String
The secret access key.
def session_token -> String?
The session token of temporary keys.
def expires_at -> Time?
When temporary keys expire.
def inspect -> String
#<AWS::Credentials::Keys AKIDEXAMPLE>, with the expiry when there
is one.
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
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.
def to_s -> String
As inspect.
def stale?(now: Time, margin: Duration = …) -> Bool
Whether they are to be refreshed at now: within margin of
their expiry (never, without one).
def expired?(now: Time) -> Bool
Whether they have expired at now.