class Aws::Credentials::STSClient
- Aws::Credentials::STSClient
- Reference
- Object
Defined in:
aws-credentials/sts_client.crConstructors
- .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")
- .new(region : String | Nil = nil, endpoint : String = region ? "https://sts.#{region}.amazonaws.com" : "https://sts.amazonaws.com")
Instance Method Summary
- #assume_role(role_arn : String, role_session_name : String, maybe_duration : Time::Span | Nil = nil, maybe_policy : JSON::Any | Nil = nil) : Credentials
- #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
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")
#
def self.new(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, maybe_duration : Time::Span | Nil = nil, maybe_policy : JSON::Any | Nil = nil) : Credentials
#
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
#