Sha256: 6e9d020850547c2c737ec72a9d6e0e3970d83808f5d6dec7ba8c0c4c0d00c907

Contents?: true

Size: 723 Bytes

Versions: 9

Compression:

Stored size: 723 Bytes

Contents

require 'cfndsl/jsonable'

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

    def to_json(*a)
      @value.to_json(*a)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cfndsl-0.7.0 lib/cfndsl/mappings.rb
cfndsl-0.6.2 lib/cfndsl/mappings.rb
cfndsl-0.6.1 lib/cfndsl/mappings.rb
cfndsl-0.6.0 lib/cfndsl/mappings.rb
cfndsl-0.5.2 lib/cfndsl/mappings.rb
cfndsl-0.5.1 lib/cfndsl/mappings.rb
cfndsl-0.5.0 lib/cfndsl/mappings.rb
cfndsl-0.5.1.pre lib/cfndsl/mappings.rb
cfndsl-0.5.0.pre lib/cfndsl/mappings.rb