dynamodbquery

package module
v0.0.0-...-dceaa68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 10 Imported by: 0

README

DynamoDB Query

Query objects from Amazon DynamoDB

Installation

flogo install github.com/retgits/flogo-components/activity/dynamodbquery

Link for flogo web:

https://github.com/retgits/flogo-components/activity/dynamodbquery

Schema

Inputs and Outputs:

{
"inputs":[
      {
        "name": "awsAccessKeyID",
        "type": "string"
      },
      {
        "name": "awsSecretAccessKey",
        "type": "string"
      },
      {
        "name": "awsRegion",
        "type": "string"
      },
      {
        "name": "dynamoDBTableName",
        "type": "string"
      },
      {
        "name": "dynamoDBKeyConditionExpression",
        "type": "string"
      },
      {
        "name": "dynamoDBExpressionAttributes",
        "type": "any"
      },
      {
        "name": "dynamoDBFilterExpression",
        "type": "string"
      }
    ],
    "outputs": [
    {
      "name": "result",
      "type": "any"
    },
    {
      "name": "scannedCount",
      "type": "string"
    },
    {
      "name": "consumedCapacity",
      "type": "double"
    }
  ]
}

Inputs

Input Description
awsAccessKeyID Your AWS Access Key (only needed if you don't give your Lambda function rights to interact with Amazon DyanmoDB)
awsSecretAccessKey Your AWS Secret Key (only needed if you don't give your Lambda function rights to interact with Amazon DyanmoDB)
awsRegion The AWS region you're running DynamoDB in
dynamoDBTableName The name of your DynamoDB table
dynamoDBKeyConditionExpression The expression to search for (for example Artist = :name to search for results where the key Artist has the value of :name)
dynamoDBExpressionAttributes A JSON array representation of your expression attributes (using the example above that would be [{"Name":":name", "Value":"Leon"}] to search where the Artist is called Leon)
dynamoDBFilterExpression The filter expression you want to apply on the result set before it is sent back to activity

Ouputs

Output Description
result The JSON representation of the result of your query
scannedCount The number of items evaluated
consumedCapacity The number of capacity units used by the query

Documentation

Overview

Package dynamodbquery queries objects from Amazon DynamoDB

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new activity

Types

type ExpressionAttribute

type ExpressionAttribute struct {
	Name  string
	Value string
}

ExpressionAttribute is a structure representing the JSON payload for the expression syntax

type MyActivity

type MyActivity struct {
	// contains filtered or unexported fields
}

MyActivity is a stub for your Activity implementation

func (*MyActivity) Eval

func (a *MyActivity) Eval(context activity.Context) (done bool, err error)

Eval implements activity.Activity.Eval

func (*MyActivity) Metadata

func (a *MyActivity) Metadata() *activity.Metadata

Metadata implements activity.Activity.Metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL