Learn R Programming

paws.database (version 0.1.5)

dynamodb: Amazon DynamoDB

Description

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.

Usage

dynamodb(config = list())

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

Service syntax

svc <- dynamodb(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string"
    ),
    endpoint = "string",
    region = "string"
  )
)

Operations

batch_get_item The BatchGetItem operation returns the attributes of one or more items from one or more tables
batch_write_item The BatchWriteItem operation puts or deletes multiple items in one or more tables
create_backup Creates a backup for an existing table
create_global_table Creates a global table from an existing table
create_table The CreateTable operation adds a new table to your account
delete_backup Deletes an existing backup of a table
delete_item Deletes a single item in a table by primary key
delete_table The DeleteTable operation deletes a table and all of its items
describe_backup Describes an existing backup of a table
describe_continuous_backups Checks the status of continuous backups and point in time recovery on the specified table
describe_endpoints Returns the regional endpoint information
describe_global_table Returns information about the specified global table
describe_global_table_settings Describes Region-specific settings for a global table
describe_limits Returns the current provisioned-capacity limits for your AWS account in a Region, both for the Region as a whole and for any one DynamoDB table that you create there
describe_table Returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table
describe_time_to_live Gives a description of the Time to Live (TTL) status on the specified table
get_item The GetItem operation returns a set of attributes for the item with the given primary key
list_backups List backups associated with an AWS account
list_global_tables Lists all global tables that have a replica in the specified Region
list_tables Returns an array of table names associated with the current account and endpoint
list_tags_of_resource List all tags on an Amazon DynamoDB resource
put_item Creates a new item, or replaces an old item with a new item
query The Query operation finds items based on primary key values
restore_table_from_backup Creates a new table from an existing backup
restore_table_to_point_in_time Restores the specified table to the specified point in time within EarliestRestorableDateTime and LatestRestorableDateTime
scan The Scan operation returns one or more items and item attributes by accessing every item in a table or a secondary index
tag_resource Associate a set of tags with an Amazon DynamoDB resource
transact_get_items TransactGetItems is a synchronous operation that atomically retrieves multiple items from one or more tables (but not from indexes) in a single account and Region
transact_write_items TransactWriteItems is a synchronous write operation that groups up to 25 action requests
untag_resource Removes the association of tags from an Amazon DynamoDB resource
update_continuous_backups UpdateContinuousBackups enables or disables point in time recovery for the specified table
update_global_table Adds or removes replicas in the specified global table
update_global_table_settings Updates settings for a global table
update_item Edits an existing item's attributes, or adds a new item to the table if it does not already exist
update_table Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table

Examples

Run this code
# NOT RUN {
# This example reads multiple items from the Music table using a batch of
# three GetItem requests.  Only the AlbumTitle attribute is returned.
# }
# NOT RUN {
svc <- dynamodb()
svc$batch_get_item(
  RequestItems = list(
    Music = list(
      Keys = list(
        list(
          Artist = list(
            S = "No One You Know"
          ),
          SongTitle = list(
            S = "Call Me Today"
          )
        ),
        list(
          Artist = list(
            S = "Acme Band"
          ),
          SongTitle = list(
            S = "Happy Day"
          )
        ),
        list(
          Artist = list(
            S = "No One You Know"
          ),
          SongTitle = list(
            S = "Scared of My Shadow"
          )
        )
      ),
      ProjectionExpression = "AlbumTitle"
    )
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab