Interface CommonNetworkAclEntryOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
NetworkAclEntryProps
- All Known Implementing Classes:
CommonNetworkAclEntryOptions.Jsii$Proxy
,NetworkAclEntryProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.274Z")
@Stability(Stable)
public interface CommonNetworkAclEntryOptions
extends software.amazon.jsii.JsiiSerializable
Basic NetworkACL entry props.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCommonNetworkAclEntryOptions
static final class
An implementation forCommonNetworkAclEntryOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
getCidr()
The CIDR range to allow or deny.default TrafficDirection
Traffic direction, with respect to the subnet, this rule applies to.default String
The name of the NetworkAclEntry.default Action
Whether to allow or deny traffic that matches the rule; valid values are "allow" or "deny".Rule number to assign to the entry, such as 100.What kind of traffic this ACL rule applies to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCidr
The CIDR range to allow or deny. -
getRuleNumber
Rule number to assign to the entry, such as 100.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.
-
getTraffic
What kind of traffic this ACL rule applies to. -
getDirection
Traffic direction, with respect to the subnet, this rule applies to.Default: TrafficDirection.INGRESS
-
getNetworkAclEntryName
The name of the NetworkAclEntry.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.
-
getRuleAction
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.
Default: ALLOW
-
builder
-