#[non_exhaustive]pub enum PutLoggingConfigurationError {
WafInternalErrorException(WafInternalErrorException),
WafNonexistentItemException(WafNonexistentItemException),
WafServiceLinkedRoleErrorException(WafServiceLinkedRoleErrorException),
WafStaleDataException(WafStaleDataException),
Unhandled(Unhandled),
}Expand description
Error type for the PutLoggingConfigurationError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WafInternalErrorException(WafInternalErrorException)
The operation failed because of a system problem, even though the request was valid. Retry your request.
WafNonexistentItemException(WafNonexistentItemException)
The operation failed because the referenced object doesn't exist.
WafServiceLinkedRoleErrorException(WafServiceLinkedRoleErrorException)
AWS WAF is not able to access the service linked role. This can be caused by a previous PutLoggingConfiguration request, which can lock the service linked role for about 20 seconds. Please try your request again. The service linked role can also be locked by a previous DeleteServiceLinkedRole request, which can lock the role for 15 minutes or more. If you recently made a DeleteServiceLinkedRole, wait at least 15 minutes and try the request again. If you receive this same exception again, you will have to wait additional time until the role is unlocked.
WafStaleDataException(WafStaleDataException)
The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl PutLoggingConfigurationError
impl PutLoggingConfigurationError
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 PutLoggingConfigurationError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the PutLoggingConfigurationError::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_waf_internal_error_exception(&self) -> bool
pub fn is_waf_internal_error_exception(&self) -> bool
Returns true if the error kind is PutLoggingConfigurationError::WafInternalErrorException.
sourcepub fn is_waf_nonexistent_item_exception(&self) -> bool
pub fn is_waf_nonexistent_item_exception(&self) -> bool
Returns true if the error kind is PutLoggingConfigurationError::WafNonexistentItemException.
sourcepub fn is_waf_service_linked_role_error_exception(&self) -> bool
pub fn is_waf_service_linked_role_error_exception(&self) -> bool
Returns true if the error kind is PutLoggingConfigurationError::WafServiceLinkedRoleErrorException.
sourcepub fn is_waf_stale_data_exception(&self) -> bool
pub fn is_waf_stale_data_exception(&self) -> bool
Returns true if the error kind is PutLoggingConfigurationError::WafStaleDataException.
Trait Implementations§
source§impl CreateUnhandledError for PutLoggingConfigurationError
impl CreateUnhandledError for PutLoggingConfigurationError
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 PutLoggingConfigurationError
impl Debug for PutLoggingConfigurationError
source§impl Error for PutLoggingConfigurationError
impl Error for PutLoggingConfigurationError
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<PutLoggingConfigurationError> for Error
impl From<PutLoggingConfigurationError> for Error
source§fn from(err: PutLoggingConfigurationError) -> Self
fn from(err: PutLoggingConfigurationError) -> Self
source§impl ProvideErrorMetadata for PutLoggingConfigurationError
impl ProvideErrorMetadata for PutLoggingConfigurationError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for PutLoggingConfigurationError
impl RequestId for PutLoggingConfigurationError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.