# VpcConfigProperty

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 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 vpcConfigProperty: msk.CfnServerlessCluster.VpcConfigProperty = {
  subnetIds: ['subnetIds'],

  // the properties below are optional
  securityGroups: ['securityGroups'],
};
```

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

vpc_config_property = msk.CfnServerlessCluster.VpcConfigProperty(
    subnet_ids=["subnetIds"],

    # the properties below are optional
    security_groups=["securityGroups"]
)
```

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

VpcConfigProperty vpcConfigProperty = VpcConfigProperty.builder()
        .subnetIds(List.of("subnetIds"))

        // the properties below are optional
        .securityGroups(List.of("securityGroups"))
        .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 vpcConfigProperty = new VpcConfigProperty {
    SubnetIds = new [] { "subnetIds" },

    // the properties below are optional
    SecurityGroups = new [] { "securityGroups" }
};
```

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"

vpcConfigProperty := &VpcConfigProperty{
	SubnetIds: []*string{
		jsii.String("subnetIds"),
	},

	// the properties below are optional
	SecurityGroups: []*string{
		jsii.String("securityGroups"),
	},
}
```

## Properties

- `securityGroups`: string[]

- `subnetIds`: string[] (required)
