

# WorkforceVpcConfigRequest
<a name="API_WorkforceVpcConfigRequest"></a>

The VPC object you use to create or update a workforce.

## Contents
<a name="API_WorkforceVpcConfigRequest_Contents"></a>

 ** SecurityGroupIds **   <a name="sagemaker-Type-WorkforceVpcConfigRequest-SecurityGroupIds"></a>
The VPC security group IDs, in the form `sg-xxxxxxxx`. The security groups must be for the same VPC as specified in the subnet.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 5 items.  
Length Constraints: Minimum length of 0. Maximum length of 32.  
Pattern: `sg-[0-9a-z]*`   
Required: No

 ** Subnets **   <a name="sagemaker-Type-WorkforceVpcConfigRequest-Subnets"></a>
The ID of the subnets in the VPC that you want to connect.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 16 items.  
Length Constraints: Minimum length of 0. Maximum length of 32.  
Pattern: `subnet-[0-9a-z]*`   
Required: No

 ** VpcId **   <a name="sagemaker-Type-WorkforceVpcConfigRequest-VpcId"></a>
The ID of the VPC that the workforce uses for communication.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 32.  
Pattern: `vpc-[0-9a-z]*`   
Required: No

## See Also
<a name="API_WorkforceVpcConfigRequest_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/sagemaker-2017-07-24/WorkforceVpcConfigRequest) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/sagemaker-2017-07-24/WorkforceVpcConfigRequest) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/sagemaker-2017-07-24/WorkforceVpcConfigRequest) 