dynamodbinsert

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: 7 Imported by: 0

README

DynamoDB Insert

Insert an object into Amazon DynamoDB

Installation

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

Link for flogo web:

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

Schema

Inputs and Outputs:

"inputs":[
      {
        "name": "awsAccessKeyID",
        "type": "string"
      },
      {
        "name": "awsSecretAccessKey",
        "type": "string"
      },
      {
        "name": "awsRegion",
        "type": "string"
      },
      {
        "name": "DynamoDBTableName",
        "type": "string"
      },
      {
        "name": "DynamoDBRecord",
        "type": "any"
      }
    ],
    "outputs": [
      {
        "name": "result",
        "type": "any"
      }
    ]

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)
AWSDefaultRegion The AWS region you're running DynamoDB in
DynamoDBTableName The name of your DynamoDB table
DynamoDBRecord A JSON array representation of your record attributes you want to add. They are name/value pairs so adding an Artist with name Leon would be [{"Name":"Artist", "Value":"Leon"}].

Ouputs

Output Description
result A string denoting if the record was successfully added

Documentation

Overview

Package dynamodbinsert inserts an object into 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 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

type RecordAttribute

type RecordAttribute struct {
	Name  string
	Value string
}

RecordAttribute is a structure representing the JSON payload for the record syntax

Jump to

Keyboard shortcuts

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