Class AwsCloudTrailTrailDetails

    • 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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)