1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. lambda
  6. CoreNetworkConnector
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi

    Manages an AWS Lambda Network Connector. A network connector provisions elastic network interfaces (ENIs) in the subnets you specify, routing outbound traffic from Lambda MicroVMs through your VPC — for example to reach private resources, or to give MicroVM traffic a stable source IP by exiting through your NAT gateway.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const exampleRole = new aws.iam.Role("example", {
        name: "example-network-connector-operator",
        assumeRolePolicy: JSON.stringify({
            Version: "2012-10-17",
            Statement: [{
                Action: "sts:AssumeRole",
                Effect: "Allow",
                Principal: {
                    Service: "network-connectors.lambda.amazonaws.com",
                },
            }],
        }),
    });
    const example = new aws.lambda.CoreNetworkConnector("example", {
        configuration: {
            vpcEgressConfiguration: {
                associatedComputeResourceTypes: ["MicroVm"],
                networkProtocol: "IPv4",
                subnetIds: exampleAwsSubnet.map(__item => __item.id),
                securityGroupIds: [exampleAwsSecurityGroup.id],
            },
        },
        name: "example",
        operatorRole: exampleRole.arn,
    });
    const exampleRolePolicy = new aws.iam.RolePolicy("example", {
        name: "example-network-connector-operator",
        role: exampleRole.id,
        policy: JSON.stringify({
            Version: "2012-10-17",
            Statement: [
                {
                    Sid: "CreateENI",
                    Effect: "Allow",
                    Action: "ec2:CreateNetworkInterface",
                    Resource: [
                        "arn:aws:ec2:*:*:network-interface/*",
                        "arn:aws:ec2:*:*:subnet/*",
                        "arn:aws:ec2:*:*:security-group/*",
                    ],
                },
                {
                    Sid: "TagENI",
                    Effect: "Allow",
                    Action: "ec2:CreateTags",
                    Resource: "arn:aws:ec2:*:*:network-interface/*",
                    Condition: {
                        StringEquals: {
                            "ec2:ManagedResourceOperator": "network-connectors.lambda.amazonaws.com",
                        },
                    },
                },
            ],
        }),
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    example_role = aws.iam.Role("example",
        name="example-network-connector-operator",
        assume_role_policy=json.dumps({
            "Version": "2012-10-17",
            "Statement": [{
                "Action": "sts:AssumeRole",
                "Effect": "Allow",
                "Principal": {
                    "Service": "network-connectors.lambda.amazonaws.com",
                },
            }],
        }))
    example = aws.lambda_.CoreNetworkConnector("example",
        configuration={
            "vpc_egress_configuration": {
                "associated_compute_resource_types": ["MicroVm"],
                "network_protocol": "IPv4",
                "subnet_ids": [__item["id"] for __item in example_aws_subnet],
                "security_group_ids": [example_aws_security_group["id"]],
            },
        },
        name="example",
        operator_role=example_role.arn)
    example_role_policy = aws.iam.RolePolicy("example",
        name="example-network-connector-operator",
        role=example_role.id,
        policy=json.dumps({
            "Version": "2012-10-17",
            "Statement": [
                {
                    "Sid": "CreateENI",
                    "Effect": "Allow",
                    "Action": "ec2:CreateNetworkInterface",
                    "Resource": [
                        "arn:aws:ec2:*:*:network-interface/*",
                        "arn:aws:ec2:*:*:subnet/*",
                        "arn:aws:ec2:*:*:security-group/*",
                    ],
                },
                {
                    "Sid": "TagENI",
                    "Effect": "Allow",
                    "Action": "ec2:CreateTags",
                    "Resource": "arn:aws:ec2:*:*:network-interface/*",
                    "Condition": {
                        "StringEquals": {
                            "ec2:ManagedResourceOperator": "network-connectors.lambda.amazonaws.com",
                        },
                    },
                },
            ],
        }))
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/iam"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambda"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    tmpJSON0, err := json.Marshal(map[string]interface{}{
    "Version": "2012-10-17",
    "Statement": []map[string]interface{}{
    map[string]interface{}{
    "Action": "sts:AssumeRole",
    "Effect": "Allow",
    "Principal": map[string]string{
    "Service": "network-connectors.lambda.amazonaws.com",
    },
    },
    },
    })
    if err != nil {
    return err
    }
    json0 := string(tmpJSON0)
    exampleRole, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
    Name: pulumi.String("example-network-connector-operator"),
    AssumeRolePolicy: pulumi.String(json0),
    })
    if err != nil {
    return err
    }
    _, err = lambda.NewCoreNetworkConnector(ctx, "example", &lambda.CoreNetworkConnectorArgs{
    Configuration: &lambda.CoreNetworkConnectorConfigurationArgs{
    VpcEgressConfiguration: &lambda.CoreNetworkConnectorConfigurationVpcEgressConfigurationArgs{
    AssociatedComputeResourceTypes: pulumi.StringArray{
    pulumi.String("MicroVm"),
    },
    NetworkProtocol: pulumi.String("IPv4"),
    SubnetIds: pulumi.StringArray(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:5,40-62)),
    SecurityGroupIds: pulumi.StringArray{
    exampleAwsSecurityGroup.Id,
    },
    },
    },
    Name: pulumi.String("example"),
    OperatorRole: exampleRole.Arn,
    })
    if err != nil {
    return err
    }
    tmpJSON1, err := json.Marshal(map[string]interface{}{
    "Version": "2012-10-17",
    "Statement": []interface{}{
    map[string]interface{}{
    "Sid": "CreateENI",
    "Effect": "Allow",
    "Action": "ec2:CreateNetworkInterface",
    "Resource": []string{
    "arn:aws:ec2:*:*:network-interface/*",
    "arn:aws:ec2:*:*:subnet/*",
    "arn:aws:ec2:*:*:security-group/*",
    },
    },
    map[string]interface{}{
    "Sid": "TagENI",
    "Effect": "Allow",
    "Action": "ec2:CreateTags",
    "Resource": "arn:aws:ec2:*:*:network-interface/*",
    "Condition": map[string]map[string]string{
    "StringEquals": map[string]string{
    "ec2:ManagedResourceOperator": "network-connectors.lambda.amazonaws.com",
    },
    },
    },
    },
    })
    if err != nil {
    return err
    }
    json1 := string(tmpJSON1)
    _, err = iam.NewRolePolicy(ctx, "example", &iam.RolePolicyArgs{
    Name: pulumi.String("example-network-connector-operator"),
    Role: exampleRole.ID().ToIDOutput().ToStringOutput(),
    Policy: pulumi.String(json1),
    })
    if err != nil {
    return err
    }
    return nil
    })
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleRole = new Aws.Iam.Role("example", new()
        {
            Name = "example-network-connector-operator",
            AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["Version"] = "2012-10-17",
                ["Statement"] = new[]
                {
                    new Dictionary<string, object?>
                    {
                        ["Action"] = "sts:AssumeRole",
                        ["Effect"] = "Allow",
                        ["Principal"] = new Dictionary<string, object?>
                        {
                            ["Service"] = "network-connectors.lambda.amazonaws.com",
                        },
                    },
                },
            }),
        });
    
        var example = new Aws.Lambda.CoreNetworkConnector("example", new()
        {
            Configuration = new Aws.Lambda.Inputs.CoreNetworkConnectorConfigurationArgs
            {
                VpcEgressConfiguration = new Aws.Lambda.Inputs.CoreNetworkConnectorConfigurationVpcEgressConfigurationArgs
                {
                    AssociatedComputeResourceTypes = new[]
                    {
                        "MicroVm",
                    },
                    NetworkProtocol = "IPv4",
                    SubnetIds = exampleAwsSubnet.Select(__item => __item.Id).ToList(),
                    SecurityGroupIds = new[]
                    {
                        exampleAwsSecurityGroup.Id,
                    },
                },
            },
            Name = "example",
            OperatorRole = exampleRole.Arn,
        });
    
        var exampleRolePolicy = new Aws.Iam.RolePolicy("example", new()
        {
            Name = "example-network-connector-operator",
            Role = exampleRole.Id,
            Policy = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["Version"] = "2012-10-17",
                ["Statement"] = new[]
                {
                    new Dictionary<string, object?>
                    {
                        ["Sid"] = "CreateENI",
                        ["Effect"] = "Allow",
                        ["Action"] = "ec2:CreateNetworkInterface",
                        ["Resource"] = new[]
                        {
                            "arn:aws:ec2:*:*:network-interface/*",
                            "arn:aws:ec2:*:*:subnet/*",
                            "arn:aws:ec2:*:*:security-group/*",
                        },
                    },
                    new Dictionary<string, object?>
                    {
                        ["Sid"] = "TagENI",
                        ["Effect"] = "Allow",
                        ["Action"] = "ec2:CreateTags",
                        ["Resource"] = "arn:aws:ec2:*:*:network-interface/*",
                        ["Condition"] = new Dictionary<string, object?>
                        {
                            ["StringEquals"] = new Dictionary<string, object?>
                            {
                                ["ec2:ManagedResourceOperator"] = "network-connectors.lambda.amazonaws.com",
                            },
                        },
                    },
                },
            }),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.iam.Role;
    import com.pulumi.aws.iam.RoleArgs;
    import com.pulumi.aws.lambda.CoreNetworkConnector;
    import com.pulumi.aws.lambda.CoreNetworkConnectorArgs;
    import com.pulumi.aws.lambda.inputs.CoreNetworkConnectorConfigurationArgs;
    import com.pulumi.aws.lambda.inputs.CoreNetworkConnectorConfigurationVpcEgressConfigurationArgs;
    import com.pulumi.aws.iam.RolePolicy;
    import com.pulumi.aws.iam.RolePolicyArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleRole = new Role("exampleRole", RoleArgs.builder()
                .name("example-network-connector-operator")
                .assumeRolePolicy(serializeJson(
                    jsonObject(
                        jsonProperty("Version", "2012-10-17"),
                        jsonProperty("Statement", jsonArray(jsonObject(
                            jsonProperty("Action", "sts:AssumeRole"),
                            jsonProperty("Effect", "Allow"),
                            jsonProperty("Principal", jsonObject(
                                jsonProperty("Service", "network-connectors.lambda.amazonaws.com")
                            ))
                        )))
                    )))
                .build());
    
            var example = new CoreNetworkConnector("example", CoreNetworkConnectorArgs.builder()
                .configuration(CoreNetworkConnectorConfigurationArgs.builder()
                    .vpcEgressConfiguration(CoreNetworkConnectorConfigurationVpcEgressConfigurationArgs.builder()
                        .associatedComputeResourceTypes("MicroVm")
                        .networkProtocol("IPv4")
                        .subnetIds(exampleAwsSubnet.stream().map(element -> element.id()).collect(toList()))
                        .securityGroupIds(exampleAwsSecurityGroup.id())
                        .build())
                    .build())
                .name("example")
                .operatorRole(exampleRole.arn())
                .build());
    
            var exampleRolePolicy = new RolePolicy("exampleRolePolicy", RolePolicyArgs.builder()
                .name("example-network-connector-operator")
                .role(exampleRole.id())
                .policy(serializeJson(
                    jsonObject(
                        jsonProperty("Version", "2012-10-17"),
                        jsonProperty("Statement", jsonArray(
                            jsonObject(
                                jsonProperty("Sid", "CreateENI"),
                                jsonProperty("Effect", "Allow"),
                                jsonProperty("Action", "ec2:CreateNetworkInterface"),
                                jsonProperty("Resource", jsonArray(
                                    "arn:aws:ec2:*:*:network-interface/*", 
                                    "arn:aws:ec2:*:*:subnet/*", 
                                    "arn:aws:ec2:*:*:security-group/*"
                                ))
                            ), 
                            jsonObject(
                                jsonProperty("Sid", "TagENI"),
                                jsonProperty("Effect", "Allow"),
                                jsonProperty("Action", "ec2:CreateTags"),
                                jsonProperty("Resource", "arn:aws:ec2:*:*:network-interface/*"),
                                jsonProperty("Condition", jsonObject(
                                    jsonProperty("StringEquals", jsonObject(
                                        jsonProperty("ec2:ManagedResourceOperator", "network-connectors.lambda.amazonaws.com")
                                    ))
                                ))
                            )
                        ))
                    )))
                .build());
    
        }
    }
    
    Example coming soon!
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_lambda_corenetworkconnector" "example" {
      configuration = {
        vpc_egress_configuration = {
          associated_compute_resource_types = ["MicroVm"]
          network_protocol                  = "IPv4"
          subnet_ids                        = exampleAwsSubnet[*].id
          security_group_ids                = [exampleAwsSecurityGroup.id]
        }
      }
      name          = "example"
      operator_role = aws_iam_role.example.arn
    }
    resource "aws_iam_role" "example" {
      name = "example-network-connector-operator"
      assume_role_policy = jsonencode({
        "Version" = "2012-10-17"
        "Statement" = [{
          "Action" = "sts:AssumeRole"
          "Effect" = "Allow"
          "Principal" = {
            "Service" = "network-connectors.lambda.amazonaws.com"
          }
        }]
      })
    }
    resource "aws_iam_rolepolicy" "example" {
      name = "example-network-connector-operator"
      role = aws_iam_role.example.id
      policy = jsonencode({
        "Version" = "2012-10-17"
        "Statement" = [{
          "Sid"      = "CreateENI"
          "Effect"   = "Allow"
          "Action"   = "ec2:CreateNetworkInterface"
          "Resource" = ["arn:aws:ec2:*:*:network-interface/*", "arn:aws:ec2:*:*:subnet/*", "arn:aws:ec2:*:*:security-group/*"]
          }, {
          "Sid"      = "TagENI"
          "Effect"   = "Allow"
          "Action"   = "ec2:CreateTags"
          "Resource" = "arn:aws:ec2:*:*:network-interface/*"
          "Condition" = {
            "StringEquals" = {
              "ec2:ManagedResourceOperator" = "network-connectors.lambda.amazonaws.com"
            }
          }
        }]
      })
    }
    

    Create CoreNetworkConnector Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CoreNetworkConnector(name: string, args: CoreNetworkConnectorArgs, opts?: CustomResourceOptions);
    @overload
    def CoreNetworkConnector(resource_name: str,
                             args: CoreNetworkConnectorArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def CoreNetworkConnector(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             configuration: Optional[CoreNetworkConnectorConfigurationArgs] = None,
                             operator_role: Optional[str] = None,
                             name: Optional[str] = None,
                             region: Optional[str] = None,
                             timeouts: Optional[CoreNetworkConnectorTimeoutsArgs] = None)
    func NewCoreNetworkConnector(ctx *Context, name string, args CoreNetworkConnectorArgs, opts ...ResourceOption) (*CoreNetworkConnector, error)
    public CoreNetworkConnector(string name, CoreNetworkConnectorArgs args, CustomResourceOptions? opts = null)
    public CoreNetworkConnector(String name, CoreNetworkConnectorArgs args)
    public CoreNetworkConnector(String name, CoreNetworkConnectorArgs args, CustomResourceOptions options)
    
    type: aws:lambda:CoreNetworkConnector
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_lambda_core_network_connector" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CoreNetworkConnectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CoreNetworkConnectorArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CoreNetworkConnectorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CoreNetworkConnectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CoreNetworkConnectorArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var coreNetworkConnectorResource = new Aws.Lambda.CoreNetworkConnector("coreNetworkConnectorResource", new()
    {
        Configuration = new Aws.Lambda.Inputs.CoreNetworkConnectorConfigurationArgs
        {
            VpcEgressConfiguration = new Aws.Lambda.Inputs.CoreNetworkConnectorConfigurationVpcEgressConfigurationArgs
            {
                AssociatedComputeResourceTypes = new[]
                {
                    "string",
                },
                SecurityGroupIds = new[]
                {
                    "string",
                },
                SubnetIds = new[]
                {
                    "string",
                },
                NetworkProtocol = "string",
            },
        },
        OperatorRole = "string",
        Name = "string",
        Region = "string",
        Timeouts = new Aws.Lambda.Inputs.CoreNetworkConnectorTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := lambda.NewCoreNetworkConnector(ctx, "coreNetworkConnectorResource", &lambda.CoreNetworkConnectorArgs{
    	Configuration: &lambda.CoreNetworkConnectorConfigurationArgs{
    		VpcEgressConfiguration: &lambda.CoreNetworkConnectorConfigurationVpcEgressConfigurationArgs{
    			AssociatedComputeResourceTypes: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			SecurityGroupIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			SubnetIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			NetworkProtocol: pulumi.String("string"),
    		},
    	},
    	OperatorRole: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	Region:       pulumi.String("string"),
    	Timeouts: &lambda.CoreNetworkConnectorTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    resource "aws_lambda_core_network_connector" "coreNetworkConnectorResource" {
      lifecycle {
        create_before_destroy = true
      }
      configuration = {
        vpc_egress_configuration = {
          associated_compute_resource_types = ["string"]
          security_group_ids                = ["string"]
          subnet_ids                        = ["string"]
          network_protocol                  = "string"
        }
      }
      operator_role = "string"
      name          = "string"
      region        = "string"
      timeouts = {
        create = "string"
        delete = "string"
        update = "string"
      }
    }
    
    var coreNetworkConnectorResource = new CoreNetworkConnector("coreNetworkConnectorResource", CoreNetworkConnectorArgs.builder()
        .configuration(CoreNetworkConnectorConfigurationArgs.builder()
            .vpcEgressConfiguration(CoreNetworkConnectorConfigurationVpcEgressConfigurationArgs.builder()
                .associatedComputeResourceTypes("string")
                .securityGroupIds("string")
                .subnetIds("string")
                .networkProtocol("string")
                .build())
            .build())
        .operatorRole("string")
        .name("string")
        .region("string")
        .timeouts(CoreNetworkConnectorTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    core_network_connector_resource = aws.lambda_.CoreNetworkConnector("coreNetworkConnectorResource",
        configuration={
            "vpc_egress_configuration": {
                "associated_compute_resource_types": ["string"],
                "security_group_ids": ["string"],
                "subnet_ids": ["string"],
                "network_protocol": "string",
            },
        },
        operator_role="string",
        name="string",
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const coreNetworkConnectorResource = new aws.lambda.CoreNetworkConnector("coreNetworkConnectorResource", {
        configuration: {
            vpcEgressConfiguration: {
                associatedComputeResourceTypes: ["string"],
                securityGroupIds: ["string"],
                subnetIds: ["string"],
                networkProtocol: "string",
            },
        },
        operatorRole: "string",
        name: "string",
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: aws:lambda:CoreNetworkConnector
    properties:
        configuration:
            vpcEgressConfiguration:
                associatedComputeResourceTypes:
                    - string
                networkProtocol: string
                securityGroupIds:
                    - string
                subnetIds:
                    - string
        name: string
        operatorRole: string
        region: string
        timeouts:
            create: string
            delete: string
            update: string
    

    CoreNetworkConnector Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CoreNetworkConnector resource accepts the following input properties:

    Configuration CoreNetworkConnectorConfiguration
    Network configuration of the connector. See configuration Block below.
    OperatorRole string

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    Name string
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Timeouts CoreNetworkConnectorTimeouts
    Configuration CoreNetworkConnectorConfigurationArgs
    Network configuration of the connector. See configuration Block below.
    OperatorRole string

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    Name string
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Timeouts CoreNetworkConnectorTimeoutsArgs
    configuration object
    Network configuration of the connector. See configuration Block below.
    operator_role string

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    name string
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts object
    configuration CoreNetworkConnectorConfiguration
    Network configuration of the connector. See configuration Block below.
    operatorRole String

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    name String
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts CoreNetworkConnectorTimeouts
    configuration CoreNetworkConnectorConfiguration
    Network configuration of the connector. See configuration Block below.
    operatorRole string

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    name string
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts CoreNetworkConnectorTimeouts
    configuration CoreNetworkConnectorConfigurationArgs
    Network configuration of the connector. See configuration Block below.
    operator_role str

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    name str
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts CoreNetworkConnectorTimeoutsArgs
    configuration Property Map
    Network configuration of the connector. See configuration Block below.
    operatorRole String

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    name String
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CoreNetworkConnector resource produces the following output properties:

    Arn string
    ARN of the network connector.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    ARN of the network connector.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn string
    ARN of the network connector.
    id string
    The provider-assigned unique ID for this managed resource.
    arn String
    ARN of the network connector.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    ARN of the network connector.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    ARN of the network connector.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    ARN of the network connector.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CoreNetworkConnector Resource

    Get an existing CoreNetworkConnector resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CoreNetworkConnectorState, opts?: CustomResourceOptions): CoreNetworkConnector
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            configuration: Optional[CoreNetworkConnectorConfigurationArgs] = None,
            name: Optional[str] = None,
            operator_role: Optional[str] = None,
            region: Optional[str] = None,
            timeouts: Optional[CoreNetworkConnectorTimeoutsArgs] = None) -> CoreNetworkConnector
    func GetCoreNetworkConnector(ctx *Context, name string, id IDInput, state *CoreNetworkConnectorState, opts ...ResourceOption) (*CoreNetworkConnector, error)
    public static CoreNetworkConnector Get(string name, Input<string> id, CoreNetworkConnectorState? state, CustomResourceOptions? opts = null)
    public static CoreNetworkConnector get(String name, Output<String> id, CoreNetworkConnectorState state, CustomResourceOptions options)
    resources:  _:    type: aws:lambda:CoreNetworkConnector    get:      id: ${id}
    import {
      to = aws_lambda_core_network_connector.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the network connector.
    Configuration CoreNetworkConnectorConfiguration
    Network configuration of the connector. See configuration Block below.
    Name string
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    OperatorRole string

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Timeouts CoreNetworkConnectorTimeouts
    Arn string
    ARN of the network connector.
    Configuration CoreNetworkConnectorConfigurationArgs
    Network configuration of the connector. See configuration Block below.
    Name string
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    OperatorRole string

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Timeouts CoreNetworkConnectorTimeoutsArgs
    arn string
    ARN of the network connector.
    configuration object
    Network configuration of the connector. See configuration Block below.
    name string
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    operator_role string

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts object
    arn String
    ARN of the network connector.
    configuration CoreNetworkConnectorConfiguration
    Network configuration of the connector. See configuration Block below.
    name String
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    operatorRole String

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts CoreNetworkConnectorTimeouts
    arn string
    ARN of the network connector.
    configuration CoreNetworkConnectorConfiguration
    Network configuration of the connector. See configuration Block below.
    name string
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    operatorRole string

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts CoreNetworkConnectorTimeouts
    arn str
    ARN of the network connector.
    configuration CoreNetworkConnectorConfigurationArgs
    Network configuration of the connector. See configuration Block below.
    name str
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    operator_role str

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts CoreNetworkConnectorTimeoutsArgs
    arn String
    ARN of the network connector.
    configuration Property Map
    Network configuration of the connector. See configuration Block below.
    name String
    Name of the network connector, unique within the account and Region. Changing this forces a new resource.
    operatorRole String

    ARN of the IAM role that the network connector service assumes to manage elastic network interfaces in your VPC.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts Property Map

    Supporting Types

    CoreNetworkConnectorConfiguration, CoreNetworkConnectorConfigurationArgs

    VpcEgressConfiguration CoreNetworkConnectorConfigurationVpcEgressConfiguration
    Configuration for routing egress traffic through a VPC. See vpcEgressConfiguration Block below.
    VpcEgressConfiguration CoreNetworkConnectorConfigurationVpcEgressConfiguration
    Configuration for routing egress traffic through a VPC. See vpcEgressConfiguration Block below.
    vpc_egress_configuration object
    Configuration for routing egress traffic through a VPC. See vpcEgressConfiguration Block below.
    vpcEgressConfiguration CoreNetworkConnectorConfigurationVpcEgressConfiguration
    Configuration for routing egress traffic through a VPC. See vpcEgressConfiguration Block below.
    vpcEgressConfiguration CoreNetworkConnectorConfigurationVpcEgressConfiguration
    Configuration for routing egress traffic through a VPC. See vpcEgressConfiguration Block below.
    vpc_egress_configuration CoreNetworkConnectorConfigurationVpcEgressConfiguration
    Configuration for routing egress traffic through a VPC. See vpcEgressConfiguration Block below.
    vpcEgressConfiguration Property Map
    Configuration for routing egress traffic through a VPC. See vpcEgressConfiguration Block below.

    CoreNetworkConnectorConfigurationVpcEgressConfiguration, CoreNetworkConnectorConfigurationVpcEgressConfigurationArgs

    AssociatedComputeResourceTypes List<string>
    Compute resource types that may use this connector. Valid values: MicroVm.
    SecurityGroupIds List<string>
    Set of security group IDs applied to the connector's ENIs.
    SubnetIds List<string>
    Set of subnet IDs where the connector provisions its ENIs.
    NetworkProtocol string
    Network protocol. Valid values: IPv4, DualStack.
    AssociatedComputeResourceTypes []string
    Compute resource types that may use this connector. Valid values: MicroVm.
    SecurityGroupIds []string
    Set of security group IDs applied to the connector's ENIs.
    SubnetIds []string
    Set of subnet IDs where the connector provisions its ENIs.
    NetworkProtocol string
    Network protocol. Valid values: IPv4, DualStack.
    associated_compute_resource_types list(string)
    Compute resource types that may use this connector. Valid values: MicroVm.
    security_group_ids list(string)
    Set of security group IDs applied to the connector's ENIs.
    subnet_ids list(string)
    Set of subnet IDs where the connector provisions its ENIs.
    network_protocol string
    Network protocol. Valid values: IPv4, DualStack.
    associatedComputeResourceTypes List<String>
    Compute resource types that may use this connector. Valid values: MicroVm.
    securityGroupIds List<String>
    Set of security group IDs applied to the connector's ENIs.
    subnetIds List<String>
    Set of subnet IDs where the connector provisions its ENIs.
    networkProtocol String
    Network protocol. Valid values: IPv4, DualStack.
    associatedComputeResourceTypes string[]
    Compute resource types that may use this connector. Valid values: MicroVm.
    securityGroupIds string[]
    Set of security group IDs applied to the connector's ENIs.
    subnetIds string[]
    Set of subnet IDs where the connector provisions its ENIs.
    networkProtocol string
    Network protocol. Valid values: IPv4, DualStack.
    associated_compute_resource_types Sequence[str]
    Compute resource types that may use this connector. Valid values: MicroVm.
    security_group_ids Sequence[str]
    Set of security group IDs applied to the connector's ENIs.
    subnet_ids Sequence[str]
    Set of subnet IDs where the connector provisions its ENIs.
    network_protocol str
    Network protocol. Valid values: IPv4, DualStack.
    associatedComputeResourceTypes List<String>
    Compute resource types that may use this connector. Valid values: MicroVm.
    securityGroupIds List<String>
    Set of security group IDs applied to the connector's ENIs.
    subnetIds List<String>
    Set of subnet IDs where the connector provisions its ENIs.
    networkProtocol String
    Network protocol. Valid values: IPv4, DualStack.

    CoreNetworkConnectorTimeouts, CoreNetworkConnectorTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    Identity Schema

    Required

    • arn (String) ARN of the network connector.

    Using pulumi import, import Lambda Network Connectors using the arn. For example:

    $ pulumi import aws:lambda/coreNetworkConnector:CoreNetworkConnector example arn:aws:lambda:us-east-1:123456789012:network-connector:example
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.46.0
    published on Thursday, Sep 10, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial