@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-20T22:19:59.380Z")
public interface CommonNetworkAclEntryOptions
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.ec2.*; AclCidr aclCidr; AclTraffic aclTraffic; CommonNetworkAclEntryOptions commonNetworkAclEntryOptions = CommonNetworkAclEntryOptions.builder() .cidr(aclCidr) .ruleNumber(123) .traffic(aclTraffic) // the properties below are optional .direction(TrafficDirection.EGRESS) .networkAclEntryName("networkAclEntryName") .ruleAction(Action.ALLOW) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CommonNetworkAclEntryOptions.Builder
A builder for
CommonNetworkAclEntryOptions |
static class |
CommonNetworkAclEntryOptions.Jsii$Proxy
An implementation for
CommonNetworkAclEntryOptions |
Modifier and Type | Method and Description |
---|---|
static CommonNetworkAclEntryOptions.Builder |
builder() |
AclCidr |
getCidr()
The CIDR range to allow or deny.
|
default TrafficDirection |
getDirection()
Traffic direction, with respect to the subnet, this rule applies to.
|
default java.lang.String |
getNetworkAclEntryName()
The name of the NetworkAclEntry.
|
default Action |
getRuleAction()
Whether to allow or deny traffic that matches the rule; valid values are "allow" or "deny".
|
java.lang.Number |
getRuleNumber()
Rule number to assign to the entry, such as 100.
|
AclTraffic |
getTraffic()
What kind of traffic this ACL rule applies to.
|
AclCidr getCidr()
java.lang.Number getRuleNumber()
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.
AclTraffic getTraffic()
default TrafficDirection getDirection()
Default: TrafficDirection.INGRESS
default java.lang.String getNetworkAclEntryName()
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.
default Action getRuleAction()
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
static CommonNetworkAclEntryOptions.Builder builder()