public class Trail extends Object implements Serializable, Cloneable
The settings for a trail.
| Constructor and Description |
|---|
Trail() |
| Modifier and Type | Method and Description |
|---|---|
Trail |
clone() |
boolean |
equals(Object obj) |
String |
getCloudWatchLogsLogGroupArn()
Specifies an Amazon Resource Name (ARN), a unique identifier that
represents the log group to which CloudTrail logs will be delivered.
|
String |
getCloudWatchLogsRoleArn()
Specifies the role for the CloudWatch Logs endpoint to assume to write
to a user's log group.
|
Boolean |
getIncludeGlobalServiceEvents()
Set to True to include AWS API calls from AWS global services
such as IAM.
|
String |
getKmsKeyId()
Specifies the KMS key ID that encrypts the logs delivered by
CloudTrail.
|
Boolean |
getLogFileValidationEnabled()
Specifies whether log file validation is enabled.
|
String |
getName()
Name of the trail set by calling CreateTrail.
|
String |
getS3BucketName()
Name of the Amazon S3 bucket into which CloudTrail delivers your trail
files.
|
String |
getS3KeyPrefix()
Specifies the Amazon S3 key prefix that comes after the name of the
bucket you have designated for log file delivery.
|
String |
getSnsTopicName()
Name of the existing Amazon SNS topic that CloudTrail uses to notify
the account owner when new CloudTrail log files have been delivered.
|
String |
getTrailARN()
The Amazon Resource Name of the trail.
|
int |
hashCode() |
Boolean |
isIncludeGlobalServiceEvents()
Set to True to include AWS API calls from AWS global services
such as IAM.
|
Boolean |
isLogFileValidationEnabled()
Specifies whether log file validation is enabled.
|
void |
setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Specifies an Amazon Resource Name (ARN), a unique identifier that
represents the log group to which CloudTrail logs will be delivered.
|
void |
setCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write
to a user's log group.
|
void |
setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Set to True to include AWS API calls from AWS global services
such as IAM.
|
void |
setKmsKeyId(String kmsKeyId)
Specifies the KMS key ID that encrypts the logs delivered by
CloudTrail.
|
void |
setLogFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file validation is enabled.
|
void |
setName(String name)
Name of the trail set by calling CreateTrail.
|
void |
setS3BucketName(String s3BucketName)
Name of the Amazon S3 bucket into which CloudTrail delivers your trail
files.
|
void |
setS3KeyPrefix(String s3KeyPrefix)
Specifies the Amazon S3 key prefix that comes after the name of the
bucket you have designated for log file delivery.
|
void |
setSnsTopicName(String snsTopicName)
Name of the existing Amazon SNS topic that CloudTrail uses to notify
the account owner when new CloudTrail log files have been delivered.
|
void |
setTrailARN(String trailARN)
The Amazon Resource Name of the trail.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Trail |
withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Specifies an Amazon Resource Name (ARN), a unique identifier that
represents the log group to which CloudTrail logs will be delivered.
|
Trail |
withCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write
to a user's log group.
|
Trail |
withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Set to True to include AWS API calls from AWS global services
such as IAM.
|
Trail |
withKmsKeyId(String kmsKeyId)
Specifies the KMS key ID that encrypts the logs delivered by
CloudTrail.
|
Trail |
withLogFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file validation is enabled.
|
Trail |
withName(String name)
Name of the trail set by calling CreateTrail.
|
Trail |
withS3BucketName(String s3BucketName)
Name of the Amazon S3 bucket into which CloudTrail delivers your trail
files.
|
Trail |
withS3KeyPrefix(String s3KeyPrefix)
Specifies the Amazon S3 key prefix that comes after the name of the
bucket you have designated for log file delivery.
|
Trail |
withSnsTopicName(String snsTopicName)
Name of the existing Amazon SNS topic that CloudTrail uses to notify
the account owner when new CloudTrail log files have been delivered.
|
Trail |
withTrailARN(String trailARN)
The Amazon Resource Name of the trail.
|
public String getName()
public void setName(String name)
name - Name of the trail set by calling CreateTrail. The maximum
length is 128 characters.public Trail withName(String name)
Returns a reference to this object so that method calls can be chained together.
name - Name of the trail set by calling CreateTrail. The maximum
length is 128 characters.public String getS3BucketName()
public void setS3BucketName(String s3BucketName)
s3BucketName - Name of the Amazon S3 bucket into which CloudTrail delivers your trail
files. See Amazon
S3 Bucket Naming Requirements.public Trail withS3BucketName(String s3BucketName)
Returns a reference to this object so that method calls can be chained together.
s3BucketName - Name of the Amazon S3 bucket into which CloudTrail delivers your trail
files. See Amazon
S3 Bucket Naming Requirements.public String getS3KeyPrefix()
public void setS3KeyPrefix(String s3KeyPrefix)
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.public Trail withS3KeyPrefix(String s3KeyPrefix)
Returns a reference to this object so that method calls can be chained together.
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.public String getSnsTopicName()
public void setSnsTopicName(String snsTopicName)
snsTopicName - Name of the existing Amazon SNS topic that CloudTrail uses to notify
the account owner when new CloudTrail log files have been delivered.
The maximum length is 256 characters.public Trail withSnsTopicName(String snsTopicName)
Returns a reference to this object so that method calls can be chained together.
snsTopicName - Name of the existing Amazon SNS topic that CloudTrail uses to notify
the account owner when new CloudTrail log files have been delivered.
The maximum length is 256 characters.public Boolean isIncludeGlobalServiceEvents()
public void setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
includeGlobalServiceEvents - Set to True to include AWS API calls from AWS global services
such as IAM. Otherwise, False.public Trail withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Returns a reference to this object so that method calls can be chained together.
includeGlobalServiceEvents - Set to True to include AWS API calls from AWS global services
such as IAM. Otherwise, False.public Boolean getIncludeGlobalServiceEvents()
public String getTrailARN()
TrailARN
format is
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.TrailARN
format is
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.public void setTrailARN(String trailARN)
TrailARN
format is
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.trailARN - The Amazon Resource Name of the trail. The TrailARN
format is
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.public Trail withTrailARN(String trailARN)
TrailARN
format is
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
Returns a reference to this object so that method calls can be chained together.
trailARN - The Amazon Resource Name of the trail. The TrailARN
format is
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.public Boolean isLogFileValidationEnabled()
public void setLogFileValidationEnabled(Boolean logFileValidationEnabled)
logFileValidationEnabled - Specifies whether log file validation is enabled.public Trail withLogFileValidationEnabled(Boolean logFileValidationEnabled)
Returns a reference to this object so that method calls can be chained together.
logFileValidationEnabled - Specifies whether log file validation is enabled.public Boolean getLogFileValidationEnabled()
public String getCloudWatchLogsLogGroupArn()
public void setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
cloudWatchLogsLogGroupArn - Specifies an Amazon Resource Name (ARN), a unique identifier that
represents the log group to which CloudTrail logs will be delivered.public Trail withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Returns a reference to this object so that method calls can be chained together.
cloudWatchLogsLogGroupArn - Specifies an Amazon Resource Name (ARN), a unique identifier that
represents the log group to which CloudTrail logs will be delivered.public String getCloudWatchLogsRoleArn()
public void setCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
cloudWatchLogsRoleArn - Specifies the role for the CloudWatch Logs endpoint to assume to write
to a user's log group.public Trail withCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Returns a reference to this object so that method calls can be chained together.
cloudWatchLogsRoleArn - Specifies the role for the CloudWatch Logs endpoint to assume to write
to a user's log group.public String getKmsKeyId()
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012public void setKmsKeyId(String kmsKeyId)
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012kmsKeyId - 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
format:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012public Trail withKmsKeyId(String kmsKeyId)
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
Returns a reference to this object so that method calls can be chained together.
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
format:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.