interface NetworkAclEntryProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.FMS.CfnPolicy.NetworkAclEntryProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsfms#CfnPolicy_NetworkAclEntryProperty |
![]() | software.amazon.awscdk.services.fms.CfnPolicy.NetworkAclEntryProperty |
![]() | aws_cdk.aws_fms.CfnPolicy.NetworkAclEntryProperty |
![]() | aws-cdk-lib » aws_fms » CfnPolicy » NetworkAclEntryProperty |
Describes a rule in a network ACL.
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 { aws_fms as fms } from 'aws-cdk-lib';
const networkAclEntryProperty: fms.CfnPolicy.NetworkAclEntryProperty = {
egress: false,
protocol: 'protocol',
ruleAction: 'ruleAction',
// the properties below are optional
cidrBlock: 'cidrBlock',
icmpTypeCode: {
code: 123,
type: 123,
},
ipv6CidrBlock: 'ipv6CidrBlock',
portRange: {
from: 123,
to: 123,
},
};
Properties
Name | Type | Description |
---|---|---|
egress | boolean | IResolvable | Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). |
protocol | string | The protocol number. |
rule | string | Indicates whether to allow or deny the traffic that matches the rule. |
cidr | string | The IPv4 network range to allow or deny, in CIDR notation. |
icmp | IResolvable | Icmp | ICMP protocol: The ICMP type and code. |
ipv6 | string | The IPv6 network range to allow or deny, in CIDR notation. |
port | IResolvable | Port | TCP or UDP protocols: The range of ports the rule applies to. |
egress
Type:
boolean |
IResolvable
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.
protocol
Type:
string
The protocol number.
A value of "-1" means all protocols.
ruleAction
Type:
string
Indicates whether to allow or deny the traffic that matches the rule.
cidrBlock?
Type:
string
(optional)
The IPv4 network range to allow or deny, in CIDR notation.
icmpTypeCode?
Type:
IResolvable
|
Icmp
(optional)
ICMP protocol: The ICMP type and code.
ipv6CidrBlock?
Type:
string
(optional)
The IPv6 network range to allow or deny, in CIDR notation.
portRange?
Type:
IResolvable
|
Port
(optional)
TCP or UDP protocols: The range of ports the rule applies to.