#[non_exhaustive]pub enum CreateDeploymentConfigError {
DeploymentConfigAlreadyExistsException(DeploymentConfigAlreadyExistsException),
DeploymentConfigLimitExceededException(DeploymentConfigLimitExceededException),
DeploymentConfigNameRequiredException(DeploymentConfigNameRequiredException),
InvalidComputePlatformException(InvalidComputePlatformException),
InvalidDeploymentConfigNameException(InvalidDeploymentConfigNameException),
InvalidMinimumHealthyHostValueException(InvalidMinimumHealthyHostValueException),
InvalidTrafficRoutingConfigurationException(InvalidTrafficRoutingConfigurationException),
InvalidZonalDeploymentConfigurationException(InvalidZonalDeploymentConfigurationException),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateDeploymentConfigError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DeploymentConfigAlreadyExistsException(DeploymentConfigAlreadyExistsException)
A deployment configuration with the specified name with the user or Amazon Web Services account already exists.
DeploymentConfigLimitExceededException(DeploymentConfigLimitExceededException)
The deployment configurations limit was exceeded.
DeploymentConfigNameRequiredException(DeploymentConfigNameRequiredException)
The deployment configuration name was not specified.
InvalidComputePlatformException(InvalidComputePlatformException)
The computePlatform is invalid. The computePlatform should be Lambda
, Server
, or ECS
.
InvalidDeploymentConfigNameException(InvalidDeploymentConfigNameException)
The deployment configuration name was specified in an invalid format.
InvalidMinimumHealthyHostValueException(InvalidMinimumHealthyHostValueException)
The minimum healthy instance value was specified in an invalid format.
InvalidTrafficRoutingConfigurationException(InvalidTrafficRoutingConfigurationException)
The configuration that specifies how traffic is routed during a deployment is invalid.
InvalidZonalDeploymentConfigurationException(InvalidZonalDeploymentConfigurationException)
The ZonalConfig
object is not valid.
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 CreateDeploymentConfigError
impl CreateDeploymentConfigError
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 CreateDeploymentConfigError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateDeploymentConfigError::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_config_already_exists_exception(&self) -> bool
pub fn is_deployment_config_already_exists_exception(&self) -> bool
Returns true
if the error kind is CreateDeploymentConfigError::DeploymentConfigAlreadyExistsException
.
sourcepub fn is_deployment_config_limit_exceeded_exception(&self) -> bool
pub fn is_deployment_config_limit_exceeded_exception(&self) -> bool
Returns true
if the error kind is CreateDeploymentConfigError::DeploymentConfigLimitExceededException
.
sourcepub fn is_deployment_config_name_required_exception(&self) -> bool
pub fn is_deployment_config_name_required_exception(&self) -> bool
Returns true
if the error kind is CreateDeploymentConfigError::DeploymentConfigNameRequiredException
.
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 CreateDeploymentConfigError::InvalidComputePlatformException
.
sourcepub fn is_invalid_deployment_config_name_exception(&self) -> bool
pub fn is_invalid_deployment_config_name_exception(&self) -> bool
Returns true
if the error kind is CreateDeploymentConfigError::InvalidDeploymentConfigNameException
.
sourcepub fn is_invalid_minimum_healthy_host_value_exception(&self) -> bool
pub fn is_invalid_minimum_healthy_host_value_exception(&self) -> bool
Returns true
if the error kind is CreateDeploymentConfigError::InvalidMinimumHealthyHostValueException
.
sourcepub fn is_invalid_traffic_routing_configuration_exception(&self) -> bool
pub fn is_invalid_traffic_routing_configuration_exception(&self) -> bool
Returns true
if the error kind is CreateDeploymentConfigError::InvalidTrafficRoutingConfigurationException
.
sourcepub fn is_invalid_zonal_deployment_configuration_exception(&self) -> bool
pub fn is_invalid_zonal_deployment_configuration_exception(&self) -> bool
Returns true
if the error kind is CreateDeploymentConfigError::InvalidZonalDeploymentConfigurationException
.
Trait Implementations§
source§impl CreateUnhandledError for CreateDeploymentConfigError
impl CreateUnhandledError for CreateDeploymentConfigError
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 CreateDeploymentConfigError
impl Debug for CreateDeploymentConfigError
source§impl Error for CreateDeploymentConfigError
impl Error for CreateDeploymentConfigError
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<CreateDeploymentConfigError> for Error
impl From<CreateDeploymentConfigError> for Error
source§fn from(err: CreateDeploymentConfigError) -> Self
fn from(err: CreateDeploymentConfigError) -> Self
source§impl ProvideErrorMetadata for CreateDeploymentConfigError
impl ProvideErrorMetadata for CreateDeploymentConfigError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateDeploymentConfigError
impl RequestId for CreateDeploymentConfigError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.