class Aws::AssumeRoleCredentials

def initialize(options = {})

Options Hash: (**options)
  • before_refresh (Callable) -- Proc called before
  • :client (STS::Client) --
  • :external_id (String) --
  • :duration_seconds (Integer) --
  • :policy (String) --
  • :role_session_name (required, String) --
  • :role_arn (required, String) --
def initialize(options = {})
  client_opts = {}
  @assume_role_params = {}
  options.each_pair do |key, value|
    if self.class.assume_role_options.include?(key)
      @assume_role_params[key] = value
    else
      client_opts[key] = value
    end
  end
  @client = client_opts[:client] || STS::Client.new(client_opts)
  super
end