# TransitVirtualInterfaceReference

A reference to a TransitVirtualInterface resource.

- Source: Generated at build time
- Type last changed: v2.262.0 · 22 Jul 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_directconnect as interfaces_directconnect } from 'aws-cdk-lib/interfaces';
const transitVirtualInterfaceReference: interfaces_directconnect.TransitVirtualInterfaceReference = {
  virtualInterfaceArn: 'virtualInterfaceArn',
  virtualInterfaceId: 'virtualInterfaceId',
};
```

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_directconnect as interfaces_directconnect

transit_virtual_interface_reference = interfaces_directconnect.TransitVirtualInterfaceReference(
    virtual_interface_arn="virtualInterfaceArn",
    virtual_interface_id="virtualInterfaceId"
)
```

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

TransitVirtualInterfaceReference transitVirtualInterfaceReference = TransitVirtualInterfaceReference.builder()
        .virtualInterfaceArn("virtualInterfaceArn")
        .virtualInterfaceId("virtualInterfaceId")
        .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.DirectConnect;

var transitVirtualInterfaceReference = new TransitVirtualInterfaceReference {
    VirtualInterfaceArn = "virtualInterfaceArn",
    VirtualInterfaceId = "virtualInterfaceId"
};
```

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"

transitVirtualInterfaceReference := &TransitVirtualInterfaceReference{
	VirtualInterfaceArn: jsii.String("virtualInterfaceArn"),
	VirtualInterfaceId: jsii.String("virtualInterfaceId"),
}
```

## Properties

- `virtualInterfaceArn`: string (required) — The VirtualInterfaceArn of the TransitVirtualInterface resource.

- `virtualInterfaceId`: string (required) — The VirtualInterfaceId of the TransitVirtualInterface resource.
