module Convection::DSL::Template::Resource::EC2NetworkACL

Add DSL helpers to EC2NetworkACL

Public Instance Methods

entry(name, &block) click to toggle source
# File lib/convection/model/template/resource/aws_ec2_network_acl.rb, line 11
def entry(name, &block)
  acl_entry = Model::Template::Resource::EC2NetworkACLEntry.new("#{ self.name }Entry#{ name }", @template)
  acl_entry.acl(self)

  acl_entry.instance_exec(&block) if block
  @template.resources[acl_entry.name] = acl_entry
end