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.
406 407 408 409 410 411 412 413 |
# File 'lib/aws/core/credential_providers.rb', line 406 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 |