Enum aws_sdk_redshift::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError
source · #[non_exhaustive]pub enum ModifyClusterSubnetGroupError {
ClusterSubnetGroupNotFoundFault(ClusterSubnetGroupNotFoundFault),
ClusterSubnetQuotaExceededFault(ClusterSubnetQuotaExceededFault),
DependentServiceRequestThrottlingFault(DependentServiceRequestThrottlingFault),
InvalidSubnet(InvalidSubnet),
SubnetAlreadyInUse(SubnetAlreadyInUse),
UnauthorizedOperation(UnauthorizedOperation),
Unhandled(Unhandled),
}
Expand description
Error type for the ModifyClusterSubnetGroupError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ClusterSubnetGroupNotFoundFault(ClusterSubnetGroupNotFoundFault)
The cluster subnet group name does not refer to an existing cluster subnet group.
ClusterSubnetQuotaExceededFault(ClusterSubnetQuotaExceededFault)
The request would result in user exceeding the allowed number of subnets in a cluster subnet groups. For information about increasing your quota, go to Limits in Amazon Redshift in the Amazon Redshift Cluster Management Guide.
DependentServiceRequestThrottlingFault(DependentServiceRequestThrottlingFault)
The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.
InvalidSubnet(InvalidSubnet)
The requested subnet is not valid, or not all of the subnets are in the same VPC.
SubnetAlreadyInUse(SubnetAlreadyInUse)
A specified subnet is already in use by another cluster.
Your account is not authorized to perform the requested operation.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ModifyClusterSubnetGroupError
impl ModifyClusterSubnetGroupError
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 ModifyClusterSubnetGroupError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ModifyClusterSubnetGroupError::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_subnet_group_not_found_fault(&self) -> bool
pub fn is_cluster_subnet_group_not_found_fault(&self) -> bool
Returns true
if the error kind is ModifyClusterSubnetGroupError::ClusterSubnetGroupNotFoundFault
.
sourcepub fn is_cluster_subnet_quota_exceeded_fault(&self) -> bool
pub fn is_cluster_subnet_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is ModifyClusterSubnetGroupError::ClusterSubnetQuotaExceededFault
.
sourcepub fn is_dependent_service_request_throttling_fault(&self) -> bool
pub fn is_dependent_service_request_throttling_fault(&self) -> bool
Returns true
if the error kind is ModifyClusterSubnetGroupError::DependentServiceRequestThrottlingFault
.
sourcepub fn is_invalid_subnet(&self) -> bool
pub fn is_invalid_subnet(&self) -> bool
Returns true
if the error kind is ModifyClusterSubnetGroupError::InvalidSubnet
.
sourcepub fn is_subnet_already_in_use(&self) -> bool
pub fn is_subnet_already_in_use(&self) -> bool
Returns true
if the error kind is ModifyClusterSubnetGroupError::SubnetAlreadyInUse
.
Returns true
if the error kind is ModifyClusterSubnetGroupError::UnauthorizedOperation
.
Trait Implementations§
source§impl CreateUnhandledError for ModifyClusterSubnetGroupError
impl CreateUnhandledError for ModifyClusterSubnetGroupError
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 Error for ModifyClusterSubnetGroupError
impl Error for ModifyClusterSubnetGroupError
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<ModifyClusterSubnetGroupError> for Error
impl From<ModifyClusterSubnetGroupError> for Error
source§fn from(err: ModifyClusterSubnetGroupError) -> Self
fn from(err: ModifyClusterSubnetGroupError) -> Self
source§impl ProvideErrorMetadata for ModifyClusterSubnetGroupError
impl ProvideErrorMetadata for ModifyClusterSubnetGroupError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ModifyClusterSubnetGroupError
impl RequestId for ModifyClusterSubnetGroupError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.