#[non_exhaustive]pub enum CreateQueryLoggingConfigError {
ConcurrentModification(ConcurrentModification),
InsufficientCloudWatchLogsResourcePolicy(InsufficientCloudWatchLogsResourcePolicy),
InvalidInput(InvalidInput),
NoSuchCloudWatchLogsLogGroup(NoSuchCloudWatchLogsLogGroup),
NoSuchHostedZone(NoSuchHostedZone),
QueryLoggingConfigAlreadyExists(QueryLoggingConfigAlreadyExists),
Unhandled(Unhandled),
}Expand description
Error type for the CreateQueryLoggingConfigError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConcurrentModification(ConcurrentModification)
Another user submitted a request to create, update, or delete the object at the same time that you did. Retry the request.
InsufficientCloudWatchLogsResourcePolicy(InsufficientCloudWatchLogsResourcePolicy)
Amazon Route 53 doesn't have the permissions required to create log streams and send query logs to log streams. Possible causes include the following:
-
There is no resource policy that specifies the log group ARN in the value for
Resource. -
The resource policy that includes the log group ARN in the value for
Resourcedoesn't have the necessary permissions. -
The resource policy hasn't finished propagating yet.
-
The Key management service (KMS) key you specified doesn’t exist or it can’t be used with the log group associated with query log. Update or provide a resource policy to grant permissions for the KMS key.
-
The Key management service (KMS) key you specified is marked as disabled for the log group associated with query log. Update or provide a resource policy to grant permissions for the KMS key.
InvalidInput(InvalidInput)
The input is not valid.
NoSuchCloudWatchLogsLogGroup(NoSuchCloudWatchLogsLogGroup)
There is no CloudWatch Logs log group with the specified ARN.
NoSuchHostedZone(NoSuchHostedZone)
No hosted zone exists with the ID that you specified.
QueryLoggingConfigAlreadyExists(QueryLoggingConfigAlreadyExists)
You can create only one query logging configuration for a hosted zone, and a query logging configuration already exists for this hosted zone.
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 CreateQueryLoggingConfigError
impl CreateQueryLoggingConfigError
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 CreateQueryLoggingConfigError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateQueryLoggingConfigError::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_concurrent_modification(&self) -> bool
pub fn is_concurrent_modification(&self) -> bool
Returns true if the error kind is CreateQueryLoggingConfigError::ConcurrentModification.
sourcepub fn is_insufficient_cloud_watch_logs_resource_policy(&self) -> bool
pub fn is_insufficient_cloud_watch_logs_resource_policy(&self) -> bool
Returns true if the error kind is CreateQueryLoggingConfigError::InsufficientCloudWatchLogsResourcePolicy.
sourcepub fn is_invalid_input(&self) -> bool
pub fn is_invalid_input(&self) -> bool
Returns true if the error kind is CreateQueryLoggingConfigError::InvalidInput.
sourcepub fn is_no_such_cloud_watch_logs_log_group(&self) -> bool
pub fn is_no_such_cloud_watch_logs_log_group(&self) -> bool
Returns true if the error kind is CreateQueryLoggingConfigError::NoSuchCloudWatchLogsLogGroup.
sourcepub fn is_no_such_hosted_zone(&self) -> bool
pub fn is_no_such_hosted_zone(&self) -> bool
Returns true if the error kind is CreateQueryLoggingConfigError::NoSuchHostedZone.
sourcepub fn is_query_logging_config_already_exists(&self) -> bool
pub fn is_query_logging_config_already_exists(&self) -> bool
Returns true if the error kind is CreateQueryLoggingConfigError::QueryLoggingConfigAlreadyExists.
Trait Implementations§
source§impl CreateUnhandledError for CreateQueryLoggingConfigError
impl CreateUnhandledError for CreateQueryLoggingConfigError
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 CreateQueryLoggingConfigError
impl Error for CreateQueryLoggingConfigError
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<CreateQueryLoggingConfigError> for Error
impl From<CreateQueryLoggingConfigError> for Error
source§fn from(err: CreateQueryLoggingConfigError) -> Self
fn from(err: CreateQueryLoggingConfigError) -> Self
source§impl ProvideErrorMetadata for CreateQueryLoggingConfigError
impl ProvideErrorMetadata for CreateQueryLoggingConfigError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateQueryLoggingConfigError
impl RequestId for CreateQueryLoggingConfigError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.