module Convection::DSL::Template::Resource::EC2Subnet
Add DSL
for RouteTableAssocaition
Public Instance Methods
acl(acl_entity, &block)
click to toggle source
# File lib/convection/model/template/resource/aws_ec2_subnet.rb, line 21 def acl(acl_entity, &block) assoc = Model::Template::Resource::EC2SubnetNetworkACLAssociation.new("#{ name }ACLAssociation#{ acl_entity.name }", template) assoc.acl(acl_entity) assoc.subnet(self) assoc.instance_exec(&block) if block @template.resources[assoc.name] = assoc end
route_table(table, &block)
click to toggle source
# File lib/convection/model/template/resource/aws_ec2_subnet.rb, line 12 def route_table(table, &block) assoc = Model::Template::Resource::EC2SubnetRouteTableAssociation.new("#{ name }RouteTableAssociation#{ table.name }", template) assoc.route_table(table) assoc.subnet(self) assoc.instance_exec(&block) if block @template.resources[assoc.name] = assoc end