Struct aws_sdk_keyspaces::types::CapacitySpecification
source · #[non_exhaustive]pub struct CapacitySpecification {
pub throughput_mode: ThroughputMode,
pub read_capacity_units: Option<i64>,
pub write_capacity_units: Option<i64>,
}
Expand description
Amazon Keyspaces has two read/write capacity modes for processing reads and writes on your tables:
-
On-demand (default)
-
Provisioned
The read/write capacity mode that you choose controls how you are charged for read and write throughput and how table throughput capacity is managed.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
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.throughput_mode: ThroughputMode
The read/write throughput capacity mode for a table. The options are:
-
throughputMode:PAY_PER_REQUEST
and -
throughputMode:PROVISIONED
- Provisioned capacity mode requiresreadCapacityUnits
andwriteCapacityUnits
as input.
The default is throughput_mode:PAY_PER_REQUEST
.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
read_capacity_units: Option<i64>
The throughput capacity specified for read
operations defined in read capacity units
(RCUs)
.
write_capacity_units: Option<i64>
The throughput capacity specified for write
operations defined in write capacity units
(WCUs)
.
Implementations§
source§impl CapacitySpecification
impl CapacitySpecification
sourcepub fn throughput_mode(&self) -> &ThroughputMode
pub fn throughput_mode(&self) -> &ThroughputMode
The read/write throughput capacity mode for a table. The options are:
-
throughputMode:PAY_PER_REQUEST
and -
throughputMode:PROVISIONED
- Provisioned capacity mode requiresreadCapacityUnits
andwriteCapacityUnits
as input.
The default is throughput_mode:PAY_PER_REQUEST
.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
sourcepub fn read_capacity_units(&self) -> Option<i64>
pub fn read_capacity_units(&self) -> Option<i64>
The throughput capacity specified for read
operations defined in read capacity units
(RCUs)
.
sourcepub fn write_capacity_units(&self) -> Option<i64>
pub fn write_capacity_units(&self) -> Option<i64>
The throughput capacity specified for write
operations defined in write capacity units
(WCUs)
.
source§impl CapacitySpecification
impl CapacitySpecification
sourcepub fn builder() -> CapacitySpecificationBuilder
pub fn builder() -> CapacitySpecificationBuilder
Creates a new builder-style object to manufacture CapacitySpecification
.
Trait Implementations§
source§impl Clone for CapacitySpecification
impl Clone for CapacitySpecification
source§fn clone(&self) -> CapacitySpecification
fn clone(&self) -> CapacitySpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CapacitySpecification
impl Debug for CapacitySpecification
source§impl PartialEq for CapacitySpecification
impl PartialEq for CapacitySpecification
impl StructuralPartialEq for CapacitySpecification
Auto Trait Implementations§
impl Freeze for CapacitySpecification
impl RefUnwindSafe for CapacitySpecification
impl Send for CapacitySpecification
impl Sync for CapacitySpecification
impl Unpin for CapacitySpecification
impl UnwindSafe for CapacitySpecification
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