#[non_exhaustive]pub struct UpdateShardCountInput {
pub stream_name: Option<String>,
pub target_shard_count: Option<i32>,
pub scaling_type: Option<ScalingType>,
pub stream_arn: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.stream_name: Option<String>
The name of the stream.
target_shard_count: Option<i32>
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.
scaling_type: Option<ScalingType>
The scaling type. Uniform scaling creates shards of equal size.
stream_arn: Option<String>
The ARN of the stream.
Implementations§
source§impl UpdateShardCountInput
impl UpdateShardCountInput
sourcepub fn stream_name(&self) -> Option<&str>
pub fn stream_name(&self) -> Option<&str>
The name of the stream.
sourcepub fn target_shard_count(&self) -> Option<i32>
pub fn target_shard_count(&self) -> Option<i32>
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) -> Option<&ScalingType>
pub fn scaling_type(&self) -> Option<&ScalingType>
The scaling type. Uniform scaling creates shards of equal size.
sourcepub fn stream_arn(&self) -> Option<&str>
pub fn stream_arn(&self) -> Option<&str>
The ARN of the stream.
source§impl UpdateShardCountInput
impl UpdateShardCountInput
sourcepub fn builder() -> UpdateShardCountInputBuilder
pub fn builder() -> UpdateShardCountInputBuilder
Creates a new builder-style object to manufacture UpdateShardCountInput
.
Trait Implementations§
source§impl Clone for UpdateShardCountInput
impl Clone for UpdateShardCountInput
source§fn clone(&self) -> UpdateShardCountInput
fn clone(&self) -> UpdateShardCountInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateShardCountInput
impl Debug for UpdateShardCountInput
source§impl PartialEq for UpdateShardCountInput
impl PartialEq for UpdateShardCountInput
source§fn eq(&self, other: &UpdateShardCountInput) -> bool
fn eq(&self, other: &UpdateShardCountInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateShardCountInput
Auto Trait Implementations§
impl Freeze for UpdateShardCountInput
impl RefUnwindSafe for UpdateShardCountInput
impl Send for UpdateShardCountInput
impl Sync for UpdateShardCountInput
impl Unpin for UpdateShardCountInput
impl UnwindSafe for UpdateShardCountInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more