KafkaClusterClientVpcConfigProperty Struct
Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.
| Source | |
|---|---|
| Type last changed |
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 kafkaClusterClientVpcConfigProperty: msk.CfnReplicator.KafkaClusterClientVpcConfigProperty = {
subnetIds: ['subnetIds'],
// the properties below are optional
securityGroupIds: ['securityGroupIds'],
};
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
kafka_cluster_client_vpc_config_property = msk.CfnReplicator.KafkaClusterClientVpcConfigProperty(
subnet_ids=["subnetIds"],
# the properties below are optional
security_group_ids=["securityGroupIds"]
)
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.*;
KafkaClusterClientVpcConfigProperty kafkaClusterClientVpcConfigProperty = KafkaClusterClientVpcConfigProperty.builder()
.subnetIds(List.of("subnetIds"))
// the properties below are optional
.securityGroupIds(List.of("securityGroupIds"))
.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 kafkaClusterClientVpcConfigProperty = new KafkaClusterClientVpcConfigProperty {
SubnetIds = new [] { "subnetIds" },
// the properties below are optional
SecurityGroupIds = new [] { "securityGroupIds" }
};
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"
kafkaClusterClientVpcConfigProperty := &KafkaClusterClientVpcConfigProperty{
SubnetIds: []*string{
jsii.String("subnetIds"),
},
// the properties below are optional
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
}
Properties
securityGroupIdsoptionalstring[]security_group_idsoptionaltyping.List[str]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]*string #The security groups to attach to the ENIs for the broker nodes.
subnetIdsstring[]subnet_idstyping.List[str]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]*string required #The list of subnets in the client VPC to connect to.