public static final class NetworkAcl.Builder
extends java.lang.Object
NetworkAcl
.Modifier and Type | Method and Description |
---|---|
NetworkAcl |
build() |
static NetworkAcl.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
NetworkAcl.Builder |
networkAclName(java.lang.String networkAclName)
The name of the NetworkAcl.
|
NetworkAcl.Builder |
subnetSelection(SubnetSelection subnetSelection)
Subnets in the given VPC to associate the ACL with.
|
NetworkAcl.Builder |
vpc(IVpc vpc)
The VPC in which to create the NetworkACL.
|
public static NetworkAcl.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.NetworkAcl.Builder
.public NetworkAcl.Builder vpc(IVpc vpc)
vpc
- The VPC in which to create the NetworkACL. This parameter is required.this
public NetworkAcl.Builder networkAclName(java.lang.String networkAclName)
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.
networkAclName
- The name of the NetworkAcl. This parameter is required.this
public NetworkAcl.Builder subnetSelection(SubnetSelection subnetSelection)
More subnets can always be added later by calling
associateWithSubnets()
.
Default: - No subnets associated
subnetSelection
- Subnets in the given VPC to associate the ACL with. This parameter is required.this
public NetworkAcl build()