Skip to content
v2.278.0

TrailReference Struct ​

A reference to a Trail resource.

Example ​

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
# 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
// 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();
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"
};
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 ​

trailArnstringtrail_arnstrtrailArnStringTrailArnstringTrailArn*string required #
The ARN of the Trail resource.
trailNamestringtrail_namestrtrailNameStringTrailNamestringTrailName*string required #
The TrailName of the Trail resource.