Enum aws_sdk_servicediscovery::Error

source ·
#[non_exhaustive]
pub enum Error {
Show 15 variants CustomHealthNotFound(CustomHealthNotFound), DuplicateRequest(DuplicateRequest), InstanceNotFound(InstanceNotFound), InvalidInput(InvalidInput), NamespaceAlreadyExists(NamespaceAlreadyExists), NamespaceNotFound(NamespaceNotFound), OperationNotFound(OperationNotFound), RequestLimitExceeded(RequestLimitExceeded), ResourceInUse(ResourceInUse), ResourceLimitExceeded(ResourceLimitExceeded), ResourceNotFoundException(ResourceNotFoundException), ServiceAlreadyExists(ServiceAlreadyExists), ServiceNotFound(ServiceNotFound), TooManyTagsException(TooManyTagsException), 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.
§

CustomHealthNotFound(CustomHealthNotFound)

The health check for the instance that's specified by ServiceId and InstanceId isn't a custom health check.

§

DuplicateRequest(DuplicateRequest)

The operation is already in progress.

§

InstanceNotFound(InstanceNotFound)

No instance exists with the specified ID, or the instance was recently registered, and information about the instance hasn't propagated yet.

§

InvalidInput(InvalidInput)

One or more specified values aren't valid. For example, a required value might be missing, a numeric value might be outside the allowed range, or a string value might exceed length constraints.

§

NamespaceAlreadyExists(NamespaceAlreadyExists)

The namespace that you're trying to create already exists.

§

NamespaceNotFound(NamespaceNotFound)

No namespace exists with the specified ID.

§

OperationNotFound(OperationNotFound)

No operation exists with the specified ID.

§

RequestLimitExceeded(RequestLimitExceeded)

The operation can't be completed because you've reached the quota for the number of requests. For more information, see Cloud Map API request throttling quota in the Cloud Map Developer Guide.

§

ResourceInUse(ResourceInUse)

The specified resource can't be deleted because it contains other resources. For example, you can't delete a service that contains any instances.

§

ResourceLimitExceeded(ResourceLimitExceeded)

The resource can't be created because you've reached the quota on the number of resources.

§

ResourceNotFoundException(ResourceNotFoundException)

The operation can't be completed because the resource was not found.

§

ServiceAlreadyExists(ServiceAlreadyExists)

The service can't be created because a service with the same name already exists.

§

ServiceNotFound(ServiceNotFound)

No service exists with the specified ID.

§

TooManyTagsException(TooManyTagsException)

The list of tags on the resource is over the quota. The maximum number of tags that can be applied to a resource is 50.

§

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

source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
source§

impl From<CreateHttpNamespaceError> for Error

source§

fn from(err: CreateHttpNamespaceError) -> Self

Converts to this type from the input type.
source§

impl From<CreatePrivateDnsNamespaceError> for Error

source§

fn from(err: CreatePrivateDnsNamespaceError) -> Self

Converts to this type from the input type.
source§

impl From<CreatePublicDnsNamespaceError> for Error

source§

fn from(err: CreatePublicDnsNamespaceError) -> Self

Converts to this type from the input type.
source§

impl From<CreateServiceError> for Error

source§

fn from(err: CreateServiceError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteNamespaceError> for Error

source§

fn from(err: DeleteNamespaceError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteServiceError> for Error

source§

fn from(err: DeleteServiceError) -> Self

Converts to this type from the input type.
source§

impl From<DeregisterInstanceError> for Error

source§

fn from(err: DeregisterInstanceError) -> Self

Converts to this type from the input type.
source§

impl From<DiscoverInstancesError> for Error

source§

fn from(err: DiscoverInstancesError) -> Self

Converts to this type from the input type.
source§

impl From<DiscoverInstancesRevisionError> for Error

source§

fn from(err: DiscoverInstancesRevisionError) -> Self

Converts to this type from the input type.
source§

impl From<GetInstanceError> for Error

source§

fn from(err: GetInstanceError) -> Self

Converts to this type from the input type.
source§

impl From<GetInstancesHealthStatusError> for Error

source§

fn from(err: GetInstancesHealthStatusError) -> Self

Converts to this type from the input type.
source§

impl From<GetNamespaceError> for Error

source§

fn from(err: GetNamespaceError) -> Self

Converts to this type from the input type.
source§

impl From<GetOperationError> for Error

source§

fn from(err: GetOperationError) -> Self

Converts to this type from the input type.
source§

impl From<GetServiceError> for Error

source§

fn from(err: GetServiceError) -> Self

Converts to this type from the input type.
source§

impl From<ListInstancesError> for Error

source§

fn from(err: ListInstancesError) -> Self

Converts to this type from the input type.
source§

impl From<ListNamespacesError> for Error

source§

fn from(err: ListNamespacesError) -> Self

Converts to this type from the input type.
source§

impl From<ListOperationsError> for Error

source§

fn from(err: ListOperationsError) -> Self

Converts to this type from the input type.
source§

impl From<ListServicesError> for Error

source§

fn from(err: ListServicesError) -> 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<RegisterInstanceError> for Error

source§

fn from(err: RegisterInstanceError) -> Self

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
where 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<RegisterInstanceError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<TagResourceError, R>> for Error
where 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 Error
where 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<UpdateHttpNamespaceError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

fn from(err: SdkError<UpdateServiceError, 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<UpdateHttpNamespaceError> for Error

source§

fn from(err: UpdateHttpNamespaceError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateInstanceCustomHealthStatusError> for Error

source§

fn from(err: UpdateInstanceCustomHealthStatusError) -> Self

Converts to this type from the input type.
source§

impl From<UpdatePrivateDnsNamespaceError> for Error

source§

fn from(err: UpdatePrivateDnsNamespaceError) -> Self

Converts to this type from the input type.
source§

impl From<UpdatePublicDnsNamespaceError> for Error

source§

fn from(err: UpdatePublicDnsNamespaceError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateServiceError> for Error

source§

fn from(err: UpdateServiceError) -> 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