AclTraffic¶
-
class
aws_cdk.aws_ec2.
AclTraffic
¶ Bases:
object
(experimental) The traffic that is configured using a Network ACL entry.
- Stability
experimental
Methods
-
abstract
to_traffic_config
()¶ - Stability
experimental
- Return type
Static Methods
-
classmethod
all_traffic
()¶ (experimental) Apply the ACL entry to all traffic.
- Stability
experimental
- Return type
-
classmethod
icmp
(*, code=None, type=None)¶ (experimental) Apply the ACL entry to ICMP traffic of given type and code.
- Parameters
code (
Union
[int
,float
,None
]) – (experimental) The Internet Control Message Protocol (ICMP) code. You can use -1 to specify all ICMP codes for the given ICMP type. Requirement is conditional: Required if you specify 1 (ICMP) for the protocol parameter.type (
Union
[int
,float
,None
]) – (experimental) The Internet Control Message Protocol (ICMP) type. You can use -1 to specify all ICMP types. Conditional requirement: Required if you specify 1 (ICMP) for the CreateNetworkAclEntry protocol parameter.
- Stability
experimental
- Return type
-
classmethod
icmpv6
(*, code=None, type=None)¶ (experimental) Apply the ACL entry to ICMPv6 traffic of given type and code.
Requires an IPv6 CIDR block.
- Parameters
code (
Union
[int
,float
,None
]) – (experimental) The Internet Control Message Protocol (ICMP) code. You can use -1 to specify all ICMP codes for the given ICMP type. Requirement is conditional: Required if you specify 1 (ICMP) for the protocol parameter.type (
Union
[int
,float
,None
]) – (experimental) The Internet Control Message Protocol (ICMP) type. You can use -1 to specify all ICMP types. Conditional requirement: Required if you specify 1 (ICMP) for the CreateNetworkAclEntry protocol parameter.
- Stability
experimental
- Return type
-
classmethod
tcp_port
(port)¶ (experimental) Apply the ACL entry to TCP traffic on a given port.
- Parameters
port (
Union
[int
,float
]) –- Stability
experimental
- Return type
-
classmethod
tcp_port_range
(start_port, end_port)¶ (experimental) Apply the ACL entry to TCP traffic on a given port range.
- Parameters
start_port (
Union
[int
,float
]) –end_port (
Union
[int
,float
]) –
- Stability
experimental
- Return type
-
classmethod
udp_port
(port)¶ (experimental) Apply the ACL entry to UDP traffic on a given port.
- Parameters
port (
Union
[int
,float
]) –- Stability
experimental
- Return type
-
classmethod
udp_port_range
(start_port, end_port)¶ (experimental) Apply the ACL entry to UDP traffic on a given port range.
- Parameters
start_port (
Union
[int
,float
]) –end_port (
Union
[int
,float
]) –
- Stability
experimental
- Return type