aws_sdk_opensearchmemory/client/get_event.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetEvent`](crate::operation::get_event::builders::GetEventFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`space_id(impl Into<String>)`](crate::operation::get_event::builders::GetEventFluentBuilder::space_id) / [`set_space_id(Option<String>)`](crate::operation::get_event::builders::GetEventFluentBuilder::set_space_id):<br>required: **true**<br><p>The ID of the space.</p><br>
7 /// - [`event_id(impl Into<String>)`](crate::operation::get_event::builders::GetEventFluentBuilder::event_id) / [`set_event_id(Option<String>)`](crate::operation::get_event::builders::GetEventFluentBuilder::set_event_id):<br>required: **true**<br><p>The event's ID, as returned by <code>CreateEvent</code>, <code>ListEvents</code>, or <code>SearchEvents</code>.</p><br>
8 /// - [`actor_id(impl Into<String>)`](crate::operation::get_event::builders::GetEventFluentBuilder::actor_id) / [`set_actor_id(Option<String>)`](crate::operation::get_event::builders::GetEventFluentBuilder::set_actor_id):<br>required: **false**<br><p>The actor the event must belong to. Omit it to skip this check. If it doesn't match the stored event, the call fails with <code>ResourceNotFoundException</code>, as if the event did not exist.</p><br>
9 /// - [`session_id(impl Into<String>)`](crate::operation::get_event::builders::GetEventFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::get_event::builders::GetEventFluentBuilder::set_session_id):<br>required: **false**<br><p>The session the event must belong to. Omit it to skip this check. If it doesn't match the stored event, the call fails with <code>ResourceNotFoundException</code>, as if the event did not exist.</p><br>
10 /// - On success, responds with [`GetEventOutput`](crate::operation::get_event::GetEventOutput) with field(s):
11 /// - [`event(Option<Event>)`](crate::operation::get_event::GetEventOutput::event): <p>The event, including its payload.</p>
12 /// - On failure, responds with [`SdkError<GetEventError>`](crate::operation::get_event::GetEventError)
13 pub fn get_event(&self) -> crate::operation::get_event::builders::GetEventFluentBuilder {
14 crate::operation::get_event::builders::GetEventFluentBuilder::new(self.handle.clone())
15 }
16}