# DataSourceVpcConfigurationProperty

Provides the configuration information to connect to an Amazon VPC.

- 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_kendra as kendra } from 'aws-cdk-lib';
const dataSourceVpcConfigurationProperty: kendra.CfnDataSource.DataSourceVpcConfigurationProperty = {
  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_kendra as kendra

data_source_vpc_configuration_property = kendra.CfnDataSource.DataSourceVpcConfigurationProperty(
    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.kendra.*;

DataSourceVpcConfigurationProperty dataSourceVpcConfigurationProperty = DataSourceVpcConfigurationProperty.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.Kendra;

var dataSourceVpcConfigurationProperty = new DataSourceVpcConfigurationProperty {
    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"

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

## Properties

- `securityGroupIds`: string[] (required) — A list of identifiers of security groups within your Amazon VPC.

  The security groups should enable Amazon Kendra to connect to the data source.

- `subnetIds`: string[] (required) — A list of identifiers for subnets within your Amazon VPC.

  The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.
