Class: Conrad::Emitters::AmazonBase
- Inherits:
-
Object
- Object
- Conrad::Emitters::AmazonBase
- Includes:
- ActiveModel::Model
- Defined in:
- lib/conrad/emitters/amazon_base.rb
Overview
Base class for AWS-based emitters
Instance Attribute Summary collapse
-
#access_key_id ⇒ String?
deprecated
Deprecated.
Will be removed in 3.0.0, no migration path
-
#client ⇒ Aws::SQS::Client
The created client.
-
#region ⇒ String?
The configured region.
-
#secret_access_key ⇒ String?
deprecated
Deprecated.
Will be removed in 3.0.0, no migration path
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ AmazonBase
constructor
A new instance of AmazonBase.
Constructor Details
#initialize(args = {}) ⇒ AmazonBase
Returns a new instance of AmazonBase.
34 35 36 37 |
# File 'lib/conrad/emitters/amazon_base.rb', line 34 def initialize(args = {}) super create_client(region: region, access_key_id: access_key_id, secret_access_key: secret_access_key) end |
Instance Attribute Details
#access_key_id ⇒ String?
Deprecated.
Will be removed in 3.0.0, no migration path
Returns the configured AWS Access key ID.
15 16 17 |
# File 'lib/conrad/emitters/amazon_base.rb', line 15 def access_key_id @access_key_id end |
#client ⇒ Aws::SQS::Client
Returns the created client.
22 23 24 |
# File 'lib/conrad/emitters/amazon_base.rb', line 22 def client @client end |
#region ⇒ String?
Returns the configured region.
11 12 13 |
# File 'lib/conrad/emitters/amazon_base.rb', line 11 def region @region end |
#secret_access_key ⇒ String?
Deprecated.
Will be removed in 3.0.0, no migration path
Returns the configured AWS secret access key.
19 20 21 |
# File 'lib/conrad/emitters/amazon_base.rb', line 19 def secret_access_key @secret_access_key end |