DynamoDB

IMPORTANT: This is an advanced module. Some setup is required before use.

Function

This module uses the supported third-party service Amazon DynamoDB. The module allows you to integrate a DynamoDB database into your application to store and retrieve data during a call.

You can select and use any DynamoDB integration that has been added to your Fuse account.

NOTE: Integrations are shared with all users in a Fuse account. You can always check existing integrations by going to the My Account page and viewing the Integrations tab.

Prerequisites

To use this module, you must have an account with AWS (Amazon Web Services). You must also have a working Amazon DynamoDB table added as an integration to your Fuse account.

Complete the following in order:

In AWS:

  1. Get an AWS account. (Website)

  2. Set up a working database with Amazon DynamoDB. (AWS documentation)

  3. Set up an IAM user with access keys and an IAM policy for DynamoDB. (Guide)

In Fuse:

Input Fields

The DynamoDB module displays different fields depending on the database function selected. All fields are required. Supported functions are as follows:

  • Select (default): Returns records from the row(s) matching your query.

  • Insert: Creates a new row containing your specified columns and values.

  • Update: Updates one or more existing records in the row(s) matching your query.

Select one of these functions in the module's top left dropdown menu. The following sections describe each function's specific module fields.

Select

This function returns records for one or more rows in your selected DynamoDB integration's table.

As shown in Figure 2a, the following fields are displayed for the Select function:

  1. Database function: Select a different function. Other options are Insert or Update.

  2. ROW IN: Select a DynamoDB integration.

  3. WHERE: Select one of the following to determine query behavior:

    • ALL: Returns rows that match all of your conditions.

    • ANY: Returns rows that match one of your conditions.

  4. Column (condition): Select a column to be compared against the Value field.

  5. Operator (condition): Select a comparison operator. Available operators are as follows: = Equals > Greater than < Less than Greater than or equal to Less than or equal to

  6. Value (condition): Enter a value as a string, integer, variable, or boolean.

Insert

This function adds a new row to your DynamoDB table. This new row will contain any records that you specify. Column values can be inserted into new columns and/or existing ones.

As shown in Figure 2b, the following fields are displayed for the Insert function:

  1. Database function: Select a different function. Other options are Select or Update.

  2. ROW INTO: Select a DynamoDB integration.

  3. Column: Existing columns in the database will be displayed here automatically.

    • If inserting a new column, enter the desired column name as a string.

    • For existing columns, this field cannot be edited.

  4. Value: Enter a value as a string, integer, variable, or boolean.

Update

This function changes existing records in one or more rows of your DynamoDB table.

As shown in Figure 2c, the following fields are displayed for the Update function:

  1. Database function: Select a different function. Other options are Select or Insert.

  2. ROW IN: Select a DynamoDB integration. Its table row(s) will be evaluated based on the conditions selected in the remaining fields.

  3. Column: Enter an updated column name as a string, or select an existing column name.

  4. Value: Enter an updated value for the column. Strings, integers, and variables are accepted.

  5. WHERE Column (condition): Enter or select the existing column to be updated.

  6. WHERE Operator (condition): Select an operator. Available operators are as follows: = Equals > Greater than < Less than Greater than or equal to Less than or equal to

  7. WHERE Value (condition): Enter a value to be used to evaluate which entries to update.

Shadow Variables (DynamoDB only)

Format: module_name[index_number].[column_name]

Example: CallerQuery[0].product_id

See Shadow Variables for more information on this variable type in general.

Module Settings

Enable this setting to play audio while an end-user is on hold. To upload a file for hold music, go to Application Settings > Connection Settings > Webservices > Webservice fetch audio.

This allows users to set the maximum time, in seconds, that elapse before returning a timeout error. This applies to modules that fetch outside scripts, like the SOAP, REST, or subdialog modules. The default value for Timeout Length is 30 seconds. Acceptable number values range from 1 to 120.

This setting controls the logging function of a module. Enabling the 'Private' setting instructs the module to not record, report, or retain the information input to that module for reporting or any other purposes. When enabled any information entered into a module during a call will be lost immediately when the call terminates. The 'Private' setting is critical for businesses that need to maintain PCI-DSS or HIPAA compliance. The module icon, in the upper left-hand corner, becomes grayed-out when this setting is enabled. See more details here.

Last updated