VpcConfig - AWS Serverless Application Model
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

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.

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:AllocateAddress and ec2:AssociateAddress permissions when you specify ElasticIpConfiguration with a Type other than None.

Type: ElasticIpConfiguration

Required: No

CloudFormation compatibility: This property is passed directly to the ElasticIpConfiguration property of Configuration.VpcEgressConfiguration of an AWS::Lambda::NetworkConnector resource.

NetworkProtocol

The network protocol for the VPC egress connection.

Valid values: IPv4, DualStack

Type: String

Required: Yes

CloudFormation compatibility: This property is passed directly to the NetworkProtocol property of Configuration.VpcEgressConfiguration of an AWS::Lambda::NetworkConnector resource.

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 SecurityGroupIds property of Configuration.VpcEgressConfiguration of an AWS::Lambda::NetworkConnector resource.

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 SubnetIds property of Configuration.VpcEgressConfiguration of an AWS::Lambda::NetworkConnector resource.

Examples

VpcConfig example

VpcConfig: SubnetIds: - subnet-0abc123def4567890 - subnet-0def456abc7890123 SecurityGroupIds: - sg-0abc1234def567890 NetworkProtocol: IPv4