Top Level Namespace

Defined Under Namespace

Modules: CfnDsl, Cfnlego, DeepMerge, Rake, RefCheck Classes: Array, Hash, Module

Instance Method Summary collapse

Instance Method Details

#CloudFormation(description = nil, &block) ⇒ CfnDsl::CloudFormationTemplate

Main function to build and validate

Returns:

Raises:

  • (CfnDsl::Error)

    if the block does not generate a valid template



113
114
115
# File 'lib/cfndsl/cloudformation.rb', line 113

def CloudFormation(description = nil, &block)
  CfnDsl::CloudFormationTemplate.new(description).declare(&block).validate
end