#[non_exhaustive]pub enum GetDeploymentInstanceError {
DeploymentDoesNotExistException(DeploymentDoesNotExistException),
DeploymentIdRequiredException(DeploymentIdRequiredException),
InstanceDoesNotExistException(InstanceDoesNotExistException),
InstanceIdRequiredException(InstanceIdRequiredException),
InvalidComputePlatformException(InvalidComputePlatformException),
InvalidDeploymentIdException(InvalidDeploymentIdException),
InvalidInstanceNameException(InvalidInstanceNameException),
Unhandled(Unhandled),
}
Expand description
Error type for the GetDeploymentInstanceError
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.
InstanceDoesNotExistException(InstanceDoesNotExistException)
The specified instance does not exist in the deployment group.
InstanceIdRequiredException(InstanceIdRequiredException)
The instance ID was not specified.
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.
InvalidInstanceNameException(InvalidInstanceNameException)
The on-premises instance name 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 GetDeploymentInstanceError
impl GetDeploymentInstanceError
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 GetDeploymentInstanceError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the GetDeploymentInstanceError::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 GetDeploymentInstanceError::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 GetDeploymentInstanceError::DeploymentIdRequiredException
.
sourcepub fn is_instance_does_not_exist_exception(&self) -> bool
pub fn is_instance_does_not_exist_exception(&self) -> bool
Returns true
if the error kind is GetDeploymentInstanceError::InstanceDoesNotExistException
.
sourcepub fn is_instance_id_required_exception(&self) -> bool
pub fn is_instance_id_required_exception(&self) -> bool
Returns true
if the error kind is GetDeploymentInstanceError::InstanceIdRequiredException
.
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 GetDeploymentInstanceError::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 GetDeploymentInstanceError::InvalidDeploymentIdException
.
sourcepub fn is_invalid_instance_name_exception(&self) -> bool
pub fn is_invalid_instance_name_exception(&self) -> bool
Returns true
if the error kind is GetDeploymentInstanceError::InvalidInstanceNameException
.
Trait Implementations§
source§impl CreateUnhandledError for GetDeploymentInstanceError
impl CreateUnhandledError for GetDeploymentInstanceError
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 GetDeploymentInstanceError
impl Debug for GetDeploymentInstanceError
source§impl Display for GetDeploymentInstanceError
impl Display for GetDeploymentInstanceError
source§impl Error for GetDeploymentInstanceError
impl Error for GetDeploymentInstanceError
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<GetDeploymentInstanceError> for Error
impl From<GetDeploymentInstanceError> for Error
source§fn from(err: GetDeploymentInstanceError) -> Self
fn from(err: GetDeploymentInstanceError) -> Self
source§impl ProvideErrorMetadata for GetDeploymentInstanceError
impl ProvideErrorMetadata for GetDeploymentInstanceError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for GetDeploymentInstanceError
impl RequestId for GetDeploymentInstanceError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.