#[non_exhaustive]pub struct CreateGlobalSecondaryIndexAction {
pub index_name: String,
pub key_schema: Vec<KeySchemaElement>,
pub projection: Option<Projection>,
pub provisioned_throughput: Option<ProvisionedThroughput>,
pub on_demand_throughput: Option<OnDemandThroughput>,
pub warm_throughput: Option<WarmThroughput>,
}
Expand description
Represents a new global secondary index to be added to an existing table.
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.index_name: String
The name of the global secondary index to be created.
key_schema: Vec<KeySchemaElement>
The key schema for the global secondary index.
projection: Option<Projection>
Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
provisioned_throughput: Option<ProvisionedThroughput>
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
on_demand_throughput: Option<OnDemandThroughput>
The maximum number of read and write units for the global secondary index being created. If you use this parameter, you must specify MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.
warm_throughput: Option<WarmThroughput>
Represents the warm throughput value (in read units per second and write units per second) when creating a secondary index.
Implementations§
source§impl CreateGlobalSecondaryIndexAction
impl CreateGlobalSecondaryIndexAction
sourcepub fn index_name(&self) -> &str
pub fn index_name(&self) -> &str
The name of the global secondary index to be created.
sourcepub fn key_schema(&self) -> &[KeySchemaElement]
pub fn key_schema(&self) -> &[KeySchemaElement]
The key schema for the global secondary index.
sourcepub fn projection(&self) -> Option<&Projection>
pub fn projection(&self) -> Option<&Projection>
Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
sourcepub fn provisioned_throughput(&self) -> Option<&ProvisionedThroughput>
pub fn provisioned_throughput(&self) -> Option<&ProvisionedThroughput>
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
sourcepub fn on_demand_throughput(&self) -> Option<&OnDemandThroughput>
pub fn on_demand_throughput(&self) -> Option<&OnDemandThroughput>
The maximum number of read and write units for the global secondary index being created. If you use this parameter, you must specify MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.
sourcepub fn warm_throughput(&self) -> Option<&WarmThroughput>
pub fn warm_throughput(&self) -> Option<&WarmThroughput>
Represents the warm throughput value (in read units per second and write units per second) when creating a secondary index.
source§impl CreateGlobalSecondaryIndexAction
impl CreateGlobalSecondaryIndexAction
sourcepub fn builder() -> CreateGlobalSecondaryIndexActionBuilder
pub fn builder() -> CreateGlobalSecondaryIndexActionBuilder
Creates a new builder-style object to manufacture CreateGlobalSecondaryIndexAction
.
Trait Implementations§
source§impl Clone for CreateGlobalSecondaryIndexAction
impl Clone for CreateGlobalSecondaryIndexAction
source§fn clone(&self) -> CreateGlobalSecondaryIndexAction
fn clone(&self) -> CreateGlobalSecondaryIndexAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for CreateGlobalSecondaryIndexAction
impl PartialEq for CreateGlobalSecondaryIndexAction
source§fn eq(&self, other: &CreateGlobalSecondaryIndexAction) -> bool
fn eq(&self, other: &CreateGlobalSecondaryIndexAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateGlobalSecondaryIndexAction
Auto Trait Implementations§
impl Freeze for CreateGlobalSecondaryIndexAction
impl RefUnwindSafe for CreateGlobalSecondaryIndexAction
impl Send for CreateGlobalSecondaryIndexAction
impl Sync for CreateGlobalSecondaryIndexAction
impl Unpin for CreateGlobalSecondaryIndexAction
impl UnwindSafe for CreateGlobalSecondaryIndexAction
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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