public static interface Trail.Builder extends SdkPojo, CopyableBuilder<Trail.Builder,Trail>
| Modifier and Type | Method and Description |
|---|---|
Trail.Builder |
cloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which
CloudTrail logs will be delivered.
|
Trail.Builder |
cloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
|
Trail.Builder |
hasCustomEventSelectors(Boolean hasCustomEventSelectors)
Specifies if the trail has custom event selectors.
|
Trail.Builder |
hasInsightSelectors(Boolean hasInsightSelectors)
Specifies whether a trail has insight types specified in an
InsightSelector list. |
Trail.Builder |
homeRegion(String homeRegion)
The region in which the trail was created.
|
Trail.Builder |
includeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Set to True to include Amazon Web Services API calls from Amazon Web Services global services such as
IAM.
|
Trail.Builder |
isMultiRegionTrail(Boolean isMultiRegionTrail)
Specifies whether the trail exists only in one region or exists in all regions.
|
Trail.Builder |
isOrganizationTrail(Boolean isOrganizationTrail)
Specifies whether the trail is an organization trail.
|
Trail.Builder |
kmsKeyId(String kmsKeyId)
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail.
|
Trail.Builder |
logFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file validation is enabled.
|
Trail.Builder |
name(String name)
Name of the trail set by calling CreateTrail.
|
Trail.Builder |
s3BucketName(String s3BucketName)
Name of the Amazon S3 bucket into which CloudTrail delivers your trail files.
|
Trail.Builder |
s3KeyPrefix(String s3KeyPrefix)
Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file
delivery.
|
Trail.Builder |
snsTopicARN(String snsTopicARN)
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are
delivered.
|
Trail.Builder |
snsTopicName(String snsTopicName)
Deprecated.
|
Trail.Builder |
trailARN(String trailARN)
Specifies the ARN of the trail.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTrail.Builder name(String name)
Name of the trail set by calling CreateTrail. The maximum length is 128 characters.
name - Name of the trail set by calling CreateTrail. The maximum length is 128 characters.Trail.Builder s3BucketName(String s3BucketName)
Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket Naming Requirements.
s3BucketName - Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket Naming Requirements.Trail.Builder s3KeyPrefix(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.
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 Trail.Builder snsTopicName(String snsTopicName)
This field is no longer in use. Use SnsTopicARN.
snsTopicName - This field is no longer in use. Use SnsTopicARN.Trail.Builder snsTopicARN(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
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
Trail.Builder includeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Set to True to include Amazon Web Services API calls from Amazon Web Services global services such as IAM. Otherwise, False.
includeGlobalServiceEvents - Set to True to include Amazon Web Services API calls from Amazon Web Services global services
such as IAM. Otherwise, False.Trail.Builder isMultiRegionTrail(Boolean isMultiRegionTrail)
Specifies whether the trail exists only in one region or exists in all regions.
isMultiRegionTrail - Specifies whether the trail exists only in one region or exists in all regions.Trail.Builder homeRegion(String homeRegion)
The region in which the trail was created.
homeRegion - The region in which the trail was created.Trail.Builder trailARN(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
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
Trail.Builder logFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file validation is enabled.
logFileValidationEnabled - Specifies whether log file validation is enabled.Trail.Builder cloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.
cloudWatchLogsLogGroupArn - Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which
CloudTrail logs will be delivered.Trail.Builder cloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
cloudWatchLogsRoleArn - Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.Trail.Builder kmsKeyId(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
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
Trail.Builder hasCustomEventSelectors(Boolean hasCustomEventSelectors)
Specifies if the trail has custom event selectors.
hasCustomEventSelectors - Specifies if the trail has custom event selectors.Trail.Builder hasInsightSelectors(Boolean hasInsightSelectors)
Specifies whether a trail has insight types specified in an InsightSelector list.
hasInsightSelectors - Specifies whether a trail has insight types specified in an InsightSelector list.Trail.Builder isOrganizationTrail(Boolean isOrganizationTrail)
Specifies whether the trail is an organization trail.
isOrganizationTrail - Specifies whether the trail is an organization trail.Copyright © 2022. All rights reserved.