@Generated(value="jsii-pacmak/1.21.0 (build 4262b22)", date="2021-02-19T10:08:58.020Z") @Stability(value=Stable) public interface SubnetSelection extends software.amazon.jsii.JsiiSerializable
Constructs that allow customization of VPC placement use parameters of this type to provide placement settings.
By default, the instances are placed in the private subnets.
Modifier and Type | Interface and Description |
---|---|
static class |
SubnetSelection.Builder
A builder for
SubnetSelection |
static class |
SubnetSelection.Jsii$Proxy
An implementation for
SubnetSelection |
Modifier and Type | Method and Description |
---|---|
static SubnetSelection.Builder |
builder() |
default List<String> |
getAvailabilityZones()
Select subnets only in the given AZs.
|
default Boolean |
getOnePerAz()
If true, return at most one subnet per AZ.
|
default List<SubnetFilter> |
getSubnetFilters()
List of provided subnet filters.
|
default String |
getSubnetGroupName()
Select the subnet group with the given name.
|
default String |
getSubnetName()
Deprecated.
Use `subnetGroupName` instead
|
default List<ISubnet> |
getSubnets()
Explicitly select individual subnets.
|
default SubnetType |
getSubnetType()
Select all subnets of the given type.
|
@Stability(value=Stable) @Nullable default List<String> getAvailabilityZones()
Default: no filtering on AZs is done
@Stability(value=Stable) @Nullable default Boolean getOnePerAz()
Default: false
@Stability(value=Stable) @Nullable default List<SubnetFilter> getSubnetFilters()
Default: - none
@Stability(value=Stable) @Nullable default String getSubnetGroupName()
Select the subnet group with the given name. This only needs
to be used if you have multiple subnet groups of the same type
and you need to distinguish between them. Otherwise, prefer
subnetType
.
This field does not select individual subnets, it selects all subnets that
share the given subnet group name. This is the name supplied in
subnetConfiguration
.
At most one of subnetType
and subnetGroupName
can be supplied.
Default: - Selection by type instead of by name
@Stability(value=Deprecated) @Deprecated @Nullable default String getSubnetName()
Select the subnet group with the given name. This only needs to be used if you have multiple subnet groups of the same type and you need to distinguish between them.
@Stability(value=Stable) @Nullable default List<ISubnet> getSubnets()
Use this if you don't want to automatically use all subnets in a group, but have a need to control selection down to individual subnets.
Cannot be specified together with subnetType
or subnetGroupName
.
Default: - Use all subnets in a selected group (all private subnets by default)
@Stability(value=Stable) @Nullable default SubnetType getSubnetType()
At most one of subnetType
and subnetGroupName
can be supplied.
Default: SubnetType.PRIVATE (or ISOLATED or PUBLIC if there are no PRIVATE subnets)
@Stability(value=Stable) static SubnetSelection.Builder builder()
SubnetSelection.Builder
of SubnetSelection
Copyright © 2021. All rights reserved.