class AwsCftTools::Client

AWS Tools Client

A collection of higher-level business methods built on top of the AWS API.

Public Class Methods

new(options) click to toggle source

Create a new client instance.

Options are passed on to domain-specific client objects within the AwsCftTools::Client:: namespace.

@param options [Hash] client configuration @option options [String] :environment Environment with which the client is concerned. @option options [String] :parameter_dir The location of parameter files within the project. @option options [String] :profile The profile to use from the shared credentials file. @option options [String] :region The AWS region in which to operate. @option options [String] :role The role that resources are attached to. @option options [Pathname] :root The location of the top-level directory of the project. @option options [String] :template_dir The location of tmeplate files within the project.

# File lib/aws_cft_tools/client.rb, line 34
def initialize(options)
  @client_options = options.merge(client: self)
end

Private Instance Methods

cft_client() click to toggle source
# File lib/aws_cft_tools/client.rb, line 76
def cft_client
  @cft_client ||= AwsCftTools::Client::CFT.new(@client_options)
end
ec2_client() click to toggle source
# File lib/aws_cft_tools/client.rb, line 72
def ec2_client
  @ec2_client ||= AwsCftTools::Client::EC2.new(@client_options)
end
template_client() click to toggle source
# File lib/aws_cft_tools/client.rb, line 80
def template_client
  @template_client ||= AwsCftTools::Client::Templates.new(@client_options)
end