class AwsCftTools::Client::Base

CloudFormation Client

All of the business logic behind direct interaction with the AWS API for CloudFormation templates and stacks.

Attributes

options[R]

Public Class Methods

aws_client_class() click to toggle source
# File lib/aws_cft_tools/client/base.rb, line 37
def self.aws_client_class; end
new(options = {}) click to toggle source

@param options [Hash] client configuration @option options [String] :environment the operational environment in which to act @option options [String] :profile the AWS credential profile to use @option options [String] :region the AWS region in which to act

# File lib/aws_cft_tools/client/base.rb, line 21
def initialize(options = {})
  @options = options
end

Public Instance Methods

aws_client() click to toggle source

The AWS SDK client object for this part of the AwsCftTools client

# File lib/aws_cft_tools/client/base.rb, line 27
def aws_client
  @aws_client ||= begin
    klass = self.class.aws_client_class
    klass && klass.new(
      region: options[:region],
      profile: options[:profile]
    )
  end
end