SimpleDB - Create Session

Declaration

<AMAWSSIMPLEDB ACTIVITY="create_session" ACCESSKEY="text" SECRETKEY="text" />

See Also

SimpleDB - Main, SimpleDB - Create Domain, SimpleDB - Delete Attribute(s), SimpleDB - Delete Domain, SimpleDB - End Session, SimpleDB - Get Attribute(s), SimpleDB - Get Domain Metadata, SimpleDB - List Domains, SimpleDB - Put Attribute(s), SimpleDB - Query

Description

Creates a unique session which can be used to associate subsequent Amazon SimpleDB steps. This provides a single task the ability to execute multiple SimpleDB operations, each set of operations  associated to a specific session.

NOTE: To end a session, use the End Session activity.

 

IMPORTANT: The SimpleDB activities in AutoMate use Amazon's SimpleDB engine to perform their work. Therefore, yYou must have a valid Amazon SimpleDB service account to use these activities.

Practical Usage

Ideally used to create a session to correlate subsequent Amazon SimpleDB activities to. Creating a session eliminates having to re-enter specific requirements for each activity. A single task can include multiple sessions.

Parameters

Credentials Properties

Property

Type

Required

Default

Markup

Description

Access Key

Text

Yes

(Empty)

ACCESSKEY="MyAccessKey"

A 20-character, alphanumeric string that uniquely identifies a user who owns a SimpleDB account (i.e. 022QF06E7MXBSH9DHM02). This along with a Secret Access Key forms a secure information set that SimpleDB uses to confirm a valid user's identity.

Secret Access Key

Text

Yes

(Empty)

SECRETKEY="SecretKey"

A 40-character string that serves the role as Password to access SimpleDB (i.e. kWcrlUX5JEDGM/LtmEENI/aVmYvHNif5zB+d9+ct). This along with an associated Access Key forms a secure information set that SimpleDB uses to confirm a valid user's identity.

User Agent

Text

No

AutoMate

USERAGENT="AutoMate"

The User-Agent header name. The User-Agent request-header field contains information about the user agent originating the request such as timeouts, proxies, name, etc. The default User Agent name is AutoMate.

Service URL

Text

No

(Empty)

SERVICEURL=

"https://sdb.eu-west-1.amazonaws.com"

The Service URL used to make requests to the SimpleDB service. The Service URL provides the service endpoint. For example, To make the service call to a different region, you can pass the region-specific endpoint, such as 'https://sdb.eu-west-1.amazonaws.com'.

Maximum retry on error

Number

No

(Empty)

MAXERRORRETRY="4"

Signifies how many times the Amazon SimpleDB engine should retry the request before returning an error.

Proxy Host

Text

No

(Empty)

PROXYHOST="proxy.host.com"

The host name (server.domain.com) or IP address (xxx.xxx.xxx.xxx) of the proxy server.

Proxy Port

Number

No

(Empty)

PROXYPORT="1028"

The port that should be used to connect to the proxy server.

Signature Method

Text

No

(Empty)

SIGNMETHOD="HmacSHA256"

The Signature Method for signing the request.

Signature Version

Number

No

(Empty)

SIGNVERSION="2"

The Signature Version for signing the request. The version refers to the particular algorithm for signing the request.

Session Name

Text

Yes

SimpleDBSession

SESSION="SimpleDBSession1"

The name of the session to create. This allows several SimpleDB activities to be linked to this specific session, eliminating redundancy. Numerous sessions can be used within a single task. The default value is SimpleDBSession.

NOTE: Use the End Session activity to end a SimpleDB session.

 

Description Properties

The Description tab allows you to customize the text description of any step as it appears in the Task Builder's Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab properties allows you to instruct a task step to react only to specific errors or ignore certain errors that should cause it to fail.

More on Error Causes properties

On Error Properties

The On Error tab properties lets you determine what the task should do if a particular step encounters an error as defined in the Error Causes properties.

More about On Error properties

Notes

Expressions, Variables and Functions

All text fields allow the use of expressions such as variables, functions or AutoMate extended functions, which can be entered by surrounding the expression in percentage signs (example: %FileDateTime(myVar)% or %myVar%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by clicking the Insert Expression (%) button or by pressing F2.

More on expressions

More on variables

More on function

More on extended functions
More on the expression builder

Example

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

 

 

<AMAWSSIMPLEDB ACTIVITY="create_session" ACCESSKEY="AKIAJU2LHMMG6BA6BZTA" SECRETKEY="AM16I/ZtyZm558AL2TgY91IsZnSDzx65wmtOwlMZLej+8pN1hV0oiGZSEt+I7tngk5orkPqaJSCcLwvSPKP/3oLxyMBvuAhu25tgGI/cJAyVBWXvqzpvsHQxQ==aME" />

 

↑ Top of Page