Enum aws_sdk_snowball::Error
source · #[non_exhaustive]pub enum Error {
ClusterLimitExceededException(ClusterLimitExceededException),
ConflictException(ConflictException),
Ec2RequestFailedException(Ec2RequestFailedException),
InvalidAddressException(InvalidAddressException),
InvalidInputCombinationException(InvalidInputCombinationException),
InvalidJobStateException(InvalidJobStateException),
InvalidNextTokenException(InvalidNextTokenException),
InvalidResourceException(InvalidResourceException),
KmsRequestFailedException(KmsRequestFailedException),
ReturnShippingLabelAlreadyExistsException(ReturnShippingLabelAlreadyExistsException),
UnsupportedAddressException(UnsupportedAddressException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ClusterLimitExceededException(ClusterLimitExceededException)
Job creation failed. Currently, clusters support five nodes. If you have fewer than five nodes for your cluster and you have more nodes to create for this cluster, try again and create jobs until your cluster has exactly five nodes.
ConflictException(ConflictException)
You get this exception when you call CreateReturnShippingLabel
more than once when other requests are not completed.
Ec2RequestFailedException(Ec2RequestFailedException)
Your user lacks the necessary Amazon EC2 permissions to perform the attempted action.
InvalidAddressException(InvalidAddressException)
The address provided was invalid. Check the address with your region's carrier, and try again.
InvalidInputCombinationException(InvalidInputCombinationException)
Job or cluster creation failed. One or more inputs were invalid. Confirm that the CreateClusterRequest$SnowballType
value supports your CreateJobRequest$JobType
, and try again.
InvalidJobStateException(InvalidJobStateException)
The action can't be performed because the job's current state doesn't allow that action to be performed.
InvalidNextTokenException(InvalidNextTokenException)
The NextToken
string was altered unexpectedly, and the operation has stopped. Run the operation without changing the NextToken
string, and try again.
InvalidResourceException(InvalidResourceException)
The specified resource can't be found. Check the information you provided in your last request, and try again.
KmsRequestFailedException(KmsRequestFailedException)
The provided Key Management Service key lacks the permissions to perform the specified CreateJob
or UpdateJob
action.
ReturnShippingLabelAlreadyExistsException(ReturnShippingLabelAlreadyExistsException)
You get this exception if you call CreateReturnShippingLabel
and a valid return shipping label already exists. In this case, use DescribeReturnShippingLabel
to get the URL.
UnsupportedAddressException(UnsupportedAddressException)
The address is either outside the serviceable area for your region, or an error occurred. Check the address with your region's carrier and try again. If the issue persists, contact Amazon Web Services Support.
Unhandled(Unhandled)
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 Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CancelClusterError> for Error
impl From<CancelClusterError> for Error
source§fn from(err: CancelClusterError) -> Self
fn from(err: CancelClusterError) -> Self
source§impl From<CancelJobError> for Error
impl From<CancelJobError> for Error
source§fn from(err: CancelJobError) -> Self
fn from(err: CancelJobError) -> Self
source§impl From<CreateAddressError> for Error
impl From<CreateAddressError> for Error
source§fn from(err: CreateAddressError) -> Self
fn from(err: CreateAddressError) -> Self
source§impl From<CreateClusterError> for Error
impl From<CreateClusterError> for Error
source§fn from(err: CreateClusterError) -> Self
fn from(err: CreateClusterError) -> Self
source§impl From<CreateJobError> for Error
impl From<CreateJobError> for Error
source§fn from(err: CreateJobError) -> Self
fn from(err: CreateJobError) -> Self
source§impl From<CreateLongTermPricingError> for Error
impl From<CreateLongTermPricingError> for Error
source§fn from(err: CreateLongTermPricingError) -> Self
fn from(err: CreateLongTermPricingError) -> Self
source§impl From<CreateReturnShippingLabelError> for Error
impl From<CreateReturnShippingLabelError> for Error
source§fn from(err: CreateReturnShippingLabelError) -> Self
fn from(err: CreateReturnShippingLabelError) -> Self
source§impl From<DescribeAddressError> for Error
impl From<DescribeAddressError> for Error
source§fn from(err: DescribeAddressError) -> Self
fn from(err: DescribeAddressError) -> Self
source§impl From<DescribeAddressesError> for Error
impl From<DescribeAddressesError> for Error
source§fn from(err: DescribeAddressesError) -> Self
fn from(err: DescribeAddressesError) -> Self
source§impl From<DescribeClusterError> for Error
impl From<DescribeClusterError> for Error
source§fn from(err: DescribeClusterError) -> Self
fn from(err: DescribeClusterError) -> Self
source§impl From<DescribeJobError> for Error
impl From<DescribeJobError> for Error
source§fn from(err: DescribeJobError) -> Self
fn from(err: DescribeJobError) -> Self
source§impl From<DescribeReturnShippingLabelError> for Error
impl From<DescribeReturnShippingLabelError> for Error
source§fn from(err: DescribeReturnShippingLabelError) -> Self
fn from(err: DescribeReturnShippingLabelError) -> Self
source§impl From<GetJobManifestError> for Error
impl From<GetJobManifestError> for Error
source§fn from(err: GetJobManifestError) -> Self
fn from(err: GetJobManifestError) -> Self
source§impl From<GetJobUnlockCodeError> for Error
impl From<GetJobUnlockCodeError> for Error
source§fn from(err: GetJobUnlockCodeError) -> Self
fn from(err: GetJobUnlockCodeError) -> Self
source§impl From<GetSnowballUsageError> for Error
impl From<GetSnowballUsageError> for Error
source§fn from(err: GetSnowballUsageError) -> Self
fn from(err: GetSnowballUsageError) -> Self
source§impl From<GetSoftwareUpdatesError> for Error
impl From<GetSoftwareUpdatesError> for Error
source§fn from(err: GetSoftwareUpdatesError) -> Self
fn from(err: GetSoftwareUpdatesError) -> Self
source§impl From<ListClusterJobsError> for Error
impl From<ListClusterJobsError> for Error
source§fn from(err: ListClusterJobsError) -> Self
fn from(err: ListClusterJobsError) -> Self
source§impl From<ListClustersError> for Error
impl From<ListClustersError> for Error
source§fn from(err: ListClustersError) -> Self
fn from(err: ListClustersError) -> Self
source§impl From<ListCompatibleImagesError> for Error
impl From<ListCompatibleImagesError> for Error
source§fn from(err: ListCompatibleImagesError) -> Self
fn from(err: ListCompatibleImagesError) -> Self
source§impl From<ListJobsError> for Error
impl From<ListJobsError> for Error
source§fn from(err: ListJobsError) -> Self
fn from(err: ListJobsError) -> Self
source§impl From<ListLongTermPricingError> for Error
impl From<ListLongTermPricingError> for Error
source§fn from(err: ListLongTermPricingError) -> Self
fn from(err: ListLongTermPricingError) -> Self
source§impl From<ListPickupLocationsError> for Error
impl From<ListPickupLocationsError> for Error
source§fn from(err: ListPickupLocationsError) -> Self
fn from(err: ListPickupLocationsError) -> Self
source§impl From<ListServiceVersionsError> for Error
impl From<ListServiceVersionsError> for Error
source§fn from(err: ListServiceVersionsError) -> Self
fn from(err: ListServiceVersionsError) -> Self
source§impl<R> From<SdkError<CancelClusterError, R>> for Error
impl<R> From<SdkError<CancelClusterError, R>> for Error
source§fn from(err: SdkError<CancelClusterError, R>) -> Self
fn from(err: SdkError<CancelClusterError, R>) -> Self
source§impl<R> From<SdkError<CancelJobError, R>> for Error
impl<R> From<SdkError<CancelJobError, R>> for Error
source§fn from(err: SdkError<CancelJobError, R>) -> Self
fn from(err: SdkError<CancelJobError, R>) -> Self
source§impl<R> From<SdkError<CreateAddressError, R>> for Error
impl<R> From<SdkError<CreateAddressError, R>> for Error
source§fn from(err: SdkError<CreateAddressError, R>) -> Self
fn from(err: SdkError<CreateAddressError, R>) -> Self
source§impl<R> From<SdkError<CreateClusterError, R>> for Error
impl<R> From<SdkError<CreateClusterError, R>> for Error
source§fn from(err: SdkError<CreateClusterError, R>) -> Self
fn from(err: SdkError<CreateClusterError, R>) -> Self
source§impl<R> From<SdkError<CreateJobError, R>> for Error
impl<R> From<SdkError<CreateJobError, R>> for Error
source§fn from(err: SdkError<CreateJobError, R>) -> Self
fn from(err: SdkError<CreateJobError, R>) -> Self
source§impl<R> From<SdkError<CreateLongTermPricingError, R>> for Error
impl<R> From<SdkError<CreateLongTermPricingError, R>> for Error
source§fn from(err: SdkError<CreateLongTermPricingError, R>) -> Self
fn from(err: SdkError<CreateLongTermPricingError, R>) -> Self
source§impl<R> From<SdkError<CreateReturnShippingLabelError, R>> for Error
impl<R> From<SdkError<CreateReturnShippingLabelError, R>> for Error
source§fn from(err: SdkError<CreateReturnShippingLabelError, R>) -> Self
fn from(err: SdkError<CreateReturnShippingLabelError, R>) -> Self
source§impl<R> From<SdkError<DescribeAddressError, R>> for Error
impl<R> From<SdkError<DescribeAddressError, R>> for Error
source§fn from(err: SdkError<DescribeAddressError, R>) -> Self
fn from(err: SdkError<DescribeAddressError, R>) -> Self
source§impl<R> From<SdkError<DescribeAddressesError, R>> for Error
impl<R> From<SdkError<DescribeAddressesError, R>> for Error
source§fn from(err: SdkError<DescribeAddressesError, R>) -> Self
fn from(err: SdkError<DescribeAddressesError, R>) -> Self
source§impl<R> From<SdkError<DescribeClusterError, R>> for Error
impl<R> From<SdkError<DescribeClusterError, R>> for Error
source§fn from(err: SdkError<DescribeClusterError, R>) -> Self
fn from(err: SdkError<DescribeClusterError, R>) -> Self
source§impl<R> From<SdkError<DescribeJobError, R>> for Error
impl<R> From<SdkError<DescribeJobError, R>> for Error
source§fn from(err: SdkError<DescribeJobError, R>) -> Self
fn from(err: SdkError<DescribeJobError, R>) -> Self
source§impl<R> From<SdkError<DescribeReturnShippingLabelError, R>> for Error
impl<R> From<SdkError<DescribeReturnShippingLabelError, R>> for Error
source§fn from(err: SdkError<DescribeReturnShippingLabelError, R>) -> Self
fn from(err: SdkError<DescribeReturnShippingLabelError, R>) -> Self
source§impl<R> From<SdkError<GetJobManifestError, R>> for Error
impl<R> From<SdkError<GetJobManifestError, R>> for Error
source§fn from(err: SdkError<GetJobManifestError, R>) -> Self
fn from(err: SdkError<GetJobManifestError, R>) -> Self
source§impl<R> From<SdkError<GetJobUnlockCodeError, R>> for Error
impl<R> From<SdkError<GetJobUnlockCodeError, R>> for Error
source§fn from(err: SdkError<GetJobUnlockCodeError, R>) -> Self
fn from(err: SdkError<GetJobUnlockCodeError, R>) -> Self
source§impl<R> From<SdkError<GetSnowballUsageError, R>> for Error
impl<R> From<SdkError<GetSnowballUsageError, R>> for Error
source§fn from(err: SdkError<GetSnowballUsageError, R>) -> Self
fn from(err: SdkError<GetSnowballUsageError, R>) -> Self
source§impl<R> From<SdkError<GetSoftwareUpdatesError, R>> for Error
impl<R> From<SdkError<GetSoftwareUpdatesError, R>> for Error
source§fn from(err: SdkError<GetSoftwareUpdatesError, R>) -> Self
fn from(err: SdkError<GetSoftwareUpdatesError, R>) -> Self
source§impl<R> From<SdkError<ListClusterJobsError, R>> for Error
impl<R> From<SdkError<ListClusterJobsError, R>> for Error
source§fn from(err: SdkError<ListClusterJobsError, R>) -> Self
fn from(err: SdkError<ListClusterJobsError, R>) -> Self
source§impl<R> From<SdkError<ListClustersError, R>> for Error
impl<R> From<SdkError<ListClustersError, R>> for Error
source§fn from(err: SdkError<ListClustersError, R>) -> Self
fn from(err: SdkError<ListClustersError, R>) -> Self
source§impl<R> From<SdkError<ListCompatibleImagesError, R>> for Error
impl<R> From<SdkError<ListCompatibleImagesError, R>> for Error
source§fn from(err: SdkError<ListCompatibleImagesError, R>) -> Self
fn from(err: SdkError<ListCompatibleImagesError, R>) -> Self
source§impl<R> From<SdkError<ListJobsError, R>> for Error
impl<R> From<SdkError<ListJobsError, R>> for Error
source§fn from(err: SdkError<ListJobsError, R>) -> Self
fn from(err: SdkError<ListJobsError, R>) -> Self
source§impl<R> From<SdkError<ListLongTermPricingError, R>> for Error
impl<R> From<SdkError<ListLongTermPricingError, R>> for Error
source§fn from(err: SdkError<ListLongTermPricingError, R>) -> Self
fn from(err: SdkError<ListLongTermPricingError, R>) -> Self
source§impl<R> From<SdkError<ListPickupLocationsError, R>> for Error
impl<R> From<SdkError<ListPickupLocationsError, R>> for Error
source§fn from(err: SdkError<ListPickupLocationsError, R>) -> Self
fn from(err: SdkError<ListPickupLocationsError, R>) -> Self
source§impl<R> From<SdkError<ListServiceVersionsError, R>> for Error
impl<R> From<SdkError<ListServiceVersionsError, R>> for Error
source§fn from(err: SdkError<ListServiceVersionsError, R>) -> Self
fn from(err: SdkError<ListServiceVersionsError, R>) -> Self
source§impl<R> From<SdkError<UpdateClusterError, R>> for Error
impl<R> From<SdkError<UpdateClusterError, R>> for Error
source§fn from(err: SdkError<UpdateClusterError, R>) -> Self
fn from(err: SdkError<UpdateClusterError, R>) -> Self
source§impl<R> From<SdkError<UpdateJobError, R>> for Error
impl<R> From<SdkError<UpdateJobError, R>> for Error
source§fn from(err: SdkError<UpdateJobError, R>) -> Self
fn from(err: SdkError<UpdateJobError, R>) -> Self
source§impl<R> From<SdkError<UpdateJobShipmentStateError, R>> for Error
impl<R> From<SdkError<UpdateJobShipmentStateError, R>> for Error
source§fn from(err: SdkError<UpdateJobShipmentStateError, R>) -> Self
fn from(err: SdkError<UpdateJobShipmentStateError, R>) -> Self
source§impl<R> From<SdkError<UpdateLongTermPricingError, R>> for Error
impl<R> From<SdkError<UpdateLongTermPricingError, R>> for Error
source§fn from(err: SdkError<UpdateLongTermPricingError, R>) -> Self
fn from(err: SdkError<UpdateLongTermPricingError, R>) -> Self
source§impl From<UpdateClusterError> for Error
impl From<UpdateClusterError> for Error
source§fn from(err: UpdateClusterError) -> Self
fn from(err: UpdateClusterError) -> Self
source§impl From<UpdateJobError> for Error
impl From<UpdateJobError> for Error
source§fn from(err: UpdateJobError) -> Self
fn from(err: UpdateJobError) -> Self
source§impl From<UpdateJobShipmentStateError> for Error
impl From<UpdateJobShipmentStateError> for Error
source§fn from(err: UpdateJobShipmentStateError) -> Self
fn from(err: UpdateJobShipmentStateError) -> Self
source§impl From<UpdateLongTermPricingError> for Error
impl From<UpdateLongTermPricingError> for Error
source§fn from(err: UpdateLongTermPricingError) -> Self
fn from(err: UpdateLongTermPricingError) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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