AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

Trail

A CloudTrail trail for logging API activity

Import

import { Trail } from 'aws-cdk-lib/aws-cloudtrail';

Or use the module namespace:

import * as cloudtrail from 'aws-cdk-lib/aws-cloudtrail';
// cloudtrail.Trail

Underlying CloudFormation Resources

This L2 construct creates and manages the following CloudFormation resources.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter