#[non_exhaustive]pub enum ListDeploymentTargetsError {
DeploymentDoesNotExistException(DeploymentDoesNotExistException),
DeploymentIdRequiredException(DeploymentIdRequiredException),
DeploymentNotStartedException(DeploymentNotStartedException),
InvalidDeploymentIdException(InvalidDeploymentIdException),
InvalidDeploymentInstanceTypeException(InvalidDeploymentInstanceTypeException),
InvalidInstanceStatusException(InvalidInstanceStatusException),
InvalidInstanceTypeException(InvalidInstanceTypeException),
InvalidNextTokenException(InvalidNextTokenException),
Unhandled(Unhandled),
}
Expand description
Error type for the ListDeploymentTargetsError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DeploymentDoesNotExistException(DeploymentDoesNotExistException)
The deployment with the user or Amazon Web Services account does not exist.
DeploymentIdRequiredException(DeploymentIdRequiredException)
At least one deployment ID must be specified.
DeploymentNotStartedException(DeploymentNotStartedException)
The specified deployment has not started.
InvalidDeploymentIdException(InvalidDeploymentIdException)
At least one of the deployment IDs was specified in an invalid format.
InvalidDeploymentInstanceTypeException(InvalidDeploymentInstanceTypeException)
An instance type was specified for an in-place deployment. Instance types are supported for blue/green deployments only.
InvalidInstanceStatusException(InvalidInstanceStatusException)
The specified instance status does not exist.
InvalidInstanceTypeException(InvalidInstanceTypeException)
An invalid instance type was specified for instances in a blue/green deployment. Valid values include "Blue" for an original environment and "Green" for a replacement environment.
InvalidNextTokenException(InvalidNextTokenException)
The next token was specified in an invalid format.
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).
Implementations§
source§impl ListDeploymentTargetsError
impl ListDeploymentTargetsError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the ListDeploymentTargetsError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ListDeploymentTargetsError::Unhandled
variant from an ErrorMetadata
.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_deployment_does_not_exist_exception(&self) -> bool
pub fn is_deployment_does_not_exist_exception(&self) -> bool
Returns true
if the error kind is ListDeploymentTargetsError::DeploymentDoesNotExistException
.
sourcepub fn is_deployment_id_required_exception(&self) -> bool
pub fn is_deployment_id_required_exception(&self) -> bool
Returns true
if the error kind is ListDeploymentTargetsError::DeploymentIdRequiredException
.
sourcepub fn is_deployment_not_started_exception(&self) -> bool
pub fn is_deployment_not_started_exception(&self) -> bool
Returns true
if the error kind is ListDeploymentTargetsError::DeploymentNotStartedException
.
sourcepub fn is_invalid_deployment_id_exception(&self) -> bool
pub fn is_invalid_deployment_id_exception(&self) -> bool
Returns true
if the error kind is ListDeploymentTargetsError::InvalidDeploymentIdException
.
sourcepub fn is_invalid_deployment_instance_type_exception(&self) -> bool
pub fn is_invalid_deployment_instance_type_exception(&self) -> bool
Returns true
if the error kind is ListDeploymentTargetsError::InvalidDeploymentInstanceTypeException
.
sourcepub fn is_invalid_instance_status_exception(&self) -> bool
pub fn is_invalid_instance_status_exception(&self) -> bool
Returns true
if the error kind is ListDeploymentTargetsError::InvalidInstanceStatusException
.
sourcepub fn is_invalid_instance_type_exception(&self) -> bool
pub fn is_invalid_instance_type_exception(&self) -> bool
Returns true
if the error kind is ListDeploymentTargetsError::InvalidInstanceTypeException
.
sourcepub fn is_invalid_next_token_exception(&self) -> bool
pub fn is_invalid_next_token_exception(&self) -> bool
Returns true
if the error kind is ListDeploymentTargetsError::InvalidNextTokenException
.
Trait Implementations§
source§impl CreateUnhandledError for ListDeploymentTargetsError
impl CreateUnhandledError for ListDeploymentTargetsError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source
and error metadata.source§impl Debug for ListDeploymentTargetsError
impl Debug for ListDeploymentTargetsError
source§impl Display for ListDeploymentTargetsError
impl Display for ListDeploymentTargetsError
source§impl Error for ListDeploymentTargetsError
impl Error for ListDeploymentTargetsError
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<ListDeploymentTargetsError> for Error
impl From<ListDeploymentTargetsError> for Error
source§fn from(err: ListDeploymentTargetsError) -> Self
fn from(err: ListDeploymentTargetsError) -> Self
source§impl ProvideErrorMetadata for ListDeploymentTargetsError
impl ProvideErrorMetadata for ListDeploymentTargetsError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ListDeploymentTargetsError
impl RequestId for ListDeploymentTargetsError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.