VpcConfigProperty Struct
| 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 vpcConfigProperty: msk.CfnServerlessCluster.VpcConfigProperty = {
subnetIds: ['subnetIds'],
// the properties below are optional
securityGroups: ['securityGroups'],
};
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
vpc_config_property = msk.CfnServerlessCluster.VpcConfigProperty(
subnet_ids=["subnetIds"],
# the properties below are optional
security_groups=["securityGroups"]
)
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.*;
VpcConfigProperty vpcConfigProperty = VpcConfigProperty.builder()
.subnetIds(List.of("subnetIds"))
// the properties below are optional
.securityGroups(List.of("securityGroups"))
.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 vpcConfigProperty = new VpcConfigProperty {
SubnetIds = new [] { "subnetIds" },
// the properties below are optional
SecurityGroups = new [] { "securityGroups" }
};
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"
vpcConfigProperty := &VpcConfigProperty{
SubnetIds: []*string{
jsii.String("subnetIds"),
},
// the properties below are optional
SecurityGroups: []*string{
jsii.String("securityGroups"),
},
}