Class VpcContextQuery
Query input for looking up a VPC.
Inheritance
Implements
Namespace: Amazon.CDK.CloudAssembly.Schema
Assembly: Amazon.CDK.CloudAssembly.Schema.dll
Syntax (csharp)
public class VpcContextQuery : Object, IVpcContextQuery
Syntax (vb)
Public Class VpcContextQuery
Inherits Object
Implements IVpcContextQuery
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CloudAssembly.Schema;
var vpcContextQuery = new VpcContextQuery {
Account = "account",
Filter = new Dictionary<string, string> {
{ "filterKey", "filter" }
},
Region = "region",
// the properties below are optional
LookupRoleArn = "lookupRoleArn",
ReturnAsymmetricSubnets = false,
SubnetGroupNameTag = "subnetGroupNameTag"
};
Synopsis
Constructors
VpcContextQuery() |
Properties
Account | Query account. |
Filter | Filters to apply to the VPC. |
LookupRoleArn | The ARN of the role that should be used to look up the missing values. |
Region | Query region. |
ReturnAsymmetricSubnets | Whether to populate the subnetGroups field of the {@link VpcContextResponse}, which contains potentially asymmetric subnet groups. |
SubnetGroupNameTag | Optional tag for subnet group name. |
Constructors
VpcContextQuery()
public VpcContextQuery()
Properties
Account
Query account.
public string Account { get; set; }
Property Value
System.String
Filter
Filters to apply to the VPC.
public IDictionary<string, string> Filter { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Filter parameters are the same as passed to DescribeVpcs.
See: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html
LookupRoleArn
The ARN of the role that should be used to look up the missing values.
public string LookupRoleArn { get; set; }
Property Value
System.String
Remarks
Default: - None
Region
Query region.
public string Region { get; set; }
Property Value
System.String
ReturnAsymmetricSubnets
Whether to populate the subnetGroups field of the {@link VpcContextResponse}, which contains potentially asymmetric subnet groups.
public Nullable<bool> ReturnAsymmetricSubnets { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
SubnetGroupNameTag
Optional tag for subnet group name.
public string SubnetGroupNameTag { get; set; }
Property Value
System.String
Remarks
If not provided, we'll look at the aws-cdk:subnet-name tag. If the subnet does not have the specified tag, we'll use its type as the name.
Default: 'aws-cdk:subnet-name'