1VM::EC2::REST::network_Uascelr(3C)ontributed Perl DocumeVnMt:a:tEiCo2n::REST::network_acl(3)
2
3
4

NAME VM::EC2::REST::network_acl

SYNOPSIS

7        use VM::EC2 ':vpc'
8

METHODS

10       These methods allow you to create and manipulate VPC Network Access
11       Control Lists.
12
13       Implemented:
14        CreateNetworkAcl
15        CreateNetworkAclEntry
16        DeleteNetworkAcl
17        DeleteNetworkAclEntry
18        DescribeNetworkAcls
19        ReplaceNetworkAclAssociation
20        ReplaceNetworkAclEntry
21
22       Unimplemented:
23        (none)
24
25   @acls = $ec2->describe_network_acls(-network_acl_id=>\@ids,
26       -filter=>\%filters)
27   @acls = $ec2->describe_network_acls(\@network_acl_ids)
28   @acls = $ec2->describe_network_acls(%filters)
29       Provides information about network ACLs.
30
31       Returns a series of VM::EC2::VPC::NetworkAcl objects.
32
33       Optional parameters are:
34
35        -network_acl_id      -- ID of the network ACL(s) to return information on.
36                                This can be a string scalar, or an arrayref.
37
38        -filter              -- Tags and other filters to apply.
39
40       The filter argument is a hashreference in which the keys are the filter
41       names, and the values are the match strings. Some filters accept
42       wildcards.
43
44       There are a number of filters, which are listed in full at
45       http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeNetworkAcls.html
46
47       Here is a alpha-sorted list of filter names:
48       association.association-id, association.network-acl-id,
49       association.subnet-id, default, entry.cidr, entry.egress,
50       entry.icmp.code, entry.icmp.type, entry.port-range.from,
51       entry.port-range.to, entry.protocol, entry.rule-action,
52       entry.rule-number, network-acl-id, tag-key, tag-value, tag:key, vpc-id
53
54   $acl = $ec2->create_network_acl(-vpc_id=>$vpc_id)
55   $acl = $ec2->create_network_acl($vpc_id)
56       Creates a new network ACL in a VPC. Network ACLs provide an optional
57       layer of security (on top of security groups) for the instances in a
58       VPC.
59
60       Arguments:
61
62        -vpc_id            -- The VPC ID to create the ACL in
63
64       Retuns a VM::EC2::VPC::NetworkAcl object on success.
65
66   $boolean = $ec2->delete_network_acl(-network_acl_id=>$id)
67   $boolean = $ec2->delete_network_acl($id)
68       Deletes a network ACL from a VPC. The ACL must not have any subnets
69       associated with it. The default network ACL cannot be deleted.
70
71       Arguments:
72
73        -network_acl_id    -- The ID of the network ACL to delete
74
75       Returns true on successful deletion.
76
77   $boolean = $ec2->create_network_acl_entry(%args)
78       Creates an entry (i.e., rule) in a network ACL with the rule number you
79       specified. Each network ACL has a set of numbered ingress rules and a
80       separate set of numbered egress rules. When determining whether a
81       packet should be allowed in or out of a subnet associated with the ACL,
82       Amazon VPC processes the entries in the ACL according to the rule
83       numbers, in ascending order.
84
85       Arguments:
86
87        -network_acl_id       -- ID of the ACL where the entry will be created
88                                 (Required)
89        -rule_number          -- Rule number to assign to the entry (e.g., 100).
90                                 ACL entries are processed in ascending order by
91                                 rule number.  Positive integer from 1 to 32766.
92                                 (Required)
93        -protocol             -- The IP protocol the rule applies to. You can use
94                                 -1 to mean all protocols.  See
95                                 http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
96                                 for a list of protocol numbers. (Required)
97        -rule_action          -- Indicates whether to allow or deny traffic that
98                                  matches the rule.  allow | deny (Required)
99        -egress               -- Indicates whether this rule applies to egress
100                                 traffic from the subnet (true) or ingress traffic
101                                 to the subnet (false).  Default is false.
102        -cidr_block           -- The CIDR range to allow or deny, in CIDR notation
103                                 (e.g., 172.16.0.0/24). (Required)
104        -icmp_code            -- For the ICMP protocol, the ICMP code. You can use
105                                 -1 to specify all ICMP codes for the given ICMP
106                                 type.  Required if specifying 1 (ICMP) for protocol.
107        -icmp_type            -- For the ICMP protocol, the ICMP type. You can use
108                                 -1 to specify all ICMP types.  Required if
109                                 specifying 1 (ICMP) for the protocol
110        -port_range_from      -- The first port in the range.  Required if specifying
111                                 6 (TCP) or 17 (UDP) for the protocol.
112        -port_range_to        -- The last port in the range.  Required if specifying
113                                 6 (TCP) or 17 (UDP) for the protocol.
114
115        -port_from            -- Alias for -port_range_from
116
117        -port_to              -- Alias for -port_range_to
118
119       Returns true on successful creation.
120
121   $success = $ec2->delete_network_acl_entry(-network_acl_id=>$id,
122       -rule_number   =>$int, -egress        =>$bool)
123       Deletes an ingress or egress entry (i.e., rule) from a network ACL.
124
125       Arguments:
126
127        -network_acl_id       -- ID of the ACL where the entry will be created
128
129        -rule_number          -- Rule number of the entry (e.g., 100).
130
131       Optional arguments:
132
133        -egress    -- Whether the rule to delete is an egress rule (true) or ingress
134                      rule (false).  Default is false.
135
136       Returns true on successful deletion.
137
138   $assoc_id =
139       $ec2->replace_network_acl_association(-association_id=>$assoc_id,
140       -network_acl_id=>$id)
141       Changes which network ACL a subnet is associated with. By default when
142       you create a subnet, it's automatically associated with the default
143       network ACL.
144
145       Arguments:
146
147        -association_id    -- The ID of the association to replace
148
149        -network_acl_id    -- The ID of the network ACL to associated the subnet with
150
151       Returns the new association ID.
152
153   $success = $ec2->replace_network_acl_entry(%args)
154       Replaces an entry (i.e., rule) in a network ACL.
155
156       Arguments:
157
158        -network_acl_id       -- ID of the ACL where the entry will be created
159                                 (Required)
160        -rule_number          -- Rule number of the entry to replace. (Required)
161        -protocol             -- The IP protocol the rule applies to. You can use
162                                 -1 to mean all protocols.  See
163                                 http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
164                                 for a list of protocol numbers. (Required)
165        -rule_action          -- Indicates whether to allow or deny traffic that
166                                  matches the rule.  allow | deny (Required)
167        -egress               -- Indicates whether this rule applies to egress
168                                 traffic from the subnet (true) or ingress traffic
169                                 to the subnet (false).  Default is false.
170        -cidr_block           -- The CIDR range to allow or deny, in CIDR notation
171                                 (e.g., 172.16.0.0/24). (Required)
172        -icmp_code            -- For the ICMP protocol, the ICMP code. You can use
173                                 -1 to specify all ICMP codes for the given ICMP
174                                 type.  Required if specifying 1 (ICMP) for protocol.
175        -icmp_type            -- For the ICMP protocol, the ICMP type. You can use
176                                 -1 to specify all ICMP types.  Required if
177                                 specifying 1 (ICMP) for the protocol
178        -port_range_from      -- The first port in the range.  Required if specifying
179                                 6 (TCP) or 17 (UDP) for the protocol.
180        -port_range_to        -- The last port in the range.  Only required if
181                                 specifying 6 (TCP) or 17 (UDP) for the protocol and
182                                 is a different port than -port_range_from.
183
184        -port_from            -- Alias for -port_range_from
185
186        -port_to              -- Alias for -port_range_from
187
188       Returns true on successful replacement.
189

SEE ALSO

191       VM::EC2
192

AUTHOR

194       Lance Kinley <lkinley@loyaltymethods.com>.  Lincoln Stein
195       <lincoln.stein@gmail.com>.
196
197       Copyright (c) 2012 Loyalty Methods, Inc.  Copyright (c) 2012 Ontario
198       Institute for Cancer Research
199
200       This package and its accompanying libraries is free software; you can
201       redistribute it and/or modify it under the terms of the GPL (either
202       version 1, or at your option, any later version) or the Artistic
203       License 2.0.  Refer to LICENSE for the full license text. In addition,
204       please see DISCLAIMER.txt for disclaimers of warranty.
205
206
207
208perl v5.32.0                      2020-07-28     VM::EC2::REST::network_acl(3)
Impressum