Class: RubyAemAws::ConsolidatedStack

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

Overview

Factory for the consolidated AEM stack component interface.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stack_prefix, params) ⇒ Object

  • CloudFormationClient: AWS Cloudformation Client.

  • CloudWatchClient: AWS Cloudwatch Client.

  • CloudWatchLogsClient: AWS Cloudwatch Logs Client.

  • Ec2Resource: AWS EC2 Resource connection.

Parameters:

  • stack_prefix

    AWS tag: StackPrefix

  • params

    Array of AWS Clients and Resource connections:



29
30
31
32
33
34
35
36
37
# File 'lib/ruby_aem_aws/architecture/consolidated_stack.rb', line 29

def initialize(stack_prefix, params)
  @consolidated_aws_clients = {
    CloudWatchClient: params[:CloudWatchClient],
    CloudWatchLogsClient: params[:CloudWatchLogsClient],
    Ec2Resource: params[:Ec2Resource]
  }
  @cloudformation_client = cloudformation_client
  @stack_prefix = stack_prefix
end

Instance Attribute Details

#cloudformation_clientObject (readonly)

Returns the value of attribute cloudformation_client.



20
21
22
# File 'lib/ruby_aem_aws/architecture/consolidated_stack.rb', line 20

def cloudformation_client
  @cloudformation_client
end

Instance Method Details

#author_publish_dispatcherObject

  • CloudWatchClient: AWS Cloudwatch Client.

  • CloudWatchLogsClient: AWS Cloudwatch Logs Client.

  • Ec2Resource: AWS EC2 Resource connection.

Parameters:

  • stack_prefix

    AWS tag: StackPrefix

  • consolidated_aws_clients

    Array of AWS Clients and Resource connections:

Returns:

  • new RubyAemAws::Component::AuthorPublishDispatcher instance



45
46
47
# File 'lib/ruby_aem_aws/architecture/consolidated_stack.rb', line 45

def author_publish_dispatcher
  RubyAemAws::Component::AuthorPublishDispatcher.new(@stack_prefix, @consolidated_aws_clients)
end