[−][src]Crate rusoto_dynamodb
Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. DynamoDB lets you offload the administrative burdens of operating and scaling a distributed database, so that you don't have to worry about hardware provisioning, setup and configuration, replication, software patching, or cluster scaling.
With DynamoDB, you can create database tables that can store and retrieve any amount of data, and serve any level of request traffic. You can scale up or scale down your tables' throughput capacity without downtime or performance degradation, and use the AWS Management Console to monitor resource utilization and performance metrics.
DynamoDB automatically spreads the data and traffic for your tables over a sufficient number of servers to handle your throughput and storage requirements, while maintaining consistent and fast performance. All of your data is stored on solid state disks (SSDs) and automatically replicated across multiple Availability Zones in an AWS region, providing built-in high availability and data durability.
If you're using the service, you're probably looking for DynamoDbClient and DynamoDb.
Examples
List Tables
The following code shows a simple example of using Rusoto's DynamoDB API to list the names of all tables in a database.
extern crate rusoto_core; extern crate rusoto_dynamodb; use rusoto_core::Region; use rusoto_dynamodb::{DynamoDb, DynamoDbClient, ListTablesInput}; fn main() { let client = DynamoDbClient::new(Region::UsEast1); let list_tables_input: ListTablesInput = Default::default(); match client.list_tables(list_tables_input).sync() { Ok(output) => { match output.table_names { Some(table_name_list) => { println!("Tables in database:"); for table_name in table_name_list { println!("{}", table_name); } }, None => println!("No tables in database!"), } }, Err(error) => { println!("Error: {:?}", error); }, } }
Structs
AttributeDefinition | Represents an attribute for describing the key schema for the table and indexes. |
AttributeValue | Represents the data for an attribute. Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself. For more information, see Data Types in the Amazon DynamoDB Developer Guide. |
AttributeValueUpdate | For the You cannot use Attribute values cannot be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests with empty values will be rejected with a |
AutoScalingPolicyDescription | Represents the properties of the scaling policy. |
AutoScalingPolicyUpdate | Represents the autoscaling policy to be modified. |
AutoScalingSettingsDescription | Represents the autoscaling settings for a global table or global secondary index. |
AutoScalingSettingsUpdate | Represents the autoscaling settings to be modified for a global table or global secondary index. |
AutoScalingTargetTrackingScalingPolicyConfigurationDescription | Represents the properties of a target tracking scaling policy. |
AutoScalingTargetTrackingScalingPolicyConfigurationUpdate | Represents the settings of a target tracking scaling policy that will be modified. |
BackupDescription | Contains the description of the backup created for the table. |
BackupDetails | Contains the details of the backup created for the table. |
BackupSummary | Contains details for the backup. |
BatchGetItemInput | Represents the input of a |
BatchGetItemOutput | Represents the output of a |
BatchWriteItemInput | Represents the input of a |
BatchWriteItemOutput | Represents the output of a |
BillingModeSummary | Contains the details for the read/write capacity mode. |
CancellationReason | An ordered list of errors for each item in the request which caused the transaction to get cancelled. The values of the list are ordered according to the ordering of the |
Capacity | Represents the amount of provisioned throughput capacity consumed on a table or an index. |
Condition | Represents the selection criteria for a
|
ConditionCheck | Represents a request to perform a check that an item exists or to check the condition of specific attributes of the item.. |
ConsumedCapacity | The capacity units consumed by an operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. |
ContinuousBackupsDescription | Represents the continuous backups and point in time recovery settings on the table. |
CreateBackupInput | |
CreateBackupOutput | |
CreateGlobalSecondaryIndexAction | Represents a new global secondary index to be added to an existing table. |
CreateGlobalTableInput | |
CreateGlobalTableOutput | |
CreateReplicaAction | Represents a replica to be added. |
CreateTableInput | Represents the input of a |
CreateTableOutput | Represents the output of a |
Delete | Represents a request to perform a |
DeleteBackupInput | |
DeleteBackupOutput | |
DeleteGlobalSecondaryIndexAction | Represents a global secondary index to be deleted from an existing table. |
DeleteItemInput | Represents the input of a |
DeleteItemOutput | Represents the output of a |
DeleteReplicaAction | Represents a replica to be removed. |
DeleteRequest | Represents a request to perform a |
DeleteTableInput | Represents the input of a |
DeleteTableOutput | Represents the output of a |
DescribeBackupInput | |
DescribeBackupOutput | |
DescribeContinuousBackupsInput | |
DescribeContinuousBackupsOutput | |
DescribeEndpointsRequest | |
DescribeEndpointsResponse | |
DescribeGlobalTableInput | |
DescribeGlobalTableOutput | |
DescribeGlobalTableSettingsInput | |
DescribeGlobalTableSettingsOutput | |
DescribeLimitsInput | Represents the input of a |
DescribeLimitsOutput | Represents the output of a |
DescribeTableInput | Represents the input of a |
DescribeTableOutput | Represents the output of a |
DescribeTimeToLiveInput | |
DescribeTimeToLiveOutput | |
DynamoDbClient | A client for the DynamoDB API. |
Endpoint | An endpoint information details. |
ExpectedAttributeValue | Represents a condition to be compared with an attribute value. This condition can be used with
|
Get | Specifies an item and related attribute values to retrieve in a |
GetItemInput | Represents the input of a |
GetItemOutput | Represents the output of a |
GlobalSecondaryIndex | Represents the properties of a global secondary index. |
GlobalSecondaryIndexDescription | Represents the properties of a global secondary index. |
GlobalSecondaryIndexInfo | Represents the properties of a global secondary index for the table when the backup was created. |
GlobalSecondaryIndexUpdate | Represents one of the following:
|
GlobalTable | Represents the properties of a global table. |
GlobalTableDescription | Contains details about the global table. |
GlobalTableGlobalSecondaryIndexSettingsUpdate | Represents the settings of a global secondary index for a global table that will be modified. |
ItemCollectionMetrics | Information about item collections, if any, that were affected by the operation. |
ItemResponse | Details for the requested item. |
KeySchemaElement | Represents a single element of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index. A A |
KeysAndAttributes | Represents a set of primary keys and, for each key, the attributes to retrieve from the table. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key. For a composite primary key, you must provide both the partition key and the sort key. |
ListBackupsInput | |
ListBackupsOutput | |
ListGlobalTablesInput | |
ListGlobalTablesOutput | |
ListTablesInput | Represents the input of a |
ListTablesOutput | Represents the output of a |
ListTagsOfResourceInput | |
ListTagsOfResourceOutput | |
LocalSecondaryIndex | Represents the properties of a local secondary index. |
LocalSecondaryIndexDescription | Represents the properties of a local secondary index. |
LocalSecondaryIndexInfo | Represents the properties of a local secondary index for the table when the backup was created. |
PointInTimeRecoveryDescription | The description of the point in time settings applied to the table. |
PointInTimeRecoverySpecification | Represents the settings used to enable point in time recovery. |
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. |
ProvisionedThroughput | Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide. |
ProvisionedThroughputDescription | Represents the provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases. |
Put | Represents a request to perform a |
PutItemInput | Represents the input of a |
PutItemOutput | Represents the output of a |
PutRequest | Represents a request to perform a |
QueryInput | Represents the input of a |
QueryOutput | Represents the output of a |
Replica | Represents the properties of a replica. |
ReplicaDescription | Contains the details of the replica. |
ReplicaGlobalSecondaryIndexSettingsDescription | Represents the properties of a global secondary index. |
ReplicaGlobalSecondaryIndexSettingsUpdate | Represents the settings of a global secondary index for a global table that will be modified. |
ReplicaSettingsDescription | Represents the properties of a replica. |
ReplicaSettingsUpdate | Represents the settings for a global table in a region that will be modified. |
ReplicaUpdate | Represents one of the following:
|
RestoreSummary | Contains details for the restore. |
RestoreTableFromBackupInput | |
RestoreTableFromBackupOutput | |
RestoreTableToPointInTimeInput | |
RestoreTableToPointInTimeOutput | |
SSEDescription | The description of the server-side encryption status on the specified table. |
SSESpecification | Represents the settings used to enable server-side encryption. |
ScanInput | Represents the input of a |
ScanOutput | Represents the output of a |
SourceTableDetails | Contains the details of the table when the backup was created. |
SourceTableFeatureDetails | Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL. |
StreamSpecification | Represents the DynamoDB Streams configuration for a table in DynamoDB. |
TableDescription | Represents the properties of a table. |
Tag | Describes a tag. A tag is a key-value pair. You can add up to 50 tags to a single DynamoDB table. AWS-assigned tag names and values are automatically assigned the aws: prefix, which the user cannot assign. AWS-assigned tag names do not count towards the tag limit of 50. User-assigned tag names have the prefix user: in the Cost Allocation Report. You cannot backdate the application of a tag. For an overview on tagging DynamoDB resources, see Tagging for DynamoDB in the Amazon DynamoDB Developer Guide. |
TagResourceInput | |
TimeToLiveDescription | The description of the Time to Live (TTL) status on the specified table. |
TimeToLiveSpecification | Represents the settings used to enable or disable Time to Live for the specified table. |
TransactGetItem | Specifies an item to be retrieved as part of the transaction. |
TransactGetItemsInput | |
TransactGetItemsOutput | |
TransactWriteItem | A list of requests that can perform update, put, delete, or check operations on multiple items in one or more tables atomically. |
TransactWriteItemsInput | |
TransactWriteItemsOutput | |
UntagResourceInput | |
Update | Represents a request to perform an |
UpdateContinuousBackupsInput | |
UpdateContinuousBackupsOutput | |
UpdateGlobalSecondaryIndexAction | Represents the new provisioned throughput settings to be applied to a global secondary index. |
UpdateGlobalTableInput | |
UpdateGlobalTableOutput | |
UpdateGlobalTableSettingsInput | |
UpdateGlobalTableSettingsOutput | |
UpdateItemInput | Represents the input of an |
UpdateItemOutput | Represents the output of an |
UpdateTableInput | Represents the input of an |
UpdateTableOutput | Represents the output of an |
UpdateTimeToLiveInput | Represents the input of an |
UpdateTimeToLiveOutput | |
WriteRequest | Represents an operation to perform - either |
Enums
BatchGetItemError | Errors returned by BatchGetItem |
BatchWriteItemError | Errors returned by BatchWriteItem |
CreateBackupError | Errors returned by CreateBackup |
CreateGlobalTableError | Errors returned by CreateGlobalTable |
CreateTableError | Errors returned by CreateTable |
DeleteBackupError | Errors returned by DeleteBackup |
DeleteItemError | Errors returned by DeleteItem |
DeleteTableError | Errors returned by DeleteTable |
DescribeBackupError | Errors returned by DescribeBackup |
DescribeContinuousBackupsError | Errors returned by DescribeContinuousBackups |
DescribeEndpointsError | Errors returned by DescribeEndpoints |
DescribeGlobalTableError | Errors returned by DescribeGlobalTable |
DescribeGlobalTableSettingsError | Errors returned by DescribeGlobalTableSettings |
DescribeLimitsError | Errors returned by DescribeLimits |
DescribeTableError | Errors returned by DescribeTable |
DescribeTimeToLiveError | Errors returned by DescribeTimeToLive |
GetItemError | Errors returned by GetItem |
ListBackupsError | Errors returned by ListBackups |
ListGlobalTablesError | Errors returned by ListGlobalTables |
ListTablesError | Errors returned by ListTables |
ListTagsOfResourceError | Errors returned by ListTagsOfResource |
PutItemError | Errors returned by PutItem |
QueryError | Errors returned by Query |
RestoreTableFromBackupError | Errors returned by RestoreTableFromBackup |
RestoreTableToPointInTimeError | Errors returned by RestoreTableToPointInTime |
ScanError | Errors returned by Scan |
TagResourceError | Errors returned by TagResource |
TransactGetItemsError | Errors returned by TransactGetItems |
TransactWriteItemsError | Errors returned by TransactWriteItems |
UntagResourceError | Errors returned by UntagResource |
UpdateContinuousBackupsError | Errors returned by UpdateContinuousBackups |
UpdateGlobalTableError | Errors returned by UpdateGlobalTable |
UpdateGlobalTableSettingsError | Errors returned by UpdateGlobalTableSettings |
UpdateItemError | Errors returned by UpdateItem |
UpdateTableError | Errors returned by UpdateTable |
UpdateTimeToLiveError | Errors returned by UpdateTimeToLive |
Traits
DynamoDb | Trait representing the capabilities of the DynamoDB API. DynamoDB clients implement this trait. |