#[non_exhaustive]pub enum CreateACLError {
AclAlreadyExistsFault(AclAlreadyExistsFault),
AclQuotaExceededFault(AclQuotaExceededFault),
DefaultUserRequired(DefaultUserRequired),
DuplicateUserNameFault(DuplicateUserNameFault),
InvalidParameterValueException(InvalidParameterValueException),
TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded),
UserNotFoundFault(UserNotFoundFault),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateACLError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AclAlreadyExistsFault(AclAlreadyExistsFault)
AclQuotaExceededFault(AclQuotaExceededFault)
DefaultUserRequired(DefaultUserRequired)
DuplicateUserNameFault(DuplicateUserNameFault)
InvalidParameterValueException(InvalidParameterValueException)
TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded)
UserNotFoundFault(UserNotFoundFault)
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreateACLError
impl CreateACLError
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 CreateACLError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateACLError::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_acl_already_exists_fault(&self) -> bool
pub fn is_acl_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateACLError::AclAlreadyExistsFault
.
sourcepub fn is_acl_quota_exceeded_fault(&self) -> bool
pub fn is_acl_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateACLError::AclQuotaExceededFault
.
sourcepub fn is_default_user_required(&self) -> bool
pub fn is_default_user_required(&self) -> bool
Returns true
if the error kind is CreateACLError::DefaultUserRequired
.
sourcepub fn is_duplicate_user_name_fault(&self) -> bool
pub fn is_duplicate_user_name_fault(&self) -> bool
Returns true
if the error kind is CreateACLError::DuplicateUserNameFault
.
sourcepub fn is_invalid_parameter_value_exception(&self) -> bool
pub fn is_invalid_parameter_value_exception(&self) -> bool
Returns true
if the error kind is CreateACLError::InvalidParameterValueException
.
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 CreateACLError::TagQuotaPerResourceExceeded
.
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 CreateACLError::UserNotFoundFault
.
Trait Implementations§
source§impl CreateUnhandledError for CreateACLError
impl CreateUnhandledError for CreateACLError
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 CreateACLError
impl Debug for CreateACLError
source§impl Display for CreateACLError
impl Display for CreateACLError
source§impl Error for CreateACLError
impl Error for CreateACLError
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<CreateACLError> for Error
impl From<CreateACLError> for Error
source§fn from(err: CreateACLError) -> Self
fn from(err: CreateACLError) -> Self
source§impl ProvideErrorKind for CreateACLError
impl ProvideErrorKind for CreateACLError
source§impl ProvideErrorMetadata for CreateACLError
impl ProvideErrorMetadata for CreateACLError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateACLError
impl RequestId for CreateACLError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.