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]

Instance Method Detail

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

[View source]