Struct aws_sdk_kinesis::input::update_shard_count_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateShardCountInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn stream_name(self, input: impl Into<String>) -> Self
pub fn stream_name(self, input: impl Into<String>) -> Self
The name of the stream.
sourcepub fn set_stream_name(self, input: Option<String>) -> Self
pub fn set_stream_name(self, input: Option<String>) -> Self
The name of the stream.
sourcepub fn target_shard_count(self, input: i32) -> Self
pub fn target_shard_count(self, input: i32) -> Self
The new number of shards. This value has the following default limits. By default, you cannot do the following:
-
Set this value to more than double your current shard count for a stream.
-
Set this value below half your current shard count for a stream.
-
Set this value to more than 10000 shards in a stream (the default limit for shard count per stream is 10000 per account per region), unless you request a limit increase.
-
Scale a stream with more than 10000 shards down unless you set this value to less than 10000 shards.
sourcepub fn set_target_shard_count(self, input: Option<i32>) -> Self
pub fn set_target_shard_count(self, input: Option<i32>) -> Self
The new number of shards. This value has the following default limits. By default, you cannot do the following:
-
Set this value to more than double your current shard count for a stream.
-
Set this value below half your current shard count for a stream.
-
Set this value to more than 10000 shards in a stream (the default limit for shard count per stream is 10000 per account per region), unless you request a limit increase.
-
Scale a stream with more than 10000 shards down unless you set this value to less than 10000 shards.
sourcepub fn scaling_type(self, input: ScalingType) -> Self
pub fn scaling_type(self, input: ScalingType) -> Self
The scaling type. Uniform scaling creates shards of equal size.
sourcepub fn set_scaling_type(self, input: Option<ScalingType>) -> Self
pub fn set_scaling_type(self, input: Option<ScalingType>) -> Self
The scaling type. Uniform scaling creates shards of equal size.
sourcepub fn stream_arn(self, input: impl Into<String>) -> Self
pub fn stream_arn(self, input: impl Into<String>) -> Self
The ARN of the stream.
sourcepub fn set_stream_arn(self, input: Option<String>) -> Self
pub fn set_stream_arn(self, input: Option<String>) -> Self
The ARN of the stream.
sourcepub fn build(self) -> Result<UpdateShardCountInput, BuildError>
pub fn build(self) -> Result<UpdateShardCountInput, BuildError>
Consumes the builder and constructs a UpdateShardCountInput
.