Nuclear Powered Marshmallows

    @botonic/plugin-dynamodb
    TypeScript icon, indicating that this package has built-in type declarations

    0.20.0 • Public • Published

    Botonic Plugin Amazon DynamoDB

    What Does This Plugin Do?

    This plugin writes tracks about the user's behavior to a DynamoDB table.

    Setup

    1. Install the plugin from npm (or yarn):
    npm i  @botonic/plugin-dynamodb
    
    1. Add it to the src/plugins.js file:
    import * as dynamodb from '@botonic/plugin-dynamodb'
      {
        id: 'dynamodb',
        resolve: dynamodb,
        options: {
          //env: isProd() ? 'pro': 'dev',
          env: 'pro', // or 'dev'
          accessKeyId: 'your AWS access key id',
          secretAccessKey: 'your AWS secret access key', <!-- pragma: allowlist secret-->
          region: 'your AWS region',
          timeout: 2500, // timeout in millisecons
        }, //You can add in 'options' field any DynamoDB.ClientConfiguration from the AWS library
      },
    

    Use

    const dynamodb = plugins.dynamodb
    dynamodb.track((botId, user, 'login', {country: 'ES'})
    

    Install

    npm i @botonic/plugin-dynamodb

    DownloadsWeekly Downloads

    110

    Version

    0.20.0

    License

    MIT

    Unpacked Size

    31.8 kB

    Total Files

    32

    Last publish

    Collaborators

    • ahubstre
    • manuelfidalgo
    • ericmarcos
    • khaeshah
    • mrabat
    • elozano
    • ainavendrell