Enum aws_sdk_cloudtrail::Error[][src]

#[non_exhaustive]
pub enum Error {
Show 45 variants CloudTrailArnInvalidException(CloudTrailArnInvalidException), CloudTrailAccessNotEnabledException(CloudTrailAccessNotEnabledException), CloudTrailInvalidClientTokenIdException(CloudTrailInvalidClientTokenIdException), CloudWatchLogsDeliveryUnavailableException(CloudWatchLogsDeliveryUnavailableException), ConflictException(ConflictException), InsightNotEnabledException(InsightNotEnabledException), InsufficientDependencyServiceAccessPermissionException(InsufficientDependencyServiceAccessPermissionException), InsufficientEncryptionPolicyException(InsufficientEncryptionPolicyException), InsufficientS3BucketPolicyException(InsufficientS3BucketPolicyException), InsufficientSnsTopicPolicyException(InsufficientSnsTopicPolicyException), InvalidCloudWatchLogsLogGroupArnException(InvalidCloudWatchLogsLogGroupArnException), InvalidCloudWatchLogsRoleArnException(InvalidCloudWatchLogsRoleArnException), InvalidEventCategoryException(InvalidEventCategoryException), InvalidEventSelectorsException(InvalidEventSelectorsException), InvalidHomeRegionException(InvalidHomeRegionException), InvalidInsightSelectorsException(InvalidInsightSelectorsException), InvalidKmsKeyIdException(InvalidKmsKeyIdException), InvalidLookupAttributesException(InvalidLookupAttributesException), InvalidMaxResultsException(InvalidMaxResultsException), InvalidNextTokenException(InvalidNextTokenException), InvalidParameterCombinationException(InvalidParameterCombinationException), InvalidS3BucketNameException(InvalidS3BucketNameException), InvalidS3PrefixException(InvalidS3PrefixException), InvalidSnsTopicNameException(InvalidSnsTopicNameException), InvalidTagParameterException(InvalidTagParameterException), InvalidTimeRangeException(InvalidTimeRangeException), InvalidTokenException(InvalidTokenException), InvalidTrailNameException(InvalidTrailNameException), KmsException(KmsException), KmsKeyDisabledException(KmsKeyDisabledException), KmsKeyNotFoundException(KmsKeyNotFoundException), MaximumNumberOfTrailsExceededException(MaximumNumberOfTrailsExceededException), NotOrganizationMasterAccountException(NotOrganizationMasterAccountException), OperationNotPermittedException(OperationNotPermittedException), OrganizationNotInAllFeaturesModeException(OrganizationNotInAllFeaturesModeException), OrganizationsNotInUseException(OrganizationsNotInUseException), ResourceNotFoundException(ResourceNotFoundException), ResourceTypeNotSupportedException(ResourceTypeNotSupportedException), S3BucketDoesNotExistException(S3BucketDoesNotExistException), TagsLimitExceededException(TagsLimitExceededException), TrailAlreadyExistsException(TrailAlreadyExistsException), TrailNotFoundException(TrailNotFoundException), TrailNotProvidedException(TrailNotProvidedException), UnsupportedOperationException(UnsupportedOperationException), Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description

All possible error types for this service.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CloudTrailArnInvalidException(CloudTrailArnInvalidException)

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

Tuple Fields of CloudTrailArnInvalidException

0: CloudTrailArnInvalidException
CloudTrailAccessNotEnabledException(CloudTrailAccessNotEnabledException)

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.

Tuple Fields of CloudTrailAccessNotEnabledException

0: CloudTrailAccessNotEnabledException
CloudTrailInvalidClientTokenIdException(CloudTrailInvalidClientTokenIdException)

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.

Tuple Fields of CloudTrailInvalidClientTokenIdException

0: CloudTrailInvalidClientTokenIdException
CloudWatchLogsDeliveryUnavailableException(CloudWatchLogsDeliveryUnavailableException)

Cannot set a CloudWatch Logs delivery for this region.

Tuple Fields of CloudWatchLogsDeliveryUnavailableException

0: CloudWatchLogsDeliveryUnavailableException
ConflictException(ConflictException)

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.

Tuple Fields of ConflictException

0: ConflictException
InsightNotEnabledException(InsightNotEnabledException)

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

Tuple Fields of InsightNotEnabledException

0: InsightNotEnabledException
InsufficientDependencyServiceAccessPermissionException(InsufficientDependencyServiceAccessPermissionException)

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.

Tuple Fields of InsufficientDependencyServiceAccessPermissionException

0: InsufficientDependencyServiceAccessPermissionException
InsufficientEncryptionPolicyException(InsufficientEncryptionPolicyException)

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

Tuple Fields of InsufficientEncryptionPolicyException

0: InsufficientEncryptionPolicyException
InsufficientS3BucketPolicyException(InsufficientS3BucketPolicyException)

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

Tuple Fields of InsufficientS3BucketPolicyException

0: InsufficientS3BucketPolicyException
InsufficientSnsTopicPolicyException(InsufficientSnsTopicPolicyException)

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

Tuple Fields of InsufficientSnsTopicPolicyException

0: InsufficientSnsTopicPolicyException
InvalidCloudWatchLogsLogGroupArnException(InvalidCloudWatchLogsLogGroupArnException)

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

Tuple Fields of InvalidCloudWatchLogsLogGroupArnException

0: InvalidCloudWatchLogsLogGroupArnException
InvalidCloudWatchLogsRoleArnException(InvalidCloudWatchLogsRoleArnException)

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

Tuple Fields of InvalidCloudWatchLogsRoleArnException

0: InvalidCloudWatchLogsRoleArnException
InvalidEventCategoryException(InvalidEventCategoryException)

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

Tuple Fields of InvalidEventCategoryException

0: InvalidEventCategoryException
InvalidEventSelectorsException(InvalidEventSelectorsException)

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:

  • Specify a valid number of event selectors (1 to 5) for a trail.

  • Specify a valid number of data resources (1 to 250) for an event selector. The limit of number of resources on an individual event selector is configurable up to 250. However, this upper limit is allowed only if the total number of data resources does not exceed 250 across all event selectors for a trail.

  • Specify up to 500 values for all conditions in all advanced event selectors for a trail.

  • Specify a valid value for a parameter. For example, specifying the ReadWriteType parameter with a value of read-only is not valid.

Tuple Fields of InvalidEventSelectorsException

0: InvalidEventSelectorsException
InvalidHomeRegionException(InvalidHomeRegionException)

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.

Tuple Fields of InvalidHomeRegionException

0: InvalidHomeRegionException
InvalidInsightSelectorsException(InvalidInsightSelectorsException)

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.

Tuple Fields of InvalidInsightSelectorsException

0: InvalidInsightSelectorsException
InvalidKmsKeyIdException(InvalidKmsKeyIdException)

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

Tuple Fields of InvalidKmsKeyIdException

0: InvalidKmsKeyIdException
InvalidLookupAttributesException(InvalidLookupAttributesException)

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

Tuple Fields of InvalidLookupAttributesException

0: InvalidLookupAttributesException
InvalidMaxResultsException(InvalidMaxResultsException)

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

Tuple Fields of InvalidMaxResultsException

0: InvalidMaxResultsException
InvalidNextTokenException(InvalidNextTokenException)

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.

Tuple Fields of InvalidNextTokenException

0: InvalidNextTokenException
InvalidParameterCombinationException(InvalidParameterCombinationException)

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

Tuple Fields of InvalidParameterCombinationException

0: InvalidParameterCombinationException
InvalidS3BucketNameException(InvalidS3BucketNameException)

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

Tuple Fields of InvalidS3BucketNameException

0: InvalidS3BucketNameException
InvalidS3PrefixException(InvalidS3PrefixException)

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

Tuple Fields of InvalidS3PrefixException

0: InvalidS3PrefixException
InvalidSnsTopicNameException(InvalidSnsTopicNameException)

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

Tuple Fields of InvalidSnsTopicNameException

0: InvalidSnsTopicNameException
InvalidTagParameterException(InvalidTagParameterException)

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.

Tuple Fields of InvalidTagParameterException

0: InvalidTagParameterException
InvalidTimeRangeException(InvalidTimeRangeException)

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.

Tuple Fields of InvalidTimeRangeException

0: InvalidTimeRangeException
InvalidTokenException(InvalidTokenException)

Reserved for future use.

Tuple Fields of InvalidTokenException

0: InvalidTokenException
InvalidTrailNameException(InvalidTrailNameException)

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

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)

  • Start with a letter or number, and end with a letter or number

  • Be between 3 and 128 characters

  • Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are not valid.

  • Not be in IP address format (for example, 192.168.5.4)

Tuple Fields of InvalidTrailNameException

0: InvalidTrailNameException
KmsException(KmsException)

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

Tuple Fields of KmsException

0: KmsException
KmsKeyDisabledException(KmsKeyDisabledException)

This exception is no longer in use.

Tuple Fields of KmsKeyDisabledException

0: KmsKeyDisabledException
KmsKeyNotFoundException(KmsKeyNotFoundException)

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.

Tuple Fields of KmsKeyNotFoundException

0: KmsKeyNotFoundException
MaximumNumberOfTrailsExceededException(MaximumNumberOfTrailsExceededException)

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

Tuple Fields of MaximumNumberOfTrailsExceededException

0: MaximumNumberOfTrailsExceededException
NotOrganizationMasterAccountException(NotOrganizationMasterAccountException)

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.

Tuple Fields of NotOrganizationMasterAccountException

0: NotOrganizationMasterAccountException
OperationNotPermittedException(OperationNotPermittedException)

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

Tuple Fields of OperationNotPermittedException

0: OperationNotPermittedException
OrganizationNotInAllFeaturesModeException(OrganizationNotInAllFeaturesModeException)

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.

Tuple Fields of OrganizationNotInAllFeaturesModeException

0: OrganizationNotInAllFeaturesModeException
OrganizationsNotInUseException(OrganizationsNotInUseException)

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.

Tuple Fields of OrganizationsNotInUseException

0: OrganizationsNotInUseException
ResourceNotFoundException(ResourceNotFoundException)

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

Tuple Fields of ResourceNotFoundException

0: ResourceNotFoundException
ResourceTypeNotSupportedException(ResourceTypeNotSupportedException)

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

Tuple Fields of ResourceTypeNotSupportedException

0: ResourceTypeNotSupportedException
S3BucketDoesNotExistException(S3BucketDoesNotExistException)

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

Tuple Fields of S3BucketDoesNotExistException

0: S3BucketDoesNotExistException
TagsLimitExceededException(TagsLimitExceededException)

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

Tuple Fields of TagsLimitExceededException

0: TagsLimitExceededException
TrailAlreadyExistsException(TrailAlreadyExistsException)

This exception is thrown when the specified trail already exists.

Tuple Fields of TrailAlreadyExistsException

0: TrailAlreadyExistsException
TrailNotFoundException(TrailNotFoundException)

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

Tuple Fields of TrailNotFoundException

0: TrailNotFoundException
TrailNotProvidedException(TrailNotProvidedException)

This exception is no longer in use.

Tuple Fields of TrailNotProvidedException

0: TrailNotProvidedException
UnsupportedOperationException(UnsupportedOperationException)

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

Tuple Fields of UnsupportedOperationException

0: UnsupportedOperationException
Unhandled(Box<dyn Error + Send + Sync + 'static>)

An unhandled error occurred.

Tuple Fields of Unhandled

0: Box<dyn Error + Send + Sync + 'static>

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more