JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3290
  • Score
    100M100P100Q122701F
  • License Apache-2.0

Official `aws-lite` plugin for DynamoDB

Package Exports

  • @aws-lite/dynamodb
  • @aws-lite/dynamodb/src/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-lite/dynamodb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@aws-lite/dynamodb

Official aws-lite plugin for DynamoDB

Maintained by: @architect

Install

npm i @aws-lite/dynamodb

Usage

This plugin covers all DynamoDB methods (listed & linked below), utilizing DynamoDB's semantics.

By default, with the exception of certain legacy properties (noted below), this plugin will automatically (de)serialize AWS-flavored JSON in requests and responses, so you do not have to treat that as a concern.

Legacy properties (which DynamoDB discourages the use of) that will not be automatically (de)serialized: DeleteItem.Expected, PutItem.Expected, Query.KeyConditions, Query.QueryFilter, Scan.ScanFilter, UpdateItem.Expected

Example

import awsLite from '@aws-lite/client'
const aws = await awsLite()

// See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html
await aws.dynamodb.PutItem({
  TableName: 'your-table-name',
  Item: { id: 'hello', ts: new Date().toISOString() }
})

DynamoDB methods

Learn more

Please see the main aws-lite readme for more information about aws-lite plugins.