Class: RubyAemAws::FullSetStack
- Inherits:
-
Object
- Object
- RubyAemAws::FullSetStack
- Includes:
- MetricVerifier
- Defined in:
- lib/ruby_aem_aws/architecture/full_set_stack.rb
Overview
Factory for the full-set AEM stack component interfaces.
Instance Attribute Summary collapse
-
#cloud_watch_client ⇒ Object
readonly
Returns the value of attribute cloud_watch_client.
-
#cloudformation_client ⇒ Object
readonly
Returns the value of attribute cloudformation_client.
Instance Method Summary collapse
-
#author ⇒ Object
New RubyAemAws::Component::Author instance.
-
#author_dispatcher ⇒ Object
New RubyAemAws::Component::AuthorDispatcher instance.
-
#chaos_monkey ⇒ Object
New RubyAemAws::Component::ChaosMonkey instance.
-
#initialize(stack_prefix, params) ⇒ Object
constructor
-
AutoScalingClient: AWS AutoScalingGroup Client.
-
-
#orchestrator ⇒ Object
New RubyAemAws::Component::Orchestrator instance.
-
#preview_publish ⇒ Object
New RubyAemAws::Component::PreviewPublish instance.
-
#preview_publish_dispatcher ⇒ Object
New RubyAemAws::Component::PreviewPublishDispatcher instance.
-
#publish ⇒ Object
New RubyAemAws::Component::Publish instance.
-
#publish_dispatcher ⇒ Object
New RubyAemAws::Component::PublishDispatcher instance.
Methods included from MetricVerifier
#alarm?, #component_alarm?, #component_ec2_metric?, #component_log_event?, #component_log_stream?, #component_loggroup?, #component_metric?, #log_event?, #log_stream?, #loggroup?, #metric?
Methods included from CloudwatchClient
#get_alarm, #get_log_event, #get_log_streams, #get_metrics
Constructor Details
#initialize(stack_prefix, params) ⇒ Object
-
AutoScalingClient: AWS AutoScalingGroup Client.
-
CloudFormationClient: AWS Cloudformation Client.
-
CloudWatchClient: AWS Cloudwatch Client.
-
CloudWatchLogsClient: AWS Cloudwatch Logs Client.
-
Ec2Resource: AWS EC2 Resource connection.
-
ElbClient: AWS ElasticLoadBalancer v2 Client.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/ruby_aem_aws/architecture/full_set_stack.rb', line 41 def initialize(stack_prefix, params) @author_aws_clients = { CloudWatchClient: params[:CloudWatchClient], CloudWatchLogsClient: params[:CloudWatchLogsClient], Ec2Resource: params[:Ec2Resource], ElbClient: params[:ElbClient] } @dispatcher_aws_clients = { AutoScalingClient: params[:AutoScalingClient], CloudWatchClient: params[:CloudWatchClient], CloudWatchLogsClient: params[:CloudWatchLogsClient], Ec2Resource: params[:Ec2Resource], ElbClient: params[:ElbClient] } @publish_aws_clients = { AutoScalingClient: params[:AutoScalingClient], CloudWatchClient: params[:CloudWatchClient], CloudWatchLogsClient: params[:CloudWatchLogsClient], Ec2Resource: params[:Ec2Resource] } @aem_java_aws_clients = { AutoScalingClient: params[:AutoScalingClient], CloudWatchClient: params[:CloudWatchClient], CloudWatchLogsClient: params[:CloudWatchLogsClient], Ec2Resource: params[:Ec2Resource] } @cloudformation_client = params[:CloudFormationClient] @cloud_watch_client = params[:CloudWatchClient] @stack_prefix = stack_prefix end |
Instance Attribute Details
#cloud_watch_client ⇒ Object (readonly)
Returns the value of attribute cloud_watch_client.
28 29 30 |
# File 'lib/ruby_aem_aws/architecture/full_set_stack.rb', line 28 def cloud_watch_client @cloud_watch_client end |
#cloudformation_client ⇒ Object (readonly)
Returns the value of attribute cloudformation_client.
28 29 30 |
# File 'lib/ruby_aem_aws/architecture/full_set_stack.rb', line 28 def cloudformation_client @cloudformation_client end |
Instance Method Details
#author ⇒ Object
Returns new RubyAemAws::Component::Author instance.
82 83 84 |
# File 'lib/ruby_aem_aws/architecture/full_set_stack.rb', line 82 def RubyAemAws::Component::Author.new(@stack_prefix, @author_aws_clients) end |
#author_dispatcher ⇒ Object
Returns new RubyAemAws::Component::AuthorDispatcher instance.
77 78 79 |
# File 'lib/ruby_aem_aws/architecture/full_set_stack.rb', line 77 def RubyAemAws::Component::AuthorDispatcher.new(@stack_prefix, @dispatcher_aws_clients) end |
#chaos_monkey ⇒ Object
Returns new RubyAemAws::Component::ChaosMonkey instance.
87 88 89 |
# File 'lib/ruby_aem_aws/architecture/full_set_stack.rb', line 87 def chaos_monkey RubyAemAws::Component::ChaosMonkey.new(@stack_prefix, @aem_java_aws_clients) end |
#orchestrator ⇒ Object
Returns new RubyAemAws::Component::Orchestrator instance.
92 93 94 |
# File 'lib/ruby_aem_aws/architecture/full_set_stack.rb', line 92 def orchestrator RubyAemAws::Component::Orchestrator.new(@stack_prefix, @aem_java_aws_clients) end |
#preview_publish ⇒ Object
Returns new RubyAemAws::Component::PreviewPublish instance.
102 103 104 |
# File 'lib/ruby_aem_aws/architecture/full_set_stack.rb', line 102 def preview_publish RubyAemAws::Component::PreviewPublish.new(@stack_prefix, @publish_aws_clients) end |
#preview_publish_dispatcher ⇒ Object
Returns new RubyAemAws::Component::PreviewPublishDispatcher instance.
112 113 114 |
# File 'lib/ruby_aem_aws/architecture/full_set_stack.rb', line 112 def preview_publish_dispatcher RubyAemAws::Component::PreviewPublishDispatcher.new(@stack_prefix, @dispatcher_aws_clients) end |
#publish ⇒ Object
Returns new RubyAemAws::Component::Publish instance.
97 98 99 |
# File 'lib/ruby_aem_aws/architecture/full_set_stack.rb', line 97 def publish RubyAemAws::Component::Publish.new(@stack_prefix, @publish_aws_clients) end |
#publish_dispatcher ⇒ Object
Returns new RubyAemAws::Component::PublishDispatcher instance.
107 108 109 |
# File 'lib/ruby_aem_aws/architecture/full_set_stack.rb', line 107 def publish_dispatcher RubyAemAws::Component::PublishDispatcher.new(@stack_prefix, @dispatcher_aws_clients) end |