@Stability(value=Stable) public static final class CfnNetworkAclEntry.Builder extends Object implements software.amazon.jsii.Builder<CfnNetworkAclEntry>
CfnNetworkAclEntry.| Modifier and Type | Method and Description |
|---|---|
CfnNetworkAclEntry |
build() |
CfnNetworkAclEntry.Builder |
cidrBlock(String cidrBlock)
The IPv4 CIDR range to allow or deny, in CIDR notation (for example, 172.16.0.0/24).
|
static CfnNetworkAclEntry.Builder |
create(software.constructs.Construct scope,
String id) |
CfnNetworkAclEntry.Builder |
egress(Boolean egress)
Whether this rule applies to egress traffic from the subnet ( `true` ) or ingress traffic to the subnet ( `false` ).
|
CfnNetworkAclEntry.Builder |
egress(IResolvable egress)
Whether this rule applies to egress traffic from the subnet ( `true` ) or ingress traffic to the subnet ( `false` ).
|
CfnNetworkAclEntry.Builder |
icmp(CfnNetworkAclEntry.IcmpProperty icmp)
The Internet Control Message Protocol (ICMP) code and type.
|
CfnNetworkAclEntry.Builder |
icmp(IResolvable icmp)
The Internet Control Message Protocol (ICMP) code and type.
|
CfnNetworkAclEntry.Builder |
ipv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation.
|
CfnNetworkAclEntry.Builder |
networkAclId(String networkAclId)
The ID of the ACL for the entry.
|
CfnNetworkAclEntry.Builder |
portRange(CfnNetworkAclEntry.PortRangeProperty portRange)
The range of port numbers for the UDP/TCP protocol.
|
CfnNetworkAclEntry.Builder |
portRange(IResolvable portRange)
The range of port numbers for the UDP/TCP protocol.
|
CfnNetworkAclEntry.Builder |
protocol(Number protocol)
The IP protocol that the rule applies to.
|
CfnNetworkAclEntry.Builder |
ruleAction(String ruleAction)
Whether to allow or deny traffic that matches the rule;
|
CfnNetworkAclEntry.Builder |
ruleNumber(Number ruleNumber)
Rule number to assign to the entry, such as 100.
|
@Stability(value=Stable) public static CfnNetworkAclEntry.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnNetworkAclEntry.IcmpProperty.Builder.@Stability(value=Stable) public CfnNetworkAclEntry.Builder networkAclId(String networkAclId)
networkAclId - The ID of the ACL for the entry. This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry.Builder protocol(Number protocol)
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.
protocol - The IP protocol that the rule applies to. This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry.Builder ruleAction(String ruleAction)
valid values are "allow" or "deny".
ruleAction - Whether to allow or deny traffic that matches the rule;. This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry.Builder ruleNumber(Number ruleNumber)
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.
ruleNumber - Rule number to assign to the entry, such as 100. This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry.Builder cidrBlock(String cidrBlock)
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 parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry.Builder egress(Boolean egress)
By default, AWS CloudFormation specifies false .
egress - Whether this rule applies to egress traffic from the subnet ( `true` ) or ingress traffic to the subnet ( `false` ). This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry.Builder egress(IResolvable egress)
By default, AWS CloudFormation specifies false .
egress - Whether this rule applies to egress traffic from the subnet ( `true` ) or ingress traffic to the subnet ( `false` ). This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry.Builder icmp(CfnNetworkAclEntry.IcmpProperty icmp)
Requirement is conditional: Required if specifying 1 (ICMP) for the protocol parameter.
icmp - The Internet Control Message Protocol (ICMP) code and type. This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry.Builder icmp(IResolvable icmp)
Requirement is conditional: Required if specifying 1 (ICMP) for the protocol parameter.
icmp - The Internet Control Message Protocol (ICMP) code and type. This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry.Builder ipv6CidrBlock(String ipv6CidrBlock)
Requirement is conditional: You must specify the CidrBlock or Ipv6CidrBlock property.
ipv6CidrBlock - The IPv6 network range to allow or deny, in CIDR notation. This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry.Builder portRange(CfnNetworkAclEntry.PortRangeProperty portRange)
Conditional required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter.
portRange - The range of port numbers for the UDP/TCP protocol. This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry.Builder portRange(IResolvable portRange)
Conditional required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter.
portRange - The range of port numbers for the UDP/TCP protocol. This parameter is required.this@Stability(value=Stable) public CfnNetworkAclEntry build()
build in interface software.amazon.jsii.Builder<CfnNetworkAclEntry>Copyright © 2022. All rights reserved.