Interface NetworkAclProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NetworkAclProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.484Z")
@Stability(Stable)
public interface NetworkAclProps
extends software.amazon.jsii.JsiiSerializable
Properties to create NetworkAcl.
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.*; Subnet subnet; SubnetFilter subnetFilter; Vpc vpc; NetworkAclProps networkAclProps = NetworkAclProps.builder() .vpc(vpc) // the properties below are optional .networkAclName("networkAclName") .subnetSelection(SubnetSelection.builder() .availabilityZones(List.of("availabilityZones")) .onePerAz(false) .subnetFilters(List.of(subnetFilter)) .subnetGroupName("subnetGroupName") .subnetName("subnetName") .subnets(List.of(subnet)) .subnetType(SubnetType.ISOLATED) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forNetworkAclProps
static final class
An implementation forNetworkAclProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkAclProps.Builder
builder()
default String
The name of the NetworkAcl.default SubnetSelection
Subnets in the given VPC to associate the ACL with.getVpc()
The VPC in which to create the NetworkACL.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
The VPC in which to create the NetworkACL. -
getNetworkAclName
The name of the NetworkAcl.It is not recommended to use an explicit name.
Default: If you don't specify a networkAclName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.
-
getSubnetSelection
Subnets in the given VPC to associate the ACL with.More subnets can always be added later by calling
associateWithSubnets()
.Default: - No subnets associated
-
builder
- Returns:
- a
NetworkAclProps.Builder
ofNetworkAclProps
-