Module aws_sdk_cloudtrail::error
source · [−]Expand description
Errors that can occur when calling the service.
Modules
Structs
Error type for the AddTags
operation.
Error type for the CancelQuery
operation.
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.
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.
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.
Cannot set a CloudWatch Logs delivery for this region.
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 trail before CloudTrail has time to fully load the trail. If this exception occurs, wait a few minutes, and then try the operation again.
Error type for the CreateEventDataStore
operation.
Error type for the CreateTrail
operation.
Error type for the DeleteEventDataStore
operation.
Error type for the DeleteTrail
operation.
Error type for the DescribeQuery
operation.
Error type for the DescribeTrails
operation.
An event data store with that name already exists.
The specified event data store ARN is not valid or does not map to an event data store in your account.
Your account has used the maximum number of event data stores.
The specified event data store was not found.
The event data store cannot be deleted because termination protection is enabled for it.
Error type for the GetEventDataStore
operation.
Error type for the GetEventSelectors
operation.
Error type for the GetInsightSelectors
operation.
Error type for the GetQueryResults
operation.
Error type for the GetTrail
operation.
Error type for the GetTrailStatus
operation.
The event data store against which you ran your query is inactive.
The specified query cannot be canceled because it is in the FINISHED
, FAILED
, or CANCELLED
state.
If you run GetInsightSelectors
on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException
.
This exception is thrown when the IAM user or role that is used to create the organization trail is lacking one or more required permissions for creating an organization trail in a required service. For more information, see Prepare For Creating a Trail For Your Organization.
This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.
This exception is thrown when the policy on the S3 bucket is not sufficient.
This exception is thrown when the policy on the Amazon SNS topic is not sufficient.
This exception is thrown when the provided CloudWatch Logs log group is not valid.
This exception is thrown when the provided role is not valid.
A date range for the query was specified that is not valid. For more information about writing a query, see Create or edit a query in the CloudTrail User Guide.
Occurs if an event category that is not valid is specified as a value of EventCategory
.
The event data store is not in a status that supports the operation.
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.
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.
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.
This exception is thrown when the KMS key ARN is not valid.
Occurs when a lookup attribute is specified that is not valid.
This exception is thrown if the limit specified is not valid.
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.
This exception is thrown when the combination of parameters provided is not valid.
The request includes a parameter that is not valid.
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.
The query status is not valid for the operation.
This exception is thrown when the provided S3 bucket name is not valid.
This exception is thrown when the provided S3 prefix is not valid.
This exception is thrown when the provided SNS topic name is not valid.
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.
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.
Reserved for future use.
This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.
This exception is no longer in use.
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.
Error type for the ListEventDataStores
operation.
Error type for the ListPublicKeys
operation.
Error type for the ListQueries
operation.
Error type for the ListTags
operation.
Error type for the ListTrails
operation.
Error type for the LookupEvents
operation.
You are already running the maximum number of concurrent queries. Wait a minute for some queries to finish, and then run the query again.
This exception is thrown when the maximum number of trails is reached.
This exception is thrown when the Amazon Web Services account making the request to create or update an organization trail is not the management account for an organization in Organizations. For more information, see Prepare For Creating a Trail For Your Organization.
This exception is thrown when the requested operation is not permitted.
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. For more information, see Prepare For Creating a Trail For Your Organization.
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.
Error type for the PutEventSelectors
operation.
Error type for the PutInsightSelectors
operation.
The query ID does not exist or does not map to a query.
Error type for the RemoveTags
operation.
This exception is thrown when the specified resource is not found.
This exception is thrown when the specified resource type is not supported by CloudTrail.
Error type for the RestoreEventDataStore
operation.
This exception is thrown when the specified S3 bucket does not exist.
Error type for the StartLogging
operation.
Error type for the StartQuery
operation.
Error type for the StopLogging
operation.
The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.
This exception is thrown when the specified trail already exists.
This exception is thrown when the trail with the given name is not found.
This exception is no longer in use.
This exception is thrown when the requested operation is not supported.
Error type for the UpdateEventDataStore
operation.
Error type for the UpdateTrail
operation.
Enums
Types of errors that can occur for the AddTags
operation.
Types of errors that can occur for the CancelQuery
operation.
Types of errors that can occur for the CreateEventDataStore
operation.
Types of errors that can occur for the CreateTrail
operation.
Types of errors that can occur for the DeleteEventDataStore
operation.
Types of errors that can occur for the DeleteTrail
operation.
Types of errors that can occur for the DescribeQuery
operation.
Types of errors that can occur for the DescribeTrails
operation.
Types of errors that can occur for the GetEventDataStore
operation.
Types of errors that can occur for the GetEventSelectors
operation.
Types of errors that can occur for the GetInsightSelectors
operation.
Types of errors that can occur for the GetQueryResults
operation.
Types of errors that can occur for the GetTrail
operation.
Types of errors that can occur for the GetTrailStatus
operation.
Types of errors that can occur for the ListEventDataStores
operation.
Types of errors that can occur for the ListPublicKeys
operation.
Types of errors that can occur for the ListQueries
operation.
Types of errors that can occur for the ListTags
operation.
Types of errors that can occur for the ListTrails
operation.
Types of errors that can occur for the LookupEvents
operation.
Types of errors that can occur for the PutEventSelectors
operation.
Types of errors that can occur for the PutInsightSelectors
operation.
Types of errors that can occur for the RemoveTags
operation.
Types of errors that can occur for the RestoreEventDataStore
operation.
Types of errors that can occur for the StartLogging
operation.
Types of errors that can occur for the StartQuery
operation.
Types of errors that can occur for the StopLogging
operation.
Types of errors that can occur for the UpdateEventDataStore
operation.
Types of errors that can occur for the UpdateTrail
operation.