class Aws::Credentials::AssumeRoleProvider

Overview

Resolving credential via AWS Security Token Service(STS) as assume role.

https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html

Included Modules

Defined in:

aws-credentials/provider/assume_role_provider.cr

Constructors

Instance Method Summary

Instance methods inherited from module Aws::Credentials::Provider

credentials : Credentials credentials, credentials? : Credentials | Nil credentials?, refresh : Nil refresh

Constructor Detail

def self.new(role_arn : String, role_session_name : String, sts_client : STSClient, duration : Time::Span | Nil = nil, policy : JSON::Any | Nil = nil) #

[View source]

Instance Method Detail

def credentials : Credentials #
Description copied from module Aws::Credentials::Provider

Resolving AWS::Credentials::Credentials.

Credential not resolvable then raise Aws::Credentials||MissingCredentials error.


[View source]