class RubyAemAws::ConsolidatedStack

Factory for the consolidated AEM stack component interface.

Attributes

cloudformation_client[R]

Public Class Methods

new(stack_prefix, params) click to toggle source

@param stack_prefix AWS tag: StackPrefix @param params Array of AWS Clients and Resource connections:

  • CloudFormationClient: AWS Cloudformation Client.

  • CloudWatchClient: AWS Cloudwatch Client.

  • CloudWatchLogsClient: AWS Cloudwatch Logs Client.

  • Ec2Resource: AWS EC2 Resource connection.

@return new RubyAemAws::ConsolidatedStack instance

# 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

Public Instance Methods

author_publish_dispatcher() click to toggle source

@return new RubyAemAws::Component::AuthorPublishDispatcher instance

# File lib/ruby_aem_aws/architecture/consolidated_stack.rb, line 40
def author_publish_dispatcher
  RubyAemAws::Component::AuthorPublishDispatcher.new(@stack_prefix, @consolidated_aws_clients)
end