# ConfigProperty

The network configuration for the connector.

Specify a VpcEgressConfiguration to enable outbound traffic routing through your VPC.

- Source: Generated at build time
- Type last changed: v2.261.0 · 2 Jul 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const configProperty: lambda.CfnNetworkConnector.ConfigProperty = {
  vpcEgressConfiguration: {
    associatedComputeResourceTypes: ['associatedComputeResourceTypes'],
    networkProtocol: 'networkProtocol',
    securityGroupIds: ['securityGroupIds'],
    subnetIds: ['subnetIds'],

    // the properties below are optional
    elasticIpConfiguration: {
      type: 'type',
    },
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_

config_property = lambda.CfnNetworkConnector.ConfigProperty(
    vpc_egress_configuration=lambda.CfnNetworkConnector.VpcEgressConfigurationProperty(
        associated_compute_resource_types=["associatedComputeResourceTypes"],
        network_protocol="networkProtocol",
        security_group_ids=["securityGroupIds"],
        subnet_ids=["subnetIds"],

        # the properties below are optional
        elastic_ip_configuration=lambda.CfnNetworkConnector.ElasticIpConfigurationProperty(
            type="type"
        )
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;

ConfigProperty configProperty = ConfigProperty.builder()
        .vpcEgressConfiguration(VpcEgressConfigurationProperty.builder()
                .associatedComputeResourceTypes(List.of("associatedComputeResourceTypes"))
                .networkProtocol("networkProtocol")
                .securityGroupIds(List.of("securityGroupIds"))
                .subnetIds(List.of("subnetIds"))

                // the properties below are optional
                .elasticIpConfiguration(ElasticIpConfigurationProperty.builder()
                        .type("type")
                        .build())
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

var configProperty = new ConfigProperty {
    VpcEgressConfiguration = new VpcEgressConfigurationProperty {
        AssociatedComputeResourceTypes = new [] { "associatedComputeResourceTypes" },
        NetworkProtocol = "networkProtocol",
        SecurityGroupIds = new [] { "securityGroupIds" },
        SubnetIds = new [] { "subnetIds" },

        // the properties below are optional
        ElasticIpConfiguration = new ElasticIpConfigurationProperty {
            Type = "type"
        }
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

configProperty := &ConfigProperty{
	VpcEgressConfiguration: &VpcEgressConfigurationProperty{
		AssociatedComputeResourceTypes: []*string{
			jsii.String("associatedComputeResourceTypes"),
		},
		NetworkProtocol: jsii.String("networkProtocol"),
		SecurityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
		SubnetIds: []*string{
			jsii.String("subnetIds"),
		},

		// the properties below are optional
		ElasticIpConfiguration: &ElasticIpConfigurationProperty{
			Type: jsii.String("type"),
		},
	},
}
```

## Properties

- `vpcEgressConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNetworkConnector.VpcEgressConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnNetworkConnector.VpcEgressConfigurationProperty.html) (required) — The VPC egress configuration for the network connector.

  Specifies the subnets, security groups, and network protocol for routing outbound traffic through your VPC.
