Enum aws_sdk_redshift::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError
source · #[non_exhaustive]pub enum CreateClusterSubnetGroupError {
ClusterSubnetGroupAlreadyExistsFault(ClusterSubnetGroupAlreadyExistsFault),
ClusterSubnetGroupQuotaExceededFault(ClusterSubnetGroupQuotaExceededFault),
ClusterSubnetQuotaExceededFault(ClusterSubnetQuotaExceededFault),
DependentServiceRequestThrottlingFault(DependentServiceRequestThrottlingFault),
InvalidSubnet(InvalidSubnet),
InvalidTagFault(InvalidTagFault),
TagLimitExceededFault(TagLimitExceededFault),
UnauthorizedOperation(UnauthorizedOperation),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateClusterSubnetGroupError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ClusterSubnetGroupAlreadyExistsFault(ClusterSubnetGroupAlreadyExistsFault)
A ClusterSubnetGroupName is already used by an existing cluster subnet group.
ClusterSubnetGroupQuotaExceededFault(ClusterSubnetGroupQuotaExceededFault)
The request would result in user exceeding the allowed number of cluster subnet groups. For information about increasing your quota, go to Limits in Amazon Redshift in the Amazon Redshift Cluster Management Guide.
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.
InvalidTagFault(InvalidTagFault)
The tag is invalid.
TagLimitExceededFault(TagLimitExceededFault)
You have exceeded the number of tags allowed.
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 CreateClusterSubnetGroupError
impl CreateClusterSubnetGroupError
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 CreateClusterSubnetGroupError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateClusterSubnetGroupError::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_already_exists_fault(&self) -> bool
pub fn is_cluster_subnet_group_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateClusterSubnetGroupError::ClusterSubnetGroupAlreadyExistsFault
.
sourcepub fn is_cluster_subnet_group_quota_exceeded_fault(&self) -> bool
pub fn is_cluster_subnet_group_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateClusterSubnetGroupError::ClusterSubnetGroupQuotaExceededFault
.
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 CreateClusterSubnetGroupError::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 CreateClusterSubnetGroupError::DependentServiceRequestThrottlingFault
.
sourcepub fn is_invalid_subnet(&self) -> bool
pub fn is_invalid_subnet(&self) -> bool
Returns true
if the error kind is CreateClusterSubnetGroupError::InvalidSubnet
.
sourcepub fn is_invalid_tag_fault(&self) -> bool
pub fn is_invalid_tag_fault(&self) -> bool
Returns true
if the error kind is CreateClusterSubnetGroupError::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 CreateClusterSubnetGroupError::TagLimitExceededFault
.
Returns true
if the error kind is CreateClusterSubnetGroupError::UnauthorizedOperation
.
Trait Implementations§
source§impl CreateUnhandledError for CreateClusterSubnetGroupError
impl CreateUnhandledError for CreateClusterSubnetGroupError
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 CreateClusterSubnetGroupError
impl Error for CreateClusterSubnetGroupError
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<CreateClusterSubnetGroupError> for Error
impl From<CreateClusterSubnetGroupError> for Error
source§fn from(err: CreateClusterSubnetGroupError) -> Self
fn from(err: CreateClusterSubnetGroupError) -> Self
source§impl ProvideErrorMetadata for CreateClusterSubnetGroupError
impl ProvideErrorMetadata for CreateClusterSubnetGroupError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateClusterSubnetGroupError
impl RequestId for CreateClusterSubnetGroupError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.