@Generated(value="software.amazon.awssdk:codegen") public final class CreateTrailResponse extends CloudTrailResponse implements ToCopyableBuilder<CreateTrailResponse.Builder,CreateTrailResponse>
Returns the objects or data listed below if successful. Otherwise, returns an error.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateTrailResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateTrailResponse.Builder |
builder() |
String |
cloudWatchLogsLogGroupArn()
Specifies the Amazon Resource Name (ARN) of 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) |
int |
hashCode() |
Boolean |
includeGlobalServiceEvents()
Specifies whether the trail is publishing events from global services such as IAM to the log files.
|
Boolean |
isMultiRegionTrail()
Specifies whether the trail exists in one region or 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 integrity validation is enabled.
|
String |
name()
Specifies the name of the trail.
|
String |
s3BucketName()
Specifies the name of the Amazon S3 bucket designated for publishing log 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 CreateTrailResponse.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()
This field is no longer in use.
|
CreateTrailResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
trailARN()
Specifies the ARN of the trail that was created.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
Specifies the name of the trail.
public final String s3BucketName()
Specifies the name of the Amazon S3 bucket designated for publishing log files.
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.
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 format of a topic ARN is:
arn:aws:sns:us-east-2:123456789012:MyTopic
arn:aws:sns:us-east-2:123456789012:MyTopic
public final Boolean includeGlobalServiceEvents()
Specifies whether the trail is publishing events from global services such as IAM to the log files.
public final Boolean isMultiRegionTrail()
Specifies whether the trail exists in one region or in all regions.
public final String trailARN()
Specifies the ARN of the trail that was created. The format of a trail ARN is:
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 integrity validation is enabled.
public final String cloudWatchLogsLogGroupArn()
Specifies the Amazon Resource Name (ARN) of 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 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 isOrganizationTrail()
Specifies whether the trail is an organization trail.
public CreateTrailResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateTrailResponse.Builder,CreateTrailResponse>toBuilder in class AwsResponsepublic static CreateTrailResponse.Builder builder()
public static Class<? extends CreateTrailResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2021. All rights reserved.