interface CfnNetworkConnectorProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lambda.CfnNetworkConnectorProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#CfnNetworkConnectorProps |
Java | software.amazon.awscdk.services.lambda.CfnNetworkConnectorProps |
Python | aws_cdk.aws_lambda.CfnNetworkConnectorProps |
TypeScript | aws-cdk-lib » aws_lambda » CfnNetworkConnectorProps |
Properties for defining a CfnNetworkConnector.
Example
// 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 cfnNetworkConnectorProps: lambda.CfnNetworkConnectorProps = {
configuration: {
vpcEgressConfiguration: {
associatedComputeResourceTypes: ['associatedComputeResourceTypes'],
subnetIds: ['subnetIds'],
// the properties below are optional
networkProtocol: 'networkProtocol',
securityGroupIds: ['securityGroupIds'],
},
},
// the properties below are optional
name: 'name',
operatorRole: 'operatorRole',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| configuration | IResolvable | Config | The network configuration for the connector. |
| name? | string | A unique name for the network connector within your account and Region. |
| operator | string | The ARN of the IAM role that Lambda assumes to manage elastic network interfaces in your VPC. |
| tags? | Cfn[] | A list of tags to apply to the network connector. |
configuration
Type:
IResolvable | Config
The network configuration for the connector.
Specify a VpcEgressConfiguration to enable outbound traffic routing through your VPC.
name?
Type:
string
(optional)
A unique name for the network connector within your account and Region.
Must be 1 to 64 alphanumeric characters, hyphens, or underscores.
operatorRole?
Type:
string
(optional)
The ARN of the IAM role that Lambda assumes to manage elastic network interfaces in your VPC.
This role must have permissions for ec2:CreateNetworkInterface and related describe operations.
tags?
Type:
Cfn[]
(optional)
A list of tags to apply to the network connector.
Use tags to categorize network connectors for cost allocation, access control, or operational management.

.NET
Go
Java
Python
TypeScript