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).