Structs§
- Attribute
Definition - Attribute definition — declares an attribute’s type.
- Capacity
Detail - Per-resource capacity detail.
- Consumed
Capacity - ConsumedCapacity returned when
ReturnConsumedCapacityis set. - Conversion
Error - Error returned when converting between
AttributeValueand Rust types. - Global
Secondary Index - Global Secondary Index definition.
- Item
Collection Metrics - ItemCollectionMetrics returned when
ReturnItemCollectionMetrics: SIZEis set and the table has local secondary indexes. - KeySchema
Element - Key schema element — defines a key attribute.
- Local
Secondary Index - Local Secondary Index definition.
- Projection
- GSI projection type.
- Provisioned
Throughput - Provisioned throughput settings (stored but not enforced).
- SseSpecification
- SSE specification for server-side encryption settings.
- Tag
- DynamoDB Tag (key-value pair attached to a resource).
Enums§
- Attribute
Value - DynamoDB AttributeValue — the core type system.
- KeyType
- Key type: HASH (partition key) or RANGE (sort key).
- Projection
Type - Projection type enum.
- Scalar
Attribute Type - Scalar attribute types that can be used as keys.
Constants§
- MAX_
ITEM_ SIZE - Maximum item size in bytes (400 KB).
Functions§
- consumed_
capacity - Build a
ConsumedCapacityfor a simple table operation. - consumed_
capacity_ with_ indexes - Build a
ConsumedCapacitywith per-GSI breakdown for INDEXES mode. - consumed_
capacity_ with_ secondary_ indexes - Build a
ConsumedCapacitywith per-GSI and per-LSI breakdown for INDEXES mode. - item_
size - Calculate the total size of a DynamoDB item in bytes.
- normalize_
dynamo_ number - Normalize a DynamoDB number string to its canonical form.
- normalize_
number_ for_ sort - Normalize a DynamoDB number string into a comparable string that sorts correctly in SQLite TEXT collation.
- read_
capacity_ units - Calculate read capacity units assuming strongly consistent reads (1 RCU per 4KB, rounded up). Used when ConsistentRead is true or when the read type is not specified.
- read_
capacity_ units_ with_ consistency - Calculate read capacity units accounting for consistency mode.
- validate_
dynamo_ number - Validate a DynamoDB number string against DynamoDB’s constraints:
- write_
capacity_ units - Calculate write capacity units (1 WCU = 1KB, rounded up).
Type Aliases§
- Item
- A DynamoDB item: a map of attribute names to values.