@Stability(value=Stable) public static final class CfnNetworkAclEntryProps.Builder extends Object implements software.amazon.jsii.Builder<CfnNetworkAclEntryProps>
CfnNetworkAclEntryProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnNetworkAclEntryProps.Builder networkAclId(String networkAclId)
CfnNetworkAclEntryProps.getNetworkAclId()networkAclId - The ID of the ACL for the entry. This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntryProps.Builder protocol(Number protocol)
CfnNetworkAclEntryProps.getProtocol()protocol - The IP protocol that the rule applies to. This parameter is required.
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.
this@Stability(value=Stable) public CfnNetworkAclEntryProps.Builder ruleAction(String ruleAction)
CfnNetworkAclEntryProps.getRuleAction()ruleAction - Whether to allow or deny traffic that matches the rule;. This parameter is required.
valid values are "allow" or "deny".this@Stability(value=Stable) public CfnNetworkAclEntryProps.Builder ruleNumber(Number ruleNumber)
CfnNetworkAclEntryProps.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=Stable) public CfnNetworkAclEntryProps.Builder cidrBlock(String cidrBlock)
CfnNetworkAclEntryProps.getCidrBlock()cidrBlock - The IPv4 CIDR range to allow or deny, in CIDR notation (for example, 172.16.0.0/24). Requirement is conditional: You must specify the `CidrBlock` or `Ipv6CidrBlock` property.this@Stability(value=Stable) public CfnNetworkAclEntryProps.Builder egress(Boolean egress)
CfnNetworkAclEntryProps.getEgress()egress - Whether this rule applies to egress traffic from the subnet ( `true` ) or ingress traffic to the subnet ( `false` ).
By default, AWS CloudFormation specifies false .this@Stability(value=Stable) public CfnNetworkAclEntryProps.Builder egress(IResolvable egress)
CfnNetworkAclEntryProps.getEgress()egress - Whether this rule applies to egress traffic from the subnet ( `true` ) or ingress traffic to the subnet ( `false` ).
By default, AWS CloudFormation specifies false .this@Stability(value=Stable) public CfnNetworkAclEntryProps.Builder icmp(CfnNetworkAclEntry.IcmpProperty icmp)
CfnNetworkAclEntryProps.getIcmp()icmp - The Internet Control Message Protocol (ICMP) code and type.
Requirement is conditional: Required if specifying 1 (ICMP) for the protocol parameter.this@Stability(value=Stable) public CfnNetworkAclEntryProps.Builder icmp(IResolvable icmp)
CfnNetworkAclEntryProps.getIcmp()icmp - The Internet Control Message Protocol (ICMP) code and type.
Requirement is conditional: Required if specifying 1 (ICMP) for the protocol parameter.this@Stability(value=Stable) public CfnNetworkAclEntryProps.Builder ipv6CidrBlock(String ipv6CidrBlock)
CfnNetworkAclEntryProps.getIpv6CidrBlock()ipv6CidrBlock - The IPv6 network range to allow or deny, in CIDR notation.
Requirement is conditional: You must specify the CidrBlock or Ipv6CidrBlock property.this@Stability(value=Stable) public CfnNetworkAclEntryProps.Builder portRange(CfnNetworkAclEntry.PortRangeProperty portRange)
CfnNetworkAclEntryProps.getPortRange()portRange - The range of port numbers for the UDP/TCP protocol.
Conditional required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter.this@Stability(value=Stable) public CfnNetworkAclEntryProps.Builder portRange(IResolvable portRange)
CfnNetworkAclEntryProps.getPortRange()portRange - The range of port numbers for the UDP/TCP protocol.
Conditional required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter.this@Stability(value=Stable) public CfnNetworkAclEntryProps build()
build in interface software.amazon.jsii.Builder<CfnNetworkAclEntryProps>CfnNetworkAclEntryPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.