#[non_exhaustive]pub enum CreateClusterSnapshotError {
ClusterNotFoundFault(ClusterNotFoundFault),
ClusterSnapshotAlreadyExistsFault(ClusterSnapshotAlreadyExistsFault),
ClusterSnapshotQuotaExceededFault(ClusterSnapshotQuotaExceededFault),
InvalidClusterStateFault(InvalidClusterStateFault),
InvalidRetentionPeriodFault(InvalidRetentionPeriodFault),
InvalidTagFault(InvalidTagFault),
TagLimitExceededFault(TagLimitExceededFault),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateClusterSnapshotError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ClusterNotFoundFault(ClusterNotFoundFault)
The ClusterIdentifier
parameter does not refer to an existing cluster.
ClusterSnapshotAlreadyExistsFault(ClusterSnapshotAlreadyExistsFault)
The value specified as a snapshot identifier is already used by an existing snapshot.
ClusterSnapshotQuotaExceededFault(ClusterSnapshotQuotaExceededFault)
The request would result in the user exceeding the allowed number of cluster snapshots.
InvalidClusterStateFault(InvalidClusterStateFault)
The specified cluster is not in the available
state.
InvalidRetentionPeriodFault(InvalidRetentionPeriodFault)
The retention period specified is either in the past or is not a valid value.
The value must be either -1 or an integer between 1 and 3,653.
InvalidTagFault(InvalidTagFault)
The tag is invalid.
TagLimitExceededFault(TagLimitExceededFault)
You have exceeded the number of tags allowed.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreateClusterSnapshotError
impl CreateClusterSnapshotError
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 CreateClusterSnapshotError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateClusterSnapshotError::Unhandled
variant from a ::aws_smithy_types::error::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_cluster_not_found_fault(&self) -> bool
pub fn is_cluster_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateClusterSnapshotError::ClusterNotFoundFault
.
sourcepub fn is_cluster_snapshot_already_exists_fault(&self) -> bool
pub fn is_cluster_snapshot_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateClusterSnapshotError::ClusterSnapshotAlreadyExistsFault
.
sourcepub fn is_cluster_snapshot_quota_exceeded_fault(&self) -> bool
pub fn is_cluster_snapshot_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateClusterSnapshotError::ClusterSnapshotQuotaExceededFault
.
sourcepub fn is_invalid_cluster_state_fault(&self) -> bool
pub fn is_invalid_cluster_state_fault(&self) -> bool
Returns true
if the error kind is CreateClusterSnapshotError::InvalidClusterStateFault
.
sourcepub fn is_invalid_retention_period_fault(&self) -> bool
pub fn is_invalid_retention_period_fault(&self) -> bool
Returns true
if the error kind is CreateClusterSnapshotError::InvalidRetentionPeriodFault
.
sourcepub fn is_invalid_tag_fault(&self) -> bool
pub fn is_invalid_tag_fault(&self) -> bool
Returns true
if the error kind is CreateClusterSnapshotError::InvalidTagFault
.
sourcepub fn is_tag_limit_exceeded_fault(&self) -> bool
pub fn is_tag_limit_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateClusterSnapshotError::TagLimitExceededFault
.
Trait Implementations§
source§impl CreateUnhandledError for CreateClusterSnapshotError
impl CreateUnhandledError for CreateClusterSnapshotError
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 CreateClusterSnapshotError
impl Debug for CreateClusterSnapshotError
source§impl Display for CreateClusterSnapshotError
impl Display for CreateClusterSnapshotError
source§impl Error for CreateClusterSnapshotError
impl Error for CreateClusterSnapshotError
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<CreateClusterSnapshotError> for Error
impl From<CreateClusterSnapshotError> for Error
source§fn from(err: CreateClusterSnapshotError) -> Self
fn from(err: CreateClusterSnapshotError) -> Self
source§impl ProvideErrorMetadata for CreateClusterSnapshotError
impl ProvideErrorMetadata for CreateClusterSnapshotError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateClusterSnapshotError
impl RequestId for CreateClusterSnapshotError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.