#[non_exhaustive]pub enum CreateEndpointAccessError {
AccessToClusterDeniedFault(AccessToClusterDeniedFault),
ClusterNotFoundFault(ClusterNotFoundFault),
ClusterSubnetGroupNotFoundFault(ClusterSubnetGroupNotFoundFault),
EndpointAlreadyExistsFault(EndpointAlreadyExistsFault),
EndpointsPerAuthorizationLimitExceededFault(EndpointsPerAuthorizationLimitExceededFault),
EndpointsPerClusterLimitExceededFault(EndpointsPerClusterLimitExceededFault),
InvalidClusterSecurityGroupStateFault(InvalidClusterSecurityGroupStateFault),
InvalidClusterStateFault(InvalidClusterStateFault),
UnauthorizedOperation(UnauthorizedOperation),
UnsupportedOperationFault(UnsupportedOperationFault),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateEndpointAccessError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessToClusterDeniedFault(AccessToClusterDeniedFault)
You are not authorized to access the cluster.
ClusterNotFoundFault(ClusterNotFoundFault)
The ClusterIdentifier
parameter does not refer to an existing cluster.
ClusterSubnetGroupNotFoundFault(ClusterSubnetGroupNotFoundFault)
The cluster subnet group name does not refer to an existing cluster subnet group.
EndpointAlreadyExistsFault(EndpointAlreadyExistsFault)
The account already has a Redshift-managed VPC endpoint with the given identifier.
EndpointsPerAuthorizationLimitExceededFault(EndpointsPerAuthorizationLimitExceededFault)
The number of Redshift-managed VPC endpoints per authorization has exceeded its limit.
EndpointsPerClusterLimitExceededFault(EndpointsPerClusterLimitExceededFault)
The number of Redshift-managed VPC endpoints per cluster has exceeded its limit.
InvalidClusterSecurityGroupStateFault(InvalidClusterSecurityGroupStateFault)
The state of the cluster security group is not available
.
InvalidClusterStateFault(InvalidClusterStateFault)
The specified cluster is not in the available
state.
Your account is not authorized to perform the requested operation.
UnsupportedOperationFault(UnsupportedOperationFault)
The requested operation isn't supported.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreateEndpointAccessError
impl CreateEndpointAccessError
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 CreateEndpointAccessError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateEndpointAccessError::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_access_to_cluster_denied_fault(&self) -> bool
pub fn is_access_to_cluster_denied_fault(&self) -> bool
Returns true
if the error kind is CreateEndpointAccessError::AccessToClusterDeniedFault
.
sourcepub fn is_cluster_not_found_fault(&self) -> bool
pub fn is_cluster_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateEndpointAccessError::ClusterNotFoundFault
.
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 CreateEndpointAccessError::ClusterSubnetGroupNotFoundFault
.
sourcepub fn is_endpoint_already_exists_fault(&self) -> bool
pub fn is_endpoint_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateEndpointAccessError::EndpointAlreadyExistsFault
.
Returns true
if the error kind is CreateEndpointAccessError::EndpointsPerAuthorizationLimitExceededFault
.
sourcepub fn is_endpoints_per_cluster_limit_exceeded_fault(&self) -> bool
pub fn is_endpoints_per_cluster_limit_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateEndpointAccessError::EndpointsPerClusterLimitExceededFault
.
sourcepub fn is_invalid_cluster_security_group_state_fault(&self) -> bool
pub fn is_invalid_cluster_security_group_state_fault(&self) -> bool
Returns true
if the error kind is CreateEndpointAccessError::InvalidClusterSecurityGroupStateFault
.
sourcepub fn is_invalid_cluster_state_fault(&self) -> bool
pub fn is_invalid_cluster_state_fault(&self) -> bool
Returns true
if the error kind is CreateEndpointAccessError::InvalidClusterStateFault
.
Returns true
if the error kind is CreateEndpointAccessError::UnauthorizedOperation
.
sourcepub fn is_unsupported_operation_fault(&self) -> bool
pub fn is_unsupported_operation_fault(&self) -> bool
Returns true
if the error kind is CreateEndpointAccessError::UnsupportedOperationFault
.
Trait Implementations§
source§impl CreateUnhandledError for CreateEndpointAccessError
impl CreateUnhandledError for CreateEndpointAccessError
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 CreateEndpointAccessError
impl Debug for CreateEndpointAccessError
source§impl Display for CreateEndpointAccessError
impl Display for CreateEndpointAccessError
source§impl Error for CreateEndpointAccessError
impl Error for CreateEndpointAccessError
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<CreateEndpointAccessError> for Error
impl From<CreateEndpointAccessError> for Error
source§fn from(err: CreateEndpointAccessError) -> Self
fn from(err: CreateEndpointAccessError) -> Self
source§impl ProvideErrorMetadata for CreateEndpointAccessError
impl ProvideErrorMetadata for CreateEndpointAccessError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateEndpointAccessError
impl RequestId for CreateEndpointAccessError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.