Enum rustot::jobs::data_types::ErrorCode
source · pub enum ErrorCode {
InvalidTopic,
InvalidJson,
InvalidRequest,
InvalidStateTransition,
ResourceNotFound,
VersionMismatch,
InternalError,
RequestThrottled,
TerminalStateReached,
}
Variants
InvalidTopic
The request was sent to a topic in the AWS IoT Jobs namespace that does not map to any API.
InvalidJson
The contents of the request could not be interpreted as valid UTF-8-encoded JSON.
InvalidRequest
The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error.
InvalidStateTransition
An update attempted to change the job execution to a state that is invalid because of the job execution’s current state (for example, an attempt to change a request in state SUCCEEDED to state IN_PROGRESS). In this case, the body of the error message also contains the executionState field.
ResourceNotFound
The JobExecution specified by the request topic does not exist.
VersionMismatch
The expected version specified in the request does not match the version of the job execution in the AWS IoT Jobs service. In this case, the body of the error message also contains the executionState field.
InternalError
There was an internal error during the processing of the request.
RequestThrottled
The request was throttled.
TerminalStateReached
Occurs when a command to describe a job is performed on a job that is in a terminal state.