# TrailReference

A reference to a Trail resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudtrail as interfaces_cloudtrail } from 'aws-cdk-lib/interfaces';
const trailReference: interfaces_cloudtrail.TrailReference = {
  trailArn: 'trailArn',
  trailName: 'trailName',
};
```

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_cloudtrail as interfaces_cloudtrail

trail_reference = interfaces_cloudtrail.TrailReference(
    trail_arn="trailArn",
    trail_name="trailName"
)
```

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

TrailReference trailReference = TrailReference.builder()
        .trailArn("trailArn")
        .trailName("trailName")
        .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.CloudTrail;

var trailReference = new TrailReference {
    TrailArn = "trailArn",
    TrailName = "trailName"
};
```

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"

trailReference := &TrailReference{
	TrailArn: jsii.String("trailArn"),
	TrailName: jsii.String("trailName"),
}
```

## Properties

- `trailArn`: string (required) — The ARN of the Trail resource.

- `trailName`: string (required) — The TrailName of the Trail resource.
