#[non_exhaustive]pub enum AddTagsToResourceError {
Show 13 variants
CacheClusterNotFoundFault(CacheClusterNotFoundFault),
CacheParameterGroupNotFoundFault(CacheParameterGroupNotFoundFault),
CacheSecurityGroupNotFoundFault(CacheSecurityGroupNotFoundFault),
CacheSubnetGroupNotFoundFault(CacheSubnetGroupNotFoundFault),
InvalidArnFault(InvalidArnFault),
InvalidReplicationGroupStateFault(InvalidReplicationGroupStateFault),
ReplicationGroupNotFoundFault(ReplicationGroupNotFoundFault),
ReservedCacheNodeNotFoundFault(ReservedCacheNodeNotFoundFault),
SnapshotNotFoundFault(SnapshotNotFoundFault),
TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded),
UserGroupNotFoundFault(UserGroupNotFoundFault),
UserNotFoundFault(UserNotFoundFault),
Unhandled(Unhandled),
}
Expand description
Error type for the AddTagsToResourceError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CacheClusterNotFoundFault(CacheClusterNotFoundFault)
The requested cluster ID does not refer to an existing cluster.
CacheParameterGroupNotFoundFault(CacheParameterGroupNotFoundFault)
The requested cache parameter group name does not refer to an existing cache parameter group.
CacheSecurityGroupNotFoundFault(CacheSecurityGroupNotFoundFault)
The requested cache security group name does not refer to an existing cache security group.
CacheSubnetGroupNotFoundFault(CacheSubnetGroupNotFoundFault)
The requested cache subnet group name does not refer to an existing cache subnet group.
InvalidArnFault(InvalidArnFault)
The requested Amazon Resource Name (ARN) does not refer to an existing resource.
InvalidReplicationGroupStateFault(InvalidReplicationGroupStateFault)
The requested replication group is not in the available
state.
ReplicationGroupNotFoundFault(ReplicationGroupNotFoundFault)
The specified replication group does not exist.
ReservedCacheNodeNotFoundFault(ReservedCacheNodeNotFoundFault)
The requested reserved cache node was not found.
SnapshotNotFoundFault(SnapshotNotFoundFault)
The requested snapshot name does not refer to an existing snapshot.
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.
UserGroupNotFoundFault(UserGroupNotFoundFault)
The user group was not found or does not exist
UserNotFoundFault(UserNotFoundFault)
The user does not exist or could not be found.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl AddTagsToResourceError
impl AddTagsToResourceError
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 AddTagsToResourceError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the AddTagsToResourceError::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_cluster_not_found_fault(&self) -> bool
pub fn is_cache_cluster_not_found_fault(&self) -> bool
Returns true
if the error kind is AddTagsToResourceError::CacheClusterNotFoundFault
.
sourcepub fn is_cache_parameter_group_not_found_fault(&self) -> bool
pub fn is_cache_parameter_group_not_found_fault(&self) -> bool
Returns true
if the error kind is AddTagsToResourceError::CacheParameterGroupNotFoundFault
.
sourcepub fn is_cache_security_group_not_found_fault(&self) -> bool
pub fn is_cache_security_group_not_found_fault(&self) -> bool
Returns true
if the error kind is AddTagsToResourceError::CacheSecurityGroupNotFoundFault
.
sourcepub fn is_cache_subnet_group_not_found_fault(&self) -> bool
pub fn is_cache_subnet_group_not_found_fault(&self) -> bool
Returns true
if the error kind is AddTagsToResourceError::CacheSubnetGroupNotFoundFault
.
sourcepub fn is_invalid_arn_fault(&self) -> bool
pub fn is_invalid_arn_fault(&self) -> bool
Returns true
if the error kind is AddTagsToResourceError::InvalidArnFault
.
sourcepub fn is_invalid_replication_group_state_fault(&self) -> bool
pub fn is_invalid_replication_group_state_fault(&self) -> bool
Returns true
if the error kind is AddTagsToResourceError::InvalidReplicationGroupStateFault
.
sourcepub fn is_replication_group_not_found_fault(&self) -> bool
pub fn is_replication_group_not_found_fault(&self) -> bool
Returns true
if the error kind is AddTagsToResourceError::ReplicationGroupNotFoundFault
.
sourcepub fn is_reserved_cache_node_not_found_fault(&self) -> bool
pub fn is_reserved_cache_node_not_found_fault(&self) -> bool
Returns true
if the error kind is AddTagsToResourceError::ReservedCacheNodeNotFoundFault
.
sourcepub fn is_snapshot_not_found_fault(&self) -> bool
pub fn is_snapshot_not_found_fault(&self) -> bool
Returns true
if the error kind is AddTagsToResourceError::SnapshotNotFoundFault
.
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 AddTagsToResourceError::TagQuotaPerResourceExceeded
.
sourcepub fn is_user_group_not_found_fault(&self) -> bool
pub fn is_user_group_not_found_fault(&self) -> bool
Returns true
if the error kind is AddTagsToResourceError::UserGroupNotFoundFault
.
sourcepub fn is_user_not_found_fault(&self) -> bool
pub fn is_user_not_found_fault(&self) -> bool
Returns true
if the error kind is AddTagsToResourceError::UserNotFoundFault
.
Trait Implementations§
source§impl CreateUnhandledError for AddTagsToResourceError
impl CreateUnhandledError for AddTagsToResourceError
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 AddTagsToResourceError
impl Debug for AddTagsToResourceError
source§impl Display for AddTagsToResourceError
impl Display for AddTagsToResourceError
source§impl Error for AddTagsToResourceError
impl Error for AddTagsToResourceError
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<AddTagsToResourceError> for Error
impl From<AddTagsToResourceError> for Error
source§fn from(err: AddTagsToResourceError) -> Self
fn from(err: AddTagsToResourceError) -> Self
source§impl ProvideErrorMetadata for AddTagsToResourceError
impl ProvideErrorMetadata for AddTagsToResourceError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for AddTagsToResourceError
impl RequestId for AddTagsToResourceError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.