NAME

Cfn::ResourceModules - Load Cfn resource classes

SYNOPSIS

use Cfn::ResourceModules;

my $perl_class = Cfn::ResourceModules::load('AWS::EC2::Instance');
my $ec2_instance_object = $perl_class->new(...);

my @supported_modules = Cfn::ResourceModules::list;

DESCRIPTION

This module is designed to load Perl modules that respresent CloudFormation resources.

It exposes functions for knowing what resources are available on the system (what CloudFormation resource types can be loaded) and making them available to your programs. It doesn't export anything into the callers namespace.

FUNCTIONS

list

Returns an array of CloudFormation resource types present on the system that can be passed to load

load($resource)

When passed a CloudFormation resource type (f.ex. AWS::EC2::SecurityGroup) it loads into memory the Perl modules that will later let the program instance objects of that type. Note that the Perl class for the resource type will get returned (Cfn resource objects are in the Cfn::Resource namespace), so you will get strings of the form Cfn::Resource::AWS::EC2::SecurityGroup.

AUTHOR

Jose Luis Martinez
CAPSiDE
jlmartinez@capside.com

COPYRIGHT and LICENSE

Copyright (c) 2013 by CAPSiDE This code is distributed under the Apache 2 License. The full text of the license can be found in the LICENSE file included with this module.