AclTrafficConfig

class aws_cdk.aws_ec2.AclTrafficConfig(*, protocol, icmp=None, port_range=None)

Bases: object

__init__(*, protocol, icmp=None, port_range=None)

Acl Configuration for traffic.

Parameters
  • protocol (Union[int, float]) – The protocol number. A value of “-1” means all protocols. If you specify “-1” or a protocol number other than “6” (TCP), “17” (UDP), or “1” (ICMP), traffic on all ports is allowed, regardless of any ports or ICMP types or codes that you specify. If you specify protocol “58” (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol “58” (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code. Default: 17

  • icmp (Optional[AclIcmp]) – The Internet Control Message Protocol (ICMP) code and type. Default: - Required if specifying 1 (ICMP) for the protocol parameter.

  • port_range (Optional[AclPortRange]) – The range of port numbers for the UDP/TCP protocol. Default: - Required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter

stability :stability: experimental

Attributes

icmp

The Internet Control Message Protocol (ICMP) code and type.

default :default: - Required if specifying 1 (ICMP) for the protocol parameter.

stability :stability: experimental

Return type

Optional[AclIcmp]

port_range

The range of port numbers for the UDP/TCP protocol.

default :default: - Required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter

stability :stability: experimental

Return type

Optional[AclPortRange]

protocol

The protocol number.

A value of “-1” means all protocols.

If you specify “-1” or a protocol number other than “6” (TCP), “17” (UDP), or “1” (ICMP), traffic on all ports is allowed, regardless of any ports or ICMP types or codes that you specify.

If you specify protocol “58” (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol “58” (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code.

default :default: 17

stability :stability: experimental

Return type

Union[int, float]