@Stability(value=Experimental) public static final class NetworkAclEntryProps.Builder extends Object implements software.amazon.jsii.Builder<NetworkAclEntryProps>
NetworkAclEntryProps
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public NetworkAclEntryProps.Builder networkAcl(INetworkAcl networkAcl)
NetworkAclEntryProps.getNetworkAcl()
networkAcl
- The network ACL this entry applies to. This parameter is required.this
@Stability(value=Experimental) public NetworkAclEntryProps.Builder cidr(AclCidr cidr)
CommonNetworkAclEntryOptions.getCidr()
cidr
- The CIDR range to allow or deny. This parameter is required.this
@Stability(value=Experimental) public NetworkAclEntryProps.Builder ruleNumber(Number ruleNumber)
CommonNetworkAclEntryOptions.getRuleNumber()
ruleNumber
- Rule number to assign to the entry, such as 100. This parameter is required.
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.this
@Stability(value=Experimental) public NetworkAclEntryProps.Builder traffic(AclTraffic traffic)
CommonNetworkAclEntryOptions.getTraffic()
traffic
- What kind of traffic this ACL rule applies to. This parameter is required.this
@Stability(value=Experimental) public NetworkAclEntryProps.Builder direction(TrafficDirection direction)
CommonNetworkAclEntryOptions.getDirection()
direction
- Traffic direction, with respect to the subnet, this rule applies to.this
@Stability(value=Experimental) public NetworkAclEntryProps.Builder networkAclEntryName(String networkAclEntryName)
CommonNetworkAclEntryOptions.getNetworkAclEntryName()
networkAclEntryName
- The name of the NetworkAclEntry.
It is not recommended to use an explicit group name.this
@Stability(value=Experimental) public NetworkAclEntryProps.Builder ruleAction(Action ruleAction)
CommonNetworkAclEntryOptions.getRuleAction()
ruleAction
- Whether to allow or deny traffic that matches the rule; valid values are "allow" or "deny".
Any traffic that is not explicitly allowed is automatically denied in a custom
ACL, all traffic is automatically allowed in a default ACL.this
@Stability(value=Experimental) public NetworkAclEntryProps build()
build
in interface software.amazon.jsii.Builder<NetworkAclEntryProps>
NetworkAclEntryProps
NullPointerException
- if any required attribute was not providedCopyright © 2020. All rights reserved.