Enum aws_sdk_shield::Error
source · [−]#[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(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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 specifed 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(Box<dyn Error + Send + Sync + 'static>)
An unhandled error occurred.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<R> From<SdkError<AssociateDRTLogBucketError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<AssociateDRTLogBucketError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<AssociateDRTLogBucketError, R>) -> Self
fn from(err: SdkError<AssociateDRTLogBucketError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<AssociateDRTRoleError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<AssociateDRTRoleError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<AssociateDRTRoleError, R>) -> Self
fn from(err: SdkError<AssociateDRTRoleError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<AssociateHealthCheckError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<AssociateHealthCheckError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<AssociateHealthCheckError, R>) -> Self
fn from(err: SdkError<AssociateHealthCheckError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<AssociateProactiveEngagementDetailsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<AssociateProactiveEngagementDetailsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<AssociateProactiveEngagementDetailsError, R>) -> Self
fn from(err: SdkError<AssociateProactiveEngagementDetailsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CreateProtectionError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateProtectionError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateProtectionError, R>) -> Self
fn from(err: SdkError<CreateProtectionError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CreateProtectionGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateProtectionGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateProtectionGroupError, R>) -> Self
fn from(err: SdkError<CreateProtectionGroupError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CreateSubscriptionError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateSubscriptionError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateSubscriptionError, R>) -> Self
fn from(err: SdkError<CreateSubscriptionError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteProtectionError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteProtectionError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteProtectionError, R>) -> Self
fn from(err: SdkError<DeleteProtectionError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteProtectionGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteProtectionGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteProtectionGroupError, R>) -> Self
fn from(err: SdkError<DeleteProtectionGroupError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteSubscriptionError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteSubscriptionError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteSubscriptionError, R>) -> Self
fn from(err: SdkError<DeleteSubscriptionError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeAttackError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeAttackError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeAttackError, R>) -> Self
fn from(err: SdkError<DescribeAttackError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeAttackStatisticsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeAttackStatisticsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeAttackStatisticsError, R>) -> Self
fn from(err: SdkError<DescribeAttackStatisticsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeDRTAccessError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeDRTAccessError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeDRTAccessError, R>) -> Self
fn from(err: SdkError<DescribeDRTAccessError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeEmergencyContactSettingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeEmergencyContactSettingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeEmergencyContactSettingsError, R>) -> Self
fn from(err: SdkError<DescribeEmergencyContactSettingsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeProtectionError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeProtectionError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeProtectionError, R>) -> Self
fn from(err: SdkError<DescribeProtectionError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeProtectionGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeProtectionGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeProtectionGroupError, R>) -> Self
fn from(err: SdkError<DescribeProtectionGroupError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeSubscriptionError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeSubscriptionError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeSubscriptionError, R>) -> Self
fn from(err: SdkError<DescribeSubscriptionError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DisableApplicationLayerAutomaticResponseError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DisableApplicationLayerAutomaticResponseError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DisableApplicationLayerAutomaticResponseError, R>) -> Self
fn from(err: SdkError<DisableApplicationLayerAutomaticResponseError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DisableProactiveEngagementError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DisableProactiveEngagementError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DisableProactiveEngagementError, R>) -> Self
fn from(err: SdkError<DisableProactiveEngagementError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DisassociateDRTLogBucketError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DisassociateDRTLogBucketError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DisassociateDRTLogBucketError, R>) -> Self
fn from(err: SdkError<DisassociateDRTLogBucketError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DisassociateDRTRoleError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DisassociateDRTRoleError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DisassociateDRTRoleError, R>) -> Self
fn from(err: SdkError<DisassociateDRTRoleError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DisassociateHealthCheckError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DisassociateHealthCheckError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DisassociateHealthCheckError, R>) -> Self
fn from(err: SdkError<DisassociateHealthCheckError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<EnableApplicationLayerAutomaticResponseError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<EnableApplicationLayerAutomaticResponseError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<EnableApplicationLayerAutomaticResponseError, R>) -> Self
fn from(err: SdkError<EnableApplicationLayerAutomaticResponseError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<EnableProactiveEngagementError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<EnableProactiveEngagementError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<EnableProactiveEngagementError, R>) -> Self
fn from(err: SdkError<EnableProactiveEngagementError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetSubscriptionStateError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetSubscriptionStateError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetSubscriptionStateError, R>) -> Self
fn from(err: SdkError<GetSubscriptionStateError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListAttacksError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListAttacksError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListAttacksError, R>) -> Self
fn from(err: SdkError<ListAttacksError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListProtectionGroupsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListProtectionGroupsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListProtectionGroupsError, R>) -> Self
fn from(err: SdkError<ListProtectionGroupsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListProtectionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListProtectionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListProtectionsError, R>) -> Self
fn from(err: SdkError<ListProtectionsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListResourcesInProtectionGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListResourcesInProtectionGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListResourcesInProtectionGroupError, R>) -> Self
fn from(err: SdkError<ListResourcesInProtectionGroupError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<TagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<TagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<UntagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UntagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<UpdateApplicationLayerAutomaticResponseError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateApplicationLayerAutomaticResponseError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UpdateApplicationLayerAutomaticResponseError, R>) -> Self
fn from(err: SdkError<UpdateApplicationLayerAutomaticResponseError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<UpdateEmergencyContactSettingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateEmergencyContactSettingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UpdateEmergencyContactSettingsError, R>) -> Self
fn from(err: SdkError<UpdateEmergencyContactSettingsError, R>) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more