Struct aws_sdk_eventbridge::types::PutEventsResultEntry
source · #[non_exhaustive]pub struct PutEventsResultEntry {
pub event_id: Option<String>,
pub error_code: Option<String>,
pub error_message: Option<String>,
}Expand description
Represents the results of an event submitted to an event bus.
If the submission was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.
For information about the errors that are common to all actions, see Common Errors.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.event_id: Option<String>The ID of the event.
error_code: Option<String>The error code that indicates why the event submission failed.
Retryable errors include:
-
The request processing has failed because of an unknown error, exception or failure.
-
The request was denied due to request throttling.
Non-retryable errors include:
-
You do not have sufficient access to perform this action.
-
InvalidAccountIdExceptionThe account ID provided is not valid.
-
InvalidArgumentA specified parameter is not valid.
-
MalformedDetailThe JSON provided is not valid.
-
RedactionFailureRedacting the CloudTrail event failed.
-
NotAuthorizedForSourceExceptionYou do not have permissions to publish events with this source onto this event bus.
-
NotAuthorizedForDetailTypeExceptionYou do not have permissions to publish events with this detail type onto this event bus.
error_message: Option<String>The error message that explains why the event submission failed.
Implementations§
source§impl PutEventsResultEntry
impl PutEventsResultEntry
sourcepub fn error_code(&self) -> Option<&str>
pub fn error_code(&self) -> Option<&str>
The error code that indicates why the event submission failed.
Retryable errors include:
-
The request processing has failed because of an unknown error, exception or failure.
-
The request was denied due to request throttling.
Non-retryable errors include:
-
You do not have sufficient access to perform this action.
-
InvalidAccountIdExceptionThe account ID provided is not valid.
-
InvalidArgumentA specified parameter is not valid.
-
MalformedDetailThe JSON provided is not valid.
-
RedactionFailureRedacting the CloudTrail event failed.
-
NotAuthorizedForSourceExceptionYou do not have permissions to publish events with this source onto this event bus.
-
NotAuthorizedForDetailTypeExceptionYou do not have permissions to publish events with this detail type onto this event bus.
sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
The error message that explains why the event submission failed.
source§impl PutEventsResultEntry
impl PutEventsResultEntry
sourcepub fn builder() -> PutEventsResultEntryBuilder
pub fn builder() -> PutEventsResultEntryBuilder
Creates a new builder-style object to manufacture PutEventsResultEntry.
Trait Implementations§
source§impl Clone for PutEventsResultEntry
impl Clone for PutEventsResultEntry
source§fn clone(&self) -> PutEventsResultEntry
fn clone(&self) -> PutEventsResultEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PutEventsResultEntry
impl Debug for PutEventsResultEntry
source§impl PartialEq for PutEventsResultEntry
impl PartialEq for PutEventsResultEntry
source§fn eq(&self, other: &PutEventsResultEntry) -> bool
fn eq(&self, other: &PutEventsResultEntry) -> bool
self and other values to be equal, and is used
by ==.