#[non_exhaustive]pub enum EventsErrorCode {
ResourceNotFound,
ResourceAlreadyExists,
InvalidEventPattern,
ValidationException,
LimitExceeded,
ConcurrentModification,
InternalException,
InvalidAction,
MissingAction,
ManagedRuleException,
OperationDisabled,
}Expand description
Well-known EventBridge error codes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ResourceNotFound
Resource not found.
ResourceAlreadyExists
Resource already exists.
InvalidEventPattern
Invalid event pattern.
ValidationException
Validation error.
LimitExceeded
Limit exceeded.
ConcurrentModification
Concurrent modification.
InternalException
Internal error.
InvalidAction
Invalid action (unrecognized operation).
MissingAction
Missing action header.
ManagedRuleException
Managed rule exception (cannot modify managed rules).
OperationDisabled
Operation not supported.
Implementations§
Source§impl EventsErrorCode
impl EventsErrorCode
Sourcepub fn error_type(&self) -> &'static str
pub fn error_type(&self) -> &'static str
Returns the short error type string for the JSON __type field.
Sourcepub fn default_status_code(&self) -> StatusCode
pub fn default_status_code(&self) -> StatusCode
Returns the default HTTP status code for this error.
Trait Implementations§
Source§impl Clone for EventsErrorCode
impl Clone for EventsErrorCode
Source§fn clone(&self) -> EventsErrorCode
fn clone(&self) -> EventsErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventsErrorCode
impl Debug for EventsErrorCode
Source§impl Default for EventsErrorCode
impl Default for EventsErrorCode
Source§fn default() -> EventsErrorCode
fn default() -> EventsErrorCode
Returns the “default value” for a type. Read more
Source§impl Display for EventsErrorCode
impl Display for EventsErrorCode
Source§impl Hash for EventsErrorCode
impl Hash for EventsErrorCode
Source§impl PartialEq for EventsErrorCode
impl PartialEq for EventsErrorCode
impl Copy for EventsErrorCode
impl Eq for EventsErrorCode
impl StructuralPartialEq for EventsErrorCode
Auto Trait Implementations§
impl Freeze for EventsErrorCode
impl RefUnwindSafe for EventsErrorCode
impl Send for EventsErrorCode
impl Sync for EventsErrorCode
impl Unpin for EventsErrorCode
impl UnsafeUnpin for EventsErrorCode
impl UnwindSafe for EventsErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more