aws_sdk_kinesis/client/
merge_shards.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 [`MergeShards`](crate::operation::merge_shards::builders::MergeShardsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`stream_name(impl Into<String>)`](crate::operation::merge_shards::builders::MergeShardsFluentBuilder::stream_name) / [`set_stream_name(Option<String>)`](crate::operation::merge_shards::builders::MergeShardsFluentBuilder::set_stream_name):<br>required: **false**<br><p>The name of the stream for the merge.</p><br>
7    ///   - [`shard_to_merge(impl Into<String>)`](crate::operation::merge_shards::builders::MergeShardsFluentBuilder::shard_to_merge) / [`set_shard_to_merge(Option<String>)`](crate::operation::merge_shards::builders::MergeShardsFluentBuilder::set_shard_to_merge):<br>required: **true**<br><p>The shard ID of the shard to combine with the adjacent shard for the merge.</p><br>
8    ///   - [`adjacent_shard_to_merge(impl Into<String>)`](crate::operation::merge_shards::builders::MergeShardsFluentBuilder::adjacent_shard_to_merge) / [`set_adjacent_shard_to_merge(Option<String>)`](crate::operation::merge_shards::builders::MergeShardsFluentBuilder::set_adjacent_shard_to_merge):<br>required: **true**<br><p>The shard ID of the adjacent shard for the merge.</p><br>
9    ///   - [`stream_arn(impl Into<String>)`](crate::operation::merge_shards::builders::MergeShardsFluentBuilder::stream_arn) / [`set_stream_arn(Option<String>)`](crate::operation::merge_shards::builders::MergeShardsFluentBuilder::set_stream_arn):<br>required: **false**<br><p>The ARN of the stream.</p><br>
10    /// - On success, responds with [`MergeShardsOutput`](crate::operation::merge_shards::MergeShardsOutput)
11    /// - On failure, responds with [`SdkError<MergeShardsError>`](crate::operation::merge_shards::MergeShardsError)
12    pub fn merge_shards(&self) -> crate::operation::merge_shards::builders::MergeShardsFluentBuilder {
13        crate::operation::merge_shards::builders::MergeShardsFluentBuilder::new(self.handle.clone())
14    }
15}