VpcContextQuery
Query input for looking up a VPC.
Initializer
import com.aliyun.ros.cdk.assembly.schema.VpcContextQuery;
VpcContextQuery.builder()
.account(java.lang.String)
.filter(java.util.Map<java.lang.String, java.lang.String>)
.region(java.lang.String)
// .returnAsymmetricSubnets(java.lang.Boolean)
// .subnetGroupNameTag(java.lang.String)
.build();
Properties
Name | Type | Description |
---|---|---|
account |
java.lang.String |
Query account. |
filter |
java.util.Map |
Filters to apply to the VPC. |
region |
java.lang.String |
Query region. |
returnAsymmetricSubnets |
java.lang.Boolean |
Whether to populate the subnetGroups field of the {@link VpcContextResponse}, which contains potentially asymmetric subnet groups. |
subnetGroupNameTag |
java.lang.String |
Optional tag for subnet group name. |
account
Required
public java.lang.String getAccount();
- Type: java.lang.String
Query account.
filter
Required
public java.util.Map<java.lang.String, java.lang.String> getFilter();
- Type: java.util.Map
Filters to apply to the VPC.
Filter parameters are the same as passed to DescribeVpcs.
region
Required
public java.lang.String getRegion();
- Type: java.lang.String
Query region.
returnAsymmetricSubnets
Optional
public java.lang.Boolean getReturnAsymmetricSubnets();
- Type: java.lang.Boolean
- Default: false
Whether to populate the subnetGroups field of the {@link VpcContextResponse}, which contains potentially asymmetric subnet groups.
subnetGroupNameTag
Optional
public java.lang.String getSubnetGroupNameTag();
- Type: java.lang.String
- Default: 'ros-cdk:subnet-name'
Optional tag for subnet group name.
If not provided, we'll look at the ros-cdk:subnet-name tag. If the subnet does not have the specified tag, we'll use its type as the name.