class AwsCftTools::Client
AWS Tools Client
¶ ↑
A collection of higher-level business methods built on top of the AWS API.
Public Class Methods
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
# File lib/aws_cft_tools/client.rb, line 76 def cft_client @cft_client ||= AwsCftTools::Client::CFT.new(@client_options) end
# File lib/aws_cft_tools/client.rb, line 72 def ec2_client @ec2_client ||= AwsCftTools::Client::EC2.new(@client_options) end
# File lib/aws_cft_tools/client.rb, line 80 def template_client @template_client ||= AwsCftTools::Client::Templates.new(@client_options) end