#[non_exhaustive]
pub enum Error {
ConflictException(ConflictException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ValidationException(ValidationException),
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.
ConflictException(ConflictException)
When creating a collection, thrown when a collection with the same name already exists or is being created. When deleting a collection, thrown when the collection is not in the ACTIVE or FAILED state.
InternalServerException(InternalServerException)
Thrown when an error internal to the service occurs while processing a request.
ResourceNotFoundException(ResourceNotFoundException)
Thrown when accessing or deleting a resource that does not exist.
ValidationException(ValidationException)
Thrown when the HTTP request contains invalid input or is missing required input.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BatchGetCollectionError> for Error
impl From<BatchGetCollectionError> for Error
source§fn from(err: BatchGetCollectionError) -> Self
fn from(err: BatchGetCollectionError) -> Self
Converts to this type from the input type.
source§impl From<BatchGetVpcEndpointError> for Error
impl From<BatchGetVpcEndpointError> for Error
source§fn from(err: BatchGetVpcEndpointError) -> Self
fn from(err: BatchGetVpcEndpointError) -> Self
Converts to this type from the input type.
source§impl From<CreateAccessPolicyError> for Error
impl From<CreateAccessPolicyError> for Error
source§fn from(err: CreateAccessPolicyError) -> Self
fn from(err: CreateAccessPolicyError) -> Self
Converts to this type from the input type.
source§impl From<CreateCollectionError> for Error
impl From<CreateCollectionError> for Error
source§fn from(err: CreateCollectionError) -> Self
fn from(err: CreateCollectionError) -> Self
Converts to this type from the input type.
source§impl From<CreateSecurityConfigError> for Error
impl From<CreateSecurityConfigError> for Error
source§fn from(err: CreateSecurityConfigError) -> Self
fn from(err: CreateSecurityConfigError) -> Self
Converts to this type from the input type.
source§impl From<CreateSecurityPolicyError> for Error
impl From<CreateSecurityPolicyError> for Error
source§fn from(err: CreateSecurityPolicyError) -> Self
fn from(err: CreateSecurityPolicyError) -> Self
Converts to this type from the input type.
source§impl From<CreateVpcEndpointError> for Error
impl From<CreateVpcEndpointError> for Error
source§fn from(err: CreateVpcEndpointError) -> Self
fn from(err: CreateVpcEndpointError) -> Self
Converts to this type from the input type.
source§impl From<DeleteAccessPolicyError> for Error
impl From<DeleteAccessPolicyError> for Error
source§fn from(err: DeleteAccessPolicyError) -> Self
fn from(err: DeleteAccessPolicyError) -> Self
Converts to this type from the input type.
source§impl From<DeleteCollectionError> for Error
impl From<DeleteCollectionError> for Error
source§fn from(err: DeleteCollectionError) -> Self
fn from(err: DeleteCollectionError) -> Self
Converts to this type from the input type.
source§impl From<DeleteSecurityConfigError> for Error
impl From<DeleteSecurityConfigError> for Error
source§fn from(err: DeleteSecurityConfigError) -> Self
fn from(err: DeleteSecurityConfigError) -> Self
Converts to this type from the input type.
source§impl From<DeleteSecurityPolicyError> for Error
impl From<DeleteSecurityPolicyError> for Error
source§fn from(err: DeleteSecurityPolicyError) -> Self
fn from(err: DeleteSecurityPolicyError) -> Self
Converts to this type from the input type.
source§impl From<DeleteVpcEndpointError> for Error
impl From<DeleteVpcEndpointError> for Error
source§fn from(err: DeleteVpcEndpointError) -> Self
fn from(err: DeleteVpcEndpointError) -> Self
Converts to this type from the input type.
source§impl From<GetAccessPolicyError> for Error
impl From<GetAccessPolicyError> for Error
source§fn from(err: GetAccessPolicyError) -> Self
fn from(err: GetAccessPolicyError) -> Self
Converts to this type from the input type.
source§impl From<GetAccountSettingsError> for Error
impl From<GetAccountSettingsError> for Error
source§fn from(err: GetAccountSettingsError) -> Self
fn from(err: GetAccountSettingsError) -> Self
Converts to this type from the input type.
source§impl From<GetPoliciesStatsError> for Error
impl From<GetPoliciesStatsError> for Error
source§fn from(err: GetPoliciesStatsError) -> Self
fn from(err: GetPoliciesStatsError) -> Self
Converts to this type from the input type.
source§impl From<GetSecurityConfigError> for Error
impl From<GetSecurityConfigError> for Error
source§fn from(err: GetSecurityConfigError) -> Self
fn from(err: GetSecurityConfigError) -> Self
Converts to this type from the input type.
source§impl From<GetSecurityPolicyError> for Error
impl From<GetSecurityPolicyError> for Error
source§fn from(err: GetSecurityPolicyError) -> Self
fn from(err: GetSecurityPolicyError) -> Self
Converts to this type from the input type.
source§impl From<ListAccessPoliciesError> for Error
impl From<ListAccessPoliciesError> for Error
source§fn from(err: ListAccessPoliciesError) -> Self
fn from(err: ListAccessPoliciesError) -> Self
Converts to this type from the input type.
source§impl From<ListCollectionsError> for Error
impl From<ListCollectionsError> for Error
source§fn from(err: ListCollectionsError) -> Self
fn from(err: ListCollectionsError) -> Self
Converts to this type from the input type.
source§impl From<ListSecurityConfigsError> for Error
impl From<ListSecurityConfigsError> for Error
source§fn from(err: ListSecurityConfigsError) -> Self
fn from(err: ListSecurityConfigsError) -> Self
Converts to this type from the input type.
source§impl From<ListSecurityPoliciesError> for Error
impl From<ListSecurityPoliciesError> for Error
source§fn from(err: ListSecurityPoliciesError) -> Self
fn from(err: ListSecurityPoliciesError) -> Self
Converts to this type from the input type.
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
Converts to this type from the input type.
source§impl From<ListVpcEndpointsError> for Error
impl From<ListVpcEndpointsError> for Error
source§fn from(err: ListVpcEndpointsError) -> Self
fn from(err: ListVpcEndpointsError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<BatchGetCollectionError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<BatchGetCollectionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<BatchGetCollectionError, R>) -> Self
fn from(err: SdkError<BatchGetCollectionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<BatchGetVpcEndpointError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<BatchGetVpcEndpointError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<BatchGetVpcEndpointError, R>) -> Self
fn from(err: SdkError<BatchGetVpcEndpointError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateAccessPolicyError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateAccessPolicyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<CreateAccessPolicyError, R>) -> Self
fn from(err: SdkError<CreateAccessPolicyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateCollectionError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateCollectionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<CreateCollectionError, R>) -> Self
fn from(err: SdkError<CreateCollectionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateSecurityConfigError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateSecurityConfigError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<CreateSecurityConfigError, R>) -> Self
fn from(err: SdkError<CreateSecurityConfigError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateSecurityPolicyError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateSecurityPolicyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<CreateSecurityPolicyError, R>) -> Self
fn from(err: SdkError<CreateSecurityPolicyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateVpcEndpointError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateVpcEndpointError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<CreateVpcEndpointError, R>) -> Self
fn from(err: SdkError<CreateVpcEndpointError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteAccessPolicyError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteAccessPolicyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DeleteAccessPolicyError, R>) -> Self
fn from(err: SdkError<DeleteAccessPolicyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteCollectionError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteCollectionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DeleteCollectionError, R>) -> Self
fn from(err: SdkError<DeleteCollectionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteSecurityConfigError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteSecurityConfigError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DeleteSecurityConfigError, R>) -> Self
fn from(err: SdkError<DeleteSecurityConfigError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteSecurityPolicyError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteSecurityPolicyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DeleteSecurityPolicyError, R>) -> Self
fn from(err: SdkError<DeleteSecurityPolicyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteVpcEndpointError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteVpcEndpointError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DeleteVpcEndpointError, R>) -> Self
fn from(err: SdkError<DeleteVpcEndpointError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetAccessPolicyError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetAccessPolicyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<GetAccessPolicyError, R>) -> Self
fn from(err: SdkError<GetAccessPolicyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetAccountSettingsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetAccountSettingsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<GetAccountSettingsError, R>) -> Self
fn from(err: SdkError<GetAccountSettingsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetPoliciesStatsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetPoliciesStatsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<GetPoliciesStatsError, R>) -> Self
fn from(err: SdkError<GetPoliciesStatsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetSecurityConfigError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetSecurityConfigError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<GetSecurityConfigError, R>) -> Self
fn from(err: SdkError<GetSecurityConfigError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetSecurityPolicyError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetSecurityPolicyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<GetSecurityPolicyError, R>) -> Self
fn from(err: SdkError<GetSecurityPolicyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListAccessPoliciesError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListAccessPoliciesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListAccessPoliciesError, R>) -> Self
fn from(err: SdkError<ListAccessPoliciesError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListCollectionsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListCollectionsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListCollectionsError, R>) -> Self
fn from(err: SdkError<ListCollectionsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListSecurityConfigsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListSecurityConfigsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListSecurityConfigsError, R>) -> Self
fn from(err: SdkError<ListSecurityConfigsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListSecurityPoliciesError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListSecurityPoliciesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListSecurityPoliciesError, R>) -> Self
fn from(err: SdkError<ListSecurityPoliciesError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListVpcEndpointsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListVpcEndpointsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListVpcEndpointsError, R>) -> Self
fn from(err: SdkError<ListVpcEndpointsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<TagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<TagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateAccessPolicyError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateAccessPolicyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UpdateAccessPolicyError, R>) -> Self
fn from(err: SdkError<UpdateAccessPolicyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateAccountSettingsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateAccountSettingsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UpdateAccountSettingsError, R>) -> Self
fn from(err: SdkError<UpdateAccountSettingsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateCollectionError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateCollectionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UpdateCollectionError, R>) -> Self
fn from(err: SdkError<UpdateCollectionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateSecurityConfigError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateSecurityConfigError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UpdateSecurityConfigError, R>) -> Self
fn from(err: SdkError<UpdateSecurityConfigError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateSecurityPolicyError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateSecurityPolicyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UpdateSecurityPolicyError, R>) -> Self
fn from(err: SdkError<UpdateSecurityPolicyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateVpcEndpointError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateVpcEndpointError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UpdateVpcEndpointError, R>) -> Self
fn from(err: SdkError<UpdateVpcEndpointError, R>) -> Self
Converts to this type from the input type.
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UpdateAccessPolicyError> for Error
impl From<UpdateAccessPolicyError> for Error
source§fn from(err: UpdateAccessPolicyError) -> Self
fn from(err: UpdateAccessPolicyError) -> Self
Converts to this type from the input type.
source§impl From<UpdateAccountSettingsError> for Error
impl From<UpdateAccountSettingsError> for Error
source§fn from(err: UpdateAccountSettingsError) -> Self
fn from(err: UpdateAccountSettingsError) -> Self
Converts to this type from the input type.
source§impl From<UpdateCollectionError> for Error
impl From<UpdateCollectionError> for Error
source§fn from(err: UpdateCollectionError) -> Self
fn from(err: UpdateCollectionError) -> Self
Converts to this type from the input type.
source§impl From<UpdateSecurityConfigError> for Error
impl From<UpdateSecurityConfigError> for Error
source§fn from(err: UpdateSecurityConfigError) -> Self
fn from(err: UpdateSecurityConfigError) -> Self
Converts to this type from the input type.
source§impl From<UpdateSecurityPolicyError> for Error
impl From<UpdateSecurityPolicyError> for Error
source§fn from(err: UpdateSecurityPolicyError) -> Self
fn from(err: UpdateSecurityPolicyError) -> Self
Converts to this type from the input type.
source§impl From<UpdateVpcEndpointError> for Error
impl From<UpdateVpcEndpointError> for Error
source§fn from(err: UpdateVpcEndpointError) -> Self
fn from(err: UpdateVpcEndpointError) -> Self
Converts to this type from the input type.