@Generated(value="software.amazon.awssdk:codegen") public final class Trail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Trail.Builder,Trail>
The settings for a trail.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Trail.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Trail.Builder |
builder() |
String |
cloudWatchLogsLogGroupArn()
Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail
logs will be delivered.
|
String |
cloudWatchLogsRoleArn()
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
Boolean |
hasCustomEventSelectors()
Specifies if the trail has custom event selectors.
|
int |
hashCode() |
Boolean |
hasInsightSelectors()
Specifies whether a trail has insight types specified in an
InsightSelector list. |
String |
homeRegion()
The region in which the trail was created.
|
Boolean |
includeGlobalServiceEvents()
Set to True to include Amazon Web Services API calls from Amazon Web Services global services such as IAM.
|
Boolean |
isMultiRegionTrail()
Specifies whether the trail exists only in one region or exists in all regions.
|
Boolean |
isOrganizationTrail()
Specifies whether the trail is an organization trail.
|
String |
kmsKeyId()
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail.
|
Boolean |
logFileValidationEnabled()
Specifies whether log file validation is enabled.
|
String |
name()
Name of the trail set by calling CreateTrail.
|
String |
s3BucketName()
Name of the Amazon S3 bucket into which CloudTrail delivers your trail files.
|
String |
s3KeyPrefix()
Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file
delivery.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Trail.Builder> |
serializableBuilderClass() |
String |
snsTopicARN()
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are
delivered.
|
String |
snsTopicName()
Deprecated.
|
Trail.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
trailARN()
Specifies the ARN of the trail.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
Name of the trail set by calling CreateTrail. The maximum length is 128 characters.
public final String s3BucketName()
Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket Naming Requirements.
public final String s3KeyPrefix()
Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.
@Deprecated public final String snsTopicName()
This field is no longer in use. Use SnsTopicARN.
public final String snsTopicARN()
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The following is the format of a topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
arn:aws:sns:us-east-2:123456789012:MyTopic
public final Boolean includeGlobalServiceEvents()
Set to True to include Amazon Web Services API calls from Amazon Web Services global services such as IAM. Otherwise, False.
public final Boolean isMultiRegionTrail()
Specifies whether the trail exists only in one region or exists in all regions.
public final String homeRegion()
The region in which the trail was created.
public final String trailARN()
Specifies the ARN of the trail. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
public final Boolean logFileValidationEnabled()
Specifies whether log file validation is enabled.
public final String cloudWatchLogsLogGroupArn()
Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.
public final String cloudWatchLogsRoleArn()
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
public final String kmsKeyId()
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
public final Boolean hasCustomEventSelectors()
Specifies if the trail has custom event selectors.
public final Boolean hasInsightSelectors()
Specifies whether a trail has insight types specified in an InsightSelector list.
InsightSelector list.public final Boolean isOrganizationTrail()
Specifies whether the trail is an organization trail.
public Trail.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Trail.Builder,Trail>public static Trail.Builder builder()
public static Class<? extends Trail.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.