aws-sdk-appmonetization 1.0.0

AWS SDK for AWS App Monetization
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutAwsServiceEvent`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`app_id(impl Into<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::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_aws_service_event::builders::PutAwsServiceEventFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::set_user_id):<br>required: **true**<br>An opaque identifier that you assign to an end user. Do not include personally identifiable or otherwise sensitive data in this value.<br>
    ///   - [`service(impl Into<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::service) / [`set_service(Option<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::set_service):<br>required: **true**<br>The AWS service name that emitted the usage event.<br>
    ///   - [`operation(impl Into<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::operation) / [`set_operation(Option<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::set_operation):<br>required: **true**<br>The AWS operation (API action) that produced the usage event.<br>
    ///   - [`quantity(impl Into<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::quantity) / [`set_quantity(Option<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::set_quantity):<br>required: **false**<br>A non-negative decimal quantity represented as a string (for example, "1500" or "12.5").<br>
    ///   - [`timestamp(DateTime)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::timestamp) / [`set_timestamp(Option<DateTime>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::set_timestamp):<br>required: **true**<br>The time the event occurred, as an ISO-8601 date-time in UTC (for example, "2026-07-26T15:04:05Z").<br>
    ///   - [`aws_region(impl Into<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::aws_region) / [`set_aws_region(Option<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::set_aws_region):<br>required: **false**<br>The AWS Region in which the event occurred.<br>
    ///   - [`properties(impl Into<String>, impl Into<String>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::properties) / [`set_properties(Option<HashMap::<String, String>>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::set_properties):<br>required: **false**<br>The key/value properties carried on a usage event. Property values can be referenced by metric filters and grouping.<br>
    ///   - [`scope(RequestScope)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::set_scope):<br>required: **true**<br>The environment of the app that this operation applies to. Specify live to use the live app, or sandbox to use the app's isolated test environment.<br>
    /// - On success, responds with [`PutAwsServiceEventOutput`](crate::operation::put_aws_service_event::PutAwsServiceEventOutput) with field(s):
    ///   - [`event_id(String)`](crate::operation::put_aws_service_event::PutAwsServiceEventOutput::event_id): The ID assigned to the recorded event.
    ///   - [`status(ServiceEventStatus)`](crate::operation::put_aws_service_event::PutAwsServiceEventOutput::status): The processing status of the accepted event.
    /// - On failure, responds with [`SdkError<PutAwsServiceEventError>`](crate::operation::put_aws_service_event::PutAwsServiceEventError)
    pub fn put_aws_service_event(&self) -> crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder {
        crate::operation::put_aws_service_event::builders::PutAwsServiceEventFluentBuilder::new(self.handle.clone())
    }
}