#[non_exhaustive]pub struct CreateChannelInput {
pub channel_name: Option<String>,
pub channel_storage: Option<ChannelStorage>,
pub retention_period: Option<RetentionPeriod>,
pub tags: Option<Vec<Tag>>,
}
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.channel_name: Option<String>
The name of the channel.
channel_storage: Option<ChannelStorage>
Where channel data is stored. You can choose one of serviceManagedS3
or customerManagedS3
storage. If not specified, the default is serviceManagedS3
. You can't change this storage option after the channel is created.
retention_period: Option<RetentionPeriod>
How long, in days, message data is kept for the channel. When customerManagedS3
storage is selected, this parameter is ignored.
Metadata which can be used to manage the channel.
Implementations§
source§impl CreateChannelInput
impl CreateChannelInput
sourcepub fn channel_name(&self) -> Option<&str>
pub fn channel_name(&self) -> Option<&str>
The name of the channel.
sourcepub fn channel_storage(&self) -> Option<&ChannelStorage>
pub fn channel_storage(&self) -> Option<&ChannelStorage>
Where channel data is stored. You can choose one of serviceManagedS3
or customerManagedS3
storage. If not specified, the default is serviceManagedS3
. You can't change this storage option after the channel is created.
sourcepub fn retention_period(&self) -> Option<&RetentionPeriod>
pub fn retention_period(&self) -> Option<&RetentionPeriod>
How long, in days, message data is kept for the channel. When customerManagedS3
storage is selected, this parameter is ignored.
Metadata which can be used to manage the channel.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateChannelInput
impl CreateChannelInput
sourcepub fn builder() -> CreateChannelInputBuilder
pub fn builder() -> CreateChannelInputBuilder
Creates a new builder-style object to manufacture CreateChannelInput
.
Trait Implementations§
source§impl Clone for CreateChannelInput
impl Clone for CreateChannelInput
source§fn clone(&self) -> CreateChannelInput
fn clone(&self) -> CreateChannelInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateChannelInput
impl Debug for CreateChannelInput
source§impl PartialEq for CreateChannelInput
impl PartialEq for CreateChannelInput
source§fn eq(&self, other: &CreateChannelInput) -> bool
fn eq(&self, other: &CreateChannelInput) -> bool
self
and other
values to be equal, and is used
by ==
.