Class: AwsClient::Container
- Inherits:
-
Object
- Object
- AwsClient::Container
- Defined in:
- lib/aws_client.rb
Instance Method Summary collapse
- #cloudformation ⇒ Object
- #ec2 ⇒ Object
-
#initialize(credentials_key, aws_region, provisioning_region) ⇒ Container
constructor
A new instance of Container.
- #rds ⇒ Object
- #s3 ⇒ Object
Constructor Details
#initialize(credentials_key, aws_region, provisioning_region) ⇒ Container
Returns a new instance of Container.
16 17 18 19 20 21 |
# File 'lib/aws_client.rb', line 16 def initialize(credentials_key, aws_region, provisioning_region) @aws_account_credentials_key = credentials_key @aws_region = aws_region @provisioning_region = provisioning_region validate end |
Instance Method Details
#cloudformation ⇒ Object
27 28 29 |
# File 'lib/aws_client.rb', line 27 def cloudformation @cloudformation ||= ::AwsClient::CfWrapper.new(client: client_connect(::Aws::CloudFormation::Client)) end |
#ec2 ⇒ Object
35 36 37 |
# File 'lib/aws_client.rb', line 35 def ec2 @ec2 ||= ::AwsClient::Ec2Wrapper.new(client: client_connect(::Aws::EC2::Client)) end |
#rds ⇒ Object
23 24 25 |
# File 'lib/aws_client.rb', line 23 def rds @rds ||= ::AwsClient::RdsWrapper.new(client: client_connect(::Aws::RDS::Client)) end |
#s3 ⇒ Object
31 32 33 |
# File 'lib/aws_client.rb', line 31 def s3 @s3 ||= ::AwsClient::S3Wrapper.new(client: client_connect(::Aws::S3::Client), credentials_key: @aws_account_credentials_key, region: @aws_region) end |