Struct aws_sdk_eventbridge::types::PutEventsRequestEntry
source · #[non_exhaustive]pub struct PutEventsRequestEntry {
pub time: Option<DateTime>,
pub source: Option<String>,
pub resources: Option<Vec<String>>,
pub detail_type: Option<String>,
pub detail: Option<String>,
pub event_bus_name: Option<String>,
pub trace_header: Option<String>,
}
Expand description
Represents an event to be submitted.
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 time stamp of the event, per RFC3339. If no time stamp is provided, the time stamp of the PutEvents call is used.
source: Option<String>
The source of the event.
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>
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 object. There is no other schema imposed. The JSON object 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.
event_bus_name: Option<String>
The name or ARN of the event bus to receive the event. Only the rules that are associated with this event bus are used to match the event. If you omit this, the default event bus is used.
If you're using a global endpoint with a custom bus, you can enter either the name or Amazon Resource Name (ARN) of the event bus in either the primary or secondary Region here. EventBridge then determines the corresponding event bus in the other Region based on the endpoint referenced by the EndpointId
. Specifying the event bus ARN is preferred.
trace_header: Option<String>
An X-Ray trace header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the event.
To learn more about X-Ray trace headers, see Tracing header in the X-Ray Developer Guide.
Implementations§
source§impl PutEventsRequestEntry
impl PutEventsRequestEntry
sourcepub fn source(&self) -> Option<&str>
pub fn source(&self) -> Option<&str>
The source of the event.
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>
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 object. There is no other schema imposed. The JSON object 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.
sourcepub fn event_bus_name(&self) -> Option<&str>
pub fn event_bus_name(&self) -> Option<&str>
The name or ARN of the event bus to receive the event. Only the rules that are associated with this event bus are used to match the event. If you omit this, the default event bus is used.
If you're using a global endpoint with a custom bus, you can enter either the name or Amazon Resource Name (ARN) of the event bus in either the primary or secondary Region here. EventBridge then determines the corresponding event bus in the other Region based on the endpoint referenced by the EndpointId
. Specifying the event bus ARN is preferred.
sourcepub fn trace_header(&self) -> Option<&str>
pub fn trace_header(&self) -> Option<&str>
An X-Ray trace header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the event.
To learn more about X-Ray trace headers, see Tracing header in the X-Ray Developer Guide.
source§impl PutEventsRequestEntry
impl PutEventsRequestEntry
sourcepub fn builder() -> PutEventsRequestEntryBuilder
pub fn builder() -> PutEventsRequestEntryBuilder
Creates a new builder-style object to manufacture PutEventsRequestEntry
.
Trait Implementations§
source§impl Clone for PutEventsRequestEntry
impl Clone for PutEventsRequestEntry
source§fn clone(&self) -> PutEventsRequestEntry
fn clone(&self) -> PutEventsRequestEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutEventsRequestEntry
impl Debug for PutEventsRequestEntry
source§impl PartialEq for PutEventsRequestEntry
impl PartialEq for PutEventsRequestEntry
source§fn eq(&self, other: &PutEventsRequestEntry) -> bool
fn eq(&self, other: &PutEventsRequestEntry) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutEventsRequestEntry
Auto Trait Implementations§
impl Freeze for PutEventsRequestEntry
impl RefUnwindSafe for PutEventsRequestEntry
impl Send for PutEventsRequestEntry
impl Sync for PutEventsRequestEntry
impl Unpin for PutEventsRequestEntry
impl UnwindSafe for PutEventsRequestEntry
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