Skip to content
v2.277.0

NetworkConnectorAttributes Struct ​

Attributes of an existing network connector, for importing it.

Example ​

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
# 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
// 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();
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"
};
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 ​

latestVersionArnoptionalstringlatest_version_arnoptionalstrlatestVersionArnoptionalStringLatestVersionArnoptionalstringLatestVersionArnoptional*string #
The qualified ARN of the version a WebFunction should pin to.

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

networkConnectorArnstringnetwork_connector_arnstrnetworkConnectorArnStringNetworkConnectorArnstringNetworkConnectorArn*string required #
The unqualified ARN of the connector.