Interface CfnPolicy.NetworkAclEntryProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPolicy.NetworkAclEntryProperty.Jsii$Proxy
- Enclosing class:
CfnPolicy
Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the network ACL, AWS processes the entries in the network ACL according to the rule numbers, in ascending order.
When you manage an individual network ACL, you explicitly specify the rule numbers. When you specify the network ACL rules in a Firewall Manager policy, you provide the rules to run first, in the order that you want them to run, and the rules to run last, in the order that you want them to run. Firewall Manager assigns the rule numbers for you when you save the network ACL policy specification.
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.fms.*; NetworkAclEntryProperty networkAclEntryProperty = NetworkAclEntryProperty.builder() .egress(false) .protocol("protocol") .ruleAction("ruleAction") // the properties below are optional .cidrBlock("cidrBlock") .icmpTypeCode(IcmpTypeCodeProperty.builder() .code(123) .type(123) .build()) .ipv6CidrBlock("ipv6CidrBlock") .portRange(PortRangeProperty.builder() .from(123) .to(123) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnPolicy.NetworkAclEntryProperty
static final class
An implementation forCfnPolicy.NetworkAclEntryProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The IPv4 network range to allow or deny, in CIDR notation.Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet).default Object
ICMP protocol: The ICMP type and code.default String
The IPv6 network range to allow or deny, in CIDR notation.default Object
TCP or UDP protocols: The range of ports the rule applies to.The protocol number.Indicates whether to allow or deny the traffic that matches the rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEgress
Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet).If it's not an egress rule, then it's an ingress, or inbound, rule.
- See Also:
-
getProtocol
The protocol number.A value of "-1" means all protocols.
- See Also:
-
getRuleAction
Indicates whether to allow or deny the traffic that matches the rule.- See Also:
-
getCidrBlock
The IPv4 network range to allow or deny, in CIDR notation.- See Also:
-
getIcmpTypeCode
ICMP protocol: The ICMP type and code.- See Also:
-
getIpv6CidrBlock
The IPv6 network range to allow or deny, in CIDR notation.- See Also:
-
getPortRange
TCP or UDP protocols: The range of ports the rule applies to.- See Also:
-
builder
-