Interface CfnNetworkAclEntryMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnNetworkAclEntryMixinProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.mixins.preview.services.ec2.mixins.*;
CfnNetworkAclEntryMixinProps cfnNetworkAclEntryMixinProps = CfnNetworkAclEntryMixinProps.builder()
.cidrBlock("cidrBlock")
.egress(false)
.icmp(IcmpProperty.builder()
.code(123)
.type(123)
.build())
.ipv6CidrBlock("ipv6CidrBlock")
.networkAclId("networkAclId")
.portRange(PortRangeProperty.builder()
.from(123)
.to(123)
.build())
.protocol(123)
.ruleAction("ruleAction")
.ruleNumber(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnNetworkAclEntryMixinPropsstatic final classAn implementation forCfnNetworkAclEntryMixinProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe IPv4 CIDR range to allow or deny, in CIDR notation (for example, 172.16.0.0/24).default ObjectWhether this rule applies to egress traffic from the subnet (true) or ingress traffic to the subnet (false).default ObjectgetIcmp()The Internet Control Message Protocol (ICMP) code and type.default StringThe IPv6 network range to allow or deny, in CIDR notation.default StringThe ID of the ACL for the entry.default ObjectThe range of port numbers for the UDP/TCP protocol.default NumberThe IP protocol that the rule applies to.default StringWhether to allow or deny traffic that matches the rule;default NumberRule number to assign to the entry, such as 100.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCidrBlock
The IPv4 CIDR range to allow or deny, in CIDR notation (for example, 172.16.0.0/24). You must specify an IPv4 CIDR block or an IPv6 CIDR block.- See Also:
-
getEgress
Whether this rule applies to egress traffic from the subnet (true) or ingress traffic to the subnet (false).By default, AWS CloudFormation specifies
false.Returns union: either
BooleanorIResolvable- See Also:
-
getIcmp
The Internet Control Message Protocol (ICMP) code and type.Required if specifying 1 (ICMP) for the protocol parameter.
Returns union: either
IResolvableorCfnNetworkAclEntryPropsMixin.IcmpProperty- See Also:
-
getIpv6CidrBlock
The IPv6 network range to allow or deny, in CIDR notation.You must specify an IPv4 CIDR block or an IPv6 CIDR block.
- See Also:
-
getNetworkAclId
The ID of the ACL for the entry.- See Also:
-
getPortRange
The range of port numbers for the UDP/TCP protocol.Required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter.
Returns union: either
IResolvableorCfnNetworkAclEntryPropsMixin.PortRangeProperty- See Also:
-
getProtocol
The IP protocol that the rule applies to.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.- See Also:
-
getRuleAction
Whether to allow or deny traffic that matches the rule;valid values are "allow" or "deny".
- See Also:
-
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.
- See Also:
-
builder
-