Struct aws_sdk_kinesis::operation::create_stream::CreateStreamInput
source · #[non_exhaustive]pub struct CreateStreamInput {
pub stream_name: Option<String>,
pub shard_count: Option<i32>,
pub stream_mode_details: Option<StreamModeDetails>,
}
Expand description
Represents the input for CreateStream
.
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>
A name to identify the stream. The stream name is scoped to the Amazon Web Services account used by the application that creates the stream. It is also scoped by Amazon Web Services Region. That is, two streams in two different Amazon Web Services accounts can have the same name. Two streams in the same Amazon Web Services account but in two different Regions can also have the same name.
shard_count: Option<i32>
The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput.
stream_mode_details: Option<StreamModeDetails>
Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
Implementations§
source§impl CreateStreamInput
impl CreateStreamInput
sourcepub fn stream_name(&self) -> Option<&str>
pub fn stream_name(&self) -> Option<&str>
A name to identify the stream. The stream name is scoped to the Amazon Web Services account used by the application that creates the stream. It is also scoped by Amazon Web Services Region. That is, two streams in two different Amazon Web Services accounts can have the same name. Two streams in the same Amazon Web Services account but in two different Regions can also have the same name.
sourcepub fn shard_count(&self) -> Option<i32>
pub fn shard_count(&self) -> Option<i32>
The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput.
sourcepub fn stream_mode_details(&self) -> Option<&StreamModeDetails>
pub fn stream_mode_details(&self) -> Option<&StreamModeDetails>
Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
source§impl CreateStreamInput
impl CreateStreamInput
sourcepub fn builder() -> CreateStreamInputBuilder
pub fn builder() -> CreateStreamInputBuilder
Creates a new builder-style object to manufacture CreateStreamInput
.
Trait Implementations§
source§impl Clone for CreateStreamInput
impl Clone for CreateStreamInput
source§fn clone(&self) -> CreateStreamInput
fn clone(&self) -> CreateStreamInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateStreamInput
impl Debug for CreateStreamInput
source§impl PartialEq for CreateStreamInput
impl PartialEq for CreateStreamInput
source§fn eq(&self, other: &CreateStreamInput) -> bool
fn eq(&self, other: &CreateStreamInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateStreamInput
Auto Trait Implementations§
impl Freeze for CreateStreamInput
impl RefUnwindSafe for CreateStreamInput
impl Send for CreateStreamInput
impl Sync for CreateStreamInput
impl Unpin for CreateStreamInput
impl UnwindSafe for CreateStreamInput
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