| Package | Description |
|---|---|
| software.amazon.awscdk.services.cloudtrail |
AWS CloudTrail Construct Library
|
| Modifier and Type | Method and Description |
|---|---|
Trail.Builder |
Trail.Builder.bucket(IBucket bucket)
(experimental) The Amazon S3 bucket.
|
Trail.Builder |
Trail.Builder.cloudWatchLogGroup(ILogGroup cloudWatchLogGroup)
(experimental) Log Group to which CloudTrail to push logs to.
|
Trail.Builder |
Trail.Builder.cloudWatchLogsRetention(RetentionDays cloudWatchLogsRetention)
(experimental) How long to retain logs in CloudWatchLogs.
|
static Trail.Builder |
Trail.Builder.create(software.constructs.Construct scope,
String id) |
Trail.Builder |
Trail.Builder.enableFileValidation(Boolean enableFileValidation)
(experimental) To determine whether a log file was modified, deleted, or unchanged after CloudTrail delivered it, you can use CloudTrail log file integrity validation.
|
Trail.Builder |
Trail.Builder.encryptionKey(IKey encryptionKey)
(experimental) The AWS Key Management Service (AWS KMS) key ID that you want to use to encrypt CloudTrail logs.
|
Trail.Builder |
Trail.Builder.includeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
(experimental) For most services, events are recorded in the region where the action occurred.
|
Trail.Builder |
Trail.Builder.isMultiRegionTrail(Boolean isMultiRegionTrail)
(experimental) Whether or not this trail delivers log files from multiple regions to a single S3 bucket for a single account.
|
Trail.Builder |
Trail.Builder.managementEvents(ReadWriteType managementEvents)
(experimental) When an event occurs in your account, CloudTrail evaluates whether the event matches the settings for your trails.
|
Trail.Builder |
Trail.Builder.s3KeyPrefix(String s3KeyPrefix)
(experimental) An Amazon S3 object key prefix that precedes the name of all log files.
|
Trail.Builder |
Trail.Builder.sendToCloudWatchLogs(Boolean sendToCloudWatchLogs)
(experimental) If CloudTrail pushes logs to CloudWatch Logs in addition to S3.
|
Trail.Builder |
Trail.Builder.snsTopic(ITopic snsTopic)
(experimental) SNS topic that is notified when new log files are published.
|
Trail.Builder |
Trail.Builder.trailName(String trailName)
(experimental) The name of the trail.
|
Copyright © 2021. All rights reserved.