@Generated(value="software.amazon.awssdk:codegen") public 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
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.
|
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.
|
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 deprecated.
|
CreateTrailResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
trailARN()
Specifies the ARN of the trail that was created.
|
copy
public String name()
Specifies the name of the trail.
public String s3BucketName()
Specifies the name of the Amazon S3 bucket designated for publishing log files.
public 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 String snsTopicName()
This field is deprecated. Use SnsTopicARN.
public 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-1:123456789012:MyTopic
arn:aws:sns:us-east-1:123456789012:MyTopic
public Boolean includeGlobalServiceEvents()
Specifies whether the trail is publishing events from global services such as IAM to the log files.
public Boolean isMultiRegionTrail()
Specifies whether the trail exists in one region or in all regions.
public String trailARN()
Specifies the ARN of the trail that was created. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
public Boolean logFileValidationEnabled()
Specifies whether log file integrity validation is enabled.
public String cloudWatchLogsLogGroupArn()
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.
public String cloudWatchLogsRoleArn()
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
public 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
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
public CreateTrailResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateTrailResponse.Builder,CreateTrailResponse>
toBuilder
in class AwsResponse
public static CreateTrailResponse.Builder builder()
public static Class<? extends CreateTrailResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.