class Aws::Credentials::STSClient
- Aws::Credentials::STSClient
- Reference
- Object
Defined in:
aws-credentials/sts_client.crConstructors
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")
#
Instance Method Detail
def assume_role(role_arn : String, role_session_name : String, duration : Time::Span | Nil = nil, policy : JSON::Any | Nil = nil) : Credentials
#