Enum aws_sdk_redshift::operation::create_authentication_profile::CreateAuthenticationProfileError
source · #[non_exhaustive]pub enum CreateAuthenticationProfileError {
AuthenticationProfileAlreadyExistsFault(AuthenticationProfileAlreadyExistsFault),
AuthenticationProfileQuotaExceededFault(AuthenticationProfileQuotaExceededFault),
InvalidAuthenticationProfileRequestFault(InvalidAuthenticationProfileRequestFault),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateAuthenticationProfileError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AuthenticationProfileAlreadyExistsFault(AuthenticationProfileAlreadyExistsFault)
The authentication profile already exists.
AuthenticationProfileQuotaExceededFault(AuthenticationProfileQuotaExceededFault)
The size or number of authentication profiles has exceeded the quota. The maximum length of the JSON string and maximum number of authentication profiles is determined by a quota for your account.
InvalidAuthenticationProfileRequestFault(InvalidAuthenticationProfileRequestFault)
The authentication profile request is not valid. The profile name can't be null or empty. The authentication profile API operation must be available in the Amazon Web Services Region.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreateAuthenticationProfileError
impl CreateAuthenticationProfileError
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 CreateAuthenticationProfileError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateAuthenticationProfileError::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_authentication_profile_already_exists_fault(&self) -> bool
pub fn is_authentication_profile_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateAuthenticationProfileError::AuthenticationProfileAlreadyExistsFault
.
sourcepub fn is_authentication_profile_quota_exceeded_fault(&self) -> bool
pub fn is_authentication_profile_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateAuthenticationProfileError::AuthenticationProfileQuotaExceededFault
.
sourcepub fn is_invalid_authentication_profile_request_fault(&self) -> bool
pub fn is_invalid_authentication_profile_request_fault(&self) -> bool
Returns true
if the error kind is CreateAuthenticationProfileError::InvalidAuthenticationProfileRequestFault
.
Trait Implementations§
source§impl CreateUnhandledError for CreateAuthenticationProfileError
impl CreateUnhandledError for CreateAuthenticationProfileError
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 CreateAuthenticationProfileError
impl Error for CreateAuthenticationProfileError
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<CreateAuthenticationProfileError> for Error
impl From<CreateAuthenticationProfileError> for Error
source§fn from(err: CreateAuthenticationProfileError) -> Self
fn from(err: CreateAuthenticationProfileError) -> Self
source§impl ProvideErrorMetadata for CreateAuthenticationProfileError
impl ProvideErrorMetadata for CreateAuthenticationProfileError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateAuthenticationProfileError
impl RequestId for CreateAuthenticationProfileError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.