Class: Aws::StaticTokenProvider

Inherits:
Object
  • Object
show all
Includes:
TokenProvider
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/static_token_provider.rb

Instance Attribute Summary

Attributes included from TokenProvider

#token

Instance Method Summary collapse

Methods included from TokenProvider

#set?

Constructor Details

#initialize(token, expiration = nil) ⇒ StaticTokenProvider

Returns a new instance of StaticTokenProvider.

Parameters:

  • token (String)
  • expiration (Time) (defaults to: nil)


10
11
12
# File 'gems/aws-sdk-core/lib/aws-sdk-core/static_token_provider.rb', line 10

def initialize(token, expiration=nil)
  @token = Token.new(token, expiration)
end