class AWS::EC2::NetworkACLCollection
Public Instance Methods
[](network_acl_id)
click to toggle source
@param [String] network_acl_id @return [NetworkACL]
# File lib/aws/ec2/network_acl_collection.rb, line 45 def [] network_acl_id NetworkACL.new(network_acl_id, :config => config) end
create(options = {})
click to toggle source
Creates a network ACL.
@param [Hash] options
@option options [VPC,String] :vpc The vpc or vpc id of where you want
to create the subnet.
@return [NetworkACL]
# File lib/aws/ec2/network_acl_collection.rb, line 31 def create options = {} client_opts = {} client_opts[:vpc_id] = vpc_id_option(options) resp = client.create_network_acl(client_opts) NetworkACL.new_from(:create_network_acl, resp.network_acl, resp.network_acl.network_acl_id, :config => config) end
Protected Instance Methods
_each_item(options = {}) { |network_acl| ... }
click to toggle source
# File lib/aws/ec2/network_acl_collection.rb, line 50 def _each_item options = {}, &block response = filtered_request(:describe_network_acls, options, &block) response.network_acl_set.each do |a| network_acl = NetworkACL.new_from(:describe_network_acls, a, a.network_acl_id, :config => config) yield(network_acl) end end