@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:28.933Z") @Stability(value=Experimental) public interface NetworkAclProps 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.*;
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
NetworkAclProps.Builder
A builder for
NetworkAclProps |
static class |
NetworkAclProps.Jsii$Proxy
An implementation for
NetworkAclProps |
| Modifier and Type | Method and Description |
|---|---|
static NetworkAclProps.Builder |
builder() |
default String |
getNetworkAclName()
(experimental) The name of the NetworkAcl.
|
default SubnetSelection |
getSubnetSelection()
(experimental) Subnets in the given VPC to associate the ACL with.
|
IVpc |
getVpc()
(experimental) The VPC in which to create the NetworkACL.
|
@Stability(value=Experimental) @NotNull IVpc getVpc()
@Stability(value=Experimental) @Nullable default String getNetworkAclName()
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.
@Stability(value=Experimental) @Nullable default SubnetSelection getSubnetSelection()
More subnets can always be added later by calling
associateWithSubnets().
Default: - No subnets associated
@Stability(value=Experimental) static NetworkAclProps.Builder builder()
NetworkAclProps.Builder of NetworkAclPropsCopyright © 2022. All rights reserved.