Class: CfnDsl::CloudFormationTemplate

Inherits:
OrchestrationTemplate show all
Defined in:
lib/cfndsl/aws/cloud_formation_template.rb

Overview

Cloud Formation Templates

Constant Summary

Constants inherited from OrchestrationTemplate

OrchestrationTemplate::GLOBAL_REFS

Constants included from Functions

Functions::FN_SUB_SCANNER

Class Method Summary collapse

Methods inherited from OrchestrationTemplate

#Condition, #_Condition, #_check_refs, #check_condition_refs, #check_output_refs, #check_refs, #check_resource_refs, #check_rule_refs, create_array_property_def, create_resource_accessor, create_resource_def, create_types, #initialize, #valid_ref?, #validate

Methods inherited from JSONable

#as_json, #declare, #external_parameters, external_parameters, #ref_children, #to_json

Methods included from Functions

#FnAnd, #FnBase64, #FnCidr, #FnEquals, #FnFindInMap, #FnGetAZs, #FnGetAtt, #FnIf, #FnImportValue, #FnJoin, #FnNot, #FnOr, #FnSelect, #FnSplit, #FnSub, #Ref

Methods included from RefCheck

#build_references, #ref_children

Constructor Details

This class inherits a constructor from CfnDsl::OrchestrationTemplate

Class Method Details

.check_types(file: nil, version: nil) ⇒ Object

Raises:



17
18
19
20
21
# File 'lib/cfndsl/aws/cloud_formation_template.rb', line 17

def self.check_types(file: nil, version: nil)
  version = Gem::Version.new(version || '0.0.0') unless version.is_a?(Gem::Version)
  raise Error, "CfnDsl Types and Resources loaded from #{template_types['File']}, expected #{file}" if file && file != template_types['File']
  raise Error, "CfnDsl Types and Resources version #{template_types['Version']}, expected at least #{version}" if template_types['Version'] < version
end

.template_typesObject



9
10
11
# File 'lib/cfndsl/aws/cloud_formation_template.rb', line 9

def self.template_types
  CfnDsl::AWS::Types::Types_Internal
end

.type_moduleObject



13
14
15
# File 'lib/cfndsl/aws/cloud_formation_template.rb', line 13

def self.type_module
  CfnDsl::AWS::Types
end