Interface AclTrafficConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AclTrafficConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:17.644Z")
@Stability(Stable)
public interface AclTrafficConfig
extends software.amazon.jsii.JsiiSerializable
Acl Configuration for traffic.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; AclTrafficConfig aclTrafficConfig = AclTrafficConfig.builder() .protocol(123) // the properties below are optional .icmp(AclIcmp.builder() .code(123) .type(123) .build()) .portRange(AclPortRange.builder() .from(123) .to(123) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAclTrafficConfig
static final class
An implementation forAclTrafficConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic AclTrafficConfig.Builder
builder()
default AclIcmp
getIcmp()
The Internet Control Message Protocol (ICMP) code and type.default AclPortRange
The range of port numbers for the UDP/TCP protocol.The protocol number.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getProtocol
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
-
getIcmp
The Internet Control Message Protocol (ICMP) code and type.Default: - Required if specifying 1 (ICMP) for the protocol parameter.
-
getPortRange
The range of port numbers for the UDP/TCP protocol.Default: - Required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter
-
builder
- Returns:
- a
AclTrafficConfig.Builder
ofAclTrafficConfig
-