class RubyAemAws::Component::AuthorPublishDispatcher

Interface to a single AWS instance running all three AEM components as a consolidated stack.

Constants

EC2_COMPONENT
EC2_NAME

Attributes

cloud_watch_client[R]
cloud_watch_log_client[R]
descriptor[R]
ec2_resource[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:

  • CloudWatchClient: AWS Cloudwatch Client.

  • CloudWatchLogsClient: AWS Cloudwatch Logs Client.

  • Ec2Resource: AWS EC2 Resource connection.

@return new RubyAemAws::Consolidated::AuthorPublishDispatcher instance

# File lib/ruby_aem_aws/component/author_publish_dispatcher.rb, line 42
def initialize(stack_prefix, params)
  @descriptor = ComponentDescriptor.new(stack_prefix,
                                        EC2Descriptor.new(EC2_COMPONENT, EC2_NAME))
  @cloud_watch_client = params[:CloudWatchClient]
  @cloud_watch_log_client = params[:CloudWatchLogsClient]
  @ec2_resource = params[:Ec2Resource]
end

Public Instance Methods

get_tags() click to toggle source
# File lib/ruby_aem_aws/component/author_publish_dispatcher.rb, line 50
def get_tags
  instance = get_instance
  instance.tags
end