# NetworkConnectorAttributes

Attributes of an existing network connector, for importing it.

- Source: [`aws-lambda/lib/network-connector.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-lambda/lib/network-connector.ts#L169)
- Type last changed: v2.276.0 · 10 Nov 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 networkConnectorAttributes: lambda.NetworkConnectorAttributes = {
  networkConnectorArn: 'networkConnectorArn',

  // the properties below are optional
  latestVersionArn: 'latestVersionArn',
};
```

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_

network_connector_attributes = lambda.NetworkConnectorAttributes(
    network_connector_arn="networkConnectorArn",

    # the properties below are optional
    latest_version_arn="latestVersionArn"
)
```

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.*;

NetworkConnectorAttributes networkConnectorAttributes = NetworkConnectorAttributes.builder()
        .networkConnectorArn("networkConnectorArn")

        // the properties below are optional
        .latestVersionArn("latestVersionArn")
        .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 networkConnectorAttributes = new NetworkConnectorAttributes {
    NetworkConnectorArn = "networkConnectorArn",

    // the properties below are optional
    LatestVersionArn = "latestVersionArn"
};
```

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"

networkConnectorAttributes := &NetworkConnectorAttributes{
	NetworkConnectorArn: jsii.String("networkConnectorArn"),

	// the properties below are optional
	LatestVersionArn: jsii.String("latestVersionArn"),
}
```

## Properties

- `latestVersionArn`: string — The qualified ARN of the version a WebFunction should pin to.

  **Default:** not known; reading `latestVersionArn` on the imported connector throws

- `networkConnectorArn`: string (required) — The unqualified ARN of the connector.
