#[non_exhaustive]pub struct PutPartnerEventsRequestEntry {
pub time: Option<DateTime>,
pub source: Option<String>,
pub resources: Option<Vec<String>>,
pub detail_type: Option<String>,
pub detail: Option<String>,
}
Expand description
The details about an event generated by an SaaS partner.
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.time: Option<DateTime>
The date and time of the event.
source: Option<String>
The event source that is generating the entry.
Detail
, DetailType
, and Source
are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
resources: Option<Vec<String>>
Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
detail_type: Option<String>
A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
Detail
, DetailType
, and Source
are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
detail: Option<String>
A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested sub-objects.
Detail
, DetailType
, and Source
are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
Implementations§
source§impl PutPartnerEventsRequestEntry
impl PutPartnerEventsRequestEntry
sourcepub fn source(&self) -> Option<&str>
pub fn source(&self) -> Option<&str>
The event source that is generating the entry.
Detail
, DetailType
, and Source
are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
sourcepub fn resources(&self) -> &[String]
pub fn resources(&self) -> &[String]
Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resources.is_none()
.
sourcepub fn detail_type(&self) -> Option<&str>
pub fn detail_type(&self) -> Option<&str>
A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
Detail
, DetailType
, and Source
are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
sourcepub fn detail(&self) -> Option<&str>
pub fn detail(&self) -> Option<&str>
A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested sub-objects.
Detail
, DetailType
, and Source
are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
source§impl PutPartnerEventsRequestEntry
impl PutPartnerEventsRequestEntry
sourcepub fn builder() -> PutPartnerEventsRequestEntryBuilder
pub fn builder() -> PutPartnerEventsRequestEntryBuilder
Creates a new builder-style object to manufacture PutPartnerEventsRequestEntry
.
Trait Implementations§
source§impl Clone for PutPartnerEventsRequestEntry
impl Clone for PutPartnerEventsRequestEntry
source§fn clone(&self) -> PutPartnerEventsRequestEntry
fn clone(&self) -> PutPartnerEventsRequestEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutPartnerEventsRequestEntry
impl Debug for PutPartnerEventsRequestEntry
source§impl PartialEq for PutPartnerEventsRequestEntry
impl PartialEq for PutPartnerEventsRequestEntry
source§fn eq(&self, other: &PutPartnerEventsRequestEntry) -> bool
fn eq(&self, other: &PutPartnerEventsRequestEntry) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutPartnerEventsRequestEntry
Auto Trait Implementations§
impl Freeze for PutPartnerEventsRequestEntry
impl RefUnwindSafe for PutPartnerEventsRequestEntry
impl Send for PutPartnerEventsRequestEntry
impl Sync for PutPartnerEventsRequestEntry
impl Unpin for PutPartnerEventsRequestEntry
impl UnwindSafe for PutPartnerEventsRequestEntry
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