Class: RubyAemAws::AwsCreator

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_aem_aws.rb

Overview

Encapsulate AWS class creation for mocking.

Class Method Summary collapse

Class Method Details

.create_awsObject



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/ruby_aem_aws.rb', line 128

def self.create_aws
  {
    Ec2Client: Aws::EC2::Client.new,
    Ec2Resource: Aws::EC2::Resource.new,
    ElbClient: Aws::ElasticLoadBalancing::Client.new(
      retry_limit: 20
    ),
    AutoScalingClient: Aws::AutoScaling::Client.new(
      retry_limit: 20
    ),
    CloudFormationClient: Aws::CloudFormation::Client.new,
    CloudWatchClient: Aws::CloudWatch::Client.new(
      retry_limit: 20
    ),
    CloudWatchLogsClient: Aws::CloudWatchLogs::Client.new(
      retry_limit: 20
    ),
    DynamoDBClient: Aws::DynamoDB::Client.new,
    S3Client: Aws::S3::Client.new,
    S3Resource: Aws::S3::Resource.new
  }
end