public static final class NetworkAclEntry.Builder
extends java.lang.Object
NetworkAclEntry
.Modifier and Type | Method and Description |
---|---|
NetworkAclEntry |
build() |
NetworkAclEntry.Builder |
cidr(AclCidr cidr)
The CIDR range to allow or deny.
|
static NetworkAclEntry.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
NetworkAclEntry.Builder |
direction(TrafficDirection direction)
Traffic direction, with respect to the subnet, this rule applies to.
|
NetworkAclEntry.Builder |
networkAcl(INetworkAcl networkAcl)
The network ACL this entry applies to.
|
NetworkAclEntry.Builder |
networkAclEntryName(java.lang.String networkAclEntryName)
The name of the NetworkAclEntry.
|
NetworkAclEntry.Builder |
ruleAction(Action ruleAction)
Whether to allow or deny traffic that matches the rule; valid values are "allow" or "deny".
|
NetworkAclEntry.Builder |
ruleNumber(java.lang.Number ruleNumber)
Rule number to assign to the entry, such as 100.
|
NetworkAclEntry.Builder |
traffic(AclTraffic traffic)
What kind of traffic this ACL rule applies to.
|
public static NetworkAclEntry.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.NetworkAclEntry.Builder
.public NetworkAclEntry.Builder cidr(AclCidr cidr)
cidr
- The CIDR range to allow or deny. This parameter is required.this
public NetworkAclEntry.Builder ruleNumber(java.lang.Number ruleNumber)
ACL entries are processed in ascending order by rule number. Entries can't use the same rule number unless one is an egress rule and the other is an ingress rule.
ruleNumber
- Rule number to assign to the entry, such as 100. This parameter is required.this
public NetworkAclEntry.Builder traffic(AclTraffic traffic)
traffic
- What kind of traffic this ACL rule applies to. This parameter is required.this
public NetworkAclEntry.Builder direction(TrafficDirection direction)
Default: TrafficDirection.INGRESS
direction
- Traffic direction, with respect to the subnet, this rule applies to. This parameter is required.this
public NetworkAclEntry.Builder networkAclEntryName(java.lang.String networkAclEntryName)
It is not recommended to use an explicit group name.
Default: If you don't specify a NetworkAclName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.
networkAclEntryName
- The name of the NetworkAclEntry. This parameter is required.this
public NetworkAclEntry.Builder ruleAction(Action ruleAction)
Any traffic that is not explicitly allowed is automatically denied in a custom ACL, all traffic is automatically allowed in a default ACL.
Default: ALLOW
ruleAction
- Whether to allow or deny traffic that matches the rule; valid values are "allow" or "deny". This parameter is required.this
public NetworkAclEntry.Builder networkAcl(INetworkAcl networkAcl)
networkAcl
- The network ACL this entry applies to. This parameter is required.this
public NetworkAclEntry build()