Sha256: 07efbae79d453aaaf46b941a0183db482fc63b618ddf829600216236676f9e53

Contents?: true

Size: 884 Bytes

Versions: 1

Compression:

Stored size: 884 Bytes

Contents

require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        ##
        # AWS::EC2::SubnetRouteTableAssociation
        ##
        class EC2SubnetRouteTableAssociation < Resource
          def initialize(*args)
            super
            type 'AWS::EC2::SubnetRouteTableAssociation'
          end

          def route_table(value)
            property('RouteTableId', value)
          end

          def subnet(value)
            property('SubnetId', value)
          end
        end
      end
    end
  end

  module DSL
    ## Add DSL method to template namespace
    module Template
      def ec2_subnet_route_table_association(name, &block)
        r = Model::Template::Resource::EC2SubnetRouteTableAssociation.new(name, self)

        r.instance_exec(&block) if block
        resources[name] = r
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
convection-0.0.1 lib/convection/model/template/resource/aws_ec2_subnet_route_table_association.rb