# CfnVPCConnectionProps

Properties for defining a `CfnVPCConnection`.

Used as props by: [CfnVPCConnection](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnVPCConnection.html)

- Source: Generated at build time
- Type last changed: v2.79.0 · 10 May 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const cfnVPCConnectionProps: quicksight.CfnVPCConnectionProps = {
  availabilityStatus: 'availabilityStatus',
  awsAccountId: 'awsAccountId',
  dnsResolvers: ['dnsResolvers'],
  name: 'name',
  roleArn: 'roleArn',
  securityGroupIds: ['securityGroupIds'],
  subnetIds: ['subnetIds'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
  vpcConnectionId: 'vpcConnectionId',
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

cfn_vpc_connection_props = quicksight.CfnVPCConnectionProps(
    availability_status="availabilityStatus",
    aws_account_id="awsAccountId",
    dns_resolvers=["dnsResolvers"],
    name="name",
    role_arn="roleArn",
    security_group_ids=["securityGroupIds"],
    subnet_ids=["subnetIds"],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vpc_connection_id="vpcConnectionId"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

CfnVPCConnectionProps cfnVPCConnectionProps = CfnVPCConnectionProps.builder()
        .availabilityStatus("availabilityStatus")
        .awsAccountId("awsAccountId")
        .dnsResolvers(List.of("dnsResolvers"))
        .name("name")
        .roleArn("roleArn")
        .securityGroupIds(List.of("securityGroupIds"))
        .subnetIds(List.of("subnetIds"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .vpcConnectionId("vpcConnectionId")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var cfnVPCConnectionProps = new CfnVPCConnectionProps {
    AvailabilityStatus = "availabilityStatus",
    AwsAccountId = "awsAccountId",
    DnsResolvers = new [] { "dnsResolvers" },
    Name = "name",
    RoleArn = "roleArn",
    SecurityGroupIds = new [] { "securityGroupIds" },
    SubnetIds = new [] { "subnetIds" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    VpcConnectionId = "vpcConnectionId"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnVPCConnectionProps := &CfnVPCConnectionProps{
	AvailabilityStatus: jsii.String("availabilityStatus"),
	AwsAccountId: jsii.String("awsAccountId"),
	DnsResolvers: []*string{
		jsii.String("dnsResolvers"),
	},
	Name: jsii.String("name"),
	RoleArn: jsii.String("roleArn"),
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
	SubnetIds: []*string{
		jsii.String("subnetIds"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VpcConnectionId: jsii.String("vpcConnectionId"),
}
```

## Properties

- `availabilityStatus`: string — The availability status of the VPC connection.

- `awsAccountId`: string — The AWS account ID of the account where you want to create a new VPC connection.

- `dnsResolvers`: string[] — A list of IP addresses of DNS resolver endpoints for the VPC connection.

- `name`: string — The display name for the VPC connection.

- `roleArn`: string — The ARN of the IAM role associated with the VPC connection.

- `securityGroupIds`: string[] — The Amazon EC2 security group IDs associated with the VPC connection.

- `subnetIds`: string[] — A list of subnet IDs for the VPC connection.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A map of the key-value pairs for the resource tag or tags assigned to the VPC connection.

- `vpcConnectionId`: string — The ID of the VPC connection that you're creating.

  This ID is a unique identifier for each AWS Region in an AWS account.
