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.
|
String |
getHomeRegion()
The region in which the trail was created.
|
Boolean |
getIncludeGlobalServiceEvents()
Set to True to include AWS API calls from AWS global services such
as IAM.
|
Boolean |
getIsMultiRegionTrail()
Specifies whether the trail belongs only to one region or exists in all
regions.
|
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.
|
Boolean |
isMultiRegionTrail()
Specifies whether the trail belongs only to one region or exists in all
regions.
|
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 |
setHomeRegion(String homeRegion)
The region in which the trail was created.
|
void |
setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Set to True to include AWS API calls from AWS global services such
as IAM.
|
void |
setIsMultiRegionTrail(Boolean isMultiRegionTrail)
Specifies whether the trail belongs only to one region or exists in all
regions.
|
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 |
withHomeRegion(String homeRegion)
The region in which the trail was created.
|
Trail |
withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Set to True to include AWS API calls from AWS global services such
as IAM.
|
Trail |
withIsMultiRegionTrail(Boolean isMultiRegionTrail)
Specifies whether the trail belongs only to one region or exists in all
regions.
|
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 void setName(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.public String getName()
Name of the trail set by calling CreateTrail. The maximum length is 128 characters.
public Trail withName(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.public void setS3BucketName(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.public String getS3BucketName()
Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket Naming Requirements.
public Trail withS3BucketName(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.public 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. 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.public String getS3KeyPrefix()
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)
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.public 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. The maximum length is 256 characters.
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 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. The maximum length is 256 characters.
public 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. The maximum length is 256 characters.
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 void setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Set to True to include AWS API calls from AWS global services such as IAM. Otherwise, False.
includeGlobalServiceEvents
- Set to True to include AWS API calls from AWS global
services such as IAM. Otherwise, False.public Boolean getIncludeGlobalServiceEvents()
Set to True to include AWS API calls from AWS global services such as IAM. Otherwise, False.
public Trail withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Set to True to include AWS API calls from AWS global services such as IAM. Otherwise, False.
includeGlobalServiceEvents
- Set to True to include AWS API calls from AWS global
services such as IAM. Otherwise, False.public Boolean isIncludeGlobalServiceEvents()
Set to True to include AWS API calls from AWS global services such as IAM. Otherwise, False.
public void setIsMultiRegionTrail(Boolean isMultiRegionTrail)
Specifies whether the trail belongs only to one region or exists in all regions.
isMultiRegionTrail
- Specifies whether the trail belongs only to one region or exists
in all regions.public Boolean getIsMultiRegionTrail()
Specifies whether the trail belongs only to one region or exists in all regions.
public Trail withIsMultiRegionTrail(Boolean isMultiRegionTrail)
Specifies whether the trail belongs only to one region or exists in all regions.
isMultiRegionTrail
- Specifies whether the trail belongs only to one region or exists
in all regions.public Boolean isMultiRegionTrail()
Specifies whether the trail belongs only to one region or exists in all regions.
public void setHomeRegion(String homeRegion)
The region in which the trail was created.
homeRegion
- The region in which the trail was created.public String getHomeRegion()
The region in which the trail was created.
public Trail withHomeRegion(String homeRegion)
The region in which the trail was created.
homeRegion
- The region in which the trail was created.public void setTrailARN(String trailARN)
The Amazon Resource Name of the trail. The 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 String getTrailARN()
The Amazon Resource Name of the trail. The 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 Trail withTrailARN(String trailARN)
The Amazon Resource Name of the trail. The 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 void setLogFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file validation is enabled.
logFileValidationEnabled
- Specifies whether log file validation is enabled.public Boolean getLogFileValidationEnabled()
Specifies whether log file validation is enabled.
public Trail withLogFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file validation is enabled.
logFileValidationEnabled
- Specifies whether log file validation is enabled.public Boolean isLogFileValidationEnabled()
Specifies whether log file validation is enabled.
public 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.
cloudWatchLogsLogGroupArn
- Specifies an Amazon Resource Name (ARN), a unique identifier that
represents the log group to which CloudTrail logs will be
delivered.public String getCloudWatchLogsLogGroupArn()
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)
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.public void setCloudWatchLogsRoleArn(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.public String getCloudWatchLogsRoleArn()
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
public Trail withCloudWatchLogsRoleArn(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.public void setKmsKeyId(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 format:
arn:aws:kms:us-east-1: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
format:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
public String getKmsKeyId()
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-123456789012
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
public Trail withKmsKeyId(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 format:
arn:aws:kms:us-east-1: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
format:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.