dyna_open()

Read(173) Label: connect, dynamodb, cursor,

Description:

Connect to Amazon DynamoDB.

Syntax:

dyna_open(dyna_url,region,AccessKey,SecretKey)

 

Note:

The external library function connects to DynamoDB and returns result as a cursor.

Parameters:

dyna_url

URL for accessing DynamoDB; the format is http(s)://host[:port][/[database]]

region

The AWS service region for use

AccessKey

Access Key for accessing DynamoDB; can be omitted

SecretKey

Secret Key for accessing DynamoDB; can be omitted

Return value:

A cursor

Example:

 

A

 

1

=dyna_open("http://localhost:8000", "us-east-2","AKIAQTM4UQLTMFHKDNFG","YkoSW0STTXUUxokW2cb3rVfs1tFB1rtIkebW6eB/")

Access cloud database

2

=dyna_open("http://localhost:8000", "us-east-2")

Access a local database