Skip to main content

Module types

Module types 

Source

Structs§

AttributeDefinition
Attribute definition — declares an attribute’s type.
CapacityDetail
Per-resource capacity detail.
ConsumedCapacity
ConsumedCapacity returned when ReturnConsumedCapacity is set.
ConversionError
Error returned when converting between AttributeValue and Rust types.
GlobalSecondaryIndex
Global Secondary Index definition.
ItemCollectionMetrics
ItemCollectionMetrics returned when ReturnItemCollectionMetrics: SIZE is set and the table has local secondary indexes.
KeySchemaElement
Key schema element — defines a key attribute.
LocalSecondaryIndex
Local Secondary Index definition.
OnDemandThroughput
On-demand (PAY_PER_REQUEST) throughput ceilings (stored but not enforced).
Projection
GSI projection type.
ProvisionedThroughput
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§

AttributeValue
DynamoDB AttributeValue — the core type system.
KeyType
Key type: HASH (partition key) or RANGE (sort key).
ProjectionType
Projection type enum.
ScalarAttributeType
Scalar attribute types that can be used as keys.

Constants§

MAX_ITEM_SIZE
Maximum item size in bytes (400 KB).
TRANSACTIONAL_CAPACITY_FACTOR
The transactional capacity multiplier. TransactWriteItems and TransactGetItems cost twice the equivalent single-item operation, so each item’s rounded-up units are doubled (the rounding happens per item, before the multiplier, to match AWS at the KB/4KB boundary).

Functions§

consumed_capacity
Build a ConsumedCapacity for a simple table operation.
consumed_capacity_with_indexes
Build a ConsumedCapacity with per-GSI breakdown for INDEXES mode.
consumed_capacity_with_secondary_indexes
Build a ConsumedCapacity with 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.
transactional_read_capacity
Build a ConsumedCapacity for one table in a transactional read (TransactGetItems). units is the table total and already includes the transactional 2x factor. Under INDEXES the Table detail reports ReadCapacityUnits alongside CapacityUnits, matching AWS.
transactional_write_capacity
Build a ConsumedCapacity for one table in a transactional write (TransactWriteItems). units is the table total and already includes the transactional 2x factor. Under INDEXES the Table detail reports WriteCapacityUnits alongside CapacityUnits, matching AWS.
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.