Class: AwsClient::Container
- Inherits:
-
Object
- Object
- AwsClient::Container
- Defined in:
- lib/aws_client.rb
Instance Method Summary collapse
- #cloudformation ⇒ Object
- #ec2 ⇒ Object
- #elasticache ⇒ Object
- #elasticsearch ⇒ Object
- #elb ⇒ Object
-
#initialize(credentials_key, aws_region, provisioning_region) ⇒ Container
constructor
A new instance of Container.
- #rds ⇒ Object
- #s3 ⇒ Object
- #s32 ⇒ Object
Constructor Details
#initialize(credentials_key, aws_region, provisioning_region) ⇒ Container
Returns a new instance of Container.
22 23 24 25 26 27 |
# File 'lib/aws_client.rb', line 22 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
33 34 35 |
# File 'lib/aws_client.rb', line 33 def cloudformation @cloudformation ||= ::AwsClient::CfWrapper.new(client: client_connect(::Aws::CloudFormation::Client)) end |
#ec2 ⇒ Object
45 46 47 |
# File 'lib/aws_client.rb', line 45 def ec2 @ec2 ||= ::AwsClient::Ec2Wrapper.new(client: client_connect(::Aws::EC2::Client)) end |
#elasticache ⇒ Object
53 54 55 |
# File 'lib/aws_client.rb', line 53 def elasticache @elasticache ||= ::AwsClient::ElastiCacheWrapper.new(client: client_connect(::Aws::ElastiCache::Client)) end |
#elasticsearch ⇒ Object
57 58 59 |
# File 'lib/aws_client.rb', line 57 def elasticsearch @elasticsearch ||= ::AwsClient::ElasticSearchWrapper.new(client: client_connect(::Aws::ElasticsearchService::Client)) end |
#elb ⇒ Object
49 50 51 |
# File 'lib/aws_client.rb', line 49 def elb @elb ||= ::AwsClient::ElbWrapper.new(client: client_connect(::Aws::ElasticLoadBalancing::Client)) end |
#rds ⇒ Object
29 30 31 |
# File 'lib/aws_client.rb', line 29 def rds @rds ||= ::AwsClient::RdsWrapper.new(client: client_connect(::Aws::RDS::Client)) end |
#s3 ⇒ Object
41 42 43 |
# File 'lib/aws_client.rb', line 41 def s3 @s3 ||= ::AwsClient::S3Wrapper.new(client: client_connect(::Aws::S3::Client), credentials_key: @aws_account_credentials_key, region: @aws_region) end |
#s32 ⇒ Object
37 38 39 |
# File 'lib/aws_client.rb', line 37 def s32 @s32 ||= ::AwsClient::S32Wrapper.new(client: client_connect(::Aws::S3::Client), credentials_key: @aws_account_credentials_key, region: @aws_region) end |