Skip to content
v2.277.0

ConnectionAttributes Struct ​

Interface with properties necessary to import a reusable Connection.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_events as events } from 'aws-cdk-lib';
const connectionAttributes: events.ConnectionAttributes = {
  connectionArn: 'connectionArn',
  connectionName: 'connectionName',
  connectionSecretArn: 'connectionSecretArn',
};
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_events as events

connection_attributes = events.ConnectionAttributes(
    connection_arn="connectionArn",
    connection_name="connectionName",
    connection_secret_arn="connectionSecretArn"
)
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.events.*;

ConnectionAttributes connectionAttributes = ConnectionAttributes.builder()
        .connectionArn("connectionArn")
        .connectionName("connectionName")
        .connectionSecretArn("connectionSecretArn")
        .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.Events;

var connectionAttributes = new ConnectionAttributes {
    ConnectionArn = "connectionArn",
    ConnectionName = "connectionName",
    ConnectionSecretArn = "connectionSecretArn"
};
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"

connectionAttributes := &ConnectionAttributes{
	ConnectionArn: jsii.String("connectionArn"),
	ConnectionName: jsii.String("connectionName"),
	ConnectionSecretArn: jsii.String("connectionSecretArn"),
}

Properties ​

connectionArnstringconnection_arnstrconnectionArnStringConnectionArnstringConnectionArn*stringrequired#
The ARN of the connection created.
connectionNamestringconnection_namestrconnectionNameStringConnectionNamestringConnectionName*stringrequired#
The Name for the connection.
connectionSecretArnstringconnection_secret_arnstrconnectionSecretArnStringConnectionSecretArnstringConnectionSecretArn*stringrequired#
The ARN for the secret created for the connection.