Amazon DynamoDB - End session

<AMAWSDYNAMODB ACTIVITY="end_session" SESSION="text" />

Description: Ends a session created and started by the Create session activity.

IMPORTANT: The AWS DynamoDB activities are performed using Amazon's DynamoDB engine, therefore, launching and managing DynamoDB requires a valid Access Key ID and Secret Access Key.

Practical Usage

Used to end a running session.

Credentials Parameters

Property

Type

Required

Default

Markup

Description

Session

Text

Yes

(Empty)

SESSION="mysession"

The name of the session to end.

Description tab - A custom description can be provided on the Description tab to convey additional information or share special notes about a task step.

Error Causes tab - Specify how this step should behave upon the occurrence of an error. (Refer to Task Builder > Error Causes Tab for details.)

On Error tab - Specify what AWE should do if this step encounters an error as defined on the Error Causes tab. (Refer to Task Builder > On Error Tab for details.)

Examples

The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.

Description: Simple DynamoDB task that creates a new table and new item in the table. Step by step description is embedded in the task.

<!-- Create session -->
<AMAWSDYNAMODB ACTIVITY="create_session" 
SESSION="DBSession1" ACCESSKEY="AKIAJ25JAKOPAC7123457" 
SECRETKEY="AM3i6P77pVEBOw=aME" />
<!-- Create table -->
<AMAWSDYNAMODB ACTIVITY="create_table" 
PROVIDER="session_based" SESSION="DBSession1" 
NAME="mytable" HASH="HashKeyName" />
<!-- Create item -->
<AMAWSDYNAMODB ACTIVITY="create_item" 
PROVIDER="session_based" SESSION="DBSession1" 
TABLE="mytable"><ATTRIBUTE TYPE="String" 
NAME="gameName" VALUE="myGame" />
<ATTRIBUTE TYPE="Number" NAME="gameId" VALUE="41021234" />
<ATTRIBUTE TYPE="String" NAME="gameCost" 
VALUE="20" /></AMAWSDYNAMODB>
<!-- End session -->
<AMAWSDYNAMODB ACTIVITY="end_session" 
SESSION="DBSession1" />