Enum aws_sdk_codestarnotifications::operation::create_notification_rule::CreateNotificationRuleError
source · #[non_exhaustive]pub enum CreateNotificationRuleError {
AccessDeniedException(AccessDeniedException),
ConcurrentModificationException(ConcurrentModificationException),
ConfigurationException(ConfigurationException),
LimitExceededException(LimitExceededException),
ResourceAlreadyExistsException(ResourceAlreadyExistsException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateNotificationRuleError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
AWS CodeStar Notifications can't create the notification rule because you do not have sufficient permissions.
ConcurrentModificationException(ConcurrentModificationException)
AWS CodeStar Notifications can't complete the request because the resource is being modified by another process. Wait a few minutes and try again.
ConfigurationException(ConfigurationException)
Some or all of the configuration is incomplete, missing, or not valid.
LimitExceededException(LimitExceededException)
One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to accounts, notification rules, notifications, resources, and targets. For more information, see Limits.
ResourceAlreadyExistsException(ResourceAlreadyExistsException)
A resource with the same name or ID already exists. Notification rule names must be unique in your Amazon Web Services account.
ValidationException(ValidationException)
One or more parameter values are not valid.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreateNotificationRuleError
impl CreateNotificationRuleError
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 CreateNotificationRuleError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateNotificationRuleError::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_exception(&self) -> bool
pub fn is_access_denied_exception(&self) -> bool
Returns true
if the error kind is CreateNotificationRuleError::AccessDeniedException
.
sourcepub fn is_concurrent_modification_exception(&self) -> bool
pub fn is_concurrent_modification_exception(&self) -> bool
Returns true
if the error kind is CreateNotificationRuleError::ConcurrentModificationException
.
sourcepub fn is_configuration_exception(&self) -> bool
pub fn is_configuration_exception(&self) -> bool
Returns true
if the error kind is CreateNotificationRuleError::ConfigurationException
.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true
if the error kind is CreateNotificationRuleError::LimitExceededException
.
sourcepub fn is_resource_already_exists_exception(&self) -> bool
pub fn is_resource_already_exists_exception(&self) -> bool
Returns true
if the error kind is CreateNotificationRuleError::ResourceAlreadyExistsException
.
sourcepub fn is_validation_exception(&self) -> bool
pub fn is_validation_exception(&self) -> bool
Returns true
if the error kind is CreateNotificationRuleError::ValidationException
.
Trait Implementations§
source§impl CreateUnhandledError for CreateNotificationRuleError
impl CreateUnhandledError for CreateNotificationRuleError
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 CreateNotificationRuleError
impl Debug for CreateNotificationRuleError
source§impl Error for CreateNotificationRuleError
impl Error for CreateNotificationRuleError
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<CreateNotificationRuleError> for Error
impl From<CreateNotificationRuleError> for Error
source§fn from(err: CreateNotificationRuleError) -> Self
fn from(err: CreateNotificationRuleError) -> Self
source§impl ProvideErrorMetadata for CreateNotificationRuleError
impl ProvideErrorMetadata for CreateNotificationRuleError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateNotificationRuleError
impl RequestId for CreateNotificationRuleError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.