

# VpcConfig
<a name="API_VpcConfig"></a>

The VPC security groups and subnets that are attached to a Lambda function. For more information, see [Configuring a Lambda function to access resources in a VPC](https://docs.amazonaws.cn/lambda/latest/dg/configuration-vpc.html).

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

 ** Ipv6AllowedForDualStack **   <a name="lambda-Type-VpcConfig-Ipv6AllowedForDualStack"></a>
Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.  
Type: Boolean  
Required: No

 ** SecurityGroupIds **   <a name="lambda-Type-VpcConfig-SecurityGroupIds"></a>
A list of VPC security group IDs.  
Type: Array of strings  
Array Members: Minimum number of 0 items. Maximum number of 5 items.  
Required: No

 ** SubnetIds **   <a name="lambda-Type-VpcConfig-SubnetIds"></a>
A list of VPC subnet IDs.  
Type: Array of strings  
Array Members: Minimum number of 0 items. Maximum number of 16 items.  
Required: No

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/lambda-2015-03-31/VpcConfig) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/lambda-2015-03-31/VpcConfig) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/lambda-2015-03-31/VpcConfig) 