Sha256: 7724df8ab111cb6015a3202e290e371726e6b47d5ba5700e1db3988d72439f4b

Contents?: true

Size: 947 Bytes

Versions: 1

Compression:

Stored size: 947 Bytes

Contents

require_relative '../resource'

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

          def vpc_id(value)
            property('VpcId', value)
          end

          def internet_gateway(value)
            property('InternetGatewayId', value)
          end

          def vpn_gateway(value)
            property('VpnGatewayId', value)
          end
        end
      end
    end
  end

  module DSL
    ## Add DSL method to template namespace
    module Template
      def ec2_vpc_gateway_attachment(name, &block)
        r = Model::Template::Resource::EC2VPCGatewayAttachment.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_vpc_gateway_attachment.rb