#[non_exhaustive]pub enum EnableLoggingError {
BucketNotFoundFault(BucketNotFoundFault),
ClusterNotFoundFault(ClusterNotFoundFault),
InsufficientS3BucketPolicyFault(InsufficientS3BucketPolicyFault),
InvalidClusterStateFault(InvalidClusterStateFault),
InvalidS3BucketNameFault(InvalidS3BucketNameFault),
InvalidS3KeyPrefixFault(InvalidS3KeyPrefixFault),
Unhandled(Unhandled),
}
Expand description
Error type for the EnableLoggingError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BucketNotFoundFault(BucketNotFoundFault)
Could not find the specified S3 bucket.
ClusterNotFoundFault(ClusterNotFoundFault)
The ClusterIdentifier
parameter does not refer to an existing cluster.
InsufficientS3BucketPolicyFault(InsufficientS3BucketPolicyFault)
The cluster does not have read bucket or put object permissions on the S3 bucket specified when enabling logging.
InvalidClusterStateFault(InvalidClusterStateFault)
The specified cluster is not in the available
state.
InvalidS3BucketNameFault(InvalidS3BucketNameFault)
The S3 bucket name is invalid. For more information about naming rules, go to Bucket Restrictions and Limitations in the Amazon Simple Storage Service (S3) Developer Guide.
InvalidS3KeyPrefixFault(InvalidS3KeyPrefixFault)
The string specified for the logging S3 key prefix does not comply with the documented constraints.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl EnableLoggingError
impl EnableLoggingError
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 EnableLoggingError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the EnableLoggingError::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_bucket_not_found_fault(&self) -> bool
pub fn is_bucket_not_found_fault(&self) -> bool
Returns true
if the error kind is EnableLoggingError::BucketNotFoundFault
.
sourcepub fn is_cluster_not_found_fault(&self) -> bool
pub fn is_cluster_not_found_fault(&self) -> bool
Returns true
if the error kind is EnableLoggingError::ClusterNotFoundFault
.
sourcepub fn is_insufficient_s3_bucket_policy_fault(&self) -> bool
pub fn is_insufficient_s3_bucket_policy_fault(&self) -> bool
Returns true
if the error kind is EnableLoggingError::InsufficientS3BucketPolicyFault
.
sourcepub fn is_invalid_cluster_state_fault(&self) -> bool
pub fn is_invalid_cluster_state_fault(&self) -> bool
Returns true
if the error kind is EnableLoggingError::InvalidClusterStateFault
.
sourcepub fn is_invalid_s3_bucket_name_fault(&self) -> bool
pub fn is_invalid_s3_bucket_name_fault(&self) -> bool
Returns true
if the error kind is EnableLoggingError::InvalidS3BucketNameFault
.
sourcepub fn is_invalid_s3_key_prefix_fault(&self) -> bool
pub fn is_invalid_s3_key_prefix_fault(&self) -> bool
Returns true
if the error kind is EnableLoggingError::InvalidS3KeyPrefixFault
.
Trait Implementations§
source§impl CreateUnhandledError for EnableLoggingError
impl CreateUnhandledError for EnableLoggingError
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 EnableLoggingError
impl Debug for EnableLoggingError
source§impl Display for EnableLoggingError
impl Display for EnableLoggingError
source§impl Error for EnableLoggingError
impl Error for EnableLoggingError
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<EnableLoggingError> for Error
impl From<EnableLoggingError> for Error
source§fn from(err: EnableLoggingError) -> Self
fn from(err: EnableLoggingError) -> Self
source§impl ProvideErrorMetadata for EnableLoggingError
impl ProvideErrorMetadata for EnableLoggingError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for EnableLoggingError
impl RequestId for EnableLoggingError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.