VpcConfig
Configures the VPC egress settings for a network connector, including the subnets, security groups, and network protocol for elastic network interface (ENI) provisioning.
Syntax
To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.
YAML
NetworkProtocol:StringSecurityGroupIds:ListSubnetIds:List
Properties
-
NetworkProtocol -
The network protocol for the VPC egress connection.
Valid values:
IPv4,DualStackType: String
Required: Yes
CloudFormation compatibility: This property is passed directly to the
NetworkProtocolproperty ofConfiguration.VpcEgressConfigurationof anAWS::Lambda::NetworkConnectorresource. -
SecurityGroupIds -
A list of security group IDs to associate with the elastic network interfaces (ENIs).
Type: List
Required: Yes
CloudFormation compatibility: This property is passed directly to the
SecurityGroupIdsproperty ofConfiguration.VpcEgressConfigurationof anAWS::Lambda::NetworkConnectorresource. -
SubnetIds -
A list of subnet IDs where the service provisions ENIs for VPC egress connectivity.
Type: List
Required: Yes
CloudFormation compatibility: This property is passed directly to the
SubnetIdsproperty ofConfiguration.VpcEgressConfigurationof anAWS::Lambda::NetworkConnectorresource.
Examples
VpcConfig example
VpcConfig: SubnetIds: - subnet-0abc123def4567890 - subnet-0def456abc7890123 SecurityGroupIds: - sg-0abc1234def567890 NetworkProtocol: IPv4