#[non_exhaustive]pub struct CreateKeyspaceInput {
pub keyspace_name: Option<String>,
pub tags: Option<Vec<Tag>>,
pub replication_specification: Option<ReplicationSpecification>,
}
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.keyspace_name: Option<String>
The name of the keyspace to be created.
A list of key-value pair tags to be attached to the keyspace.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
replication_specification: Option<ReplicationSpecification>
The replication specification of the keyspace includes:
-
replicationStrategy
- the required value isSINGLE_REGION
orMULTI_REGION
. -
regionList
- if thereplicationStrategy
isMULTI_REGION
, theregionList
requires the current Region and at least one additional Amazon Web Services Region where the keyspace is going to be replicated in. The maximum number of supported replication Regions including the current Region is six.
Implementations§
source§impl CreateKeyspaceInput
impl CreateKeyspaceInput
sourcepub fn keyspace_name(&self) -> Option<&str>
pub fn keyspace_name(&self) -> Option<&str>
The name of the keyspace to be created.
A list of key-value pair tags to be attached to the keyspace.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
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()
.
sourcepub fn replication_specification(&self) -> Option<&ReplicationSpecification>
pub fn replication_specification(&self) -> Option<&ReplicationSpecification>
The replication specification of the keyspace includes:
-
replicationStrategy
- the required value isSINGLE_REGION
orMULTI_REGION
. -
regionList
- if thereplicationStrategy
isMULTI_REGION
, theregionList
requires the current Region and at least one additional Amazon Web Services Region where the keyspace is going to be replicated in. The maximum number of supported replication Regions including the current Region is six.
source§impl CreateKeyspaceInput
impl CreateKeyspaceInput
sourcepub fn builder() -> CreateKeyspaceInputBuilder
pub fn builder() -> CreateKeyspaceInputBuilder
Creates a new builder-style object to manufacture CreateKeyspaceInput
.
Trait Implementations§
source§impl Clone for CreateKeyspaceInput
impl Clone for CreateKeyspaceInput
source§fn clone(&self) -> CreateKeyspaceInput
fn clone(&self) -> CreateKeyspaceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateKeyspaceInput
impl Debug for CreateKeyspaceInput
source§impl PartialEq for CreateKeyspaceInput
impl PartialEq for CreateKeyspaceInput
impl StructuralPartialEq for CreateKeyspaceInput
Auto Trait Implementations§
impl Freeze for CreateKeyspaceInput
impl RefUnwindSafe for CreateKeyspaceInput
impl Send for CreateKeyspaceInput
impl Sync for CreateKeyspaceInput
impl Unpin for CreateKeyspaceInput
impl UnwindSafe for CreateKeyspaceInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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