# ConnectionAttributes

Interface with properties necessary to import a reusable Connection.

Used as argument in: [Connection.fromConnectionAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.Connection.html#fromconnectionattributes)

- Source: [`aws-events/lib/connection.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-events/lib/connection.ts#L279)
- Type last changed: v2.13.0 · 19 Feb 2022

## Example

TypeScript:

```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:

```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:

```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();
```

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

var connectionAttributes = new ConnectionAttributes {
    ConnectionArn = "connectionArn",
    ConnectionName = "connectionName",
    ConnectionSecretArn = "connectionSecretArn"
};
```

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"

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

## Properties

- `connectionArn`: string (required) — The ARN of the connection created.

- `connectionName`: string (required) — The Name for the connection.

- `connectionSecretArn`: string (required) — The ARN for the secret created for the connection.
