Class: Aws::StaticTokenProvider
- Inherits:
-
Object
- Object
- Aws::StaticTokenProvider
- Includes:
- TokenProvider
- Defined in:
- lib/aws-sdk-core/static_token_provider.rb
Instance Attribute Summary
Attributes included from TokenProvider
Instance Method Summary collapse
-
#initialize(token, expiration = nil) ⇒ StaticTokenProvider
constructor
A new instance of StaticTokenProvider.
Methods included from TokenProvider
Constructor Details
#initialize(token, expiration = nil) ⇒ StaticTokenProvider
Returns a new instance of StaticTokenProvider.
10 11 12 |
# File 'lib/aws-sdk-core/static_token_provider.rb', line 10 def initialize(token, expiration=nil) @token = Token.new(token, expiration) end |