#[non_exhaustive]pub enum CreateSnapshotScheduleError {
InvalidScheduleFault(InvalidScheduleFault),
InvalidTagFault(InvalidTagFault),
ScheduleDefinitionTypeUnsupportedFault(ScheduleDefinitionTypeUnsupportedFault),
SnapshotScheduleAlreadyExistsFault(SnapshotScheduleAlreadyExistsFault),
SnapshotScheduleQuotaExceededFault(SnapshotScheduleQuotaExceededFault),
TagLimitExceededFault(TagLimitExceededFault),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateSnapshotScheduleError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidScheduleFault(InvalidScheduleFault)
The schedule you submitted isn't valid.
InvalidTagFault(InvalidTagFault)
The tag is invalid.
ScheduleDefinitionTypeUnsupportedFault(ScheduleDefinitionTypeUnsupportedFault)
The definition you submitted is not supported.
SnapshotScheduleAlreadyExistsFault(SnapshotScheduleAlreadyExistsFault)
The specified snapshot schedule already exists.
SnapshotScheduleQuotaExceededFault(SnapshotScheduleQuotaExceededFault)
You have exceeded the quota of snapshot schedules.
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 CreateSnapshotScheduleError
impl CreateSnapshotScheduleError
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 CreateSnapshotScheduleError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateSnapshotScheduleError::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_invalid_schedule_fault(&self) -> bool
pub fn is_invalid_schedule_fault(&self) -> bool
Returns true
if the error kind is CreateSnapshotScheduleError::InvalidScheduleFault
.
sourcepub fn is_invalid_tag_fault(&self) -> bool
pub fn is_invalid_tag_fault(&self) -> bool
Returns true
if the error kind is CreateSnapshotScheduleError::InvalidTagFault
.
sourcepub fn is_schedule_definition_type_unsupported_fault(&self) -> bool
pub fn is_schedule_definition_type_unsupported_fault(&self) -> bool
Returns true
if the error kind is CreateSnapshotScheduleError::ScheduleDefinitionTypeUnsupportedFault
.
sourcepub fn is_snapshot_schedule_already_exists_fault(&self) -> bool
pub fn is_snapshot_schedule_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateSnapshotScheduleError::SnapshotScheduleAlreadyExistsFault
.
sourcepub fn is_snapshot_schedule_quota_exceeded_fault(&self) -> bool
pub fn is_snapshot_schedule_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateSnapshotScheduleError::SnapshotScheduleQuotaExceededFault
.
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 CreateSnapshotScheduleError::TagLimitExceededFault
.
Trait Implementations§
source§impl CreateUnhandledError for CreateSnapshotScheduleError
impl CreateUnhandledError for CreateSnapshotScheduleError
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 CreateSnapshotScheduleError
impl Debug for CreateSnapshotScheduleError
source§impl Error for CreateSnapshotScheduleError
impl Error for CreateSnapshotScheduleError
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<CreateSnapshotScheduleError> for Error
impl From<CreateSnapshotScheduleError> for Error
source§fn from(err: CreateSnapshotScheduleError) -> Self
fn from(err: CreateSnapshotScheduleError) -> Self
source§impl ProvideErrorMetadata for CreateSnapshotScheduleError
impl ProvideErrorMetadata for CreateSnapshotScheduleError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateSnapshotScheduleError
impl RequestId for CreateSnapshotScheduleError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.