# WorkforceVpcConfigRequestProperty

The VPC configuration for the workforce.

- 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_sagemaker as sagemaker } from 'aws-cdk-lib';
const workforceVpcConfigRequestProperty: sagemaker.CfnWorkforce.WorkforceVpcConfigRequestProperty = {
  securityGroupIds: ['securityGroupIds'],
  subnets: ['subnets'],
  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_sagemaker as sagemaker

workforce_vpc_config_request_property = sagemaker.CfnWorkforce.WorkforceVpcConfigRequestProperty(
    security_group_ids=["securityGroupIds"],
    subnets=["subnets"],
    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.sagemaker.*;

WorkforceVpcConfigRequestProperty workforceVpcConfigRequestProperty = WorkforceVpcConfigRequestProperty.builder()
        .securityGroupIds(List.of("securityGroupIds"))
        .subnets(List.of("subnets"))
        .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.Sagemaker;

var workforceVpcConfigRequestProperty = new WorkforceVpcConfigRequestProperty {
    SecurityGroupIds = new [] { "securityGroupIds" },
    Subnets = new [] { "subnets" },
    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"

workforceVpcConfigRequestProperty := &WorkforceVpcConfigRequestProperty{
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
	Subnets: []*string{
		jsii.String("subnets"),
	},
	VpcId: jsii.String("vpcId"),
}
```

## Properties

- `securityGroupIds`: string[] — The VPC security group IDs.

- `subnets`: string[] — The VPC subnets.

- `vpcId`: string — The ID of the VPC.
