{ "version":"2.0", "metadata":{ "apiVersion":"2013-11-01", "endpointPrefix":"cloudtrail", "jsonVersion":"1.1", "protocol":"json", "serviceAbbreviation":"CloudTrail", "serviceFullName":"AWS CloudTrail", "serviceId":"CloudTrail", "signatureVersion":"v4", "targetPrefix":"com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101", "uid":"cloudtrail-2013-11-01" }, "operations":{ "AddTags":{ "name":"AddTags", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"AddTagsRequest"}, "output":{"shape":"AddTagsResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"CloudTrailARNInvalidException"}, {"shape":"ResourceTypeNotSupportedException"}, {"shape":"TagsLimitExceededException"}, {"shape":"InvalidTrailNameException"}, {"shape":"InvalidTagParameterException"}, {"shape":"InactiveEventDataStoreException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"ConflictException"} ], "documentation":"

Adds one or more tags to a trail or event data store, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key. Tag key names must be unique for a trail; you cannot have two keys with the same name but different values. If you specify a key without a value, the tag will be created with the specified key and a value of null. You can tag a trail or event data store that applies to all Amazon Web Services Regions only from the Region in which the trail or event data store was created (also known as its home region).

", "idempotent":true }, "CancelQuery":{ "name":"CancelQuery", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CancelQueryRequest"}, "output":{"shape":"CancelQueryResponse"}, "errors":[ {"shape":"EventDataStoreARNInvalidException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"InactiveEventDataStoreException"}, {"shape":"InactiveQueryException"}, {"shape":"InvalidParameterException"}, {"shape":"QueryIdNotFoundException"}, {"shape":"OperationNotPermittedException"}, {"shape":"UnsupportedOperationException"}, {"shape":"ConflictException"} ], "documentation":"

Cancels a query if the query is not in a terminated state, such as CANCELLED, FAILED, TIMED_OUT, or FINISHED. You must specify an ARN value for EventDataStore. The ID of the query that you want to cancel is also required. When you run CancelQuery, the query status might show as CANCELLED even if the operation is not yet finished.

", "idempotent":true }, "CreateEventDataStore":{ "name":"CreateEventDataStore", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CreateEventDataStoreRequest"}, "output":{"shape":"CreateEventDataStoreResponse"}, "errors":[ {"shape":"EventDataStoreAlreadyExistsException"}, {"shape":"EventDataStoreMaxLimitExceededException"}, {"shape":"InvalidParameterException"}, {"shape":"InvalidTagParameterException"}, {"shape":"OperationNotPermittedException"}, {"shape":"UnsupportedOperationException"}, {"shape":"ConflictException"}, {"shape":"CloudTrailAccessNotEnabledException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"OrganizationsNotInUseException"}, {"shape":"OrganizationNotInAllFeaturesModeException"} ], "documentation":"

Creates a new event data store.

" }, "CreateTrail":{ "name":"CreateTrail", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CreateTrailRequest"}, "output":{"shape":"CreateTrailResponse"}, "errors":[ {"shape":"MaximumNumberOfTrailsExceededException"}, {"shape":"TrailAlreadyExistsException"}, {"shape":"S3BucketDoesNotExistException"}, {"shape":"InsufficientS3BucketPolicyException"}, {"shape":"InsufficientSnsTopicPolicyException"}, {"shape":"InsufficientEncryptionPolicyException"}, {"shape":"InvalidS3BucketNameException"}, {"shape":"InvalidS3PrefixException"}, {"shape":"InvalidSnsTopicNameException"}, {"shape":"InvalidKmsKeyIdException"}, {"shape":"InvalidTrailNameException"}, {"shape":"TrailNotProvidedException"}, {"shape":"InvalidParameterCombinationException"}, {"shape":"KmsKeyNotFoundException"}, {"shape":"KmsKeyDisabledException"}, {"shape":"KmsException"}, {"shape":"InvalidCloudWatchLogsLogGroupArnException"}, {"shape":"InvalidCloudWatchLogsRoleArnException"}, {"shape":"CloudWatchLogsDeliveryUnavailableException"}, {"shape":"InvalidTagParameterException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"CloudTrailAccessNotEnabledException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"OrganizationsNotInUseException"}, {"shape":"OrganizationNotInAllFeaturesModeException"}, {"shape":"CloudTrailInvalidClientTokenIdException"}, {"shape":"ConflictException"} ], "documentation":"

Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.

", "idempotent":true }, "DeleteEventDataStore":{ "name":"DeleteEventDataStore", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteEventDataStoreRequest"}, "output":{"shape":"DeleteEventDataStoreResponse"}, "errors":[ {"shape":"EventDataStoreARNInvalidException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"EventDataStoreTerminationProtectedException"}, {"shape":"InvalidParameterException"}, {"shape":"OperationNotPermittedException"}, {"shape":"UnsupportedOperationException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"} ], "documentation":"

Disables the event data store specified by EventDataStore, which accepts an event data store ARN. After you run DeleteEventDataStore, the event data store enters a PENDING_DELETION state, and is automatically deleted after a wait period of seven days. TerminationProtectionEnabled must be set to False on the event data store; this operation cannot work if TerminationProtectionEnabled is True.

After you run DeleteEventDataStore on an event data store, you cannot run ListQueries, DescribeQuery, or GetQueryResults on queries that are using an event data store in a PENDING_DELETION state. An event data store in the PENDING_DELETION state does not incur costs.

" }, "DeleteTrail":{ "name":"DeleteTrail", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteTrailRequest"}, "output":{"shape":"DeleteTrailResponse"}, "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"InvalidHomeRegionException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"}, {"shape":"ConflictException"} ], "documentation":"

Deletes a trail. This operation must be called from the region in which the trail was created. DeleteTrail cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.

", "idempotent":true }, "DescribeQuery":{ "name":"DescribeQuery", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeQueryRequest"}, "output":{"shape":"DescribeQueryResponse"}, "errors":[ {"shape":"EventDataStoreARNInvalidException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"InactiveEventDataStoreException"}, {"shape":"InvalidParameterException"}, {"shape":"QueryIdNotFoundException"}, {"shape":"OperationNotPermittedException"}, {"shape":"UnsupportedOperationException"} ], "documentation":"

Returns metadata about a query, including query run time in milliseconds, number of events scanned and matched, and query status. You must specify an ARN for EventDataStore, and a value for QueryID.

", "idempotent":true }, "DescribeTrails":{ "name":"DescribeTrails", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeTrailsRequest"}, "output":{"shape":"DescribeTrailsResponse"}, "errors":[ {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"InvalidTrailNameException"} ], "documentation":"

Retrieves settings for one or more trails associated with the current region for your account.

", "idempotent":true }, "GetEventDataStore":{ "name":"GetEventDataStore", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetEventDataStoreRequest"}, "output":{"shape":"GetEventDataStoreResponse"}, "errors":[ {"shape":"EventDataStoreARNInvalidException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"InvalidParameterException"}, {"shape":"OperationNotPermittedException"}, {"shape":"UnsupportedOperationException"} ], "documentation":"

Returns information about an event data store specified as either an ARN or the ID portion of the ARN.

", "idempotent":true }, "GetEventSelectors":{ "name":"GetEventSelectors", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetEventSelectorsRequest"}, "output":{"shape":"GetEventSelectorsResponse"}, "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"} ], "documentation":"

Describes the settings for the event selectors that you configured for your trail. The information returned for your event selectors includes the following:

For more information, see Logging Data and Management Events for Trails in the CloudTrail User Guide.

", "idempotent":true }, "GetInsightSelectors":{ "name":"GetInsightSelectors", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetInsightSelectorsRequest"}, "output":{"shape":"GetInsightSelectorsResponse"}, "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"InsightNotEnabledException"} ], "documentation":"

Describes the settings for the Insights event selectors that you configured for your trail. GetInsightSelectors shows if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled. If you run GetInsightSelectors on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException

For more information, see Logging CloudTrail Insights Events for Trails in the CloudTrail User Guide.

", "idempotent":true }, "GetQueryResults":{ "name":"GetQueryResults", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetQueryResultsRequest"}, "output":{"shape":"GetQueryResultsResponse"}, "errors":[ {"shape":"EventDataStoreARNInvalidException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"InactiveEventDataStoreException"}, {"shape":"InvalidMaxResultsException"}, {"shape":"InvalidNextTokenException"}, {"shape":"InvalidParameterException"}, {"shape":"QueryIdNotFoundException"}, {"shape":"OperationNotPermittedException"}, {"shape":"UnsupportedOperationException"} ], "documentation":"

Gets event data results of a query. You must specify the QueryID value returned by the StartQuery operation, and an ARN for EventDataStore.

" }, "GetTrail":{ "name":"GetTrail", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetTrailRequest"}, "output":{"shape":"GetTrailResponse"}, "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"} ], "documentation":"

Returns settings information for a specified trail.

", "idempotent":true }, "GetTrailStatus":{ "name":"GetTrailStatus", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetTrailStatusRequest"}, "output":{"shape":"GetTrailStatusResponse"}, "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"} ], "documentation":"

Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.

", "idempotent":true }, "ListEventDataStores":{ "name":"ListEventDataStores", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListEventDataStoresRequest"}, "output":{"shape":"ListEventDataStoresResponse"}, "errors":[ {"shape":"InvalidMaxResultsException"}, {"shape":"InvalidNextTokenException"}, {"shape":"OperationNotPermittedException"}, {"shape":"UnsupportedOperationException"} ], "documentation":"

Returns information about all event data stores in the account, in the current region.

", "idempotent":true }, "ListPublicKeys":{ "name":"ListPublicKeys", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListPublicKeysRequest"}, "output":{"shape":"ListPublicKeysResponse"}, "errors":[ {"shape":"InvalidTimeRangeException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"InvalidTokenException"} ], "documentation":"

Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.

CloudTrail uses different private and public key pairs per region. Each digest file is signed with a private key unique to its region. When you validate a digest file from a specific region, you must look in the same region for its corresponding public key.

", "idempotent":true }, "ListQueries":{ "name":"ListQueries", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListQueriesRequest"}, "output":{"shape":"ListQueriesResponse"}, "errors":[ {"shape":"EventDataStoreARNInvalidException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"InactiveEventDataStoreException"}, {"shape":"InvalidDateRangeException"}, {"shape":"InvalidMaxResultsException"}, {"shape":"InvalidNextTokenException"}, {"shape":"InvalidParameterException"}, {"shape":"InvalidQueryStatusException"}, {"shape":"OperationNotPermittedException"}, {"shape":"UnsupportedOperationException"} ], "documentation":"

Returns a list of queries and query statuses for the past seven days. You must specify an ARN value for EventDataStore. Optionally, to shorten the list of results, you can specify a time range, formatted as timestamps, by adding StartTime and EndTime parameters, and a QueryStatus value. Valid values for QueryStatus include QUEUED, RUNNING, FINISHED, FAILED, TIMED_OUT, or CANCELLED.

", "idempotent":true }, "ListTags":{ "name":"ListTags", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListTagsRequest"}, "output":{"shape":"ListTagsResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"CloudTrailARNInvalidException"}, {"shape":"ResourceTypeNotSupportedException"}, {"shape":"InvalidTrailNameException"}, {"shape":"InactiveEventDataStoreException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"InvalidTokenException"} ], "documentation":"

Lists the tags for the trail or event data store in the current region.

", "idempotent":true }, "ListTrails":{ "name":"ListTrails", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListTrailsRequest"}, "output":{"shape":"ListTrailsResponse"}, "errors":[ {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"} ], "documentation":"

Lists trails that are in the current account.

", "idempotent":true }, "LookupEvents":{ "name":"LookupEvents", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"LookupEventsRequest"}, "output":{"shape":"LookupEventsResponse"}, "errors":[ {"shape":"InvalidLookupAttributesException"}, {"shape":"InvalidTimeRangeException"}, {"shape":"InvalidMaxResultsException"}, {"shape":"InvalidNextTokenException"}, {"shape":"InvalidEventCategoryException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"} ], "documentation":"

Looks up management events or CloudTrail Insights events that are captured by CloudTrail. You can look up events that occurred in a region within the last 90 days. Lookup supports the following attributes for management events:

Lookup supports the following attributes for Insights events:

All attributes are optional. The default number of results returned is 50, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.

The rate of lookup requests is limited to two per second, per account, per region. If this limit is exceeded, a throttling error occurs.

", "idempotent":true }, "PutEventSelectors":{ "name":"PutEventSelectors", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"PutEventSelectorsRequest"}, "output":{"shape":"PutEventSelectorsResponse"}, "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"InvalidHomeRegionException"}, {"shape":"InvalidEventSelectorsException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"} ], "documentation":"

Configures an event selector or advanced event selectors for your trail. Use event selectors or advanced event selectors to specify management and data event settings for your trail. By default, trails created without specific event selectors are configured to log all read and write management events, and no data events.

When an event occurs in your account, CloudTrail evaluates the event selectors or advanced event selectors in all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event.

Example

  1. You create an event selector for a trail and specify that you want write-only events.

  2. The EC2 GetConsoleOutput and RunInstances API operations occur in your account.

  3. CloudTrail evaluates whether the events match your event selectors.

  4. The RunInstances is a write-only event and it matches your event selector. The trail logs the event.

  5. The GetConsoleOutput is a read-only event that doesn't match your event selector. The trail doesn't log the event.

The PutEventSelectors operation must be called from the region in which the trail was created; otherwise, an InvalidHomeRegionException exception is thrown.

You can configure up to five event selectors for each trail. For more information, see Logging data and management events for trails and Quotas in CloudTrail in the CloudTrail User Guide.

You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. You can use either AdvancedEventSelectors or EventSelectors, but not both. If you apply AdvancedEventSelectors to a trail, any existing EventSelectors are overwritten. For more information about advanced event selectors, see Logging data events for trails in the CloudTrail User Guide.

", "idempotent":true }, "PutInsightSelectors":{ "name":"PutInsightSelectors", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"PutInsightSelectorsRequest"}, "output":{"shape":"PutInsightSelectorsResponse"}, "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"InvalidHomeRegionException"}, {"shape":"InvalidInsightSelectorsException"}, {"shape":"InsufficientS3BucketPolicyException"}, {"shape":"InsufficientEncryptionPolicyException"}, {"shape":"S3BucketDoesNotExistException"}, {"shape":"KmsException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"NotOrganizationMasterAccountException"} ], "documentation":"

Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail. You also use PutInsightSelectors to turn off Insights event logging, by passing an empty list of insight types. The valid Insights event types in this release are ApiErrorRateInsight and ApiCallRateInsight.

", "idempotent":true }, "RemoveTags":{ "name":"RemoveTags", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"RemoveTagsRequest"}, "output":{"shape":"RemoveTagsResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"CloudTrailARNInvalidException"}, {"shape":"ResourceTypeNotSupportedException"}, {"shape":"InvalidTrailNameException"}, {"shape":"InvalidTagParameterException"}, {"shape":"InactiveEventDataStoreException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"NotOrganizationMasterAccountException"} ], "documentation":"

Removes the specified tags from a trail or event data store.

", "idempotent":true }, "RestoreEventDataStore":{ "name":"RestoreEventDataStore", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"RestoreEventDataStoreRequest"}, "output":{"shape":"RestoreEventDataStoreResponse"}, "errors":[ {"shape":"EventDataStoreARNInvalidException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"EventDataStoreMaxLimitExceededException"}, {"shape":"InvalidEventDataStoreStatusException"}, {"shape":"InvalidParameterException"}, {"shape":"OperationNotPermittedException"}, {"shape":"UnsupportedOperationException"}, {"shape":"CloudTrailAccessNotEnabledException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"}, {"shape":"OrganizationsNotInUseException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"OrganizationNotInAllFeaturesModeException"} ], "documentation":"

Restores a deleted event data store specified by EventDataStore, which accepts an event data store ARN. You can only restore a deleted event data store within the seven-day wait period after deletion. Restoring an event data store can take several minutes, depending on the size of the event data store.

" }, "StartLogging":{ "name":"StartLogging", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"StartLoggingRequest"}, "output":{"shape":"StartLoggingResponse"}, "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"InvalidHomeRegionException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"} ], "documentation":"

Starts the recording of Amazon Web Services API calls and log file delivery for a trail. For a trail that is enabled in all regions, this operation must be called from the region in which the trail was created. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.

", "idempotent":true }, "StartQuery":{ "name":"StartQuery", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"StartQueryRequest"}, "output":{"shape":"StartQueryResponse"}, "errors":[ {"shape":"EventDataStoreARNInvalidException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"InactiveEventDataStoreException"}, {"shape":"InvalidParameterException"}, {"shape":"InvalidQueryStatementException"}, {"shape":"MaxConcurrentQueriesException"}, {"shape":"OperationNotPermittedException"}, {"shape":"UnsupportedOperationException"} ], "documentation":"

Starts a CloudTrail Lake query. The required QueryStatement parameter provides your SQL query, enclosed in single quotation marks.

", "idempotent":true }, "StopLogging":{ "name":"StopLogging", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"StopLoggingRequest"}, "output":{"shape":"StopLoggingResponse"}, "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"InvalidHomeRegionException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"} ], "documentation":"

Suspends the recording of Amazon Web Services API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording. For a trail enabled in all regions, this operation must be called from the region in which the trail was created, or an InvalidHomeRegionException will occur. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail enabled in all regions.

", "idempotent":true }, "UpdateEventDataStore":{ "name":"UpdateEventDataStore", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"UpdateEventDataStoreRequest"}, "output":{"shape":"UpdateEventDataStoreResponse"}, "errors":[ {"shape":"EventDataStoreARNInvalidException"}, {"shape":"EventDataStoreNotFoundException"}, {"shape":"InactiveEventDataStoreException"}, {"shape":"InvalidParameterException"}, {"shape":"OperationNotPermittedException"}, {"shape":"UnsupportedOperationException"}, {"shape":"CloudTrailAccessNotEnabledException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"}, {"shape":"OrganizationsNotInUseException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"OrganizationNotInAllFeaturesModeException"} ], "documentation":"

Updates an event data store. The required EventDataStore value is an ARN or the ID portion of the ARN. Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error. RetentionPeriod is in days, and valid values are integers between 90 and 2555. By default, TerminationProtection is enabled. AdvancedEventSelectors includes or excludes management and data events in your event data store; for more information about AdvancedEventSelectors, see PutEventSelectorsRequest$AdvancedEventSelectors.

", "idempotent":true }, "UpdateTrail":{ "name":"UpdateTrail", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"UpdateTrailRequest"}, "output":{"shape":"UpdateTrailResponse"}, "errors":[ {"shape":"S3BucketDoesNotExistException"}, {"shape":"InsufficientS3BucketPolicyException"}, {"shape":"InsufficientSnsTopicPolicyException"}, {"shape":"InsufficientEncryptionPolicyException"}, {"shape":"TrailNotFoundException"}, {"shape":"InvalidS3BucketNameException"}, {"shape":"InvalidS3PrefixException"}, {"shape":"InvalidSnsTopicNameException"}, {"shape":"InvalidKmsKeyIdException"}, {"shape":"InvalidTrailNameException"}, {"shape":"TrailNotProvidedException"}, {"shape":"InvalidEventSelectorsException"}, {"shape":"InvalidParameterCombinationException"}, {"shape":"InvalidHomeRegionException"}, {"shape":"KmsKeyNotFoundException"}, {"shape":"KmsKeyDisabledException"}, {"shape":"KmsException"}, {"shape":"InvalidCloudWatchLogsLogGroupArnException"}, {"shape":"InvalidCloudWatchLogsRoleArnException"}, {"shape":"CloudWatchLogsDeliveryUnavailableException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"CloudTrailAccessNotEnabledException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"}, {"shape":"OrganizationsNotInUseException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"OrganizationNotInAllFeaturesModeException"}, {"shape":"CloudTrailInvalidClientTokenIdException"} ], "documentation":"

Updates trail settings that control what events you are logging, and how to handle log files. Changes to a trail do not require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket. UpdateTrail must be called from the region in which the trail was created; otherwise, an InvalidHomeRegionException is thrown.

", "idempotent":true } }, "shapes":{ "AddTagsRequest":{ "type":"structure", "required":[ "ResourceId", "TagsList" ], "members":{ "ResourceId":{ "shape":"String", "documentation":"

Specifies the ARN of the trail or event data store to which one or more tags will be added. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" }, "TagsList":{ "shape":"TagsList", "documentation":"

Contains a list of tags, up to a limit of 50

" } }, "documentation":"

Specifies the tags to add to a trail or event data store.

" }, "AddTagsResponse":{ "type":"structure", "members":{ }, "documentation":"

Returns the objects or data if successful. Otherwise, returns an error.

" }, "AdvancedEventSelector":{ "type":"structure", "required":["FieldSelectors"], "members":{ "Name":{ "shape":"SelectorName", "documentation":"

An optional, descriptive name for an advanced event selector, such as \"Log data events for only two S3 buckets\".

" }, "FieldSelectors":{ "shape":"AdvancedFieldSelectors", "documentation":"

Contains all selector statements in an advanced event selector.

" } }, "documentation":"

Advanced event selectors let you create fine-grained selectors for the following CloudTrail event record fields. They help you control costs by logging only those events that are important to you. For more information about advanced event selectors, see Logging data events for trails in the CloudTrail User Guide.

You cannot apply both event selectors and advanced event selectors to a trail.

" }, "AdvancedEventSelectors":{ "type":"list", "member":{"shape":"AdvancedEventSelector"} }, "AdvancedFieldSelector":{ "type":"structure", "required":["Field"], "members":{ "Field":{ "shape":"SelectorField", "documentation":"

A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.

" }, "Equals":{ "shape":"Operator", "documentation":"

An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.

" }, "StartsWith":{ "shape":"Operator", "documentation":"

An operator that includes events that match the first few characters of the event record field specified as the value of Field.

" }, "EndsWith":{ "shape":"Operator", "documentation":"

An operator that includes events that match the last few characters of the event record field specified as the value of Field.

" }, "NotEquals":{ "shape":"Operator", "documentation":"

An operator that excludes events that match the exact value of the event record field specified as the value of Field.

" }, "NotStartsWith":{ "shape":"Operator", "documentation":"

An operator that excludes events that match the first few characters of the event record field specified as the value of Field.

" }, "NotEndsWith":{ "shape":"Operator", "documentation":"

An operator that excludes events that match the last few characters of the event record field specified as the value of Field.

" } }, "documentation":"

A single selector statement in an advanced event selector.

" }, "AdvancedFieldSelectors":{ "type":"list", "member":{"shape":"AdvancedFieldSelector"}, "min":1 }, "Boolean":{"type":"boolean"}, "ByteBuffer":{"type":"blob"}, "CancelQueryRequest":{ "type":"structure", "required":[ "EventDataStore", "QueryId" ], "members":{ "EventDataStore":{ "shape":"EventDataStoreArn", "documentation":"

The ARN (or the ID suffix of the ARN) of an event data store on which the specified query is running.

" }, "QueryId":{ "shape":"UUID", "documentation":"

The ID of the query that you want to cancel. The QueryId comes from the response of a StartQuery operation.

" } } }, "CancelQueryResponse":{ "type":"structure", "required":[ "QueryId", "QueryStatus" ], "members":{ "QueryId":{ "shape":"UUID", "documentation":"

The ID of the canceled query.

" }, "QueryStatus":{ "shape":"QueryStatus", "documentation":"

Shows the status of a query after a CancelQuery request. Typically, the values shown are either RUNNING or CANCELLED.

" } } }, "CloudTrailARNInvalidException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when an operation is called with a trail ARN that is not valid. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

", "exception":true }, "CloudTrailAccessNotEnabledException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when trusted access has not been enabled between CloudTrail and Organizations. For more information, see Enabling Trusted Access with Other Amazon Web Services Services and Prepare For Creating a Trail For Your Organization.

", "exception":true }, "CloudTrailInvalidClientTokenIdException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when a call results in the InvalidClientTokenId error code. This can occur when you are creating or updating a trail to send notifications to an Amazon SNS topic that is in a suspended Amazon Web Services account.

", "exception":true }, "CloudWatchLogsDeliveryUnavailableException":{ "type":"structure", "members":{ }, "documentation":"

Cannot set a CloudWatch Logs delivery for this region.

", "exception":true }, "ConflictException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the specified resource is not ready for an operation. This can occur when you try to run an operation on a resource before CloudTrail has time to fully load the resource. If this exception occurs, wait a few minutes, and then try the operation again.

", "exception":true }, "CreateEventDataStoreRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"EventDataStoreName", "documentation":"

The name of the event data store.

" }, "AdvancedEventSelectors":{ "shape":"AdvancedEventSelectors", "documentation":"

The advanced event selectors to use to select the events for the data store. For more information about how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide.

" }, "MultiRegionEnabled":{ "shape":"Boolean", "documentation":"

Specifies whether the event data store includes events from all regions, or only from the region in which the event data store is created.

" }, "OrganizationEnabled":{ "shape":"Boolean", "documentation":"

Specifies whether an event data store collects events logged for an organization in Organizations.

" }, "RetentionPeriod":{ "shape":"RetentionPeriod", "documentation":"

The retention period of the event data store, in days. You can set a retention period of up to 2555 days, the equivalent of seven years.

" }, "TerminationProtectionEnabled":{ "shape":"TerminationProtectionEnabled", "documentation":"

Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled.

" }, "TagsList":{"shape":"TagsList"} } }, "CreateEventDataStoreResponse":{ "type":"structure", "members":{ "EventDataStoreArn":{ "shape":"EventDataStoreArn", "documentation":"

The ARN of the event data store.

" }, "Name":{ "shape":"EventDataStoreName", "documentation":"

The name of the event data store.

" }, "Status":{ "shape":"EventDataStoreStatus", "documentation":"

The status of event data store creation.

" }, "AdvancedEventSelectors":{ "shape":"AdvancedEventSelectors", "documentation":"

The advanced event selectors that were used to select the events for the data store.

" }, "MultiRegionEnabled":{ "shape":"Boolean", "documentation":"

Indicates whether the event data store collects events from all regions, or only from the region in which it was created.

" }, "OrganizationEnabled":{ "shape":"Boolean", "documentation":"

Indicates whether an event data store is collecting logged events for an organization in Organizations.

" }, "RetentionPeriod":{ "shape":"RetentionPeriod", "documentation":"

The retention period of an event data store, in days.

" }, "TerminationProtectionEnabled":{ "shape":"TerminationProtectionEnabled", "documentation":"

Indicates whether termination protection is enabled for the event data store.

" }, "TagsList":{"shape":"TagsList"}, "CreatedTimestamp":{ "shape":"Date", "documentation":"

The timestamp that shows when the event data store was created.

" }, "UpdatedTimestamp":{ "shape":"Date", "documentation":"

The timestamp that shows when an event data store was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.

" } } }, "CreateTrailRequest":{ "type":"structure", "required":[ "Name", "S3BucketName" ], "members":{ "Name":{ "shape":"String", "documentation":"

Specifies the name of the trail. The name must meet the following requirements:

" }, "S3BucketName":{ "shape":"String", "documentation":"

Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.

" }, "S3KeyPrefix":{ "shape":"String", "documentation":"

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.

" }, "SnsTopicName":{ "shape":"String", "documentation":"

Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.

" }, "IncludeGlobalServiceEvents":{ "shape":"Boolean", "documentation":"

Specifies whether the trail is publishing events from global services such as IAM to the log files.

" }, "IsMultiRegionTrail":{ "shape":"Boolean", "documentation":"

Specifies whether the trail is created in the current region or in all regions. The default is false, which creates a trail only in the region where you are signed in. As a best practice, consider creating trails that log events in all regions.

" }, "EnableLogFileValidation":{ "shape":"Boolean", "documentation":"

Specifies whether log file integrity validation is enabled. The default is false.

When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail does not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.

" }, "CloudWatchLogsLogGroupArn":{ "shape":"String", "documentation":"

Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.

" }, "CloudWatchLogsRoleArn":{ "shape":"String", "documentation":"

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

" }, "KmsKeyId":{ "shape":"String", "documentation":"

Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.

CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.

Examples:

" }, "IsOrganizationTrail":{ "shape":"Boolean", "documentation":"

Specifies whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account. The default is false, and cannot be true unless the call is made on behalf of an Amazon Web Services account that is the management account for an organization in Organizations.

" }, "TagsList":{"shape":"TagsList"} }, "documentation":"

Specifies the settings for each trail.

" }, "CreateTrailResponse":{ "type":"structure", "members":{ "Name":{ "shape":"String", "documentation":"

Specifies the name of the trail.

" }, "S3BucketName":{ "shape":"String", "documentation":"

Specifies the name of the Amazon S3 bucket designated for publishing log files.

" }, "S3KeyPrefix":{ "shape":"String", "documentation":"

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.

" }, "SnsTopicName":{ "shape":"String", "documentation":"

This field is no longer in use. Use SnsTopicARN.

", "deprecated":true }, "SnsTopicARN":{ "shape":"String", "documentation":"

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

" }, "IncludeGlobalServiceEvents":{ "shape":"Boolean", "documentation":"

Specifies whether the trail is publishing events from global services such as IAM to the log files.

" }, "IsMultiRegionTrail":{ "shape":"Boolean", "documentation":"

Specifies whether the trail exists in one region or in all regions.

" }, "TrailARN":{ "shape":"String", "documentation":"

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

" }, "LogFileValidationEnabled":{ "shape":"Boolean", "documentation":"

Specifies whether log file integrity validation is enabled.

" }, "CloudWatchLogsLogGroupArn":{ "shape":"String", "documentation":"

Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.

" }, "CloudWatchLogsRoleArn":{ "shape":"String", "documentation":"

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

" }, "KmsKeyId":{ "shape":"String", "documentation":"

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

" }, "IsOrganizationTrail":{ "shape":"Boolean", "documentation":"

Specifies whether the trail is an organization trail.

" } }, "documentation":"

Returns the objects or data listed below if successful. Otherwise, returns an error.

" }, "DataResource":{ "type":"structure", "members":{ "Type":{ "shape":"String", "documentation":"

The resource type in which you want to log data events. You can specify the following basic event selector resource types:

The following resource types are also availble through advanced event selectors. Basic event selector resource types are valid in advanced event selectors, but advanced event selector resource types are not valid in basic event selectors. For more information, see AdvancedFieldSelector$Field.

" }, "Values":{ "shape":"DataResourceValues", "documentation":"

An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified objects.

" } }, "documentation":"

The Amazon S3 buckets, Lambda functions, or Amazon DynamoDB tables that you specify in your event selectors for your trail to log data events. Data events provide information about the resource operations performed on or within a resource itself. These are also known as data plane operations. You can specify up to 250 data resources for a trail.

The total number of allowed data resources is 250. This number can be distributed between 1 and 5 event selectors, but the total cannot exceed 250 across all selectors.

If you are using advanced event selectors, the maximum total number of values for all conditions, across all advanced event selectors for the trail, is 500.

The following example demonstrates how logging works when you configure logging of all data events for an S3 bucket named bucket-1. In this example, the CloudTrail user specified an empty prefix, and the option to log both Read and Write data events.

  1. A user uploads an image file to bucket-1.

  2. The PutObject API operation is an Amazon S3 object-level API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified an S3 bucket with an empty prefix, events that occur on any object in that bucket are logged. The trail processes and logs the event.

  3. A user uploads an object to an Amazon S3 bucket named arn:aws:s3:::bucket-2.

  4. The PutObject API operation occurred for an object in an S3 bucket that the CloudTrail user didn't specify for the trail. The trail doesn’t log the event.

The following example demonstrates how logging works when you configure logging of Lambda data events for a Lambda function named MyLambdaFunction, but not for all Lambda functions.

  1. A user runs a script that includes a call to the MyLambdaFunction function and the MyOtherLambdaFunction function.

  2. The Invoke API operation on MyLambdaFunction is an Lambda API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified logging data events for MyLambdaFunction, any invocations of that function are logged. The trail processes and logs the event.

  3. The Invoke API operation on MyOtherLambdaFunction is an Lambda API. Because the CloudTrail user did not specify logging data events for all Lambda functions, the Invoke operation for MyOtherLambdaFunction does not match the function specified for the trail. The trail doesn’t log the event.

" }, "DataResourceValues":{ "type":"list", "member":{"shape":"String"} }, "DataResources":{ "type":"list", "member":{"shape":"DataResource"} }, "Date":{"type":"timestamp"}, "DeleteEventDataStoreRequest":{ "type":"structure", "required":["EventDataStore"], "members":{ "EventDataStore":{ "shape":"EventDataStoreArn", "documentation":"

The ARN (or the ID suffix of the ARN) of the event data store to delete.

" } } }, "DeleteEventDataStoreResponse":{ "type":"structure", "members":{ } }, "DeleteTrailRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"String", "documentation":"

Specifies the name or the CloudTrail ARN of the trail to be deleted. The following is the format of a trail ARN. arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" } }, "documentation":"

The request that specifies the name of a trail to delete.

" }, "DeleteTrailResponse":{ "type":"structure", "members":{ }, "documentation":"

Returns the objects or data listed below if successful. Otherwise, returns an error.

" }, "DescribeQueryRequest":{ "type":"structure", "required":[ "EventDataStore", "QueryId" ], "members":{ "EventDataStore":{ "shape":"EventDataStoreArn", "documentation":"

The ARN (or the ID suffix of the ARN) of an event data store on which the specified query was run.

" }, "QueryId":{ "shape":"UUID", "documentation":"

The query ID.

" } } }, "DescribeQueryResponse":{ "type":"structure", "members":{ "QueryId":{ "shape":"UUID", "documentation":"

The ID of the query.

" }, "QueryString":{ "shape":"QueryStatement", "documentation":"

The SQL code of a query.

" }, "QueryStatus":{ "shape":"QueryStatus", "documentation":"

The status of a query. Values for QueryStatus include QUEUED, RUNNING, FINISHED, FAILED, TIMED_OUT, or CANCELLED

" }, "QueryStatistics":{ "shape":"QueryStatisticsForDescribeQuery", "documentation":"

Metadata about a query, including the number of events that were matched, the total number of events scanned, the query run time in milliseconds, and the query's creation time.

" }, "ErrorMessage":{ "shape":"ErrorMessage", "documentation":"

The error message returned if a query failed.

" } } }, "DescribeTrailsRequest":{ "type":"structure", "members":{ "trailNameList":{ "shape":"TrailNameList", "documentation":"

Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

If an empty list is specified, information for the trail in the current region is returned.

If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current region. To return information about a trail in another region, you must specify its trail ARN.

" }, "includeShadowTrails":{ "shape":"Boolean", "documentation":"

Specifies whether to include shadow trails in the response. A shadow trail is the replication in a region of a trail that was created in a different region, or in the case of an organization trail, the replication of an organization trail in member accounts. If you do not include shadow trails, organization trails in a member account and region replication trails will not be returned. The default is true.

" } }, "documentation":"

Returns information about the trail.

" }, "DescribeTrailsResponse":{ "type":"structure", "members":{ "trailList":{ "shape":"TrailList", "documentation":"

The list of trail objects. Trail objects with string values are only returned if values for the objects exist in a trail's configuration. For example, SNSTopicName and SNSTopicARN are only returned in results if a trail is configured to send SNS notifications. Similarly, KMSKeyId only appears in results if a trail's log files are encrypted with KMS customer managed keys.

" } }, "documentation":"

Returns the objects or data listed below if successful. Otherwise, returns an error.

" }, "ErrorMessage":{ "type":"string", "max":1000, "min":4, "pattern":".*" }, "Event":{ "type":"structure", "members":{ "EventId":{ "shape":"String", "documentation":"

The CloudTrail ID of the event returned.

" }, "EventName":{ "shape":"String", "documentation":"

The name of the event returned.

" }, "ReadOnly":{ "shape":"String", "documentation":"

Information about whether the event is a write event or a read event.

" }, "AccessKeyId":{ "shape":"String", "documentation":"

The Amazon Web Services access key ID that was used to sign the request. If the request was made with temporary security credentials, this is the access key ID of the temporary credentials.

" }, "EventTime":{ "shape":"Date", "documentation":"

The date and time of the event returned.

" }, "EventSource":{ "shape":"String", "documentation":"

The Amazon Web Services service to which the request was made.

" }, "Username":{ "shape":"String", "documentation":"

A user name or role name of the requester that called the API in the event returned.

" }, "Resources":{ "shape":"ResourceList", "documentation":"

A list of resources referenced by the event returned.

" }, "CloudTrailEvent":{ "shape":"String", "documentation":"

A JSON string that contains a representation of the event returned.

" } }, "documentation":"

Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.

" }, "EventCategory":{ "type":"string", "enum":["insight"] }, "EventDataStore":{ "type":"structure", "members":{ "EventDataStoreArn":{ "shape":"EventDataStoreArn", "documentation":"

The ARN of the event data store.

" }, "Name":{ "shape":"EventDataStoreName", "documentation":"

The name of the event data store.

" }, "TerminationProtectionEnabled":{ "shape":"TerminationProtectionEnabled", "documentation":"

This field is being deprecated. Indicates whether the event data store is protected from termination.

", "deprecated":true, "deprecatedMessage":"TerminationProtectionEnabled is no longer returned by ListEventDataStores" }, "Status":{ "shape":"EventDataStoreStatus", "documentation":"

This field is being deprecated. The status of an event data store. Values are ENABLED and PENDING_DELETION.

", "deprecated":true, "deprecatedMessage":"Status is no longer returned by ListEventDataStores" }, "AdvancedEventSelectors":{ "shape":"AdvancedEventSelectors", "documentation":"

This field is being deprecated. The advanced event selectors that were used to select events for the data store.

", "deprecated":true, "deprecatedMessage":"AdvancedEventSelectors is no longer returned by ListEventDataStores" }, "MultiRegionEnabled":{ "shape":"Boolean", "documentation":"

This field is being deprecated. Indicates whether the event data store includes events from all regions, or only from the region in which it was created.

", "deprecated":true, "deprecatedMessage":"MultiRegionEnabled is no longer returned by ListEventDataStores" }, "OrganizationEnabled":{ "shape":"Boolean", "documentation":"

This field is being deprecated. Indicates that an event data store is collecting logged events for an organization.

", "deprecated":true, "deprecatedMessage":"OrganizationEnabled is no longer returned by ListEventDataStores" }, "RetentionPeriod":{ "shape":"RetentionPeriod", "documentation":"

This field is being deprecated. The retention period, in days.

", "deprecated":true, "deprecatedMessage":"RetentionPeriod is no longer returned by ListEventDataStores" }, "CreatedTimestamp":{ "shape":"Date", "documentation":"

This field is being deprecated. The timestamp of the event data store's creation.

", "deprecated":true, "deprecatedMessage":"CreatedTimestamp is no longer returned by ListEventDataStores" }, "UpdatedTimestamp":{ "shape":"Date", "documentation":"

This field is being deprecated. The timestamp showing when an event data store was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.

", "deprecated":true, "deprecatedMessage":"UpdatedTimestamp is no longer returned by ListEventDataStores" } }, "documentation":"

A storage lake of event data against which you can run complex SQL-based queries. An event data store can include events that you have logged on your account from the last 90 to 2555 days (about three months to up to seven years). To select events for an event data store, use advanced event selectors.

" }, "EventDataStoreARNInvalidException":{ "type":"structure", "members":{ }, "documentation":"

The specified event data store ARN is not valid or does not map to an event data store in your account.

", "exception":true }, "EventDataStoreAlreadyExistsException":{ "type":"structure", "members":{ }, "documentation":"

An event data store with that name already exists.

", "exception":true }, "EventDataStoreArn":{ "type":"string", "max":256, "min":3, "pattern":"^[a-zA-Z0-9._/\\-:]+$" }, "EventDataStoreMaxLimitExceededException":{ "type":"structure", "members":{ }, "documentation":"

Your account has used the maximum number of event data stores.

", "exception":true }, "EventDataStoreName":{ "type":"string", "max":128, "min":3, "pattern":"^[a-zA-Z0-9._\\-]+$" }, "EventDataStoreNotFoundException":{ "type":"structure", "members":{ }, "documentation":"

The specified event data store was not found.

", "exception":true }, "EventDataStoreStatus":{ "type":"string", "enum":[ "CREATED", "ENABLED", "PENDING_DELETION" ] }, "EventDataStoreTerminationProtectedException":{ "type":"structure", "members":{ }, "documentation":"

The event data store cannot be deleted because termination protection is enabled for it.

", "exception":true }, "EventDataStores":{ "type":"list", "member":{"shape":"EventDataStore"} }, "EventSelector":{ "type":"structure", "members":{ "ReadWriteType":{ "shape":"ReadWriteType", "documentation":"

Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput is a read-only API operation and RunInstances is a write-only API operation.

By default, the value is All.

" }, "IncludeManagementEvents":{ "shape":"Boolean", "documentation":"

Specify if you want your event selector to include management events for your trail.

For more information, see Management Events in the CloudTrail User Guide.

By default, the value is true.

The first copy of management events is free. You are charged for additional copies of management events that you are logging on any subsequent trail in the same region. For more information about CloudTrail pricing, see CloudTrail Pricing.

" }, "DataResources":{ "shape":"DataResources", "documentation":"

CloudTrail supports data event logging for Amazon S3 objects, Lambda functions, and Amazon DynamoDB tables with basic event selectors. You can specify up to 250 resources for an individual event selector, but the total number of data resources cannot exceed 250 across all event selectors in a trail. This limit does not apply if you configure resource logging for all data events.

For more information, see Data Events and Limits in CloudTrail in the CloudTrail User Guide.

" }, "ExcludeManagementEventSources":{ "shape":"ExcludeManagementEventSources", "documentation":"

An optional list of service event sources from which you do not want management events to be logged on your trail. In this release, the list can be empty (disables the filter), or it can filter out Key Management Service or Amazon RDS Data API events by containing kms.amazonaws.com or rdsdata.amazonaws.com. By default, ExcludeManagementEventSources is empty, and KMS and Amazon RDS Data API events are logged to your trail. You can exclude management event sources only in regions that support the event source.

" } }, "documentation":"

Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event.

You can configure up to five event selectors for a trail.

You cannot apply both event selectors and advanced event selectors to a trail.

" }, "EventSelectors":{ "type":"list", "member":{"shape":"EventSelector"} }, "EventsList":{ "type":"list", "member":{"shape":"Event"} }, "ExcludeManagementEventSources":{ "type":"list", "member":{"shape":"String"} }, "GetEventDataStoreRequest":{ "type":"structure", "required":["EventDataStore"], "members":{ "EventDataStore":{ "shape":"EventDataStoreArn", "documentation":"

The ARN (or ID suffix of the ARN) of the event data store about which you want information.

" } } }, "GetEventDataStoreResponse":{ "type":"structure", "members":{ "EventDataStoreArn":{ "shape":"EventDataStoreArn", "documentation":"

The event data store Amazon Resource Number (ARN).

" }, "Name":{ "shape":"EventDataStoreName", "documentation":"

The name of the event data store.

" }, "Status":{ "shape":"EventDataStoreStatus", "documentation":"

The status of an event data store. Values can be ENABLED and PENDING_DELETION.

" }, "AdvancedEventSelectors":{ "shape":"AdvancedEventSelectors", "documentation":"

The advanced event selectors used to select events for the data store.

" }, "MultiRegionEnabled":{ "shape":"Boolean", "documentation":"

Indicates whether the event data store includes events from all regions, or only from the region in which it was created.

" }, "OrganizationEnabled":{ "shape":"Boolean", "documentation":"

Indicates whether an event data store is collecting logged events for an organization in Organizations.

" }, "RetentionPeriod":{ "shape":"RetentionPeriod", "documentation":"

The retention period of the event data store, in days.

" }, "TerminationProtectionEnabled":{ "shape":"TerminationProtectionEnabled", "documentation":"

Indicates that termination protection is enabled.

" }, "CreatedTimestamp":{ "shape":"Date", "documentation":"

The timestamp of the event data store's creation.

" }, "UpdatedTimestamp":{ "shape":"Date", "documentation":"

Shows the time that an event data store was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.

" } } }, "GetEventSelectorsRequest":{ "type":"structure", "required":["TrailName"], "members":{ "TrailName":{ "shape":"String", "documentation":"

Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:

If you specify a trail ARN, it must be in the format:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" } } }, "GetEventSelectorsResponse":{ "type":"structure", "members":{ "TrailARN":{ "shape":"String", "documentation":"

The specified trail ARN that has the event selectors.

" }, "EventSelectors":{ "shape":"EventSelectors", "documentation":"

The event selectors that are configured for the trail.

" }, "AdvancedEventSelectors":{ "shape":"AdvancedEventSelectors", "documentation":"

The advanced event selectors that are configured for the trail.

" } } }, "GetInsightSelectorsRequest":{ "type":"structure", "required":["TrailName"], "members":{ "TrailName":{ "shape":"String", "documentation":"

Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:

If you specify a trail ARN, it must be in the format:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" } } }, "GetInsightSelectorsResponse":{ "type":"structure", "members":{ "TrailARN":{ "shape":"String", "documentation":"

The Amazon Resource Name (ARN) of a trail for which you want to get Insights selectors.

" }, "InsightSelectors":{ "shape":"InsightSelectors", "documentation":"

A JSON string that contains the insight types you want to log on a trail. In this release, ApiErrorRateInsight and ApiCallRateInsight are supported as insight types.

" } } }, "GetQueryResultsRequest":{ "type":"structure", "required":[ "EventDataStore", "QueryId" ], "members":{ "EventDataStore":{ "shape":"EventDataStoreArn", "documentation":"

The ARN (or ID suffix of the ARN) of the event data store against which the query was run.

" }, "QueryId":{ "shape":"UUID", "documentation":"

The ID of the query for which you want to get results.

" }, "NextToken":{ "shape":"PaginationToken", "documentation":"

A token you can use to get the next page of query results.

" }, "MaxQueryResults":{ "shape":"MaxQueryResults", "documentation":"

The maximum number of query results to display on a single page.

" } } }, "GetQueryResultsResponse":{ "type":"structure", "members":{ "QueryStatus":{ "shape":"QueryStatus", "documentation":"

The status of the query. Values include QUEUED, RUNNING, FINISHED, FAILED, TIMED_OUT, or CANCELLED.

" }, "QueryStatistics":{ "shape":"QueryStatistics", "documentation":"

Shows the count of query results.

" }, "QueryResultRows":{ "shape":"QueryResultRows", "documentation":"

Contains the individual event results of the query.

" }, "NextToken":{ "shape":"PaginationToken", "documentation":"

A token you can use to get the next page of query results.

" }, "ErrorMessage":{ "shape":"ErrorMessage", "documentation":"

The error message returned if a query failed.

" } } }, "GetTrailRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"String", "documentation":"

The name or the Amazon Resource Name (ARN) of the trail for which you want to retrieve settings information.

" } } }, "GetTrailResponse":{ "type":"structure", "members":{ "Trail":{"shape":"Trail"} } }, "GetTrailStatusRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"String", "documentation":"

Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a shadow trail (a replication of the trail in another region), you must specify its ARN. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" } }, "documentation":"

The name of a trail about which you want the current status.

" }, "GetTrailStatusResponse":{ "type":"structure", "members":{ "IsLogging":{ "shape":"Boolean", "documentation":"

Whether the CloudTrail trail is currently logging Amazon Web Services API calls.

" }, "LatestDeliveryError":{ "shape":"String", "documentation":"

Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files to the designated bucket. For more information, see Error Responses in the Amazon S3 API Reference.

This error occurs only when there is a problem with the destination S3 bucket, and does not occur for requests that time out. To resolve the issue, create a new bucket, and then call UpdateTrail to specify the new bucket; or fix the existing objects so that CloudTrail can again write to the bucket.

" }, "LatestNotificationError":{ "shape":"String", "documentation":"

Displays any Amazon SNS error that CloudTrail encountered when attempting to send a notification. For more information about Amazon SNS errors, see the Amazon SNS Developer Guide.

" }, "LatestDeliveryTime":{ "shape":"Date", "documentation":"

Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.

" }, "LatestNotificationTime":{ "shape":"Date", "documentation":"

Specifies the date and time of the most recent Amazon SNS notification that CloudTrail has written a new log file to an account's Amazon S3 bucket.

" }, "StartLoggingTime":{ "shape":"Date", "documentation":"

Specifies the most recent date and time when CloudTrail started recording API calls for an Amazon Web Services account.

" }, "StopLoggingTime":{ "shape":"Date", "documentation":"

Specifies the most recent date and time when CloudTrail stopped recording API calls for an Amazon Web Services account.

" }, "LatestCloudWatchLogsDeliveryError":{ "shape":"String", "documentation":"

Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.

" }, "LatestCloudWatchLogsDeliveryTime":{ "shape":"Date", "documentation":"

Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.

" }, "LatestDigestDeliveryTime":{ "shape":"Date", "documentation":"

Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.

" }, "LatestDigestDeliveryError":{ "shape":"String", "documentation":"

Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver a digest file to the designated bucket. For more information, see Error Responses in the Amazon S3 API Reference.

This error occurs only when there is a problem with the destination S3 bucket, and does not occur for requests that time out. To resolve the issue, create a new bucket, and then call UpdateTrail to specify the new bucket; or fix the existing objects so that CloudTrail can again write to the bucket.

" }, "LatestDeliveryAttemptTime":{ "shape":"String", "documentation":"

This field is no longer in use.

" }, "LatestNotificationAttemptTime":{ "shape":"String", "documentation":"

This field is no longer in use.

" }, "LatestNotificationAttemptSucceeded":{ "shape":"String", "documentation":"

This field is no longer in use.

" }, "LatestDeliveryAttemptSucceeded":{ "shape":"String", "documentation":"

This field is no longer in use.

" }, "TimeLoggingStarted":{ "shape":"String", "documentation":"

This field is no longer in use.

" }, "TimeLoggingStopped":{ "shape":"String", "documentation":"

This field is no longer in use.

" } }, "documentation":"

Returns the objects or data listed below if successful. Otherwise, returns an error.

" }, "InactiveEventDataStoreException":{ "type":"structure", "members":{ }, "documentation":"

The event data store is inactive.

", "exception":true }, "InactiveQueryException":{ "type":"structure", "members":{ }, "documentation":"

The specified query cannot be canceled because it is in the FINISHED, FAILED, TIMED_OUT, or CANCELLED state.

", "exception":true }, "InsightNotEnabledException":{ "type":"structure", "members":{ }, "documentation":"

If you run GetInsightSelectors on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException.

", "exception":true }, "InsightSelector":{ "type":"structure", "members":{ "InsightType":{ "shape":"InsightType", "documentation":"

The type of insights to log on a trail. ApiCallRateInsight and ApiErrorRateInsight are valid insight types.

" } }, "documentation":"

A JSON string that contains a list of insight types that are logged on a trail.

" }, "InsightSelectors":{ "type":"list", "member":{"shape":"InsightSelector"} }, "InsightType":{ "type":"string", "enum":[ "ApiCallRateInsight", "ApiErrorRateInsight" ] }, "InsufficientDependencyServiceAccessPermissionException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the IAM user or role that is used to create the organization resource lacks one or more required permissions for creating an organization resource in a required service.

", "exception":true }, "InsufficientEncryptionPolicyException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.

", "exception":true }, "InsufficientS3BucketPolicyException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the policy on the S3 bucket is not sufficient.

", "exception":true }, "InsufficientSnsTopicPolicyException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the policy on the Amazon SNS topic is not sufficient.

", "exception":true }, "Integer":{"type":"integer"}, "InvalidCloudWatchLogsLogGroupArnException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the provided CloudWatch Logs log group is not valid.

", "exception":true }, "InvalidCloudWatchLogsRoleArnException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the provided role is not valid.

", "exception":true }, "InvalidDateRangeException":{ "type":"structure", "members":{ }, "documentation":"

A date range for the query was specified that is not valid. Be sure that the start time is chronologically before the end time. For more information about writing a query, see Create or edit a query in the CloudTrail User Guide.

", "exception":true }, "InvalidEventCategoryException":{ "type":"structure", "members":{ }, "documentation":"

Occurs if an event category that is not valid is specified as a value of EventCategory.

", "exception":true }, "InvalidEventDataStoreStatusException":{ "type":"structure", "members":{ }, "documentation":"

The event data store is not in a status that supports the operation.

", "exception":true }, "InvalidEventSelectorsException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the PutEventSelectors operation is called with a number of event selectors, advanced event selectors, or data resources that is not valid. The combination of event selectors or advanced event selectors and data resources is not valid. A trail can have up to 5 event selectors. If a trail uses advanced event selectors, a maximum of 500 total values for all conditions in all advanced event selectors is allowed. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.

You can:

", "exception":true }, "InvalidHomeRegionException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when an operation is called on a trail from a region other than the region in which the trail was created.

", "exception":true }, "InvalidInsightSelectorsException":{ "type":"structure", "members":{ }, "documentation":"

The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors or GetInsightSelectors request is not valid, or the specified insight type in the InsightSelectors statement is not a valid insight type.

", "exception":true }, "InvalidKmsKeyIdException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the KMS key ARN is not valid.

", "exception":true }, "InvalidLookupAttributesException":{ "type":"structure", "members":{ }, "documentation":"

Occurs when a lookup attribute is specified that is not valid.

", "exception":true }, "InvalidMaxResultsException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown if the limit specified is not valid.

", "exception":true }, "InvalidNextTokenException":{ "type":"structure", "members":{ }, "documentation":"

A token that is not valid, or a token that was previously used in a request with different parameters. This exception is thrown if the token is not valid.

", "exception":true }, "InvalidParameterCombinationException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the combination of parameters provided is not valid.

", "exception":true }, "InvalidParameterException":{ "type":"structure", "members":{ }, "documentation":"

The request includes a parameter that is not valid.

", "exception":true }, "InvalidQueryStatementException":{ "type":"structure", "members":{ }, "documentation":"

The query that was submitted has validation errors, or uses incorrect syntax or unsupported keywords. For more information about writing a query, see Create or edit a query in the CloudTrail User Guide.

", "exception":true }, "InvalidQueryStatusException":{ "type":"structure", "members":{ }, "documentation":"

The query status is not valid for the operation.

", "exception":true }, "InvalidS3BucketNameException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the provided S3 bucket name is not valid.

", "exception":true }, "InvalidS3PrefixException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the provided S3 prefix is not valid.

", "exception":true }, "InvalidSnsTopicNameException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the provided SNS topic name is not valid.

", "exception":true }, "InvalidTagParameterException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the specified tag key or values are not valid. It can also occur if there are duplicate tags or too many tags on the resource.

", "exception":true }, "InvalidTimeRangeException":{ "type":"structure", "members":{ }, "documentation":"

Occurs if the timestamp values are not valid. Either the start time occurs after the end time, or the time range is outside the range of possible values.

", "exception":true }, "InvalidTokenException":{ "type":"structure", "members":{ }, "documentation":"

Reserved for future use.

", "exception":true }, "InvalidTrailNameException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:

", "exception":true }, "KmsException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.

", "exception":true }, "KmsKeyDisabledException":{ "type":"structure", "members":{ }, "documentation":"

This exception is no longer in use.

", "deprecated":true, "exception":true }, "KmsKeyNotFoundException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the KMS key does not exist, when the S3 bucket and the KMS key are not in the same region, or when the KMS key associated with the Amazon SNS topic either does not exist or is not in the same region.

", "exception":true }, "ListEventDataStoresMaxResultsCount":{ "type":"integer", "max":1000, "min":1 }, "ListEventDataStoresRequest":{ "type":"structure", "members":{ "NextToken":{ "shape":"PaginationToken", "documentation":"

A token you can use to get the next page of event data store results.

" }, "MaxResults":{ "shape":"ListEventDataStoresMaxResultsCount", "documentation":"

The maximum number of event data stores to display on a single page.

" } } }, "ListEventDataStoresResponse":{ "type":"structure", "members":{ "EventDataStores":{ "shape":"EventDataStores", "documentation":"

Contains information about event data stores in the account, in the current region.

" }, "NextToken":{ "shape":"PaginationToken", "documentation":"

A token you can use to get the next page of results.

" } } }, "ListPublicKeysRequest":{ "type":"structure", "members":{ "StartTime":{ "shape":"Date", "documentation":"

Optionally specifies, in UTC, the start of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used, and the current public key is returned.

" }, "EndTime":{ "shape":"Date", "documentation":"

Optionally specifies, in UTC, the end of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used.

" }, "NextToken":{ "shape":"String", "documentation":"

Reserved for future use.

" } }, "documentation":"

Requests the public keys for a specified time range.

" }, "ListPublicKeysResponse":{ "type":"structure", "members":{ "PublicKeyList":{ "shape":"PublicKeyList", "documentation":"

Contains an array of PublicKey objects.

The returned public keys may have validity time ranges that overlap.

" }, "NextToken":{ "shape":"String", "documentation":"

Reserved for future use.

" } }, "documentation":"

Returns the objects or data listed below if successful. Otherwise, returns an error.

" }, "ListQueriesMaxResultsCount":{ "type":"integer", "max":1000, "min":1 }, "ListQueriesRequest":{ "type":"structure", "required":["EventDataStore"], "members":{ "EventDataStore":{ "shape":"EventDataStoreArn", "documentation":"

The ARN (or the ID suffix of the ARN) of an event data store on which queries were run.

" }, "NextToken":{ "shape":"PaginationToken", "documentation":"

A token you can use to get the next page of results.

" }, "MaxResults":{ "shape":"ListQueriesMaxResultsCount", "documentation":"

The maximum number of queries to show on a page.

" }, "StartTime":{ "shape":"Date", "documentation":"

Use with EndTime to bound a ListQueries request, and limit its results to only those queries run within a specified time period.

" }, "EndTime":{ "shape":"Date", "documentation":"

Use with StartTime to bound a ListQueries request, and limit its results to only those queries run within a specified time period.

" }, "QueryStatus":{ "shape":"QueryStatus", "documentation":"

The status of queries that you want to return in results. Valid values for QueryStatus include QUEUED, RUNNING, FINISHED, FAILED, TIMED_OUT, or CANCELLED.

" } } }, "ListQueriesResponse":{ "type":"structure", "members":{ "Queries":{ "shape":"Queries", "documentation":"

Lists matching query results, and shows query ID, status, and creation time of each query.

" }, "NextToken":{ "shape":"PaginationToken", "documentation":"

A token you can use to get the next page of results.

" } } }, "ListTagsRequest":{ "type":"structure", "required":["ResourceIdList"], "members":{ "ResourceIdList":{ "shape":"ResourceIdList", "documentation":"

Specifies a list of trail and event data store ARNs whose tags will be listed. The list has a limit of 20 ARNs.

" }, "NextToken":{ "shape":"String", "documentation":"

Reserved for future use.

" } }, "documentation":"

Specifies a list of tags to return.

" }, "ListTagsResponse":{ "type":"structure", "members":{ "ResourceTagList":{ "shape":"ResourceTagList", "documentation":"

A list of resource tags.

" }, "NextToken":{ "shape":"String", "documentation":"

Reserved for future use.

" } }, "documentation":"

Returns the objects or data listed below if successful. Otherwise, returns an error.

" }, "ListTrailsRequest":{ "type":"structure", "members":{ "NextToken":{ "shape":"String", "documentation":"

The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.

" } } }, "ListTrailsResponse":{ "type":"structure", "members":{ "Trails":{ "shape":"Trails", "documentation":"

Returns the name, ARN, and home region of trails in the current account.

" }, "NextToken":{ "shape":"String", "documentation":"

The token to use to get the next page of results after a previous API call. If the token does not appear, there are no more results to return. The token must be passed in with the same parameters as the previous call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.

" } } }, "Long":{"type":"long"}, "LookupAttribute":{ "type":"structure", "required":[ "AttributeKey", "AttributeValue" ], "members":{ "AttributeKey":{ "shape":"LookupAttributeKey", "documentation":"

Specifies an attribute on which to filter the events returned.

" }, "AttributeValue":{ "shape":"String", "documentation":"

Specifies a value for the specified AttributeKey.

" } }, "documentation":"

Specifies an attribute and value that filter the events returned.

" }, "LookupAttributeKey":{ "type":"string", "enum":[ "EventId", "EventName", "ReadOnly", "Username", "ResourceType", "ResourceName", "EventSource", "AccessKeyId" ] }, "LookupAttributesList":{ "type":"list", "member":{"shape":"LookupAttribute"} }, "LookupEventsRequest":{ "type":"structure", "members":{ "LookupAttributes":{ "shape":"LookupAttributesList", "documentation":"

Contains a list of lookup attributes. Currently the list can contain only one item.

" }, "StartTime":{ "shape":"Date", "documentation":"

Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.

" }, "EndTime":{ "shape":"Date", "documentation":"

Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.

" }, "EventCategory":{ "shape":"EventCategory", "documentation":"

Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example, if you do not specify insight as the value of EventCategory, no Insights events are returned.

" }, "MaxResults":{ "shape":"MaxResults", "documentation":"

The number of events to return. Possible values are 1 through 50. The default is 50.

" }, "NextToken":{ "shape":"NextToken", "documentation":"

The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.

" } }, "documentation":"

Contains a request for LookupEvents.

" }, "LookupEventsResponse":{ "type":"structure", "members":{ "Events":{ "shape":"EventsList", "documentation":"

A list of events returned based on the lookup attributes specified and the CloudTrail event. The events list is sorted by time. The most recent event is listed first.

" }, "NextToken":{ "shape":"NextToken", "documentation":"

The token to use to get the next page of results after a previous API call. If the token does not appear, there are no more results to return. The token must be passed in with the same parameters as the previous call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.

" } }, "documentation":"

Contains a response to a LookupEvents action.

" }, "MaxConcurrentQueriesException":{ "type":"structure", "members":{ }, "documentation":"

You are already running the maximum number of concurrent queries. Wait a minute for some queries to finish, and then run the query again.

", "exception":true }, "MaxQueryResults":{ "type":"integer", "max":1000, "min":1 }, "MaxResults":{ "type":"integer", "max":50, "min":1 }, "MaximumNumberOfTrailsExceededException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the maximum number of trails is reached.

", "exception":true }, "NextToken":{"type":"string"}, "NotOrganizationMasterAccountException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the Amazon Web Services account making the request to create or update an organization trail or event data store is not the management account for an organization in Organizations. For more information, see Prepare For Creating a Trail For Your Organization or Create an event data store.

", "exception":true }, "OperationNotPermittedException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the requested operation is not permitted.

", "exception":true }, "Operator":{ "type":"list", "member":{"shape":"OperatorValue"}, "min":1 }, "OperatorValue":{ "type":"string", "max":2048, "min":1, "pattern":".+" }, "OrganizationNotInAllFeaturesModeException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when Organizations is not configured to support all features. All features must be enabled in Organizations to support creating an organization trail or event data store.

", "exception":true }, "OrganizationsNotInUseException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the request is made from an Amazon Web Services account that is not a member of an organization. To make this request, sign in using the credentials of an account that belongs to an organization.

", "exception":true }, "PaginationToken":{ "type":"string", "max":1000, "min":4, "pattern":".*" }, "PublicKey":{ "type":"structure", "members":{ "Value":{ "shape":"ByteBuffer", "documentation":"

The DER encoded public key value in PKCS#1 format.

" }, "ValidityStartTime":{ "shape":"Date", "documentation":"

The starting time of validity of the public key.

" }, "ValidityEndTime":{ "shape":"Date", "documentation":"

The ending time of validity of the public key.

" }, "Fingerprint":{ "shape":"String", "documentation":"

The fingerprint of the public key.

" } }, "documentation":"

Contains information about a returned public key.

" }, "PublicKeyList":{ "type":"list", "member":{"shape":"PublicKey"} }, "PutEventSelectorsRequest":{ "type":"structure", "required":["TrailName"], "members":{ "TrailName":{ "shape":"String", "documentation":"

Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:

If you specify a trail ARN, it must be in the following format.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" }, "EventSelectors":{ "shape":"EventSelectors", "documentation":"

Specifies the settings for your event selectors. You can configure up to five event selectors for a trail. You can use either EventSelectors or AdvancedEventSelectors in a PutEventSelectors request, but not both. If you apply EventSelectors to a trail, any existing AdvancedEventSelectors are overwritten.

" }, "AdvancedEventSelectors":{ "shape":"AdvancedEventSelectors", "documentation":"

Specifies the settings for advanced event selectors. You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. You can use either AdvancedEventSelectors or EventSelectors, but not both. If you apply AdvancedEventSelectors to a trail, any existing EventSelectors are overwritten. For more information about advanced event selectors, see Logging data events for trails in the CloudTrail User Guide.

" } } }, "PutEventSelectorsResponse":{ "type":"structure", "members":{ "TrailARN":{ "shape":"String", "documentation":"

Specifies the ARN of the trail that was updated with event selectors. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" }, "EventSelectors":{ "shape":"EventSelectors", "documentation":"

Specifies the event selectors configured for your trail.

" }, "AdvancedEventSelectors":{ "shape":"AdvancedEventSelectors", "documentation":"

Specifies the advanced event selectors configured for your trail.

" } } }, "PutInsightSelectorsRequest":{ "type":"structure", "required":[ "TrailName", "InsightSelectors" ], "members":{ "TrailName":{ "shape":"String", "documentation":"

The name of the CloudTrail trail for which you want to change or add Insights selectors.

" }, "InsightSelectors":{ "shape":"InsightSelectors", "documentation":"

A JSON string that contains the insight types you want to log on a trail. ApiCallRateInsight and ApiErrorRateInsight are valid insight types.

" } } }, "PutInsightSelectorsResponse":{ "type":"structure", "members":{ "TrailARN":{ "shape":"String", "documentation":"

The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.

" }, "InsightSelectors":{ "shape":"InsightSelectors", "documentation":"

A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in this release are ApiErrorRateInsight and ApiCallRateInsight.

" } } }, "Queries":{ "type":"list", "member":{"shape":"Query"} }, "Query":{ "type":"structure", "members":{ "QueryId":{ "shape":"UUID", "documentation":"

The ID of a query.

" }, "QueryStatus":{ "shape":"QueryStatus", "documentation":"

The status of the query. This can be QUEUED, RUNNING, FINISHED, FAILED, TIMED_OUT, or CANCELLED.

" }, "CreationTime":{ "shape":"Date", "documentation":"

The creation time of a query.

" } }, "documentation":"

A SQL string of criteria about events that you want to collect in an event data store.

" }, "QueryIdNotFoundException":{ "type":"structure", "members":{ }, "documentation":"

The query ID does not exist or does not map to a query.

", "exception":true }, "QueryResultColumn":{ "type":"map", "key":{"shape":"QueryResultKey"}, "value":{"shape":"QueryResultValue"} }, "QueryResultKey":{"type":"string"}, "QueryResultRow":{ "type":"list", "member":{"shape":"QueryResultColumn"} }, "QueryResultRows":{ "type":"list", "member":{"shape":"QueryResultRow"} }, "QueryResultValue":{"type":"string"}, "QueryStatement":{ "type":"string", "max":10000, "min":1, "pattern":"(?s).*" }, "QueryStatistics":{ "type":"structure", "members":{ "ResultsCount":{ "shape":"Integer", "documentation":"

The number of results returned.

" }, "TotalResultsCount":{ "shape":"Integer", "documentation":"

The total number of results returned by a query.

" }, "BytesScanned":{ "shape":"Long", "documentation":"

The total bytes that the query scanned in the event data store. This value matches the number of bytes for which your account is billed for the query, unless the query is still running.

" } }, "documentation":"

Metadata about a query, such as the number of results.

" }, "QueryStatisticsForDescribeQuery":{ "type":"structure", "members":{ "EventsMatched":{ "shape":"Long", "documentation":"

The number of events that matched a query.

" }, "EventsScanned":{ "shape":"Long", "documentation":"

The number of events that the query scanned in the event data store.

" }, "BytesScanned":{ "shape":"Long", "documentation":"

The total bytes that the query scanned in the event data store. This value matches the number of bytes for which your account is billed for the query, unless the query is still running.

" }, "ExecutionTimeInMillis":{ "shape":"Integer", "documentation":"

The query's run time, in milliseconds.

" }, "CreationTime":{ "shape":"Date", "documentation":"

The creation time of the query.

" } }, "documentation":"

Gets metadata about a query, including the number of events that were matched, the total number of events scanned, the query run time in milliseconds, and the query's creation time.

" }, "QueryStatus":{ "type":"string", "enum":[ "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED", "TIMED_OUT" ] }, "ReadWriteType":{ "type":"string", "enum":[ "ReadOnly", "WriteOnly", "All" ] }, "RemoveTagsRequest":{ "type":"structure", "required":[ "ResourceId", "TagsList" ], "members":{ "ResourceId":{ "shape":"String", "documentation":"

Specifies the ARN of the trail or event data store from which tags should be removed.

Example trail ARN format: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

Example event data store ARN format: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE

" }, "TagsList":{ "shape":"TagsList", "documentation":"

Specifies a list of tags to be removed.

" } }, "documentation":"

Specifies the tags to remove from a trail or event data store.

" }, "RemoveTagsResponse":{ "type":"structure", "members":{ }, "documentation":"

Returns the objects or data listed below if successful. Otherwise, returns an error.

" }, "Resource":{ "type":"structure", "members":{ "ResourceType":{ "shape":"String", "documentation":"

The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for Amazon RDS, and AccessKey for IAM. To learn more about how to look up and filter events by the resource types supported for a service, see Filtering CloudTrail Events.

" }, "ResourceName":{ "shape":"String", "documentation":"

The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be \"auto-scaling-test-group\" for an Auto Scaling Group or \"i-1234567\" for an EC2 Instance.

" } }, "documentation":"

Specifies the type and name of a resource referenced by an event.

" }, "ResourceIdList":{ "type":"list", "member":{"shape":"String"} }, "ResourceList":{ "type":"list", "member":{"shape":"Resource"}, "documentation":"

A list of resources referenced by the event returned.

" }, "ResourceNotFoundException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the specified resource is not found.

", "exception":true }, "ResourceTag":{ "type":"structure", "members":{ "ResourceId":{ "shape":"String", "documentation":"

Specifies the ARN of the resource.

" }, "TagsList":{ "shape":"TagsList", "documentation":"

A list of tags.

" } }, "documentation":"

A resource tag.

" }, "ResourceTagList":{ "type":"list", "member":{"shape":"ResourceTag"} }, "ResourceTypeNotSupportedException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the specified resource type is not supported by CloudTrail.

", "exception":true }, "RestoreEventDataStoreRequest":{ "type":"structure", "required":["EventDataStore"], "members":{ "EventDataStore":{ "shape":"EventDataStoreArn", "documentation":"

The ARN (or the ID suffix of the ARN) of the event data store that you want to restore.

" } } }, "RestoreEventDataStoreResponse":{ "type":"structure", "members":{ "EventDataStoreArn":{ "shape":"EventDataStoreArn", "documentation":"

The event data store ARN.

" }, "Name":{ "shape":"EventDataStoreName", "documentation":"

The name of the event data store.

" }, "Status":{ "shape":"EventDataStoreStatus", "documentation":"

The status of the event data store.

" }, "AdvancedEventSelectors":{ "shape":"AdvancedEventSelectors", "documentation":"

The advanced event selectors that were used to select events.

" }, "MultiRegionEnabled":{ "shape":"Boolean", "documentation":"

Indicates whether the event data store is collecting events from all regions, or only from the region in which the event data store was created.

" }, "OrganizationEnabled":{ "shape":"Boolean", "documentation":"

Indicates whether an event data store is collecting logged events for an organization in Organizations.

" }, "RetentionPeriod":{ "shape":"RetentionPeriod", "documentation":"

The retention period, in days.

" }, "TerminationProtectionEnabled":{ "shape":"TerminationProtectionEnabled", "documentation":"

Indicates that termination protection is enabled and the event data store cannot be automatically deleted.

" }, "CreatedTimestamp":{ "shape":"Date", "documentation":"

The timestamp of an event data store's creation.

" }, "UpdatedTimestamp":{ "shape":"Date", "documentation":"

The timestamp that shows when an event data store was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.

" } } }, "RetentionPeriod":{ "type":"integer", "max":2557, "min":7 }, "S3BucketDoesNotExistException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the specified S3 bucket does not exist.

", "exception":true }, "SelectorField":{ "type":"string", "max":1000, "min":1, "pattern":"[\\w|\\d|\\.|_]+" }, "SelectorName":{ "type":"string", "max":1000, "min":0, "pattern":".*" }, "StartLoggingRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"String", "documentation":"

Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs Amazon Web Services API calls. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" } }, "documentation":"

The request to CloudTrail to start logging Amazon Web Services API calls for an account.

" }, "StartLoggingResponse":{ "type":"structure", "members":{ }, "documentation":"

Returns the objects or data listed below if successful. Otherwise, returns an error.

" }, "StartQueryRequest":{ "type":"structure", "required":["QueryStatement"], "members":{ "QueryStatement":{ "shape":"QueryStatement", "documentation":"

The SQL code of your query.

" } } }, "StartQueryResponse":{ "type":"structure", "members":{ "QueryId":{ "shape":"UUID", "documentation":"

The ID of the started query.

" } } }, "StopLoggingRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"String", "documentation":"

Specifies the name or the CloudTrail ARN of the trail for which CloudTrail will stop logging Amazon Web Services API calls. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" } }, "documentation":"

Passes the request to CloudTrail to stop logging Amazon Web Services API calls for the specified account.

" }, "StopLoggingResponse":{ "type":"structure", "members":{ }, "documentation":"

Returns the objects or data listed below if successful. Otherwise, returns an error.

" }, "String":{"type":"string"}, "Tag":{ "type":"structure", "required":["Key"], "members":{ "Key":{ "shape":"TagKey", "documentation":"

The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.

" }, "Value":{ "shape":"TagValue", "documentation":"

The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.

" } }, "documentation":"

A custom key-value pair associated with a resource such as a CloudTrail trail.

" }, "TagKey":{ "type":"string", "max":128, "min":1 }, "TagValue":{ "type":"string", "max":256, "min":1 }, "TagsLimitExceededException":{ "type":"structure", "members":{ }, "documentation":"

The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.

", "exception":true }, "TagsList":{ "type":"list", "member":{"shape":"Tag"}, "documentation":"

A list of tags.

", "max":200 }, "TerminationProtectionEnabled":{"type":"boolean"}, "Trail":{ "type":"structure", "members":{ "Name":{ "shape":"String", "documentation":"

Name of the trail set by calling CreateTrail. The maximum length is 128 characters.

" }, "S3BucketName":{ "shape":"String", "documentation":"

Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket Naming Requirements.

" }, "S3KeyPrefix":{ "shape":"String", "documentation":"

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.

" }, "SnsTopicName":{ "shape":"String", "documentation":"

This field is no longer in use. Use SnsTopicARN.

", "deprecated":true }, "SnsTopicARN":{ "shape":"String", "documentation":"

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

" }, "IncludeGlobalServiceEvents":{ "shape":"Boolean", "documentation":"

Set to True to include Amazon Web Services API calls from Amazon Web Services global services such as IAM. Otherwise, False.

" }, "IsMultiRegionTrail":{ "shape":"Boolean", "documentation":"

Specifies whether the trail exists only in one region or exists in all regions.

" }, "HomeRegion":{ "shape":"String", "documentation":"

The region in which the trail was created.

" }, "TrailARN":{ "shape":"String", "documentation":"

Specifies the ARN of the trail. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" }, "LogFileValidationEnabled":{ "shape":"Boolean", "documentation":"

Specifies whether log file validation is enabled.

" }, "CloudWatchLogsLogGroupArn":{ "shape":"String", "documentation":"

Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.

" }, "CloudWatchLogsRoleArn":{ "shape":"String", "documentation":"

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

" }, "KmsKeyId":{ "shape":"String", "documentation":"

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

" }, "HasCustomEventSelectors":{ "shape":"Boolean", "documentation":"

Specifies if the trail has custom event selectors.

" }, "HasInsightSelectors":{ "shape":"Boolean", "documentation":"

Specifies whether a trail has insight types specified in an InsightSelector list.

" }, "IsOrganizationTrail":{ "shape":"Boolean", "documentation":"

Specifies whether the trail is an organization trail.

" } }, "documentation":"

The settings for a trail.

" }, "TrailAlreadyExistsException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the specified trail already exists.

", "exception":true }, "TrailInfo":{ "type":"structure", "members":{ "TrailARN":{ "shape":"String", "documentation":"

The ARN of a trail.

" }, "Name":{ "shape":"String", "documentation":"

The name of a trail.

" }, "HomeRegion":{ "shape":"String", "documentation":"

The Amazon Web Services Region in which a trail was created.

" } }, "documentation":"

Information about a CloudTrail trail, including the trail's name, home region, and Amazon Resource Name (ARN).

" }, "TrailList":{ "type":"list", "member":{"shape":"Trail"} }, "TrailNameList":{ "type":"list", "member":{"shape":"String"} }, "TrailNotFoundException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the trail with the given name is not found.

", "exception":true }, "TrailNotProvidedException":{ "type":"structure", "members":{ }, "documentation":"

This exception is no longer in use.

", "exception":true }, "Trails":{ "type":"list", "member":{"shape":"TrailInfo"} }, "UUID":{ "type":"string", "max":36, "min":36, "pattern":"^[a-f0-9\\-]+$" }, "UnsupportedOperationException":{ "type":"structure", "members":{ }, "documentation":"

This exception is thrown when the requested operation is not supported.

", "exception":true }, "UpdateEventDataStoreRequest":{ "type":"structure", "required":["EventDataStore"], "members":{ "EventDataStore":{ "shape":"EventDataStoreArn", "documentation":"

The ARN (or the ID suffix of the ARN) of the event data store that you want to update.

" }, "Name":{ "shape":"EventDataStoreName", "documentation":"

The event data store name.

" }, "AdvancedEventSelectors":{ "shape":"AdvancedEventSelectors", "documentation":"

The advanced event selectors used to select events for the event data store.

" }, "MultiRegionEnabled":{ "shape":"Boolean", "documentation":"

Specifies whether an event data store collects events from all regions, or only from the region in which it was created.

" }, "OrganizationEnabled":{ "shape":"Boolean", "documentation":"

Specifies whether an event data store collects events logged for an organization in Organizations.

" }, "RetentionPeriod":{ "shape":"RetentionPeriod", "documentation":"

The retention period, in days.

" }, "TerminationProtectionEnabled":{ "shape":"TerminationProtectionEnabled", "documentation":"

Indicates that termination protection is enabled and the event data store cannot be automatically deleted.

" } } }, "UpdateEventDataStoreResponse":{ "type":"structure", "members":{ "EventDataStoreArn":{ "shape":"EventDataStoreArn", "documentation":"

The ARN of the event data store.

" }, "Name":{ "shape":"EventDataStoreName", "documentation":"

The name of the event data store.

" }, "Status":{ "shape":"EventDataStoreStatus", "documentation":"

The status of an event data store. Values can be ENABLED and PENDING_DELETION.

" }, "AdvancedEventSelectors":{ "shape":"AdvancedEventSelectors", "documentation":"

The advanced event selectors that are applied to the event data store.

" }, "MultiRegionEnabled":{ "shape":"Boolean", "documentation":"

Indicates whether the event data store includes events from all regions, or only from the region in which it was created.

" }, "OrganizationEnabled":{ "shape":"Boolean", "documentation":"

Indicates whether an event data store is collecting logged events for an organization in Organizations.

" }, "RetentionPeriod":{ "shape":"RetentionPeriod", "documentation":"

The retention period, in days.

" }, "TerminationProtectionEnabled":{ "shape":"TerminationProtectionEnabled", "documentation":"

Indicates whether termination protection is enabled for the event data store.

" }, "CreatedTimestamp":{ "shape":"Date", "documentation":"

The timestamp that shows when an event data store was first created.

" }, "UpdatedTimestamp":{ "shape":"Date", "documentation":"

The timestamp that shows when the event data store was last updated. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.

" } } }, "UpdateTrailRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"String", "documentation":"

Specifies the name of the trail or trail ARN. If Name is a trail name, the string must meet the following requirements:

If Name is a trail ARN, it must be in the following format.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" }, "S3BucketName":{ "shape":"String", "documentation":"

Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.

" }, "S3KeyPrefix":{ "shape":"String", "documentation":"

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.

" }, "SnsTopicName":{ "shape":"String", "documentation":"

Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.

" }, "IncludeGlobalServiceEvents":{ "shape":"Boolean", "documentation":"

Specifies whether the trail is publishing events from global services such as IAM to the log files.

" }, "IsMultiRegionTrail":{ "shape":"Boolean", "documentation":"

Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted. As a best practice, consider using trails that log events in all regions.

" }, "EnableLogFileValidation":{ "shape":"Boolean", "documentation":"

Specifies whether log file validation is enabled. The default is false.

When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail does not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.

" }, "CloudWatchLogsLogGroupArn":{ "shape":"String", "documentation":"

Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. Not required unless you specify CloudWatchLogsRoleArn.

" }, "CloudWatchLogsRoleArn":{ "shape":"String", "documentation":"

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

" }, "KmsKeyId":{ "shape":"String", "documentation":"

Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.

CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.

Examples:

" }, "IsOrganizationTrail":{ "shape":"Boolean", "documentation":"

Specifies whether the trail is applied to all accounts in an organization in Organizations, or only for the current Amazon Web Services account. The default is false, and cannot be true unless the call is made on behalf of an Amazon Web Services account that is the management account for an organization in Organizations. If the trail is not an organization trail and this is set to true, the trail will be created in all Amazon Web Services accounts that belong to the organization. If the trail is an organization trail and this is set to false, the trail will remain in the current Amazon Web Services account but be deleted from all member accounts in the organization.

" } }, "documentation":"

Specifies settings to update for the trail.

" }, "UpdateTrailResponse":{ "type":"structure", "members":{ "Name":{ "shape":"String", "documentation":"

Specifies the name of the trail.

" }, "S3BucketName":{ "shape":"String", "documentation":"

Specifies the name of the Amazon S3 bucket designated for publishing log files.

" }, "S3KeyPrefix":{ "shape":"String", "documentation":"

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 IAM Log Files.

" }, "SnsTopicName":{ "shape":"String", "documentation":"

This field is no longer in use. Use UpdateTrailResponse$SnsTopicARN.

", "deprecated":true }, "SnsTopicARN":{ "shape":"String", "documentation":"

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

" }, "IncludeGlobalServiceEvents":{ "shape":"Boolean", "documentation":"

Specifies whether the trail is publishing events from global services such as IAM to the log files.

" }, "IsMultiRegionTrail":{ "shape":"Boolean", "documentation":"

Specifies whether the trail exists in one region or in all regions.

" }, "TrailARN":{ "shape":"String", "documentation":"

Specifies the ARN of the trail that was updated. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

" }, "LogFileValidationEnabled":{ "shape":"Boolean", "documentation":"

Specifies whether log file integrity validation is enabled.

" }, "CloudWatchLogsLogGroupArn":{ "shape":"String", "documentation":"

Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs are delivered.

" }, "CloudWatchLogsRoleArn":{ "shape":"String", "documentation":"

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

" }, "KmsKeyId":{ "shape":"String", "documentation":"

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

" }, "IsOrganizationTrail":{ "shape":"Boolean", "documentation":"

Specifies whether the trail is an organization trail.

" } }, "documentation":"

Returns the objects or data listed below if successful. Otherwise, returns an error.

" } }, "documentation":"CloudTrail

This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.

CloudTrail is a web service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the Amazon Web Services API call, the source IP address, the request parameters, and the response elements returned by the service.

As an alternative to the API, you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide programmatic access to CloudTrail. For example, the SDKs handle cryptographically signing requests, managing errors, and retrying requests automatically. For more information about the Amazon Web Services SDKs, including how to download and install them, see Tools to Build on Amazon Web Services.

See the CloudTrail User Guide for information about the data that is included with each Amazon Web Services API call listed in the log files.

" }