#[non_exhaustive]pub enum ListDeploymentInstancesError {
DeploymentDoesNotExistException(DeploymentDoesNotExistException),
DeploymentIdRequiredException(DeploymentIdRequiredException),
DeploymentNotStartedException(DeploymentNotStartedException),
InvalidComputePlatformException(InvalidComputePlatformException),
InvalidDeploymentIdException(InvalidDeploymentIdException),
InvalidDeploymentInstanceTypeException(InvalidDeploymentInstanceTypeException),
InvalidInstanceStatusException(InvalidInstanceStatusException),
InvalidInstanceTypeException(InvalidInstanceTypeException),
InvalidNextTokenException(InvalidNextTokenException),
InvalidTargetFilterNameException(InvalidTargetFilterNameException),
Unhandled(Unhandled),
}
Expand description
Error type for the ListDeploymentInstancesError
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.
InvalidComputePlatformException(InvalidComputePlatformException)
The computePlatform is invalid. The computePlatform should be Lambda
, Server
, or ECS
.
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.
InvalidTargetFilterNameException(InvalidTargetFilterNameException)
The target filter name is invalid.
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 ListDeploymentInstancesError
impl ListDeploymentInstancesError
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 ListDeploymentInstancesError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ListDeploymentInstancesError::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 ListDeploymentInstancesError::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 ListDeploymentInstancesError::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 ListDeploymentInstancesError::DeploymentNotStartedException
.
sourcepub fn is_invalid_compute_platform_exception(&self) -> bool
pub fn is_invalid_compute_platform_exception(&self) -> bool
Returns true
if the error kind is ListDeploymentInstancesError::InvalidComputePlatformException
.
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 ListDeploymentInstancesError::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 ListDeploymentInstancesError::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 ListDeploymentInstancesError::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 ListDeploymentInstancesError::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 ListDeploymentInstancesError::InvalidNextTokenException
.
sourcepub fn is_invalid_target_filter_name_exception(&self) -> bool
pub fn is_invalid_target_filter_name_exception(&self) -> bool
Returns true
if the error kind is ListDeploymentInstancesError::InvalidTargetFilterNameException
.
Trait Implementations§
source§impl CreateUnhandledError for ListDeploymentInstancesError
impl CreateUnhandledError for ListDeploymentInstancesError
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 ListDeploymentInstancesError
impl Debug for ListDeploymentInstancesError
source§impl Error for ListDeploymentInstancesError
impl Error for ListDeploymentInstancesError
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<ListDeploymentInstancesError> for Error
impl From<ListDeploymentInstancesError> for Error
source§fn from(err: ListDeploymentInstancesError) -> Self
fn from(err: ListDeploymentInstancesError) -> Self
source§impl ProvideErrorMetadata for ListDeploymentInstancesError
impl ProvideErrorMetadata for ListDeploymentInstancesError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ListDeploymentInstancesError
impl RequestId for ListDeploymentInstancesError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.