Enum aws_sdk_cloudtrail::Error

source ·
#[non_exhaustive]
pub enum Error {
Show 84 variants AccessDeniedException(AccessDeniedException), AccountHasOngoingImportException(AccountHasOngoingImportException), AccountNotFoundException(AccountNotFoundException), AccountNotRegisteredException(AccountNotRegisteredException), AccountRegisteredException(AccountRegisteredException), CannotDelegateManagementAccountException(CannotDelegateManagementAccountException), ChannelArnInvalidException(ChannelArnInvalidException), ChannelAlreadyExistsException(ChannelAlreadyExistsException), ChannelExistsForEdsException(ChannelExistsForEdsException), ChannelMaxLimitExceededException(ChannelMaxLimitExceededException), ChannelNotFoundException(ChannelNotFoundException), CloudTrailArnInvalidException(CloudTrailArnInvalidException), CloudTrailAccessNotEnabledException(CloudTrailAccessNotEnabledException), CloudTrailInvalidClientTokenIdException(CloudTrailInvalidClientTokenIdException), CloudWatchLogsDeliveryUnavailableException(CloudWatchLogsDeliveryUnavailableException), ConcurrentModificationException(ConcurrentModificationException), ConflictException(ConflictException), DelegatedAdminAccountLimitExceededException(DelegatedAdminAccountLimitExceededException), EventDataStoreArnInvalidException(EventDataStoreArnInvalidException), EventDataStoreAlreadyExistsException(EventDataStoreAlreadyExistsException), EventDataStoreFederationEnabledException(EventDataStoreFederationEnabledException), EventDataStoreHasOngoingImportException(EventDataStoreHasOngoingImportException), EventDataStoreMaxLimitExceededException(EventDataStoreMaxLimitExceededException), EventDataStoreNotFoundException(EventDataStoreNotFoundException), EventDataStoreTerminationProtectedException(EventDataStoreTerminationProtectedException), ImportNotFoundException(ImportNotFoundException), InactiveEventDataStoreException(InactiveEventDataStoreException), InactiveQueryException(InactiveQueryException), InsightNotEnabledException(InsightNotEnabledException), InsufficientDependencyServiceAccessPermissionException(InsufficientDependencyServiceAccessPermissionException), InsufficientEncryptionPolicyException(InsufficientEncryptionPolicyException), InsufficientS3BucketPolicyException(InsufficientS3BucketPolicyException), InsufficientSnsTopicPolicyException(InsufficientSnsTopicPolicyException), InvalidCloudWatchLogsLogGroupArnException(InvalidCloudWatchLogsLogGroupArnException), InvalidCloudWatchLogsRoleArnException(InvalidCloudWatchLogsRoleArnException), InvalidDateRangeException(InvalidDateRangeException), InvalidEventCategoryException(InvalidEventCategoryException), InvalidEventDataStoreCategoryException(InvalidEventDataStoreCategoryException), InvalidEventDataStoreStatusException(InvalidEventDataStoreStatusException), InvalidEventSelectorsException(InvalidEventSelectorsException), InvalidHomeRegionException(InvalidHomeRegionException), InvalidImportSourceException(InvalidImportSourceException), InvalidInsightSelectorsException(InvalidInsightSelectorsException), InvalidKmsKeyIdException(InvalidKmsKeyIdException), InvalidLookupAttributesException(InvalidLookupAttributesException), InvalidMaxResultsException(InvalidMaxResultsException), InvalidNextTokenException(InvalidNextTokenException), InvalidParameterCombinationException(InvalidParameterCombinationException), InvalidParameterException(InvalidParameterException), InvalidQueryStatementException(InvalidQueryStatementException), InvalidQueryStatusException(InvalidQueryStatusException), InvalidS3BucketNameException(InvalidS3BucketNameException), InvalidS3PrefixException(InvalidS3PrefixException), InvalidSnsTopicNameException(InvalidSnsTopicNameException), InvalidSourceException(InvalidSourceException), InvalidTagParameterException(InvalidTagParameterException), InvalidTimeRangeException(InvalidTimeRangeException), InvalidTokenException(InvalidTokenException), InvalidTrailNameException(InvalidTrailNameException), KmsException(KmsException), KmsKeyDisabledException(KmsKeyDisabledException), KmsKeyNotFoundException(KmsKeyNotFoundException), MaxConcurrentQueriesException(MaxConcurrentQueriesException), MaximumNumberOfTrailsExceededException(MaximumNumberOfTrailsExceededException), NoManagementAccountSlrExistsException(NoManagementAccountSlrExistsException), NotOrganizationManagementAccountException(NotOrganizationManagementAccountException), NotOrganizationMasterAccountException(NotOrganizationMasterAccountException), OperationNotPermittedException(OperationNotPermittedException), OrganizationNotInAllFeaturesModeException(OrganizationNotInAllFeaturesModeException), OrganizationsNotInUseException(OrganizationsNotInUseException), QueryIdNotFoundException(QueryIdNotFoundException), ResourceArnNotValidException(ResourceArnNotValidException), ResourceNotFoundException(ResourceNotFoundException), ResourcePolicyNotFoundException(ResourcePolicyNotFoundException), ResourcePolicyNotValidException(ResourcePolicyNotValidException), ResourceTypeNotSupportedException(ResourceTypeNotSupportedException), S3BucketDoesNotExistException(S3BucketDoesNotExistException), TagsLimitExceededException(TagsLimitExceededException), ThrottlingException(ThrottlingException), TrailAlreadyExistsException(TrailAlreadyExistsException), TrailNotFoundException(TrailNotFoundException), TrailNotProvidedException(TrailNotProvidedException), UnsupportedOperationException(UnsupportedOperationException), Unhandled(Unhandled),
}
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.
§

AccessDeniedException(AccessDeniedException)

You do not have sufficient access to perform this action.

§

AccountHasOngoingImportException(AccountHasOngoingImportException)

This exception is thrown when you start a new import and a previous import is still in progress.

§

AccountNotFoundException(AccountNotFoundException)

This exception is thrown when the specified account is not found or not part of an organization.

§

AccountNotRegisteredException(AccountNotRegisteredException)

This exception is thrown when the specified account is not registered as the CloudTrail delegated administrator.

§

AccountRegisteredException(AccountRegisteredException)

This exception is thrown when the account is already registered as the CloudTrail delegated administrator.

§

CannotDelegateManagementAccountException(CannotDelegateManagementAccountException)

This exception is thrown when the management account of an organization is registered as the CloudTrail delegated administrator.

§

ChannelArnInvalidException(ChannelArnInvalidException)

This exception is thrown when the specified value of ChannelARN is not valid.

§

ChannelAlreadyExistsException(ChannelAlreadyExistsException)

This exception is thrown when the provided channel already exists.

§

ChannelExistsForEdsException(ChannelExistsForEdsException)

This exception is thrown when the specified event data store cannot yet be deleted because it is in use by a channel.

§

ChannelMaxLimitExceededException(ChannelMaxLimitExceededException)

This exception is thrown when the maximum number of channels limit is exceeded.

§

ChannelNotFoundException(ChannelNotFoundException)

This exception is thrown when CloudTrail cannot find the specified channel.

§

CloudTrailArnInvalidException(CloudTrailArnInvalidException)

This exception is thrown when an operation is called with an ARN that is not valid.

The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE

The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890

§

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.

§

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.

§

CloudWatchLogsDeliveryUnavailableException(CloudWatchLogsDeliveryUnavailableException)

Cannot set a CloudWatch Logs delivery for this Region.

§

ConcurrentModificationException(ConcurrentModificationException)

You are trying to update a resource when another request is in progress. Allow sufficient wait time for the previous request to complete, then retry your request.

§

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 resource before CloudTrail has time to fully load the resource, or because another operation is modifying the resource. If this exception occurs, wait a few minutes, and then try the operation again.

§

DelegatedAdminAccountLimitExceededException(DelegatedAdminAccountLimitExceededException)

This exception is thrown when the maximum number of CloudTrail delegated administrators is reached.

§

EventDataStoreArnInvalidException(EventDataStoreArnInvalidException)

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

§

EventDataStoreAlreadyExistsException(EventDataStoreAlreadyExistsException)

An event data store with that name already exists.

§

EventDataStoreFederationEnabledException(EventDataStoreFederationEnabledException)

You cannot delete the event data store because Lake query federation is enabled. To delete the event data store, run the DisableFederation operation to disable Lake query federation on the event data store.

§

EventDataStoreHasOngoingImportException(EventDataStoreHasOngoingImportException)

This exception is thrown when you try to update or delete an event data store that currently has an import in progress.

§

EventDataStoreMaxLimitExceededException(EventDataStoreMaxLimitExceededException)

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

§

EventDataStoreNotFoundException(EventDataStoreNotFoundException)

The specified event data store was not found.

§

EventDataStoreTerminationProtectedException(EventDataStoreTerminationProtectedException)

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

§

ImportNotFoundException(ImportNotFoundException)

The specified import was not found.

§

InactiveEventDataStoreException(InactiveEventDataStoreException)

The event data store is inactive.

§

InactiveQueryException(InactiveQueryException)

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

§

InsightNotEnabledException(InsightNotEnabledException)

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

§

InsufficientDependencyServiceAccessPermissionException(InsufficientDependencyServiceAccessPermissionException)

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

§

InsufficientEncryptionPolicyException(InsufficientEncryptionPolicyException)

This exception is thrown when the policy on the S3 bucket or KMS key does not have sufficient permissions for the operation.

§

InsufficientS3BucketPolicyException(InsufficientS3BucketPolicyException)

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

§

InsufficientSnsTopicPolicyException(InsufficientSnsTopicPolicyException)

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

§

InvalidCloudWatchLogsLogGroupArnException(InvalidCloudWatchLogsLogGroupArnException)

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

§

InvalidCloudWatchLogsRoleArnException(InvalidCloudWatchLogsRoleArnException)

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

§

InvalidDateRangeException(InvalidDateRangeException)

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.

§

InvalidEventCategoryException(InvalidEventCategoryException)

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

§

InvalidEventDataStoreCategoryException(InvalidEventDataStoreCategoryException)

This exception is thrown when event categories of specified event data stores are not valid.

§

InvalidEventDataStoreStatusException(InvalidEventDataStoreStatusException)

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

§

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.

§

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.

§

InvalidImportSourceException(InvalidImportSourceException)

This exception is thrown when the provided source S3 bucket is not valid for import.

§

InvalidInsightSelectorsException(InvalidInsightSelectorsException)

For PutInsightSelectors, this exception is thrown when the formatting or syntax of the InsightSelectors JSON statement is not valid, or the specified InsightType in the InsightSelectors statement is not valid. Valid values for InsightType are ApiCallRateInsight and ApiErrorRateInsight. To enable Insights on an event data store, the destination event data store specified by the InsightsDestination parameter must log Insights events and the source event data store specified by the EventDataStore parameter must log management events.

For UpdateEventDataStore, this exception is thrown if Insights are enabled on the event data store and the updated advanced event selectors are not compatible with the configured InsightSelectors. If the InsightSelectors includes an InsightType of ApiCallRateInsight, the source event data store must log write management events. If the InsightSelectors includes an InsightType of ApiErrorRateInsight, the source event data store must log management events.

§

InvalidKmsKeyIdException(InvalidKmsKeyIdException)

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

§

InvalidLookupAttributesException(InvalidLookupAttributesException)

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

§

InvalidMaxResultsException(InvalidMaxResultsException)

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

§

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.

§

InvalidParameterCombinationException(InvalidParameterCombinationException)

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

§

InvalidParameterException(InvalidParameterException)

The request includes a parameter that is not valid.

§

InvalidQueryStatementException(InvalidQueryStatementException)

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.

§

InvalidQueryStatusException(InvalidQueryStatusException)

The query status is not valid for the operation.

§

InvalidS3BucketNameException(InvalidS3BucketNameException)

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

§

InvalidS3PrefixException(InvalidS3PrefixException)

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

§

InvalidSnsTopicNameException(InvalidSnsTopicNameException)

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

§

InvalidSourceException(InvalidSourceException)

This exception is thrown when the specified value of Source is not valid.

§

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.

§

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.

§

InvalidTokenException(InvalidTokenException)

Reserved for future use.

§

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)

§

KmsException(KmsException)

This exception is thrown when there is an issue with the specified KMS key and the trail or event data store can't be updated.

§

KmsKeyDisabledException(KmsKeyDisabledException)

👎Deprecated

This exception is no longer in use.

§

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.

§

MaxConcurrentQueriesException(MaxConcurrentQueriesException)

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

§

MaximumNumberOfTrailsExceededException(MaximumNumberOfTrailsExceededException)

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

§

NoManagementAccountSlrExistsException(NoManagementAccountSlrExistsException)

This exception is thrown when the management account does not have a service-linked role.

§

NotOrganizationManagementAccountException(NotOrganizationManagementAccountException)

This exception is thrown when the account making the request is not the organization's management account.

§

NotOrganizationMasterAccountException(NotOrganizationMasterAccountException)

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.

§

OperationNotPermittedException(OperationNotPermittedException)

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

§

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 or event data store.

§

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.

§

QueryIdNotFoundException(QueryIdNotFoundException)

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

§

ResourceArnNotValidException(ResourceArnNotValidException)

This exception is thrown when the provided resource does not exist, or the ARN format of the resource is not valid. The following is the valid format for a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel.

§

ResourceNotFoundException(ResourceNotFoundException)

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

§

ResourcePolicyNotFoundException(ResourcePolicyNotFoundException)

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

§

ResourcePolicyNotValidException(ResourcePolicyNotValidException)

This exception is thrown when the resouce-based policy has syntax errors, or contains a principal that is not valid.

The following are requirements for the resource policy:

  • Contains only one action: cloudtrail-data:PutAuditEvents

  • Contains at least one statement. The policy can have a maximum of 20 statements.

  • Each statement contains at least one principal. A statement can have a maximum of 50 principals.

§

ResourceTypeNotSupportedException(ResourceTypeNotSupportedException)

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

§

S3BucketDoesNotExistException(S3BucketDoesNotExistException)

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

§

TagsLimitExceededException(TagsLimitExceededException)

The number of tags per trail, event data store, or channel has exceeded the permitted amount. Currently, the limit is 50.

§

ThrottlingException(ThrottlingException)

This exception is thrown when the request rate exceeds the limit.

§

TrailAlreadyExistsException(TrailAlreadyExistsException)

This exception is thrown when the specified trail already exists.

§

TrailNotFoundException(TrailNotFoundException)

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

§

TrailNotProvidedException(TrailNotProvidedException)

This exception is no longer in use.

§

UnsupportedOperationException(UnsupportedOperationException)

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

§

Unhandled(Unhandled)

👎Deprecated: Matching Unhandled directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code():    err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ } See ProvideErrorMetadata for what information is available for the error.

An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

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

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AddTagsError> for Error

source§

fn from(err: AddTagsError) -> Self

Converts to this type from the input type.
source§

impl From<BuildError> for Error

source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
source§

impl From<CancelQueryError> for Error

source§

fn from(err: CancelQueryError) -> Self

Converts to this type from the input type.
source§

impl From<CreateChannelError> for Error

source§

fn from(err: CreateChannelError) -> Self

Converts to this type from the input type.
source§

impl From<CreateEventDataStoreError> for Error

source§

fn from(err: CreateEventDataStoreError) -> Self

Converts to this type from the input type.
source§

impl From<CreateTrailError> for Error

source§

fn from(err: CreateTrailError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteChannelError> for Error

source§

fn from(err: DeleteChannelError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteEventDataStoreError> for Error

source§

fn from(err: DeleteEventDataStoreError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteResourcePolicyError> for Error

source§

fn from(err: DeleteResourcePolicyError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteTrailError> for Error

source§

fn from(err: DeleteTrailError) -> Self

Converts to this type from the input type.
source§

impl From<DeregisterOrganizationDelegatedAdminError> for Error

source§

fn from(err: DeregisterOrganizationDelegatedAdminError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeQueryError> for Error

source§

fn from(err: DescribeQueryError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeTrailsError> for Error

source§

fn from(err: DescribeTrailsError) -> Self

Converts to this type from the input type.
source§

impl From<DisableFederationError> for Error

source§

fn from(err: DisableFederationError) -> Self

Converts to this type from the input type.
source§

impl From<EnableFederationError> for Error

source§

fn from(err: EnableFederationError) -> Self

Converts to this type from the input type.
source§

impl From<GetChannelError> for Error

source§

fn from(err: GetChannelError) -> Self

Converts to this type from the input type.
source§

impl From<GetEventDataStoreError> for Error

source§

fn from(err: GetEventDataStoreError) -> Self

Converts to this type from the input type.
source§

impl From<GetEventSelectorsError> for Error

source§

fn from(err: GetEventSelectorsError) -> Self

Converts to this type from the input type.
source§

impl From<GetImportError> for Error

source§

fn from(err: GetImportError) -> Self

Converts to this type from the input type.
source§

impl From<GetInsightSelectorsError> for Error

source§

fn from(err: GetInsightSelectorsError) -> Self

Converts to this type from the input type.
source§

impl From<GetQueryResultsError> for Error

source§

fn from(err: GetQueryResultsError) -> Self

Converts to this type from the input type.
source§

impl From<GetResourcePolicyError> for Error

source§

fn from(err: GetResourcePolicyError) -> Self

Converts to this type from the input type.
source§

impl From<GetTrailError> for Error

source§

fn from(err: GetTrailError) -> Self

Converts to this type from the input type.
source§

impl From<GetTrailStatusError> for Error

source§

fn from(err: GetTrailStatusError) -> Self

Converts to this type from the input type.
source§

impl From<ListChannelsError> for Error

source§

fn from(err: ListChannelsError) -> Self

Converts to this type from the input type.
source§

impl From<ListEventDataStoresError> for Error

source§

fn from(err: ListEventDataStoresError) -> Self

Converts to this type from the input type.
source§

impl From<ListImportFailuresError> for Error

source§

fn from(err: ListImportFailuresError) -> Self

Converts to this type from the input type.
source§

impl From<ListImportsError> for Error

source§

fn from(err: ListImportsError) -> Self

Converts to this type from the input type.
source§

impl From<ListInsightsMetricDataError> for Error

source§

fn from(err: ListInsightsMetricDataError) -> Self

Converts to this type from the input type.
source§

impl From<ListPublicKeysError> for Error

source§

fn from(err: ListPublicKeysError) -> Self

Converts to this type from the input type.
source§

impl From<ListQueriesError> for Error

source§

fn from(err: ListQueriesError) -> Self

Converts to this type from the input type.
source§

impl From<ListTagsError> for Error

source§

fn from(err: ListTagsError) -> Self

Converts to this type from the input type.
source§

impl From<ListTrailsError> for Error

source§

fn from(err: ListTrailsError) -> Self

Converts to this type from the input type.
source§

impl From<LookupEventsError> for Error

source§

fn from(err: LookupEventsError) -> Self

Converts to this type from the input type.
source§

impl From<PutEventSelectorsError> for Error

source§

fn from(err: PutEventSelectorsError) -> Self

Converts to this type from the input type.
source§

impl From<PutInsightSelectorsError> for Error

source§

fn from(err: PutInsightSelectorsError) -> Self

Converts to this type from the input type.
source§

impl From<PutResourcePolicyError> for Error

source§

fn from(err: PutResourcePolicyError) -> Self

Converts to this type from the input type.
source§

impl From<RegisterOrganizationDelegatedAdminError> for Error

source§

fn from(err: RegisterOrganizationDelegatedAdminError) -> Self

Converts to this type from the input type.
source§

impl From<RemoveTagsError> for Error

source§

fn from(err: RemoveTagsError) -> Self

Converts to this type from the input type.
source§

impl From<RestoreEventDataStoreError> for Error

source§

fn from(err: RestoreEventDataStoreError) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<AddTagsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<AddTagsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CancelQueryError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CancelQueryError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateChannelError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateChannelError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateEventDataStoreError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateEventDataStoreError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateTrailError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateTrailError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteChannelError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteChannelError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteEventDataStoreError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteEventDataStoreError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteResourcePolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteResourcePolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteTrailError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteTrailError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeregisterOrganizationDelegatedAdminError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeregisterOrganizationDelegatedAdminError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeQueryError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeQueryError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeTrailsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeTrailsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisableFederationError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DisableFederationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<EnableFederationError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<EnableFederationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetChannelError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetChannelError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetEventDataStoreError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetEventDataStoreError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetEventSelectorsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetEventSelectorsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetImportError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetImportError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetInsightSelectorsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetInsightSelectorsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetQueryResultsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetQueryResultsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetResourcePolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetResourcePolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetTrailError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetTrailError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetTrailStatusError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetTrailStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListChannelsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListChannelsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListEventDataStoresError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListEventDataStoresError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListImportFailuresError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListImportFailuresError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListImportsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListImportsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListInsightsMetricDataError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListInsightsMetricDataError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPublicKeysError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListPublicKeysError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListQueriesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListQueriesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTagsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListTagsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTrailsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListTrailsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<LookupEventsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<LookupEventsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutEventSelectorsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutEventSelectorsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutInsightSelectorsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutInsightSelectorsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutResourcePolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutResourcePolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<RegisterOrganizationDelegatedAdminError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<RegisterOrganizationDelegatedAdminError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<RemoveTagsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<RemoveTagsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<RestoreEventDataStoreError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<RestoreEventDataStoreError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<StartEventDataStoreIngestionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<StartEventDataStoreIngestionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<StartImportError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<StartImportError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<StartLoggingError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<StartLoggingError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<StartQueryError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<StartQueryError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<StopEventDataStoreIngestionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<StopEventDataStoreIngestionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<StopImportError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<StopImportError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<StopLoggingError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<StopLoggingError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateChannelError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateChannelError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateEventDataStoreError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateEventDataStoreError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateTrailError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateTrailError, R>) -> Self

Converts to this type from the input type.
source§

impl From<StartEventDataStoreIngestionError> for Error

source§

fn from(err: StartEventDataStoreIngestionError) -> Self

Converts to this type from the input type.
source§

impl From<StartImportError> for Error

source§

fn from(err: StartImportError) -> Self

Converts to this type from the input type.
source§

impl From<StartLoggingError> for Error

source§

fn from(err: StartLoggingError) -> Self

Converts to this type from the input type.
source§

impl From<StartQueryError> for Error

source§

fn from(err: StartQueryError) -> Self

Converts to this type from the input type.
source§

impl From<StopEventDataStoreIngestionError> for Error

source§

fn from(err: StopEventDataStoreIngestionError) -> Self

Converts to this type from the input type.
source§

impl From<StopImportError> for Error

source§

fn from(err: StopImportError) -> Self

Converts to this type from the input type.
source§

impl From<StopLoggingError> for Error

source§

fn from(err: StopLoggingError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateChannelError> for Error

source§

fn from(err: UpdateChannelError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateEventDataStoreError> for Error

source§

fn from(err: UpdateEventDataStoreError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateTrailError> for Error

source§

fn from(err: UpdateTrailError) -> Self

Converts to this type from the input type.
source§

impl ProvideErrorMetadata for Error

source§

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
source§

fn code(&self) -> Option<&str>

Returns the error code if it’s available.
source§

fn message(&self) -> Option<&str>

Returns the error message, if there is one.
source§

impl RequestId for Error

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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