Interface CfnPolicy.INetworkAclEntryProperty
Describes a rule in a network ACL.
Namespace: Amazon.CDK.AWS.FMS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface INetworkAclEntryProperty
Syntax (vb)
Public Interface INetworkAclEntryProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.FMS;
var networkAclEntryProperty = new NetworkAclEntryProperty {
Egress = false,
Protocol = "protocol",
RuleAction = "ruleAction",
// the properties below are optional
CidrBlock = "cidrBlock",
IcmpTypeCode = new IcmpTypeCodeProperty {
Code = 123,
Type = 123
},
Ipv6CidrBlock = "ipv6CidrBlock",
PortRange = new PortRangeProperty {
From = 123,
To = 123
}
};
Synopsis
Properties
Cidr |
The IPv4 network range to allow or deny, in CIDR notation. |
Egress | Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). |
Icmp |
ICMP protocol: The ICMP type and code. |
Ipv6Cidr |
The IPv6 network range to allow or deny, in CIDR notation. |
Port |
TCP or UDP protocols: The range of ports the rule applies to. |
Protocol | The protocol number. |
Rule |
Indicates whether to allow or deny the traffic that matches the rule. |
Properties
CidrBlock
The IPv4 network range to allow or deny, in CIDR notation.
virtual string CidrBlock { get; }
Property Value
System.
Remarks
Egress
Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet).
object Egress { get; }
Property Value
System.
Remarks
If it's not an egress rule, then it's an ingress, or inbound, rule.
IcmpTypeCode
ICMP protocol: The ICMP type and code.
virtual object IcmpTypeCode { get; }
Property Value
System.
Remarks
Ipv6CidrBlock
The IPv6 network range to allow or deny, in CIDR notation.
virtual string Ipv6CidrBlock { get; }
Property Value
System.
Remarks
PortRange
TCP or UDP protocols: The range of ports the rule applies to.
virtual object PortRange { get; }
Property Value
System.
Remarks
Protocol
The protocol number.
string Protocol { get; }
Property Value
System.
Remarks
A value of "-1" means all protocols.
RuleAction
Indicates whether to allow or deny the traffic that matches the rule.
string RuleAction { get; }
Property Value
System.