ddbsh exposes a readline based interface. The UP-ARROW and DOWN-ARROW keys allow you to view previous commands, and pick a previous command to reexecute. (On how a batch of statements is assembled and submitted, see isql-mode input.)
Commands are terminated with the ';' character.
Purpose: Connect to a different region or endpoint
Syntax: CONNECT region [WITH ENDPOINT endpoint] ;
$ ./ddbsh
ddbsh - version 0.2
us-east-1> connect us-west-1;
CONNECT
us-west-1>
The prompt shows the region name, and the additional (*) if you are connected to a non-standard endpoint.
Browser edition: WITH ENDPOINT accepts only AWS DynamoDB endpoints —
https://dynamodb[-fips].<region>.amazonaws.com or
https://dynamodb[-fips].<region>.api.aws, with the same region as the
CONNECT names. Any other endpoint prints CONNECT followed by
browser: CONNECT rejected: <reason>, and later statements fail until a valid
CONNECT. See configuration 3.
Purpose: The SHOW VERSION command displays the version of DynamoDB Shell.
us-east-1> show version;
ddbsh - version 0.5.1
us-east-1>Note: The SHOW VERSION command was added in DynamoDB Shell version 0.5.1.
Purpose: The SHOW CONNECTION command reports the running ddbsh version and the
current backend binding — the region, the endpoint (or (default) when no
endpoint override is set), and which transport the engine is talking through.
Syntax: SHOW CONNECTION ;
us-east-1> show connection;
ddbsh - version 0.12.1
Region: us-east-1
Endpoint: (default)
Backend: aws-sdk-cpp (direct DynamoDB)
us-east-1>The Backend line names the active transport. The native binary reports
aws-sdk-cpp (direct DynamoDB). The browser edition reports
wire/aws-sdk-js <sdk-version> -> <target>; credentials <ASIA…last4> expires <time>
(or credentials none), where <target> is the endpoint override, the default
regional endpoint followed by (default), or blocked: <reason> after a refused
CONNECT; it never shows the secret or the session token. The Endpoint line shows the overridden endpoint when
one is set (the same condition that adds the (*) suffix to the prompt).
Note: The SHOW CONNECTION command was added in DynamoDB Shell version 0.11.10.
Purpose: You have had a good day, and you want to do something else.
Syntax: QUIT