aws_sdk_cloudwatchlogs/client/
put_log_events.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutLogEvents`](crate::operation::put_log_events::builders::PutLogEventsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`log_group_name(impl Into<String>)`](crate::operation::put_log_events::builders::PutLogEventsFluentBuilder::log_group_name) / [`set_log_group_name(Option<String>)`](crate::operation::put_log_events::builders::PutLogEventsFluentBuilder::set_log_group_name):<br>required: **true**<br><p>The name of the log group.</p><br>
    ///   - [`log_stream_name(impl Into<String>)`](crate::operation::put_log_events::builders::PutLogEventsFluentBuilder::log_stream_name) / [`set_log_stream_name(Option<String>)`](crate::operation::put_log_events::builders::PutLogEventsFluentBuilder::set_log_stream_name):<br>required: **true**<br><p>The name of the log stream.</p><br>
    ///   - [`log_events(InputLogEvent)`](crate::operation::put_log_events::builders::PutLogEventsFluentBuilder::log_events) / [`set_log_events(Option<Vec::<InputLogEvent>>)`](crate::operation::put_log_events::builders::PutLogEventsFluentBuilder::set_log_events):<br>required: **true**<br><p>The log events.</p><br>
    ///   - [`sequence_token(impl Into<String>)`](crate::operation::put_log_events::builders::PutLogEventsFluentBuilder::sequence_token) / [`set_sequence_token(Option<String>)`](crate::operation::put_log_events::builders::PutLogEventsFluentBuilder::set_sequence_token):<br>required: **false**<br><p>The sequence token obtained from the response of the previous <code>PutLogEvents</code> call.</p><important>  <p>The <code>sequenceToken</code> parameter is now ignored in <code>PutLogEvents</code> actions. <code>PutLogEvents</code> actions are now accepted and never return <code>InvalidSequenceTokenException</code> or <code>DataAlreadyAcceptedException</code> even if the sequence token is not valid.</p> </important><br>
    ///   - [`entity(Entity)`](crate::operation::put_log_events::builders::PutLogEventsFluentBuilder::entity) / [`set_entity(Option<Entity>)`](crate::operation::put_log_events::builders::PutLogEventsFluentBuilder::set_entity):<br>required: **false**<br><p>The entity associated with the log events.</p><br>
    /// - On success, responds with [`PutLogEventsOutput`](crate::operation::put_log_events::PutLogEventsOutput) with field(s):
    ///   - [`next_sequence_token(Option<String>)`](crate::operation::put_log_events::PutLogEventsOutput::next_sequence_token): <p>The next sequence token.</p><important>  <p>This field has been deprecated.</p>  <p>The sequence token is now ignored in <code>PutLogEvents</code> actions. <code>PutLogEvents</code> actions are always accepted even if the sequence token is not valid. You can use parallel <code>PutLogEvents</code> actions on the same log stream and you do not need to wait for the response of a previous <code>PutLogEvents</code> action to obtain the <code>nextSequenceToken</code> value.</p> </important>
    ///   - [`rejected_log_events_info(Option<RejectedLogEventsInfo>)`](crate::operation::put_log_events::PutLogEventsOutput::rejected_log_events_info): <p>The rejected events.</p>
    ///   - [`rejected_entity_info(Option<RejectedEntityInfo>)`](crate::operation::put_log_events::PutLogEventsOutput::rejected_entity_info): <p>Information about why the entity is rejected when calling <code>PutLogEvents</code>. Only returned when the entity is rejected.</p><note>  <p>When the entity is rejected, the events may still be accepted.</p> </note>
    /// - On failure, responds with [`SdkError<PutLogEventsError>`](crate::operation::put_log_events::PutLogEventsError)
    pub fn put_log_events(&self) -> crate::operation::put_log_events::builders::PutLogEventsFluentBuilder {
        crate::operation::put_log_events::builders::PutLogEventsFluentBuilder::new(self.handle.clone())
    }
}