class RubyAemAws::StackManager

Interface to interact with AEM StackManager

Attributes

cloudformation_client[R]
sm_resources[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.

  • DynamoDBClient: AWS DynamoDB Client.

  • S3Client: AWS S3 Client.

  • S3Resource: AWS S3 Resource connection.

@return new RubyAemAws::StackManager instance

# File lib/ruby_aem_aws/architecture/stack_manager.rb, line 30
def initialize(stack_prefix, params)
  stack_manager_aws_client = {
    CloudWatchClient: params[:CloudWatchClient],
    CloudWatchLogsClient: params[:CloudWatchLogsClient],
    DynamoDBClient: params[:DynamoDBClient],
    S3Client: params[:S3Client],
    S3Resource: params[:S3Resource]
  }

  @sm_resources = RubyAemAws::Component::StackManagerResources.new(stack_manager_aws_client)
  @cloudformation_client = params[:CloudFormationClient]
  @stack_prefix = stack_prefix
end