Skip to content
v2.278.0

CfnVpcConnectionProps Struct ​

Properties for defining a CfnVpcConnection.

Example ​

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
# 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
// 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();
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" }
    }
};
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 ​

authenticationstringauthenticationstrauthenticationStringAuthenticationstringAuthentication*string required #
The type of private link authentication.
clientSubnetsstring[]client_subnetstyping.List[str]clientSubnetsList<String>ClientSubnetsstring[]ClientSubnets*[]*string required #
The list of subnets in the client VPC to connect to.
securityGroupsstring[]security_groupstyping.List[str]securityGroupsList<String>SecurityGroupsstring[]SecurityGroups*[]*string required #
The security groups to attach to the ENIs for the broker nodes.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #
An arbitrary set of tags (key-value pairs) you specify while creating the VPC connection.
targetClusterArnstringtarget_cluster_arnstrtargetClusterArnStringTargetClusterArnstringTargetClusterArn*string required #
The Amazon Resource Name (ARN) of the cluster.
vpcIdstringvpc_idstrvpcIdStringVpcIdstringVpcId*string required #
The VPC ID of the remote client.