dyna_open()

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

Description:

Connect to Amazon DynamoDB.

Syntax:

dyna_open(dyna_url,region)

 

dyna_open(dyna_url,region)

Access local DynamoDB

dyna_open(,region,AccessKey,SecretKey)

Access DynamoDB on the cloud

Note:

The external library function (See External Library Guide) connects to DynamoDB and returns result as a cursor.

Parameter:

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

SecretKey

Secret Key for accessing DynamoDB

Return value:

Cursor

Example:

 

A

 

1

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

Access the local DynamoDB.

2

=dyna_open(, "us-east-2","AKIAQTM4UQLTMFHKDNFG","YkoSW0STTXUUxokW2cb3rVfs1tFB1rtIkebW6eB")

Access DynamoDB on the cloud.