Enum aws_sdk_securitylake::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError
source · #[non_exhaustive]pub enum UpdateDataLakeExceptionSubscriptionError {
AccessDeniedException(AccessDeniedException),
BadRequestException(BadRequestException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ThrottlingException(ThrottlingException),
Unhandled(Unhandled),
}
Expand description
Error type for the UpdateDataLakeExceptionSubscriptionError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization request. An explicit denial occurs when a policy contains a Deny statement for the specific Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also no applicable Allow statement.
BadRequestException(BadRequestException)
The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.
ConflictException(ConflictException)
Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
InternalServerException(InternalServerException)
Internal service exceptions are sometimes caused by transient issues. Before you start troubleshooting, perform the operation again.
ResourceNotFoundException(ResourceNotFoundException)
The resource could not be found.
ThrottlingException(ThrottlingException)
The limit on the number of requests per second was exceeded.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl UpdateDataLakeExceptionSubscriptionError
impl UpdateDataLakeExceptionSubscriptionError
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 UpdateDataLakeExceptionSubscriptionError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the UpdateDataLakeExceptionSubscriptionError::Unhandled
variant from an 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_denied_exception(&self) -> bool
pub fn is_access_denied_exception(&self) -> bool
Returns true
if the error kind is UpdateDataLakeExceptionSubscriptionError::AccessDeniedException
.
sourcepub fn is_bad_request_exception(&self) -> bool
pub fn is_bad_request_exception(&self) -> bool
Returns true
if the error kind is UpdateDataLakeExceptionSubscriptionError::BadRequestException
.
sourcepub fn is_conflict_exception(&self) -> bool
pub fn is_conflict_exception(&self) -> bool
Returns true
if the error kind is UpdateDataLakeExceptionSubscriptionError::ConflictException
.
sourcepub fn is_internal_server_exception(&self) -> bool
pub fn is_internal_server_exception(&self) -> bool
Returns true
if the error kind is UpdateDataLakeExceptionSubscriptionError::InternalServerException
.
sourcepub fn is_resource_not_found_exception(&self) -> bool
pub fn is_resource_not_found_exception(&self) -> bool
Returns true
if the error kind is UpdateDataLakeExceptionSubscriptionError::ResourceNotFoundException
.
sourcepub fn is_throttling_exception(&self) -> bool
pub fn is_throttling_exception(&self) -> bool
Returns true
if the error kind is UpdateDataLakeExceptionSubscriptionError::ThrottlingException
.
Trait Implementations§
source§impl CreateUnhandledError for UpdateDataLakeExceptionSubscriptionError
impl CreateUnhandledError for UpdateDataLakeExceptionSubscriptionError
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 UpdateDataLakeExceptionSubscriptionError
impl Error for UpdateDataLakeExceptionSubscriptionError
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<UpdateDataLakeExceptionSubscriptionError> for Error
impl From<UpdateDataLakeExceptionSubscriptionError> for Error
source§fn from(err: UpdateDataLakeExceptionSubscriptionError) -> Self
fn from(err: UpdateDataLakeExceptionSubscriptionError) -> Self
source§impl ProvideErrorMetadata for UpdateDataLakeExceptionSubscriptionError
impl ProvideErrorMetadata for UpdateDataLakeExceptionSubscriptionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for UpdateDataLakeExceptionSubscriptionError
impl RequestId for UpdateDataLakeExceptionSubscriptionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.