# VpcConfigurationProperty

The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.

> Provided `securityGroupIds` and `subnetIds` must be part of the same VPC.
>
> Connecting to a private VPC is not yet available in the Asia Pacific (Seoul) Region (ap-northeast-2).

- 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_grafana as grafana } from 'aws-cdk-lib';
const vpcConfigurationProperty: grafana.CfnWorkspace.VpcConfigurationProperty = {
  securityGroupIds: ['securityGroupIds'],
  subnetIds: ['subnetIds'],
};
```

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_grafana as grafana

vpc_configuration_property = grafana.CfnWorkspace.VpcConfigurationProperty(
    security_group_ids=["securityGroupIds"],
    subnet_ids=["subnetIds"]
)
```

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

VpcConfigurationProperty vpcConfigurationProperty = VpcConfigurationProperty.builder()
        .securityGroupIds(List.of("securityGroupIds"))
        .subnetIds(List.of("subnetIds"))
        .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.Grafana;

var vpcConfigurationProperty = new VpcConfigurationProperty {
    SecurityGroupIds = new [] { "securityGroupIds" },
    SubnetIds = new [] { "subnetIds" }
};
```

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"

vpcConfigurationProperty := &VpcConfigurationProperty{
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
	SubnetIds: []*string{
		jsii.String("subnetIds"),
	},
}
```

## Properties

- `securityGroupIds`: string[] (required) — The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect.

  Duplicates not allowed.

  *Array Members* : Minimum number of 1 items. Maximum number of 5 items.

  *Length* : Minimum length of 0. Maximum length of 255.

- `subnetIds`: string[] (required) — The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect.

  Duplicates not allowed.

  *Array Members* : Minimum number of 2 items. Maximum number of 6 items.

  *Length* : Minimum length of 0. Maximum length of 255.
