Skip to main content

API Reference

Resources

DynamodbTable

A cloud Dynamodb table.

Initializers

bring ex;

new ex.DynamodbTable(props: DynamodbTableProps);
NameTypeDescription
propsDynamodbTablePropsNo description.

propsRequired

Methods

Inflight Methods
NameDescription
deleteItemDelete an item from the table.
getItemGet an item from the table.
putItemPut an item into the table.
queryReturn all items with a given partition key value.
scanReturn one or more items and item attributes by accessing every item in a table or a secondary index.
transactWriteItemsPerform a synchronous write operation that groups up to 100 action requests.
updateItemGet an item from the table.

deleteItem
inflight deleteItem(key: Json): void

Delete an item from the table.

keyRequired

key of the item.


getItem
inflight getItem(key: Json): Json

Get an item from the table.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html

keyRequired

key of the item.


putItem
inflight putItem(item: Json, props?: DynamodbTablePutItemProps): void

Put an item into the table.

itemRequired

data to be inserted.


propsOptional

dynamodb PutItem props.


query
inflight query(props: DynamodbTableQueryProps): DynamodbTableQueryResult

Return all items with a given partition key value.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html

propsRequired

properties for the query operation.


scan
inflight scan(props?: DynamodbTableScanProps): DynamodbTableScanResult

Return one or more items and item attributes by accessing every item in a table or a secondary index.

propsOptional

properties for the scan operation.


transactWriteItems
inflight transactWriteItems(props: DynamodbTransactWriteItemsProps): void

Perform a synchronous write operation that groups up to 100 action requests.

propsRequired

properties for the transact write items operation.


updateItem
inflight updateItem(key: Json, props?: DynamodbTableUpdateItemProps): Json

Get an item from the table.

keyRequired

key of the item.


propsOptional

dynamodb UpdateItem props.


Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
namestrTable name.

nodeRequired
node: Node;
  • Type: constructs.Node

The tree node.


nameRequired
name: str;
  • Type: str

Table name.


Redis

A cloud redis db.

Initializers

bring ex;

new ex.Redis();
NameTypeDescription

Methods

Inflight Methods
NameDescription
delRemoves the specified key.
getGet value at given key.
hgetReturns the value associated with field in the hash stored at key.
hsetSets the specified field to respective value in the hash stored at key.
rawClientGet raw redis client (currently IoRedis).
saddAdd the specified members to the set stored at key.
setSet key value pair.
smembersReturns all the members of the set value stored at key.
urlGet url of redis server.

del
inflight del(key: str): num

Removes the specified key.

keyRequired
  • Type: str

the key.


get
inflight get(key: str): str

Get value at given key.

keyRequired
  • Type: str

the key to get.


hget
inflight hget(key: str, field: str): str

Returns the value associated with field in the hash stored at key.

keyRequired
  • Type: str

the key.


fieldRequired
  • Type: str

the field at given key.


hset
inflight hset(key: str, field: str, value: str): num

Sets the specified field to respective value in the hash stored at key.

keyRequired
  • Type: str

key to set.


fieldRequired
  • Type: str

field in key to set.


valueRequired
  • Type: str

value to set at field in key.


rawClient
inflight rawClient(): any

Get raw redis client (currently IoRedis).

sadd
inflight sadd(key: str, value: str): num

Add the specified members to the set stored at key.

keyRequired
  • Type: str

the key.


valueRequired
  • Type: str

the value to add to the set at given key.


set
inflight set(key: str, value: str): void

Set key value pair.

keyRequired
  • Type: str

the key to set.


valueRequired
  • Type: str

the value to store at given key.


smembers
inflight smembers(key: str): MutArray<str>

Returns all the members of the set value stored at key.

keyRequired
  • Type: str

the key.


url
inflight url(): str

Get url of redis server.

Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.

nodeRequired
node: Node;
  • Type: constructs.Node

The tree node.


Table

A NoSQL database table that can be used to store and query data.

Initializers

bring ex;

new ex.Table(props: TableProps);
NameTypeDescription
propsTablePropsNo description.

propsRequired

Methods

Preflight Methods
NameDescription
addRowAdd a row to the table that is created when the app is deployed.
Inflight Methods
NameDescription
deleteDelete a row from the table, by primary key.
getGet a row from the table, by primary key.
insertInsert a row into the table.
listList all rows in the table.
tryGetGet a row from the table if exists, by primary key.
updateUpdate a row in the table.
upsertInsert a row into the table if it doesn't exist, otherwise update it.

addRow
addRow(key: str, row: Json): void

Add a row to the table that is created when the app is deployed.

keyRequired
  • Type: str

rowRequired

delete
inflight delete(key: str): void

Delete a row from the table, by primary key.

keyRequired
  • Type: str

primary key to delete the row.


get
inflight get(key: str): Json

Get a row from the table, by primary key.

keyRequired
  • Type: str

primary key to search.


insert
inflight insert(key: str, row: Json): void

Insert a row into the table.

keyRequired
  • Type: str

primary key to insert the row.


rowRequired

data to be inserted.


list
inflight list(): MutArray<Json>

List all rows in the table.

tryGet
inflight tryGet(key: str): Json

Get a row from the table if exists, by primary key.

keyRequired
  • Type: str

primary key to search.


update
inflight update(key: str, row: Json): void

Update a row in the table.

keyRequired
  • Type: str

primary key to update the row.


rowRequired

data to be updated.


upsert
inflight upsert(key: str, row: Json): void

Insert a row into the table if it doesn't exist, otherwise update it.

keyRequired
  • Type: str

primary key to upsert the row.


rowRequired

data to be upserted.


Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
columnsMutMap<ColumnType>Table columns.
namestrTable name.
primaryKeystrTable primary key name.

nodeRequired
node: Node;
  • Type: constructs.Node

The tree node.


columnsRequired
columns: MutMap<ColumnType>;

Table columns.


nameRequired
name: str;
  • Type: str

Table name.


primaryKeyRequired
primaryKey: str;
  • Type: str

Table primary key name.


Classes

DynamodbTableClientBase

Base class for DynamodbTable Client.

Initializers

bring ex;

new ex.DynamodbTableClientBase(tableName: str);
NameTypeDescription
tableNamestrthe table name.

tableNameRequired
  • Type: str

the table name.


Methods

NameDescription
deleteItemDelete an item from the table.
getItemGet an item from the table.
putItemPut an item into the table.
queryReturn all items with a given partition key value.
scanReturn one or more items and item attributes by accessing every item in a table or a secondary index.
transactWriteItemsPerform a synchronous write operation that groups up to 100 action requests.
updateItemGet an item from the table.

deleteItem
deleteItem(key: Json): void

Delete an item from the table.

keyRequired

getItem
getItem(key: Json): Json

Get an item from the table.

keyRequired

putItem
putItem(item: Json, props?: DynamodbTablePutItemProps): void

Put an item into the table.

itemRequired

propsOptional

query
query(props: DynamodbTableQueryProps): DynamodbTableQueryResult

Return all items with a given partition key value.

propsRequired

scan
scan(props?: DynamodbTableScanProps): DynamodbTableScanResult

Return one or more items and item attributes by accessing every item in a table or a secondary index.

propsOptional

transactWriteItems
transactWriteItems(props: DynamodbTransactWriteItemsProps): void

Perform a synchronous write operation that groups up to 100 action requests.

propsRequired

updateItem
updateItem(key: Json, props?: DynamodbTableUpdateItemProps): Json

Get an item from the table.

keyRequired

propsOptional

RedisClientBase

Base class for Redis Client.

Initializers

bring ex;

new ex.RedisClientBase();
NameTypeDescription

Methods

NameDescription
delRemoves the specified key.
getGet value at given key.
hgetReturns the value associated with field in the hash stored at key.
hsetSets the specified field to respective value in the hash stored at key.
rawClientGet raw redis client (currently IoRedis).
saddAdd the specified members to the set stored at key.
setSet key value pair.
smembersReturns all the members of the set value stored at key.
urlGet url of redis server.

del
del(key: str): num

Removes the specified key.

keyRequired
  • Type: str

get
get(key: str): str

Get value at given key.

keyRequired
  • Type: str

hget
hget(key: str, field: str): str

Returns the value associated with field in the hash stored at key.

keyRequired
  • Type: str

fieldRequired
  • Type: str

hset
hset(key: str, field: str, value: str): num

Sets the specified field to respective value in the hash stored at key.

keyRequired
  • Type: str

fieldRequired
  • Type: str

valueRequired
  • Type: str

rawClient
rawClient(): any

Get raw redis client (currently IoRedis).

sadd
sadd(key: str, value: str): num

Add the specified members to the set stored at key.

keyRequired
  • Type: str

valueRequired
  • Type: str

set
set(key: str, value: str): void

Set key value pair.

keyRequired
  • Type: str

valueRequired
  • Type: str

smembers
smembers(key: str): MutArray<str>

Returns all the members of the set value stored at key.

keyRequired
  • Type: str

url
url(): str

Get url of redis server.

Structs

DynamodbTableProps

Properties for DynamodbTable.

Initializer

bring ex;

let DynamodbTableProps = ex.DynamodbTableProps{ ... };

Properties

NameTypeDescription
attributeDefinitionsJsonTable attribute definitions.
hashKeystrHash key for this table.
namestrThe table's name.
rangeKeystrRange key for this table.

attributeDefinitionsRequired
attributeDefinitions: Json;

Table attribute definitions.

e.g. { "myKey": "S", "myOtherKey": "S" }.


hashKeyRequired
hashKey: str;
  • Type: str

Hash key for this table.


nameRequired
name: str;
  • Type: str

The table's name.


rangeKeyOptional
rangeKey: str;
  • Type: str
  • Default: undefined

Range key for this table.


DynamodbTablePutItemProps

Properties for DynamodbTable.putItem.

Initializer

bring ex;

let DynamodbTablePutItemProps = ex.DynamodbTablePutItemProps{ ... };

Properties

NameTypeDescription
conditionExpressionstrA condition that must be satisfied in order for an operation to succeed.

conditionExpressionOptional
conditionExpression: str;
  • Type: str
  • Default: undefined

A condition that must be satisfied in order for an operation to succeed.


DynamodbTableQueryProps

Properties for DynamodbTable.query.

Initializer

bring ex;

let DynamodbTableQueryProps = ex.DynamodbTableQueryProps{ ... };

Properties

NameTypeDescription
keyConditionExpressionstrThe condition that specifies the key values for items to be retrieved by the Query action.
consistentReadboolDetermines the read consistency model: If set to true, then the operation uses strongly consistent reads;
exclusiveStartKeyJsonThe primary key of the first item that this operation will evaluate.
expressionAttributeNamesJsonOne or more substitution tokens for attribute names in an expression.
expressionAttributeValuesJsonOne or more values that can be substituted in an expression.
filterExpressionstrA string that contains conditions that DynamoDB applies after the Query operation, but before the data is returned to you.
indexNamestrThe name of an index to query.
limitnumThe maximum number of items to evaluate (not necessarily the number of matching items).
projectionExpressionstrA string that identifies one or more attributes to retrieve from the table.
returnConsumedCapacitystrDetermines the level of detail about either provisioned or on-demand throughput consumption.
scanIndexForwardboolSpecifies the order for index traversal.
selectstrThe attributes to be returned in the result.

keyConditionExpressionRequired
keyConditionExpression: str;
  • Type: str

The condition that specifies the key values for items to be retrieved by the Query action.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-KeyConditionExpression


consistentReadOptional
consistentRead: bool;
  • Type: bool
  • Default: false

Determines the read consistency model: If set to true, then the operation uses strongly consistent reads;

otherwise, the operation uses eventually consistent reads.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-ConsistentRead


exclusiveStartKeyOptional
exclusiveStartKey: Json;
  • Type: Json
  • Default: undefined

The primary key of the first item that this operation will evaluate.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-ExclusiveStartKey


expressionAttributeNamesOptional
expressionAttributeNames: Json;
  • Type: Json
  • Default: undefined

One or more substitution tokens for attribute names in an expression.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-ExpressionAttributeNames


expressionAttributeValuesOptional
expressionAttributeValues: Json;
  • Type: Json
  • Default: undefined

One or more values that can be substituted in an expression.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-ExpressionAttributeValues


filterExpressionOptional
filterExpression: str;
  • Type: str
  • Default: undefined

A string that contains conditions that DynamoDB applies after the Query operation, but before the data is returned to you.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-FilterExpression


indexNameOptional
indexName: str;
  • Type: str
  • Default: undefined

The name of an index to query.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-IndexName


limitOptional
limit: num;
  • Type: num
  • Default: undefined

The maximum number of items to evaluate (not necessarily the number of matching items).

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-Limit


projectionExpressionOptional
projectionExpression: str;
  • Type: str
  • Default: undefined

A string that identifies one or more attributes to retrieve from the table.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-ProjectionExpression


returnConsumedCapacityOptional
returnConsumedCapacity: str;
  • Type: str
  • Default: "NONE"

Determines the level of detail about either provisioned or on-demand throughput consumption.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-ReturnConsumedCapacity


scanIndexForwardOptional
scanIndexForward: bool;
  • Type: bool
  • Default: true

Specifies the order for index traversal.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-ScanIndexForward


selectOptional
select: str;
  • Type: str
  • Default: undefined

The attributes to be returned in the result.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-Select


DynamodbTableQueryResult

Result for DynamodbTable.query.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#API_Scan_ResponseSyntax

Initializer

bring ex;

let DynamodbTableQueryResult = ex.DynamodbTableQueryResult{ ... };

Properties

NameTypeDescription
countnumThe number of items in the response.
itemsMutArray<Json>An array of item attributes that match the scan criteria.
scannedCountnumThe number of items evaluated, before any QueryFilter is applied.
consumedCapacityJsonThe capacity units consumed by the Query operation.
lastEvaluatedKeyJsonThe primary key of the item where the operation stopped, inclusive of the previous result set.

countRequired
count: num;
  • Type: num

The number of items in the response.


itemsRequired
items: MutArray<Json>;
  • Type: MutArray<Json>

An array of item attributes that match the scan criteria.


scannedCountRequired
scannedCount: num;
  • Type: num

The number of items evaluated, before any QueryFilter is applied.


consumedCapacityOptional
consumedCapacity: Json;

The capacity units consumed by the Query operation.


lastEvaluatedKeyOptional
lastEvaluatedKey: Json;

The primary key of the item where the operation stopped, inclusive of the previous result set.


DynamodbTableScanProps

Properties for DynamodbTable.scan.

Initializer

bring ex;

let DynamodbTableScanProps = ex.DynamodbTableScanProps{ ... };

Properties

NameTypeDescription
consistentReadboolDetermines the read consistency model: If set to true, then the operation uses strongly consistent reads;
exclusiveStartKeyJsonThe primary key of the first item that this operation will evaluate.
expressionAttributeNamesJsonOne or more substitution tokens for attribute names in an expression.
expressionAttributeValuesJsonOne or more values that can be substituted in an expression.
filterExpressionstrA string that contains conditions that DynamoDB applies after the Query operation, but before the data is returned to you.
indexNamestrThe name of an index to query.
limitnumThe maximum number of items to evaluate (not necessarily the number of matching items).
projectionExpressionstrA string that identifies one or more attributes to retrieve from the table.
returnConsumedCapacitystrDetermines the level of detail about either provisioned or on-demand throughput consumption.
segmentnumFor a parallel Scan request, Segment identifies an individual segment to be scanned by an application worker.
selectstrThe attributes to be returned in the result.
totalSegmentsnumFor a parallel Scan request, TotalSegments represents the total number of segments into which the Scan operation will be divided.

consistentReadOptional
consistentRead: bool;
  • Type: bool
  • Default: false

Determines the read consistency model: If set to true, then the operation uses strongly consistent reads;

otherwise, the operation uses eventually consistent reads.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-ConsistentRead


exclusiveStartKeyOptional
exclusiveStartKey: Json;
  • Type: Json
  • Default: undefined

The primary key of the first item that this operation will evaluate.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-ExclusiveStartKey


expressionAttributeNamesOptional
expressionAttributeNames: Json;
  • Type: Json
  • Default: undefined

One or more substitution tokens for attribute names in an expression.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-ExpressionAttributeNames


expressionAttributeValuesOptional
expressionAttributeValues: Json;
  • Type: Json
  • Default: undefined

One or more values that can be substituted in an expression.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-ExpressionAttributeValues


filterExpressionOptional
filterExpression: str;
  • Type: str
  • Default: undefined

A string that contains conditions that DynamoDB applies after the Query operation, but before the data is returned to you.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-FilterExpression


indexNameOptional
indexName: str;
  • Type: str
  • Default: undefined

The name of an index to query.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-IndexName


limitOptional
limit: num;
  • Type: num
  • Default: undefined

The maximum number of items to evaluate (not necessarily the number of matching items).

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-Limit


projectionExpressionOptional
projectionExpression: str;
  • Type: str
  • Default: undefined

A string that identifies one or more attributes to retrieve from the table.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-ProjectionExpression


returnConsumedCapacityOptional
returnConsumedCapacity: str;
  • Type: str
  • Default: "NONE"

Determines the level of detail about either provisioned or on-demand throughput consumption.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-ReturnConsumedCapacity


segmentOptional
segment: num;
  • Type: num
  • Default: 0

For a parallel Scan request, Segment identifies an individual segment to be scanned by an application worker.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-Segment


selectOptional
select: str;
  • Type: str
  • Default: undefined

The attributes to be returned in the result.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-Select


totalSegmentsOptional
totalSegments: num;
  • Type: num
  • Default: 1

For a parallel Scan request, TotalSegments represents the total number of segments into which the Scan operation will be divided.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-TotalSegments


DynamodbTableScanResult

Result for DynamodbTable.scan.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#API_Scan_ResponseSyntax

Initializer

bring ex;

let DynamodbTableScanResult = ex.DynamodbTableScanResult{ ... };

Properties

NameTypeDescription
countnumThe number of items in the response.
itemsMutArray<Json>An array of item attributes that match the scan criteria.
scannedCountnumThe number of items evaluated, before any ScanFilter is applied.
consumedCapacityJsonThe capacity units consumed by the Scan operation.
lastEvaluatedKeyJsonThe primary key of the item where the operation stopped, inclusive of the previous result set.

countRequired
count: num;
  • Type: num

The number of items in the response.


itemsRequired
items: MutArray<Json>;
  • Type: MutArray<Json>

An array of item attributes that match the scan criteria.


scannedCountRequired
scannedCount: num;
  • Type: num

The number of items evaluated, before any ScanFilter is applied.


consumedCapacityOptional
consumedCapacity: Json;

The capacity units consumed by the Scan operation.


lastEvaluatedKeyOptional
lastEvaluatedKey: Json;

The primary key of the item where the operation stopped, inclusive of the previous result set.


DynamodbTableUpdateItemProps

Properties for DynamodbTable.updateItem.

Initializer

bring ex;

let DynamodbTableUpdateItemProps = ex.DynamodbTableUpdateItemProps{ ... };

Properties

NameTypeDescription
expressionAttributeValuesJsonOne or more values that can be substituted in an expression.
updateExpressionstrAn expression that defines one or more attributes to be updated.

expressionAttributeValuesOptional
expressionAttributeValues: Json;
  • Type: Json
  • Default: undefined

One or more values that can be substituted in an expression.


updateExpressionOptional
updateExpression: str;
  • Type: str
  • Default: undefined

An expression that defines one or more attributes to be updated.


DynamodbTransactWriteItem

Dynamodb transact write operation.

Initializer

bring ex;

let DynamodbTransactWriteItem = ex.DynamodbTransactWriteItem{ ... };

Properties

NameTypeDescription
deleteDynamodbTransactWriteItemDeletePropsA request to perform a delete operation.
putDynamodbTransactWriteItemPutPropsA request to perform a put operation.
updateDynamodbTransactWriteItemUpdatePropsA request to perform a update operation.

deleteOptional
delete: DynamodbTransactWriteItemDeleteProps;

A request to perform a delete operation.


putOptional
put: DynamodbTransactWriteItemPutProps;

A request to perform a put operation.


updateOptional
update: DynamodbTransactWriteItemUpdateProps;

A request to perform a update operation.


DynamodbTransactWriteItemDeleteProps

Properties for transact write item's delete operation.

Initializer

bring ex;

let DynamodbTransactWriteItemDeleteProps = ex.DynamodbTransactWriteItemDeleteProps{ ... };

Properties

NameTypeDescription
keyJsonThe item to delete.

keyRequired
key: Json;

The item to delete.


DynamodbTransactWriteItemPutProps

Properties for transact write item's update operation.

Initializer

bring ex;

let DynamodbTransactWriteItemPutProps = ex.DynamodbTransactWriteItemPutProps{ ... };

Properties

NameTypeDescription
itemJsonThe item to put.
conditionExpressionstrA condition that must be satisfied in order for an operation to succeed.

itemRequired
item: Json;

The item to put.


conditionExpressionOptional
conditionExpression: str;
  • Type: str
  • Default: undefined

A condition that must be satisfied in order for an operation to succeed.


DynamodbTransactWriteItemsProps

Properties for DynamodbTable.transactWriteItems.

Initializer

bring ex;

let DynamodbTransactWriteItemsProps = ex.DynamodbTransactWriteItemsProps{ ... };

Properties

NameTypeDescription
transactItemsMutArray<DynamodbTransactWriteItem>The write transact items.

transactItemsRequired
transactItems: MutArray<DynamodbTransactWriteItem>;

The write transact items.


DynamodbTransactWriteItemUpdateProps

Properties for transact write item's update operation.

Initializer

bring ex;

let DynamodbTransactWriteItemUpdateProps = ex.DynamodbTransactWriteItemUpdateProps{ ... };

Properties

NameTypeDescription
keyJsonThe item to update.
expressionAttributeValuesJsonOne or more values that can be substituted in an expression.
updateExpressionstrAn expression that defines one or more attributes to be updated.

keyRequired
key: Json;

The item to update.


expressionAttributeValuesOptional
expressionAttributeValues: Json;
  • Type: Json
  • Default: undefined

One or more values that can be substituted in an expression.


updateExpressionOptional
updateExpression: str;
  • Type: str
  • Default: undefined

An expression that defines one or more attributes to be updated.


TableProps

Properties for Table.

Initializer

bring ex;

let TableProps = ex.TableProps{ ... };

Properties

NameTypeDescription
columnsMutMap<ColumnType>The table's columns.
initialRowsMutMap<Json>The table's initial rows.
namestrThe table's name.
primaryKeystrThe table's primary key.

columnsOptional
columns: MutMap<ColumnType>;

The table's columns.


initialRowsOptional
initialRows: MutMap<Json>;
  • Type: MutMap<Json>
  • Default: undefined

The table's initial rows.


nameOptional
name: str;
  • Type: str
  • Default: undefined

The table's name.


primaryKeyOptional
primaryKey: str;
  • Type: str
  • Default: undefined

The table's primary key.

No two rows can have the same value for the primary key.


Enums

ColumnType

Table column types.

Members

NameDescription
STRINGString type.
NUMBERNumber type.
BOOLEANBool type.
DATEDate type.
JSONJson type.

STRING

String type.


NUMBER

Number type.


BOOLEAN

Bool type.


DATE

Date type.


JSON

Json type.