v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1454734.4 KB

Creates a network connector that enables Lambda compute resources to route outbound traffic through your Amazon VPC. The network connector provisions elastic network interfaces (ENIs) in the subnets you specify, providing a managed network path to private resources such as databases, caches, and internal APIs.

This operation is asynchronous. The network connector starts in PENDING state while ENIs are provisioned in your VPC (provisioning typically takes up to 10 minutes). Use GetNetworkConnector to poll the connector state until it reaches ACTIVE. Once active, you can attach the connector to Lambda MicroVMs at run time using the egressNetworkConnectors parameter on RunMicroVm.

This operation is idempotent when you provide a ClientToken — if you retry a request that completed successfully using the same client token, the operation returns the existing connector without creating a duplicate.

post/2026-04-04/network-connectors

Request body

Namestring required

A unique name for the network connector within your account and Region. You can use the name to identify the connector in subsequent API calls.

OperatorRolestring

The ARN of the IAM role that Lambda assumes to manage elastic network interfaces in your VPC. This role must have permissions for <code>ec2:CreateNetworkInterface</code>, <code>ec2:DeleteNetworkInterface</code>, and related describe operations.

ClientTokenstring

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request with the same client token, the API returns the existing connector without creating a duplicate.

Tagsobject

A map of key-value pairs to associate with the network connector for organization, cost allocation, or access control.

Response

Success

Arnstring required

The Amazon Resource Name (ARN) of the network connector.

Namestring required

The name of the network connector.

Idstring required

The unique identifier for a network connector, assigned by the service at creation time

OperatorRolestring

The ARN of the IAM role that Lambda uses to manage the underlying ENI resources for this connector.

State'PENDING' | 'ACTIVE' | 'INACTIVE' | 'FAILED' | 'DELETING' | 'DELETE_FAILED'

The current state of the network connector.