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 String
The ARN of the log group that CloudTrail logs are delivered to.final String
The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.final boolean
final boolean
equalsBySdkFields
(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 Boolean
Indicates whether the trail has custom event selectors.final int
hashCode()
final String
The Region where the trail was created.final Boolean
Indicates whether the trail publishes events from global services such as IAM to the log files.final Boolean
Indicates whether the trail applies only to the current Region or to all Regions.final Boolean
Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.final String
kmsKeyId()
The KMS key ID to use to encrypt the logs.final Boolean
Indicates whether CloudTrail log file validation is enabled.final String
name()
The name of the trail.final String
The name of the S3 bucket where the log files are published.final String
The S3 key prefix.static Class
<? extends AwsCloudTrailTrailDetails.Builder> final String
The ARN of the SNS topic that is used for notifications of log file delivery.final String
The 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 String
toString()
Returns a string representation of this object.final String
trailArn()
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:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<AwsCloudTrailTrailDetails.Builder,
AwsCloudTrailTrailDetails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
-