Enum aws_sdk_fms::Error

source ·
#[non_exhaustive]
pub enum Error { InternalErrorException(InternalErrorException), InvalidInputException(InvalidInputException), InvalidOperationException(InvalidOperationException), InvalidTypeException(InvalidTypeException), LimitExceededException(LimitExceededException), ResourceNotFoundException(ResourceNotFoundException), 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.
§

InternalErrorException(InternalErrorException)

The operation failed because of a system problem, even though the request was valid. Retry your request.

§

InvalidInputException(InvalidInputException)

The parameters of the request were invalid.

§

InvalidOperationException(InvalidOperationException)

The operation failed because there was nothing to do or the operation wasn't possible. For example, you might have submitted an AssociateAdminAccount request for an account ID that was already set as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by default, and that you need to enable for the Firewall Manager administrator account and for Organizations before you can access it.

§

InvalidTypeException(InvalidTypeException)

The value of the Type parameter is invalid.

§

LimitExceededException(LimitExceededException)

The operation exceeds a resource limit, for example, the maximum number of policy objects that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits in the WAF Developer Guide.

§

ResourceNotFoundException(ResourceNotFoundException)

The specified resource was not found.

§

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

source§

fn from(err: AssociateAdminAccountError) -> Self

Converts to this type from the input type.
source§

impl From<AssociateThirdPartyFirewallError> for Error

source§

fn from(err: AssociateThirdPartyFirewallError) -> Self

Converts to this type from the input type.
source§

impl From<BatchAssociateResourceError> for Error

source§

fn from(err: BatchAssociateResourceError) -> Self

Converts to this type from the input type.
source§

impl From<BatchDisassociateResourceError> for Error

source§

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

source§

fn from(err: DeleteAppsListError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteNotificationChannelError> for Error

source§

fn from(err: DeleteNotificationChannelError) -> Self

Converts to this type from the input type.
source§

impl From<DeletePolicyError> for Error

source§

fn from(err: DeletePolicyError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteProtocolsListError> for Error

source§

fn from(err: DeleteProtocolsListError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteResourceSetError> for Error

source§

fn from(err: DeleteResourceSetError) -> Self

Converts to this type from the input type.
source§

impl From<DisassociateAdminAccountError> for Error

source§

fn from(err: DisassociateAdminAccountError) -> Self

Converts to this type from the input type.
source§

impl From<DisassociateThirdPartyFirewallError> for Error

source§

fn from(err: DisassociateThirdPartyFirewallError) -> Self

Converts to this type from the input type.
source§

impl From<GetAdminAccountError> for Error

source§

fn from(err: GetAdminAccountError) -> Self

Converts to this type from the input type.
source§

impl From<GetAdminScopeError> for Error

source§

fn from(err: GetAdminScopeError) -> Self

Converts to this type from the input type.
source§

impl From<GetAppsListError> for Error

source§

fn from(err: GetAppsListError) -> Self

Converts to this type from the input type.
source§

impl From<GetComplianceDetailError> for Error

source§

fn from(err: GetComplianceDetailError) -> Self

Converts to this type from the input type.
source§

impl From<GetNotificationChannelError> for Error

source§

fn from(err: GetNotificationChannelError) -> Self

Converts to this type from the input type.
source§

impl From<GetPolicyError> for Error

source§

fn from(err: GetPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<GetProtectionStatusError> for Error

source§

fn from(err: GetProtectionStatusError) -> Self

Converts to this type from the input type.
source§

impl From<GetProtocolsListError> for Error

source§

fn from(err: GetProtocolsListError) -> Self

Converts to this type from the input type.
source§

impl From<GetResourceSetError> for Error

source§

fn from(err: GetResourceSetError) -> Self

Converts to this type from the input type.
source§

impl From<GetThirdPartyFirewallAssociationStatusError> for Error

source§

fn from(err: GetThirdPartyFirewallAssociationStatusError) -> Self

Converts to this type from the input type.
source§

impl From<GetViolationDetailsError> for Error

source§

fn from(err: GetViolationDetailsError) -> Self

Converts to this type from the input type.
source§

impl From<ListAdminAccountsForOrganizationError> for Error

source§

fn from(err: ListAdminAccountsForOrganizationError) -> Self

Converts to this type from the input type.
source§

impl From<ListAdminsManagingAccountError> for Error

source§

fn from(err: ListAdminsManagingAccountError) -> Self

Converts to this type from the input type.
source§

impl From<ListAppsListsError> for Error

source§

fn from(err: ListAppsListsError) -> Self

Converts to this type from the input type.
source§

impl From<ListComplianceStatusError> for Error

source§

fn from(err: ListComplianceStatusError) -> Self

Converts to this type from the input type.
source§

impl From<ListDiscoveredResourcesError> for Error

source§

fn from(err: ListDiscoveredResourcesError) -> Self

Converts to this type from the input type.
source§

impl From<ListMemberAccountsError> for Error

source§

fn from(err: ListMemberAccountsError) -> Self

Converts to this type from the input type.
source§

impl From<ListPoliciesError> for Error

source§

fn from(err: ListPoliciesError) -> Self

Converts to this type from the input type.
source§

impl From<ListProtocolsListsError> for Error

source§

fn from(err: ListProtocolsListsError) -> Self

Converts to this type from the input type.
source§

impl From<ListResourceSetResourcesError> for Error

source§

fn from(err: ListResourceSetResourcesError) -> Self

Converts to this type from the input type.
source§

impl From<ListResourceSetsError> for Error

source§

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

source§

fn from(err: ListThirdPartyFirewallFirewallPoliciesError) -> Self

Converts to this type from the input type.
source§

impl From<PutAdminAccountError> for Error

source§

fn from(err: PutAdminAccountError) -> Self

Converts to this type from the input type.
source§

impl From<PutAppsListError> for Error

source§

fn from(err: PutAppsListError) -> Self

Converts to this type from the input type.
source§

impl From<PutNotificationChannelError> for Error

source§

fn from(err: PutNotificationChannelError) -> Self

Converts to this type from the input type.
source§

impl From<PutPolicyError> for Error

source§

fn from(err: PutPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<PutProtocolsListError> for Error

source§

fn from(err: PutProtocolsListError) -> Self

Converts to this type from the input type.
source§

impl From<PutResourceSetError> for Error

source§

fn from(err: PutResourceSetError) -> Self

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

fn from(err: SdkError<ListResourceSetsError, 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<ListThirdPartyFirewallFirewallPoliciesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

fn from(err: SdkError<PutResourceSetError, 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 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 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