1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutEvents`](crate::operation::put_events::builders::PutEventsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`entries(PutEventsRequestEntry)`](crate::operation::put_events::builders::PutEventsFluentBuilder::entries) / [`set_entries(Option<Vec::<PutEventsRequestEntry>>)`](crate::operation::put_events::builders::PutEventsFluentBuilder::set_entries):<br>required: **true**<br><p>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.</p><br>
    ///   - [`endpoint_id(impl Into<String>)`](crate::operation::put_events::builders::PutEventsFluentBuilder::endpoint_id) / [`set_endpoint_id(Option<String>)`](crate::operation::put_events::builders::PutEventsFluentBuilder::set_endpoint_id):<br>required: **false**<br><p>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 <code>abcde.veo</code>.</p><important>  <p>When using Java, you must include <code>auth-crt</code> on the class path.</p> </important><br>
    /// - On success, responds with [`PutEventsOutput`](crate::operation::put_events::PutEventsOutput) with field(s):
    ///   - [`failed_entry_count(i32)`](crate::operation::put_events::PutEventsOutput::failed_entry_count): <p>The number of failed entries.</p>
    ///   - [`entries(Option<Vec::<PutEventsResultEntry>>)`](crate::operation::put_events::PutEventsOutput::entries): <p>The successfully and unsuccessfully ingested events results. If the ingestion 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.</p> <p>For each record, the index of the response element is the same as the index in the request array.</p>
    /// - On failure, responds with [`SdkError<PutEventsError>`](crate::operation::put_events::PutEventsError)
    pub fn put_events(&self) -> crate::operation::put_events::builders::PutEventsFluentBuilder {
        crate::operation::put_events::builders::PutEventsFluentBuilder::new(self.handle.clone())
    }
}