If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.
SecurityGroupIds
A list of one or more security groups IDs in your VPC.
Type: Array of strings
Array Members: Maximum number of 5 items.
Required: No
SubnetIds
A list of one or more subnet IDs in your VPC.
Type: Array of strings
Array Members: Maximum number of 16 items.
Required: No
For more information about using this API in one of the language-specific AWS SDKs, see the following: