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
ElasticIpConfiguration:ElasticIpConfigurationNetworkProtocol:StringSecurityGroupIds:ListSubnetIds:List
Properties
-
ElasticIpConfiguration -
Specifies whether the service assigns an Elastic IP address to each of the network connector's elastic network interfaces (ENIs). If you don't specify this property, no Elastic IP addresses are assigned.
If you don't specify an OperatorRole, the role that AWS SAM creates includes the
ec2:AllocateAddressandec2:AssociateAddresspermissions when you specifyElasticIpConfigurationwith aTypeother thanNone.Type: ElasticIpConfiguration
Required: No
CloudFormation compatibility: This property is passed directly to the
ElasticIpConfigurationproperty ofConfiguration.VpcEgressConfigurationof anAWS::Lambda::NetworkConnectorresource. -
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