Class: AWS::EC2::NetworkACLCollection
- Inherits:
-
Collection
- Object
- Collection
- AWS::EC2::NetworkACLCollection
- Includes:
- Core::Collection::Simple, TaggedCollection
- Defined in:
- lib/aws/ec2/network_acl_collection.rb
Instance Attribute Summary
Attributes included from Core::Model
Instance Method Summary collapse
- #[](network_acl_id) ⇒ NetworkACL
-
#create(options = {}) ⇒ NetworkACL
Creates a network ACL.
Methods included from Core::Collection::Simple
Methods included from Core::Collection
#each, #each_batch, #enum, #first, #in_groups_of, #page
Methods included from Core::Model
#client, #config_prefix, #initialize, #inspect
Methods included from TaggedCollection
Methods included from FilteredCollection
#filter, #filtered_request, #initialize
Instance Method Details
#[](network_acl_id) ⇒ NetworkACL
45 46 47 |
# File 'lib/aws/ec2/network_acl_collection.rb', line 45 def [] network_acl_id NetworkACL.new(network_acl_id, :config => config) end |
#create(options = {}) ⇒ NetworkACL
Creates a network ACL.
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/aws/ec2/network_acl_collection.rb', line 31 def create = {} client_opts = {} client_opts[:vpc_id] = vpc_id_option() 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 |