// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`PutEvent`](crate::operation::put_event::builders::PutEventFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`app_id(impl Into<String>)`](crate::operation::put_event::builders::PutEventFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::put_event::builders::PutEventFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app the event belongs to.<br>
/// - [`client_token(impl Into<String>)`](crate::operation::put_event::builders::PutEventFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::put_event::builders::PutEventFluentBuilder::set_client_token):<br>required: **false**<br>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.<br>
/// - [`user_id(impl Into<String>)`](crate::operation::put_event::builders::PutEventFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::put_event::builders::PutEventFluentBuilder::set_user_id):<br>required: **true**<br>The ID of the end user the event is attributed to. Do not include personally identifiable or otherwise sensitive data in this value.<br>
/// - [`event_type(impl Into<String>)`](crate::operation::put_event::builders::PutEventFluentBuilder::event_type) / [`set_event_type(Option<String>)`](crate::operation::put_event::builders::PutEventFluentBuilder::set_event_type):<br>required: **true**<br>The event type. Correlates with the event type of the metrics that aggregate it.<br>
/// - [`quantity(impl Into<String>)`](crate::operation::put_event::builders::PutEventFluentBuilder::quantity) / [`set_quantity(Option<String>)`](crate::operation::put_event::builders::PutEventFluentBuilder::set_quantity):<br>required: **true**<br>The amount of usage the event represents, as a non-negative decimal string (for example, "1" or "12.5").<br>
/// - [`timestamp(DateTime)`](crate::operation::put_event::builders::PutEventFluentBuilder::timestamp) / [`set_timestamp(Option<DateTime>)`](crate::operation::put_event::builders::PutEventFluentBuilder::set_timestamp):<br>required: **true**<br>The time the event occurred.<br>
/// - [`properties(impl Into<String>, impl Into<String>)`](crate::operation::put_event::builders::PutEventFluentBuilder::properties) / [`set_properties(Option<HashMap::<String, String>>)`](crate::operation::put_event::builders::PutEventFluentBuilder::set_properties):<br>required: **false**<br>The key/value properties carried on the event, usable in metric filters and grouping. When a metric sums or takes the max of a property, that property's value must be a plain non-negative decimal (up to 15 digits before the point and 6 after; no sign, exponent, spaces, or commas, for example "1200" or "12.5"), and events that break this are rejected.<br>
/// - [`scope(RequestScope)`](crate::operation::put_event::builders::PutEventFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::put_event::builders::PutEventFluentBuilder::set_scope):<br>required: **true**<br>The environment of the app that this operation applies to: the live app or the app's isolated sandbox test environment.<br>
/// - On success, responds with [`PutEventOutput`](crate::operation::put_event::PutEventOutput) with field(s):
/// - [`event_id(String)`](crate::operation::put_event::PutEventOutput::event_id): The server-assigned identifier for the recorded event.
/// - [`status(String)`](crate::operation::put_event::PutEventOutput::status): The status of the recorded event.
/// - On failure, responds with [`SdkError<PutEventError>`](crate::operation::put_event::PutEventError)
pub fn put_event(&self) -> crate::operation::put_event::builders::PutEventFluentBuilder {
crate::operation::put_event::builders::PutEventFluentBuilder::new(self.handle.clone())
}
}