@Stability(value=Experimental) @Internal public static final class TrailProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TrailProps
TrailProps
software.amazon.jsii.JsiiObject.InitializationMode
TrailProps.Builder, TrailProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(IBucket bucket,
ILogGroup cloudWatchLogGroup,
RetentionDays cloudWatchLogsRetention,
Boolean enableFileValidation,
IKey encryptionKey,
Boolean includeGlobalServiceEvents,
Boolean isMultiRegionTrail,
ReadWriteType managementEvents,
String s3KeyPrefix,
Boolean sendToCloudWatchLogs,
ITopic snsTopic,
String trailName)
Constructor that initializes the object based on literal property values passed by the
TrailProps.Builder . |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
IBucket |
getBucket()
(experimental) The Amazon S3 bucket.
|
ILogGroup |
getCloudWatchLogGroup()
(experimental) Log Group to which CloudTrail to push logs to.
|
RetentionDays |
getCloudWatchLogsRetention()
(experimental) How long to retain logs in CloudWatchLogs.
|
Boolean |
getEnableFileValidation()
(experimental) To determine whether a log file was modified, deleted, or unchanged after CloudTrail delivered it, you can use CloudTrail log file integrity validation.
|
IKey |
getEncryptionKey()
(experimental) The AWS Key Management Service (AWS KMS) key ID that you want to use to encrypt CloudTrail logs.
|
Boolean |
getIncludeGlobalServiceEvents()
(experimental) For most services, events are recorded in the region where the action occurred.
|
Boolean |
getIsMultiRegionTrail()
(experimental) Whether or not this trail delivers log files from multiple regions to a single S3 bucket for a single account.
|
ReadWriteType |
getManagementEvents()
(experimental) When an event occurs in your account, CloudTrail evaluates whether the event matches the settings for your trails.
|
String |
getS3KeyPrefix()
(experimental) An Amazon S3 object key prefix that precedes the name of all log files.
|
Boolean |
getSendToCloudWatchLogs()
(experimental) If CloudTrail pushes logs to CloudWatch Logs in addition to S3.
|
ITopic |
getSnsTopic()
(experimental) SNS topic that is notified when new log files are published.
|
String |
getTrailName()
(experimental) The name of the trail.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.protected Jsii$Proxy(IBucket bucket, ILogGroup cloudWatchLogGroup, RetentionDays cloudWatchLogsRetention, Boolean enableFileValidation, IKey encryptionKey, Boolean includeGlobalServiceEvents, Boolean isMultiRegionTrail, ReadWriteType managementEvents, String s3KeyPrefix, Boolean sendToCloudWatchLogs, ITopic snsTopic, String trailName)
TrailProps.Builder
.public final IBucket getBucket()
TrailProps
Default: - if not supplied a bucket will be created with all the correct permisions
getBucket
in interface TrailProps
public final ILogGroup getCloudWatchLogGroup()
TrailProps
Ignored if sendToCloudWatchLogs is set to false.
Default: - a new log group is created and used.
getCloudWatchLogGroup
in interface TrailProps
public final RetentionDays getCloudWatchLogsRetention()
TrailProps
Ignored if sendToCloudWatchLogs is false or if cloudWatchLogGroup is set.
Default: logs.RetentionDays.ONE_YEAR
getCloudWatchLogsRetention
in interface TrailProps
public final Boolean getEnableFileValidation()
TrailProps
This feature is built using industry standard algorithms: SHA-256 for hashing and SHA-256 with RSA for digital signing. This makes it computationally infeasible to modify, delete or forge CloudTrail log files without detection. You can use the AWS CLI to validate the files in the location where CloudTrail delivered them.
Default: true
getEnableFileValidation
in interface TrailProps
public final IKey getEncryptionKey()
TrailProps
Default: - No encryption.
getEncryptionKey
in interface TrailProps
public final Boolean getIncludeGlobalServiceEvents()
TrailProps
For global services such as AWS Identity and Access Management (IAM), AWS STS, Amazon CloudFront, and Route 53, events are delivered to any trail that includes global services, and are logged as occurring in US East (N. Virginia) Region.
Default: true
getIncludeGlobalServiceEvents
in interface TrailProps
public final Boolean getIsMultiRegionTrail()
TrailProps
Default: true
getIsMultiRegionTrail
in interface TrailProps
public final ReadWriteType getManagementEvents()
TrailProps
Only events that match your trail settings are delivered to your Amazon S3 bucket and Amazon CloudWatch Logs log group.
This method sets the management configuration for this trail.
Management events provide insight into management operations that are performed on resources in your AWS account. These are also known as control plane operations. Management events can also include non-API events that occur in your account. For example, when a user logs in to your account, CloudTrail logs the ConsoleLogin event.
Default: ReadWriteType.ALL
getManagementEvents
in interface TrailProps
public final String getS3KeyPrefix()
TrailProps
Default: - No prefix.
getS3KeyPrefix
in interface TrailProps
public final Boolean getSendToCloudWatchLogs()
TrailProps
Disabled for cost out of the box.
Default: false
getSendToCloudWatchLogs
in interface TrailProps
public final ITopic getSnsTopic()
TrailProps
Default: - No notifications.
getSnsTopic
in interface TrailProps
public final String getTrailName()
TrailProps
We recoomend customers do not set an explicit name.
Default: - AWS CloudFormation generated name.
getTrailName
in interface TrailProps
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2021. All rights reserved.