# PrivateConnectionReference

A reference to a PrivateConnection resource.

- Source: Generated at build time
- Type last changed: v2.251.0 · 24 Apr 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_devopsagent as interfaces_devopsagent } from 'aws-cdk-lib/interfaces';
const privateConnectionReference: interfaces_devopsagent.PrivateConnectionReference = {
  privateConnectionArn: 'privateConnectionArn',
  privateConnectionName: 'privateConnectionName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_devopsagent as interfaces_devopsagent

private_connection_reference = interfaces_devopsagent.PrivateConnectionReference(
    private_connection_arn="privateConnectionArn",
    private_connection_name="privateConnectionName"
)
```

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

PrivateConnectionReference privateConnectionReference = PrivateConnectionReference.builder()
        .privateConnectionArn("privateConnectionArn")
        .privateConnectionName("privateConnectionName")
        .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.Interfaces.DevOpsAgent;

var privateConnectionReference = new PrivateConnectionReference {
    PrivateConnectionArn = "privateConnectionArn",
    PrivateConnectionName = "privateConnectionName"
};
```

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"

privateConnectionReference := &PrivateConnectionReference{
	PrivateConnectionArn: jsii.String("privateConnectionArn"),
	PrivateConnectionName: jsii.String("privateConnectionName"),
}
```

## Properties

- `privateConnectionArn`: string (required) — The ARN of the PrivateConnection resource.

- `privateConnectionName`: string (required) — The Name of the PrivateConnection resource.
