# VpcConfigurationProperty

The VPC configuration provisioned for the host.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codeconnections as codeconnections } from 'aws-cdk-lib';
const vpcConfigurationProperty: codeconnections.CfnHost.VpcConfigurationProperty = {
  securityGroupIds: ['securityGroupIds'],
  subnetIds: ['subnetIds'],
  vpcId: 'vpcId',

  // the properties below are optional
  tlsCertificate: 'tlsCertificate',
};
```

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_codeconnections as codeconnections

vpc_configuration_property = codeconnections.CfnHost.VpcConfigurationProperty(
    security_group_ids=["securityGroupIds"],
    subnet_ids=["subnetIds"],
    vpc_id="vpcId",

    # the properties below are optional
    tls_certificate="tlsCertificate"
)
```

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

VpcConfigurationProperty vpcConfigurationProperty = VpcConfigurationProperty.builder()
        .securityGroupIds(List.of("securityGroupIds"))
        .subnetIds(List.of("subnetIds"))
        .vpcId("vpcId")

        // the properties below are optional
        .tlsCertificate("tlsCertificate")
        .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.CodeConnections;

var vpcConfigurationProperty = new VpcConfigurationProperty {
    SecurityGroupIds = new [] { "securityGroupIds" },
    SubnetIds = new [] { "subnetIds" },
    VpcId = "vpcId",

    // the properties below are optional
    TlsCertificate = "tlsCertificate"
};
```

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"),
	},
	VpcId: jsii.String("vpcId"),

	// the properties below are optional
	TlsCertificate: jsii.String("tlsCertificate"),
}
```

## Properties

- `securityGroupIds`: string[] (required) — The ID of the security group or security groups associated with the Amazon VPC.

- `subnetIds`: string[] (required) — The ID of the subnet or subnets associated with the Amazon VPC.

- `tlsCertificate`: string — The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.

- `vpcId`: string (required) — The ID of the Amazon VPC connected to the infrastructure where your provider type is installed.
