#[non_exhaustive]
pub enum Error { ConflictException(ConflictException), InternalServerException(InternalServerException), OcuLimitExceededException(OcuLimitExceededException), ResourceNotFoundException(ResourceNotFoundException), ServiceQuotaExceededException(ServiceQuotaExceededException), 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 resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

§

InternalServerException(InternalServerException)

Thrown when an error internal to the service occurs while processing a request.

§

OcuLimitExceededException(OcuLimitExceededException)

Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit.

§

ResourceNotFoundException(ResourceNotFoundException)

Thrown when accessing or deleting a resource that does not exist.

§

ServiceQuotaExceededException(ServiceQuotaExceededException)

Thrown when you attempt to create more resources than the service allows based on service quotas.

§

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 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<BatchGetCollectionError> for Error

source§

fn from(err: BatchGetCollectionError) -> Self

Converts to this type from the input type.
source§

impl From<BatchGetVpcEndpointError> for Error

source§

fn from(err: BatchGetVpcEndpointError) -> Self

Converts to this type from the input type.
source§

impl From<CreateAccessPolicyError> for Error

source§

fn from(err: CreateAccessPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<CreateCollectionError> for Error

source§

fn from(err: CreateCollectionError) -> Self

Converts to this type from the input type.
source§

impl From<CreateSecurityConfigError> for Error

source§

fn from(err: CreateSecurityConfigError) -> Self

Converts to this type from the input type.
source§

impl From<CreateSecurityPolicyError> for Error

source§

fn from(err: CreateSecurityPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<CreateVpcEndpointError> for Error

source§

fn from(err: CreateVpcEndpointError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteAccessPolicyError> for Error

source§

fn from(err: DeleteAccessPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteCollectionError> for Error

source§

fn from(err: DeleteCollectionError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteSecurityConfigError> for Error

source§

fn from(err: DeleteSecurityConfigError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteSecurityPolicyError> for Error

source§

fn from(err: DeleteSecurityPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteVpcEndpointError> for Error

source§

fn from(err: DeleteVpcEndpointError) -> Self

Converts to this type from the input type.
source§

impl From<GetAccessPolicyError> for Error

source§

fn from(err: GetAccessPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<GetAccountSettingsError> for Error

source§

fn from(err: GetAccountSettingsError) -> Self

Converts to this type from the input type.
source§

impl From<GetPoliciesStatsError> for Error

source§

fn from(err: GetPoliciesStatsError) -> Self

Converts to this type from the input type.
source§

impl From<GetSecurityConfigError> for Error

source§

fn from(err: GetSecurityConfigError) -> Self

Converts to this type from the input type.
source§

impl From<GetSecurityPolicyError> for Error

source§

fn from(err: GetSecurityPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<ListAccessPoliciesError> for Error

source§

fn from(err: ListAccessPoliciesError) -> Self

Converts to this type from the input type.
source§

impl From<ListCollectionsError> for Error

source§

fn from(err: ListCollectionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListSecurityConfigsError> for Error

source§

fn from(err: ListSecurityConfigsError) -> Self

Converts to this type from the input type.
source§

impl From<ListSecurityPoliciesError> for Error

source§

fn from(err: ListSecurityPoliciesError) -> Self

Converts to this type from the input type.
source§

impl From<ListTagsForResourceError> for Error

source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
source§

impl From<ListVpcEndpointsError> for Error

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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

Converts to this type from the input type.
source§

impl From<TagResourceError> for Error

source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UntagResourceError> for Error

source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateAccessPolicyError> for Error

source§

fn from(err: UpdateAccessPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateAccountSettingsError> for Error

source§

fn from(err: UpdateAccountSettingsError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateCollectionError> for Error

source§

fn from(err: UpdateCollectionError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateSecurityConfigError> for Error

source§

fn from(err: UpdateSecurityConfigError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateSecurityPolicyError> for Error

source§

fn from(err: UpdateSecurityPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateVpcEndpointError> for Error

source§

fn from(err: UpdateVpcEndpointError) -> Self

Converts to this type from the input type.
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 !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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere 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 Twhere 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 Twhere 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