#[non_exhaustive]pub enum AssociateDRTLogBucketError {
AccessDeniedForDependencyException(AccessDeniedForDependencyException),
InternalErrorException(InternalErrorException),
InvalidOperationException(InvalidOperationException),
InvalidParameterException(InvalidParameterException),
LimitsExceededException(LimitsExceededException),
NoAssociatedRoleException(NoAssociatedRoleException),
OptimisticLockException(OptimisticLockException),
ResourceNotFoundException(ResourceNotFoundException),
Unhandled(Unhandled),
}Expand description
Error type for the AssociateDRTLogBucketError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedForDependencyException(AccessDeniedForDependencyException)
In order to grant the necessary access to the Shield Response Team (SRT) the user submitting the request must have the iam:PassRole permission. This error indicates the user did not have the appropriate permissions. For more information, see Granting a User Permissions to Pass a Role to an Amazon Web Services Service.
InternalErrorException(InternalErrorException)
Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.
InvalidOperationException(InvalidOperationException)
Exception that indicates that the operation would not cause any change to occur.
InvalidParameterException(InvalidParameterException)
Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties.
LimitsExceededException(LimitsExceededException)
Exception that indicates that the operation would exceed a limit.
NoAssociatedRoleException(NoAssociatedRoleException)
The ARN of the role that you specified does not exist.
OptimisticLockException(OptimisticLockException)
Exception that indicates that the resource state has been modified by another client. Retrieve the resource and then retry your request.
ResourceNotFoundException(ResourceNotFoundException)
Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl AssociateDRTLogBucketError
impl AssociateDRTLogBucketError
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 AssociateDRTLogBucketError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the AssociateDRTLogBucketError::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_access_denied_for_dependency_exception(&self) -> bool
pub fn is_access_denied_for_dependency_exception(&self) -> bool
Returns true if the error kind is AssociateDRTLogBucketError::AccessDeniedForDependencyException.
sourcepub fn is_internal_error_exception(&self) -> bool
pub fn is_internal_error_exception(&self) -> bool
Returns true if the error kind is AssociateDRTLogBucketError::InternalErrorException.
sourcepub fn is_invalid_operation_exception(&self) -> bool
pub fn is_invalid_operation_exception(&self) -> bool
Returns true if the error kind is AssociateDRTLogBucketError::InvalidOperationException.
sourcepub fn is_invalid_parameter_exception(&self) -> bool
pub fn is_invalid_parameter_exception(&self) -> bool
Returns true if the error kind is AssociateDRTLogBucketError::InvalidParameterException.
sourcepub fn is_limits_exceeded_exception(&self) -> bool
pub fn is_limits_exceeded_exception(&self) -> bool
Returns true if the error kind is AssociateDRTLogBucketError::LimitsExceededException.
sourcepub fn is_no_associated_role_exception(&self) -> bool
pub fn is_no_associated_role_exception(&self) -> bool
Returns true if the error kind is AssociateDRTLogBucketError::NoAssociatedRoleException.
sourcepub fn is_optimistic_lock_exception(&self) -> bool
pub fn is_optimistic_lock_exception(&self) -> bool
Returns true if the error kind is AssociateDRTLogBucketError::OptimisticLockException.
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 AssociateDRTLogBucketError::ResourceNotFoundException.
Trait Implementations§
source§impl CreateUnhandledError for AssociateDRTLogBucketError
impl CreateUnhandledError for AssociateDRTLogBucketError
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 AssociateDRTLogBucketError
impl Debug for AssociateDRTLogBucketError
source§impl Display for AssociateDRTLogBucketError
impl Display for AssociateDRTLogBucketError
source§impl Error for AssociateDRTLogBucketError
impl Error for AssociateDRTLogBucketError
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<AssociateDRTLogBucketError> for Error
impl From<AssociateDRTLogBucketError> for Error
source§fn from(err: AssociateDRTLogBucketError) -> Self
fn from(err: AssociateDRTLogBucketError) -> Self
source§impl ProvideErrorMetadata for AssociateDRTLogBucketError
impl ProvideErrorMetadata for AssociateDRTLogBucketError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for AssociateDRTLogBucketError
impl RequestId for AssociateDRTLogBucketError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.