aws_sdk_firehose/client/
put_record_batch.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 [`PutRecordBatch`](crate::operation::put_record_batch::builders::PutRecordBatchFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`delivery_stream_name(impl Into<String>)`](crate::operation::put_record_batch::builders::PutRecordBatchFluentBuilder::delivery_stream_name) / [`set_delivery_stream_name(Option<String>)`](crate::operation::put_record_batch::builders::PutRecordBatchFluentBuilder::set_delivery_stream_name):<br>required: **true**<br><p>The name of the Firehose stream.</p><br>
7    ///   - [`records(Record)`](crate::operation::put_record_batch::builders::PutRecordBatchFluentBuilder::records) / [`set_records(Option<Vec::<Record>>)`](crate::operation::put_record_batch::builders::PutRecordBatchFluentBuilder::set_records):<br>required: **true**<br><p>One or more records.</p><br>
8    /// - On success, responds with [`PutRecordBatchOutput`](crate::operation::put_record_batch::PutRecordBatchOutput) with field(s):
9    ///   - [`failed_put_count(i32)`](crate::operation::put_record_batch::PutRecordBatchOutput::failed_put_count): <p>The number of records that might have failed processing. This number might be greater than 0 even if the <code>PutRecordBatch</code> call succeeds. Check <code>FailedPutCount</code> to determine whether there are records that you need to resend.</p>
10    ///   - [`encrypted(Option<bool>)`](crate::operation::put_record_batch::PutRecordBatchOutput::encrypted): <p>Indicates whether server-side encryption (SSE) was enabled during this operation.</p>
11    ///   - [`request_responses(Vec::<PutRecordBatchResponseEntry>)`](crate::operation::put_record_batch::PutRecordBatchOutput::request_responses): <p>The results array. For each record, the index of the response element is the same as the index used in the request array.</p>
12    /// - On failure, responds with [`SdkError<PutRecordBatchError>`](crate::operation::put_record_batch::PutRecordBatchError)
13    pub fn put_record_batch(&self) -> crate::operation::put_record_batch::builders::PutRecordBatchFluentBuilder {
14        crate::operation::put_record_batch::builders::PutRecordBatchFluentBuilder::new(self.handle.clone())
15    }
16}