Sha256: b498bee12c7e3413effd683ebd41c68276d5f65aa599f4e1944f5d30d8d178d0

Contents?: true

Size: 763 Bytes

Versions: 52

Compression:

Stored size: 763 Bytes

Contents

require 'cfndsl/JSONable'

module CfnDsl    
  class MappingDefinition < JSONable
    ##
    # 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" }
    #    })
    
    def initialize(value)
      @value = value
    end
    
    def to_json(*a)
      @value.to_json(*a)
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
cfndsl-0.4.4 lib/cfndsl/Mappings.rb
cfndsl-0.4.3 lib/cfndsl/Mappings.rb
cfndsl-0.4.2 lib/cfndsl/Mappings.rb
cfndsl-0.4.1 lib/cfndsl/Mappings.rb
cfndsl-0.4.0 lib/cfndsl/Mappings.rb
cfndsl-0.3.6 lib/cfndsl/Mappings.rb
cfndsl-0.3.5 lib/cfndsl/Mappings.rb
cfndsl-0.3.4 lib/cfndsl/Mappings.rb
cfndsl-0.3.3 lib/cfndsl/Mappings.rb
cfndsl-0.3.2 lib/cfndsl/Mappings.rb
cfndsl-0.3.1 lib/cfndsl/Mappings.rb
cfndsl-0.2.9 lib/cfndsl/Mappings.rb
cfndsl-0.2.8 lib/cfndsl/Mappings.rb
cfndsl-0.3.0 lib/cfndsl/Mappings.rb
cfndsl-0.2.7 lib/cfndsl/Mappings.rb
cfndsl-0.2.4 lib/cfndsl/Mappings.rb
cfndsl-0.2.3 lib/cfndsl/Mappings.rb
cfndsl-0.2.2 lib/cfndsl/Mappings.rb
cfndsl-0.2.1 lib/cfndsl/Mappings.rb
cfndsl-0.2.0 lib/cfndsl/Mappings.rb