Skip to content

VpcContextQuery

Query input for looking up a VPC.

Initializer

using AlibabaCloud.SDK.ROS.CDK.Assembly.Schema;
new VpcContextQuery {
    string Account,
    System.Collections.Generic.IDictionary<string, string> Filter,
    string Region,
    bool ReturnAsymmetricSubnets = null,
    string SubnetGroupNameTag = null
};

Properties

Name Type Description
Account string Query account.
Filter System.Collections.Generic.IDictionary Filters to apply to the VPC.
Region string Query region.
ReturnAsymmetricSubnets bool Whether to populate the subnetGroups field of the {@link VpcContextResponse}, which contains potentially asymmetric subnet groups.
SubnetGroupNameTag string Optional tag for subnet group name.

AccountRequired

public string Account { get; set; }
  • Type: string

Query account.


FilterRequired

public System.Collections.Generic.IDictionary<string, string> Filter { get; set; }
  • Type: System.Collections.Generic.IDictionary

Filters to apply to the VPC.

Filter parameters are the same as passed to DescribeVpcs.


RegionRequired

public string Region { get; set; }
  • Type: string

Query region.


ReturnAsymmetricSubnetsOptional

public bool ReturnAsymmetricSubnets { get; set; }
  • Type: bool
  • Default: false

Whether to populate the subnetGroups field of the {@link VpcContextResponse}, which contains potentially asymmetric subnet groups.


SubnetGroupNameTagOptional

public string SubnetGroupNameTag { get; set; }
  • Type: 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.


Classes