Class AwsCloudTrailTrailDetails
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsCloudTrailTrailDetails.Builder,AwsCloudTrailTrailDetails>
Provides details about a CloudTrail trail.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringThe ARN of the log group that CloudTrail logs are delivered to.final StringThe ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final BooleanIndicates whether the trail has custom event selectors.final inthashCode()final StringThe Region where the trail was created.final BooleanIndicates whether the trail publishes events from global services such as IAM to the log files.final BooleanIndicates whether the trail applies only to the current Region or to all Regions.final BooleanWhether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.final StringkmsKeyId()The KMS key ID to use to encrypt the logs.final BooleanIndicates whether CloudTrail log file validation is enabled.final Stringname()The name of the trail.final StringThe name of the S3 bucket where the log files are published.final StringThe S3 key prefix.static Class<? extends AwsCloudTrailTrailDetails.Builder> final StringThe ARN of the SNS topic that is used for notifications of log file delivery.final StringThe name of the SNS topic that is used for notifications of log file delivery.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringtrailArn()The ARN of the trail.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
cloudWatchLogsLogGroupArn
The ARN of the log group that CloudTrail logs are delivered to.
- Returns:
- The ARN of the log group that CloudTrail logs are delivered to.
-
cloudWatchLogsRoleArn
The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.
- Returns:
- The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.
-
hasCustomEventSelectors
Indicates whether the trail has custom event selectors.
- Returns:
- Indicates whether the trail has custom event selectors.
-
homeRegion
The Region where the trail was created.
- Returns:
- The Region where the trail was created.
-
includeGlobalServiceEvents
Indicates whether the trail publishes events from global services such as IAM to the log files.
- Returns:
- Indicates whether the trail publishes events from global services such as IAM to the log files.
-
isMultiRegionTrail
Indicates whether the trail applies only to the current Region or to all Regions.
- Returns:
- Indicates whether the trail applies only to the current Region or to all Regions.
-
isOrganizationTrail
Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.
- Returns:
- Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.
-
kmsKeyId
The KMS key ID to use to encrypt the logs.
- Returns:
- The KMS key ID to use to encrypt the logs.
-
logFileValidationEnabled
Indicates whether CloudTrail log file validation is enabled.
- Returns:
- Indicates whether CloudTrail log file validation is enabled.
-
name
-
s3BucketName
The name of the S3 bucket where the log files are published.
- Returns:
- The name of the S3 bucket where the log files are published.
-
s3KeyPrefix
The S3 key prefix. The key prefix is added after the name of the S3 bucket where the log files are published.
- Returns:
- The S3 key prefix. The key prefix is added after the name of the S3 bucket where the log files are published.
-
snsTopicArn
The ARN of the SNS topic that is used for notifications of log file delivery.
- Returns:
- The ARN of the SNS topic that is used for notifications of log file delivery.
-
snsTopicName
The name of the SNS topic that is used for notifications of log file delivery.
- Returns:
- The name of the SNS topic that is used for notifications of log file delivery.
-
trailArn
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsCloudTrailTrailDetails.Builder,AwsCloudTrailTrailDetails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-