@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.254Z") @Stability(value=Stable) public interface CfnNetworkAclEntryProps extends software.amazon.jsii.JsiiSerializable
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.*;
CfnNetworkAclEntryProps cfnNetworkAclEntryProps = CfnNetworkAclEntryProps.builder()
.networkAclId("networkAclId")
.protocol(123)
.ruleAction("ruleAction")
.ruleNumber(123)
// the properties below are optional
.cidrBlock("cidrBlock")
.egress(false)
.icmp(IcmpProperty.builder()
.code(123)
.type(123)
.build())
.ipv6CidrBlock("ipv6CidrBlock")
.portRange(PortRangeProperty.builder()
.from(123)
.to(123)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnNetworkAclEntryProps.Builder
A builder for
CfnNetworkAclEntryProps |
static class |
CfnNetworkAclEntryProps.Jsii$Proxy
An implementation for
CfnNetworkAclEntryProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnNetworkAclEntryProps.Builder |
builder() |
default String |
getCidrBlock()
The IPv4 CIDR range to allow or deny, in CIDR notation (for example, 172.16.0.0/24).
|
default Object |
getEgress()
Whether this rule applies to egress traffic from the subnet ( `true` ) or ingress traffic to the subnet ( `false` ).
|
default Object |
getIcmp()
The Internet Control Message Protocol (ICMP) code and type.
|
default String |
getIpv6CidrBlock()
The IPv6 network range to allow or deny, in CIDR notation.
|
String |
getNetworkAclId()
The ID of the ACL for the entry.
|
default Object |
getPortRange()
The range of port numbers for the UDP/TCP protocol.
|
Number |
getProtocol()
The IP protocol that the rule applies to.
|
String |
getRuleAction()
Whether to allow or deny traffic that matches the rule;
|
Number |
getRuleNumber()
Rule number to assign to the entry, such as 100.
|
@Stability(value=Stable) @NotNull String getNetworkAclId()
@Stability(value=Stable) @NotNull Number getProtocol()
You must specify -1 or a protocol number. You can specify -1 for all protocols.
If you specify -1, all ports are opened and the
PortRangeproperty is ignored.
@Stability(value=Stable) @NotNull String getRuleAction()
valid values are "allow" or "deny".
@Stability(value=Stable) @NotNull 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.
@Stability(value=Stable) @Nullable default String getCidrBlock()
@Stability(value=Stable) @Nullable default Object getEgress()
By default, AWS CloudFormation specifies false .
@Stability(value=Stable) @Nullable default Object getIcmp()
Requirement is conditional: Required if specifying 1 (ICMP) for the protocol parameter.
@Stability(value=Stable) @Nullable default String getIpv6CidrBlock()
Requirement is conditional: You must specify the CidrBlock or Ipv6CidrBlock property.
@Stability(value=Stable) @Nullable default Object getPortRange()
Conditional required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter.
@Stability(value=Stable) static CfnNetworkAclEntryProps.Builder builder()
CfnNetworkAclEntryProps.Builder of CfnNetworkAclEntryPropsCopyright © 2022. All rights reserved.