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.
-
InvalidAccountIdException
The account ID provided is not valid.
-
InvalidArgument
A specified parameter is not valid.
-
MalformedDetail
The JSON provided is not valid.
-
RedactionFailure
Redacting the CloudTrail event failed.
-
NotAuthorizedForSourceException
You do not have permissions to publish events with this source onto this event bus.
-
NotAuthorizedForDetailTypeException
You 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.
-
InvalidAccountIdException
The account ID provided is not valid.
-
InvalidArgument
A specified parameter is not valid.
-
MalformedDetail
The JSON provided is not valid.
-
RedactionFailure
Redacting the CloudTrail event failed.
-
NotAuthorizedForSourceException
You do not have permissions to publish events with this source onto this event bus.
-
NotAuthorizedForDetailTypeException
You 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 ==
.impl StructuralPartialEq for PutEventsResultEntry
Auto Trait Implementations§
impl Freeze for PutEventsResultEntry
impl RefUnwindSafe for PutEventsResultEntry
impl Send for PutEventsResultEntry
impl Sync for PutEventsResultEntry
impl Unpin for PutEventsResultEntry
impl UnwindSafe for PutEventsResultEntry
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more