# CfnVpcConnectionProps

Properties for defining a `CfnVpcConnection`.

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

- Source: Generated at build time
- Type last changed: v2.78.0 · 4 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_msk as msk } from 'aws-cdk-lib';
const cfnVpcConnectionProps: msk.CfnVpcConnectionProps = {
  authentication: 'authentication',
  clientSubnets: ['clientSubnets'],
  securityGroups: ['securityGroups'],
  targetClusterArn: 'targetClusterArn',
  vpcId: 'vpcId',

  // the properties below are optional
  tags: {
    tagsKey: 'tags',
  },
};
```

Python:

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

cfn_vpc_connection_props = msk.CfnVpcConnectionProps(
    authentication="authentication",
    client_subnets=["clientSubnets"],
    security_groups=["securityGroups"],
    target_cluster_arn="targetClusterArn",
    vpc_id="vpcId",

    # the properties below are optional
    tags={
        "tags_key": "tags"
    }
)
```

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.msk.*;

CfnVpcConnectionProps cfnVpcConnectionProps = CfnVpcConnectionProps.builder()
        .authentication("authentication")
        .clientSubnets(List.of("clientSubnets"))
        .securityGroups(List.of("securityGroups"))
        .targetClusterArn("targetClusterArn")
        .vpcId("vpcId")

        // the properties below are optional
        .tags(Map.of(
                "tagsKey", "tags"))
        .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.MSK;

var cfnVpcConnectionProps = new CfnVpcConnectionProps {
    Authentication = "authentication",
    ClientSubnets = new [] { "clientSubnets" },
    SecurityGroups = new [] { "securityGroups" },
    TargetClusterArn = "targetClusterArn",
    VpcId = "vpcId",

    // the properties below are optional
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
```

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{
	Authentication: jsii.String("authentication"),
	ClientSubnets: []*string{
		jsii.String("clientSubnets"),
	},
	SecurityGroups: []*string{
		jsii.String("securityGroups"),
	},
	TargetClusterArn: jsii.String("targetClusterArn"),
	VpcId: jsii.String("vpcId"),

	// the properties below are optional
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}
```

## Properties

- `authentication`: string (required) — The type of private link authentication.

- `clientSubnets`: string[] (required) — The list of subnets in the client VPC to connect to.

- `securityGroups`: string[] (required) — The security groups to attach to the ENIs for the broker nodes.

- `tags`: { [key: string]: string } — An arbitrary set of tags (key-value pairs) you specify while creating the VPC connection.

- `targetClusterArn`: string (required) — The Amazon Resource Name (ARN) of the cluster.

- `vpcId`: string (required) — The VPC ID of the remote client.
