class Aws::Credentials::STSClient

Defined in:

aws-credentials/sts_client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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") #

[View source]
def self.new(region : String | Nil = nil, endpoint : String = region ? "https://sts.#{region}.amazonaws.com" : "https://sts.amazonaws.com") #

[View source]

Instance Method Detail

def assume_role(role_arn : String, role_session_name : String, maybe_duration : Time::Span | Nil = nil, maybe_policy : JSON::Any | Nil = nil) : Credentials #

[View source]
def 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 #

[View source]