Class: CfnDsl::MappingDefinition

Inherits:
JSONable
  • Object
show all
Includes:
JSONSerialisableObject
Defined in:
lib/cfndsl/mappings.rb

Overview

Handles mapping objects

Usage:

 Mapping("AWSRegionArch2AMI", {
           "us-east-1" => { "32" => "ami-6411e20d", "64" => "ami-7a11e213" },
           "us-west-1" => { "32" => "ami-c9c7978c", "64" => "ami-cfc7978a" },
           "eu-west-1" => { "32" => "ami-37c2f643", "64" => "ami-31c2f645" },
           "ap-southeast-1" => { "32" => "ami-66f28c34", "64" => "ami-60f28c32" },
           "ap-northeast-1" => { "32" => "ami-9c03a89d", "64" => "ami-a003a8a1" }
})

Constant Summary

Constants included from Functions

Functions::FN_SUB_SCANNER

Instance Method Summary collapse

Methods included from JSONSerialisableObject

#as_json, #to_json

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

#initialize(value) ⇒ MappingDefinition

Returns a new instance of MappingDefinition.



19
20
21
# File 'lib/cfndsl/mappings.rb', line 19

def initialize(value)
  @value = value
end