Class AwsCloudTrailTrailDetails
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsCloudTrailTrailDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsCloudTrailTrailDetails.Builder,AwsCloudTrailTrailDetails>
@Generated("software.amazon.awssdk:codegen") public final class AwsCloudTrailTrailDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsCloudTrailTrailDetails.Builder,AwsCloudTrailTrailDetails>
Provides details about a CloudTrail trail.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsCloudTrailTrailDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsCloudTrailTrailDetails.Builderbuilder()StringcloudWatchLogsLogGroupArn()The ARN of the log group that CloudTrail logs are delivered to.StringcloudWatchLogsRoleArn()The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)BooleanhasCustomEventSelectors()Indicates whether the trail has custom event selectors.inthashCode()StringhomeRegion()The Region where the trail was created.BooleanincludeGlobalServiceEvents()Indicates whether the trail publishes events from global services such as IAM to the log files.BooleanisMultiRegionTrail()Indicates whether the trail applies only to the current Region or to all Regions.BooleanisOrganizationTrail()Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.StringkmsKeyId()The KMS key ID to use to encrypt the logs.BooleanlogFileValidationEnabled()Indicates whether CloudTrail log file validation is enabled.Stringname()The name of the trail.Strings3BucketName()The name of the S3 bucket where the log files are published.Strings3KeyPrefix()The S3 key prefix.List<SdkField<?>>sdkFields()static Class<? extends AwsCloudTrailTrailDetails.Builder>serializableBuilderClass()StringsnsTopicArn()The ARN of the SNS topic that is used for notifications of log file delivery.StringsnsTopicName()The name of the SNS topic that is used for notifications of log file delivery.AwsCloudTrailTrailDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringtrailArn()The ARN of the trail.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
cloudWatchLogsLogGroupArn
public final String 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
public final String 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
public final Boolean hasCustomEventSelectors()
Indicates whether the trail has custom event selectors.
- Returns:
- Indicates whether the trail has custom event selectors.
-
homeRegion
public final String homeRegion()
The Region where the trail was created.
- Returns:
- The Region where the trail was created.
-
includeGlobalServiceEvents
public final Boolean 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
public final Boolean 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
public final Boolean 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
public final String kmsKeyId()
The KMS key ID to use to encrypt the logs.
- Returns:
- The KMS key ID to use to encrypt the logs.
-
logFileValidationEnabled
public final Boolean logFileValidationEnabled()
Indicates whether CloudTrail log file validation is enabled.
- Returns:
- Indicates whether CloudTrail log file validation is enabled.
-
name
public final String name()
The name of the trail.
- Returns:
- The name of the trail.
-
s3BucketName
public final String 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
public final String 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
public final String 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
public final String 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
public final String trailArn()
The ARN of the trail.
- Returns:
- The ARN of the trail.
-
toBuilder
public AwsCloudTrailTrailDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsCloudTrailTrailDetails.Builder,AwsCloudTrailTrailDetails>
-
builder
public static AwsCloudTrailTrailDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsCloudTrailTrailDetails.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-