Class: RubyAemAws::StackManager

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

Overview

Interface to interact with AEM StackManager

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.

  • DynamoDBClient: AWS DynamoDB Client.

  • S3Client: AWS S3 Client.

  • S3Resource: AWS S3 Resource connection.

Parameters:

  • stack_prefix

    AWS tag: StackPrefix

  • params

    Array of AWS Clients and Resource connections:



30
31
32
33
34
35
36
37
38
39
40
41
42
# 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

Instance Attribute Details

#cloudformation_clientObject (readonly)

Returns the value of attribute cloudformation_client.



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

def cloudformation_client
  @cloudformation_client
end

#sm_resourcesObject (readonly)

Returns the value of attribute sm_resources.



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

def sm_resources
  @sm_resources
end