pub struct PutEventsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutEvents
.
Sends custom events to Amazon EventBridge so that they can be matched to rules.
The maximum size for a PutEvents event entry is 256 KB. Entry size is calculated including the event and any necessary characters and keys of the JSON representation of the event. To learn more, see Calculating PutEvents event entry size in the Amazon EventBridge User Guide
PutEvents accepts the data in JSON format. For the JSON number (integer) data type, the constraints are: a minimum value of -9,223,372,036,854,775,808 and a maximum value of 9,223,372,036,854,775,807.
PutEvents will only process nested JSON up to 1100 levels deep.
Implementations§
source§impl PutEventsFluentBuilder
impl PutEventsFluentBuilder
sourcepub fn as_input(&self) -> &PutEventsInputBuilder
pub fn as_input(&self) -> &PutEventsInputBuilder
Access the PutEvents as a reference.
sourcepub async fn send(
self
) -> Result<PutEventsOutput, SdkError<PutEventsError, HttpResponse>>
pub async fn send( self ) -> Result<PutEventsOutput, SdkError<PutEventsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<PutEventsOutput, PutEventsError, Self>
pub fn customize( self ) -> CustomizableOperation<PutEventsOutput, PutEventsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn entries(self, input: PutEventsRequestEntry) -> Self
pub fn entries(self, input: PutEventsRequestEntry) -> Self
Appends an item to Entries
.
To override the contents of this collection use set_entries
.
The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.
sourcepub fn set_entries(self, input: Option<Vec<PutEventsRequestEntry>>) -> Self
pub fn set_entries(self, input: Option<Vec<PutEventsRequestEntry>>) -> Self
The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.
sourcepub fn get_entries(&self) -> &Option<Vec<PutEventsRequestEntry>>
pub fn get_entries(&self) -> &Option<Vec<PutEventsRequestEntry>>
The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.
sourcepub fn endpoint_id(self, input: impl Into<String>) -> Self
pub fn endpoint_id(self, input: impl Into<String>) -> Self
The URL subdomain of the endpoint. For example, if the URL for Endpoint is https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo
.
When using Java, you must include auth-crt
on the class path.
sourcepub fn set_endpoint_id(self, input: Option<String>) -> Self
pub fn set_endpoint_id(self, input: Option<String>) -> Self
The URL subdomain of the endpoint. For example, if the URL for Endpoint is https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo
.
When using Java, you must include auth-crt
on the class path.
sourcepub fn get_endpoint_id(&self) -> &Option<String>
pub fn get_endpoint_id(&self) -> &Option<String>
The URL subdomain of the endpoint. For example, if the URL for Endpoint is https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo
.
When using Java, you must include auth-crt
on the class path.
Trait Implementations§
source§impl Clone for PutEventsFluentBuilder
impl Clone for PutEventsFluentBuilder
source§fn clone(&self) -> PutEventsFluentBuilder
fn clone(&self) -> PutEventsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for PutEventsFluentBuilder
impl !RefUnwindSafe for PutEventsFluentBuilder
impl Send for PutEventsFluentBuilder
impl Sync for PutEventsFluentBuilder
impl Unpin for PutEventsFluentBuilder
impl !UnwindSafe for PutEventsFluentBuilder
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