aws_sdk_opensearchmemory/client/delete_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 [`DeleteEvent`](crate::operation::delete_event::builders::DeleteEventFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`space_id(impl Into<String>)`](crate::operation::delete_event::builders::DeleteEventFluentBuilder::space_id) / [`set_space_id(Option<String>)`](crate::operation::delete_event::builders::DeleteEventFluentBuilder::set_space_id):<br>required: **true**<br><p>The ID of the space.</p><br>
7 /// - [`event_id(impl Into<String>)`](crate::operation::delete_event::builders::DeleteEventFluentBuilder::event_id) / [`set_event_id(Option<String>)`](crate::operation::delete_event::builders::DeleteEventFluentBuilder::set_event_id):<br>required: **true**<br><p>The ID of the event to delete.</p><br>
8 /// - [`actor_id(impl Into<String>)`](crate::operation::delete_event::builders::DeleteEventFluentBuilder::actor_id) / [`set_actor_id(Option<String>)`](crate::operation::delete_event::builders::DeleteEventFluentBuilder::set_actor_id):<br>required: **false**<br><p>The actor that 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::delete_event::builders::DeleteEventFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::delete_event::builders::DeleteEventFluentBuilder::set_session_id):<br>required: **false**<br><p>The session that 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 [`DeleteEventOutput`](crate::operation::delete_event::DeleteEventOutput) with field(s):
11 /// - [`event_id(String)`](crate::operation::delete_event::DeleteEventOutput::event_id): <p>The ID of the deleted event.</p>
12 /// - On failure, responds with [`SdkError<DeleteEventError>`](crate::operation::delete_event::DeleteEventError)
13 pub fn delete_event(&self) -> crate::operation::delete_event::builders::DeleteEventFluentBuilder {
14 crate::operation::delete_event::builders::DeleteEventFluentBuilder::new(self.handle.clone())
15 }
16}