class

Aws::Credentials::STSClient

Inherits Reference / Object

Constructors

new(contractor_credential_provider : Provider, signer : Proc(HTTP::Request, Credentials, HTTP::Request), region : String | Nil = nil, endpoint : String = region ? "https://sts.#{region}.amazonaws.com" : "https://sts.amazonaws.com")
Source
new(region : String | Nil = nil, endpoint : String = region ? "https://sts.#{region}.amazonaws.com" : "https://sts.amazonaws.com")
Source

Instance methods

assume_role(role_arn : String, role_session_name : String, maybe_duration : Time::Span | Nil = nil, maybe_policy : JSON::Any | Nil = nil) : Credentials
Source
assume_role_with_web_identity(role_arn : String, role_session_name : String, web_identity_token : String, duration : Time::Span | Nil = nil, policy : JSON::Any | Nil = nil) : Credentials
Source