# VpcProperty

You can provide a structure that contains the details for the VPC endpoint to use with your web app.

- Source: Generated at build time
- Type last changed: v2.258.0 · 4 Jun 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_transfer as transfer } from 'aws-cdk-lib';
const vpcProperty: transfer.CfnWebApp.VpcProperty = {
  ipAddressType: 'ipAddressType',
  securityGroupIds: ['securityGroupIds'],
  subnetIds: ['subnetIds'],
  vpcId: 'vpcId',
};
```

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_transfer as transfer

vpc_property = transfer.CfnWebApp.VpcProperty(
    ip_address_type="ipAddressType",
    security_group_ids=["securityGroupIds"],
    subnet_ids=["subnetIds"],
    vpc_id="vpcId"
)
```

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

VpcProperty vpcProperty = VpcProperty.builder()
        .ipAddressType("ipAddressType")
        .securityGroupIds(List.of("securityGroupIds"))
        .subnetIds(List.of("subnetIds"))
        .vpcId("vpcId")
        .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.Transfer;

var vpcProperty = new VpcProperty {
    IpAddressType = "ipAddressType",
    SecurityGroupIds = new [] { "securityGroupIds" },
    SubnetIds = new [] { "subnetIds" },
    VpcId = "vpcId"
};
```

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"

vpcProperty := &VpcProperty{
	IpAddressType: jsii.String("ipAddressType"),
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
	SubnetIds: []*string{
		jsii.String("subnetIds"),
	},
	VpcId: jsii.String("vpcId"),
}
```

## Properties

- `ipAddressType`: string — The IP address type for the VPC endpoint used by the web app.

- `securityGroupIds`: string[]

- `subnetIds`: string[]

- `vpcId`: string
