Class: AWS::Core::CredentialProviders::FakeProvider
- Inherits:
-
StaticProvider
- Object
- StaticProvider
- AWS::Core::CredentialProviders::FakeProvider
- Defined in:
- lib/aws/core/credential_providers.rb
Overview
Returns a set of fake credentials, should only be used for testing.
Constant Summary
Constants included from Provider
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ FakeProvider
constructor
A new instance of FakeProvider.
Methods included from Provider
#access_key_id, #credentials, #refresh, #secret_access_key, #session_token
Constructor Details
#initialize(options = {}) ⇒ FakeProvider
Returns a new instance of FakeProvider.
429 430 431 432 433 434 435 436 |
# File 'lib/aws/core/credential_providers.rb', line 429 def initialize = {} [:access_key_id] ||= fake_access_key_id [:secret_access_key] ||= fake_secret_access_key if .delete(:with_session_token) [:session_token] ||= fake_session_token end super end |