#[non_exhaustive]
pub enum Error {
Show 14 variants AccessDeniedException(AccessDeniedException), AccessDeniedForDependencyException(AccessDeniedForDependencyException), InternalErrorException(InternalErrorException), InvalidOperationException(InvalidOperationException), InvalidPaginationTokenException(InvalidPaginationTokenException), InvalidParameterException(InvalidParameterException), InvalidResourceException(InvalidResourceException), LimitsExceededException(LimitsExceededException), LockedSubscriptionException(LockedSubscriptionException), NoAssociatedRoleException(NoAssociatedRoleException), OptimisticLockException(OptimisticLockException), ResourceAlreadyExistsException(ResourceAlreadyExistsException), 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.
§

AccessDeniedException(AccessDeniedException)

Exception that indicates the specified AttackId does not exist, or the requester does not have the appropriate permissions to access the AttackId.

§

AccessDeniedForDependencyException(AccessDeniedForDependencyException)

In order to grant the necessary access to the Shield Response Team (SRT) the user submitting the request must have the iam:PassRole permission. This error indicates the user did not have the appropriate permissions. For more information, see Granting a User Permissions to Pass a Role to an Amazon Web Services Service.

§

InternalErrorException(InternalErrorException)

Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.

§

InvalidOperationException(InvalidOperationException)

Exception that indicates that the operation would not cause any change to occur.

§

InvalidPaginationTokenException(InvalidPaginationTokenException)

Exception that indicates that the NextToken specified in the request is invalid. Submit the request using the NextToken value that was returned in the prior response.

§

InvalidParameterException(InvalidParameterException)

Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties.

§

InvalidResourceException(InvalidResourceException)

Exception that indicates that the resource is invalid. You might not have access to the resource, or the resource might not exist.

§

LimitsExceededException(LimitsExceededException)

Exception that indicates that the operation would exceed a limit.

§

LockedSubscriptionException(LockedSubscriptionException)

You are trying to update a subscription that has not yet completed the 1-year commitment. You can change the AutoRenew parameter during the last 30 days of your subscription. This exception indicates that you are attempting to change AutoRenew prior to that period.

§

NoAssociatedRoleException(NoAssociatedRoleException)

The ARN of the role that you specified does not exist.

§

OptimisticLockException(OptimisticLockException)

Exception that indicates that the resource state has been modified by another client. Retrieve the resource and then retry your request.

§

ResourceAlreadyExistsException(ResourceAlreadyExistsException)

Exception indicating the specified resource already exists. If available, this exception includes details in additional properties.

§

ResourceNotFoundException(ResourceNotFoundException)

Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties.

§

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, demand: &mut Demand<'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<AssociateDRTLogBucketError> for Error

source§

fn from(err: AssociateDRTLogBucketError) -> Self

Converts to this type from the input type.
source§

impl From<AssociateDRTRoleError> for Error

source§

fn from(err: AssociateDRTRoleError) -> Self

Converts to this type from the input type.
source§

impl From<AssociateHealthCheckError> for Error

source§

fn from(err: AssociateHealthCheckError) -> Self

Converts to this type from the input type.
source§

impl From<AssociateProactiveEngagementDetailsError> for Error

source§

fn from(err: AssociateProactiveEngagementDetailsError) -> Self

Converts to this type from the input type.
source§

impl From<CreateProtectionError> for Error

source§

fn from(err: CreateProtectionError) -> Self

Converts to this type from the input type.
source§

impl From<CreateProtectionGroupError> for Error

source§

fn from(err: CreateProtectionGroupError) -> Self

Converts to this type from the input type.
source§

impl From<CreateSubscriptionError> for Error

source§

fn from(err: CreateSubscriptionError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteProtectionError> for Error

source§

fn from(err: DeleteProtectionError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteProtectionGroupError> for Error

source§

fn from(err: DeleteProtectionGroupError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteSubscriptionError> for Error

source§

fn from(err: DeleteSubscriptionError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeAttackError> for Error

source§

fn from(err: DescribeAttackError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeAttackStatisticsError> for Error

source§

fn from(err: DescribeAttackStatisticsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeDRTAccessError> for Error

source§

fn from(err: DescribeDRTAccessError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeEmergencyContactSettingsError> for Error

source§

fn from(err: DescribeEmergencyContactSettingsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeProtectionError> for Error

source§

fn from(err: DescribeProtectionError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeProtectionGroupError> for Error

source§

fn from(err: DescribeProtectionGroupError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeSubscriptionError> for Error

source§

fn from(err: DescribeSubscriptionError) -> Self

Converts to this type from the input type.
source§

impl From<DisableApplicationLayerAutomaticResponseError> for Error

source§

fn from(err: DisableApplicationLayerAutomaticResponseError) -> Self

Converts to this type from the input type.
source§

impl From<DisableProactiveEngagementError> for Error

source§

fn from(err: DisableProactiveEngagementError) -> Self

Converts to this type from the input type.
source§

impl From<DisassociateDRTLogBucketError> for Error

source§

fn from(err: DisassociateDRTLogBucketError) -> Self

Converts to this type from the input type.
source§

impl From<DisassociateDRTRoleError> for Error

source§

fn from(err: DisassociateDRTRoleError) -> Self

Converts to this type from the input type.
source§

impl From<DisassociateHealthCheckError> for Error

source§

fn from(err: DisassociateHealthCheckError) -> Self

Converts to this type from the input type.
source§

impl From<EnableApplicationLayerAutomaticResponseError> for Error

source§

fn from(err: EnableApplicationLayerAutomaticResponseError) -> Self

Converts to this type from the input type.
source§

impl From<EnableProactiveEngagementError> for Error

source§

fn from(err: EnableProactiveEngagementError) -> Self

Converts to this type from the input type.
source§

impl From<GetSubscriptionStateError> for Error

source§

fn from(err: GetSubscriptionStateError) -> Self

Converts to this type from the input type.
source§

impl From<ListAttacksError> for Error

source§

fn from(err: ListAttacksError) -> Self

Converts to this type from the input type.
source§

impl From<ListProtectionGroupsError> for Error

source§

fn from(err: ListProtectionGroupsError) -> Self

Converts to this type from the input type.
source§

impl From<ListProtectionsError> for Error

source§

fn from(err: ListProtectionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListResourcesInProtectionGroupError> for Error

source§

fn from(err: ListResourcesInProtectionGroupError) -> 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<R> From<SdkError<AssociateDRTLogBucketError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<AssociateDRTRoleError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<AssociateHealthCheckError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<AssociateProactiveEngagementDetailsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateProtectionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateProtectionGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateSubscriptionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteProtectionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteProtectionGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteSubscriptionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeAttackError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeAttackStatisticsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeDRTAccessError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeEmergencyContactSettingsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeProtectionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeProtectionGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeSubscriptionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisableApplicationLayerAutomaticResponseError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisableProactiveEngagementError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisassociateDRTLogBucketError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisassociateDRTRoleError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisassociateHealthCheckError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<EnableApplicationLayerAutomaticResponseError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<EnableProactiveEngagementError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetSubscriptionStateError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListAttacksError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListProtectionGroupsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListProtectionsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListResourcesInProtectionGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListResourcesInProtectionGroupError, 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<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<UpdateApplicationLayerAutomaticResponseError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateEmergencyContactSettingsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateProtectionGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateSubscriptionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

source§

fn from(err: UpdateApplicationLayerAutomaticResponseError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateEmergencyContactSettingsError> for Error

source§

fn from(err: UpdateEmergencyContactSettingsError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateProtectionGroupError> for Error

source§

fn from(err: UpdateProtectionGroupError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateSubscriptionError> for Error

source§

fn from(err: UpdateSubscriptionError) -> 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<E> Provider for Ewhere E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
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