

# 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.aws.amazon.com/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 AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/VpcConfig) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lambda-2015-03-31/VpcConfig) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lambda-2015-03-31/VpcConfig) 