#[non_exhaustive]pub enum CreateCacheSubnetGroupError {
CacheSubnetGroupAlreadyExistsFault(CacheSubnetGroupAlreadyExistsFault),
CacheSubnetGroupQuotaExceededFault(CacheSubnetGroupQuotaExceededFault),
CacheSubnetQuotaExceededFault(CacheSubnetQuotaExceededFault),
InvalidSubnet(InvalidSubnet),
SubnetNotAllowedFault(SubnetNotAllowedFault),
TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateCacheSubnetGroupError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CacheSubnetGroupAlreadyExistsFault(CacheSubnetGroupAlreadyExistsFault)
The requested cache subnet group name is already in use by an existing cache subnet group.
CacheSubnetGroupQuotaExceededFault(CacheSubnetGroupQuotaExceededFault)
The request cannot be processed because it would exceed the allowed number of cache subnet groups.
CacheSubnetQuotaExceededFault(CacheSubnetQuotaExceededFault)
The request cannot be processed because it would exceed the allowed number of subnets in a cache subnet group.
InvalidSubnet(InvalidSubnet)
An invalid subnet identifier was specified.
SubnetNotAllowedFault(SubnetNotAllowedFault)
At least one subnet ID does not match the other subnet IDs. This mismatch typically occurs when a user sets one subnet ID to a regional Availability Zone and a different one to an outpost. Or when a user sets the subnet ID to an Outpost when not subscribed on this service.
TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded)
The request cannot be processed because it would cause the resource to have more than the allowed number of tags. The maximum number of tags permitted on a resource is 50.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreateCacheSubnetGroupError
impl CreateCacheSubnetGroupError
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 CreateCacheSubnetGroupError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateCacheSubnetGroupError::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_cache_subnet_group_already_exists_fault(&self) -> bool
pub fn is_cache_subnet_group_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateCacheSubnetGroupError::CacheSubnetGroupAlreadyExistsFault
.
sourcepub fn is_cache_subnet_group_quota_exceeded_fault(&self) -> bool
pub fn is_cache_subnet_group_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateCacheSubnetGroupError::CacheSubnetGroupQuotaExceededFault
.
sourcepub fn is_cache_subnet_quota_exceeded_fault(&self) -> bool
pub fn is_cache_subnet_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateCacheSubnetGroupError::CacheSubnetQuotaExceededFault
.
sourcepub fn is_invalid_subnet(&self) -> bool
pub fn is_invalid_subnet(&self) -> bool
Returns true
if the error kind is CreateCacheSubnetGroupError::InvalidSubnet
.
sourcepub fn is_subnet_not_allowed_fault(&self) -> bool
pub fn is_subnet_not_allowed_fault(&self) -> bool
Returns true
if the error kind is CreateCacheSubnetGroupError::SubnetNotAllowedFault
.
sourcepub fn is_tag_quota_per_resource_exceeded(&self) -> bool
pub fn is_tag_quota_per_resource_exceeded(&self) -> bool
Returns true
if the error kind is CreateCacheSubnetGroupError::TagQuotaPerResourceExceeded
.
Trait Implementations§
source§impl CreateUnhandledError for CreateCacheSubnetGroupError
impl CreateUnhandledError for CreateCacheSubnetGroupError
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 CreateCacheSubnetGroupError
impl Debug for CreateCacheSubnetGroupError
source§impl Error for CreateCacheSubnetGroupError
impl Error for CreateCacheSubnetGroupError
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<CreateCacheSubnetGroupError> for Error
impl From<CreateCacheSubnetGroupError> for Error
source§fn from(err: CreateCacheSubnetGroupError) -> Self
fn from(err: CreateCacheSubnetGroupError) -> Self
source§impl ProvideErrorMetadata for CreateCacheSubnetGroupError
impl ProvideErrorMetadata for CreateCacheSubnetGroupError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateCacheSubnetGroupError
impl RequestId for CreateCacheSubnetGroupError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.