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
batchGetItemReturn the attributes of one or more items.
batchWriteItemPut or delete multiple items.
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.
transactGetItemsPerform a synchronous read operation that groups up to 100 item retrievals.
transactWriteItemsPerform a synchronous write operation that groups up to 100 action requests.
updateItemEdit an existing item's attributes, or add a new item to the table if it does not already exist.

batchGetItem
inflight batchGetItem(options: DynamodbTableBatchGetItemOptions): DynamodbTableBatchGetItemResult

Return the attributes of one or more items.

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

optionsRequired

options for the batch get item operation.


batchWriteItem
inflight batchWriteItem(options: DynamodbTableBatchWriteItemOptions): DynamodbTableBatchWriteItemResult

Put or delete multiple items.

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

optionsRequired

options for the batch write item operation.


deleteItem
inflight deleteItem(options: DynamodbTableDeleteItemOptions): DynamodbTableDeleteItemResult

Delete an item from the table.

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

optionsRequired

dynamodb DeleteItem options.


getItem
inflight getItem(options: DynamodbTableGetItemOptions): DynamodbTableGetItemResult

Get an item from the table.

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

optionsRequired

options for the getItem operation.


putItem
inflight putItem(options: DynamodbTablePutItemOptions): DynamodbTablePutItemResult

Put an item into the table.

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

optionsRequired

dynamodb PutItem options.


query
inflight query(options: DynamodbTableQueryOptions): DynamodbTableQueryResult

Return all items with a given partition key value.

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

optionsRequired

options for the query operation.


scan
inflight scan(options?: DynamodbTableScanOptions): DynamodbTableScanResult

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

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

optionsOptional

options for the scan operation.


transactGetItems
inflight transactGetItems(options: DynamodbTransactGetItemsOptions): DynamodbTableTransactGetItemsResult

Perform a synchronous read operation that groups up to 100 item retrievals.

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

optionsRequired

options for the query operation.


transactWriteItems
inflight transactWriteItems(options: DynamodbTransactWriteItemsOptions): DynamodbTableTransactWriteItemsResult

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

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

optionsRequired

options for the transact write items operation.


updateItem
inflight updateItem(options: DynamodbTableUpdateItemOptions): DynamodbTableUpdateItemResult

Edit an existing item's attributes, or add a new item to the table if it does not already exist.

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

optionsRequired

dynamodb UpdateItem options.


Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.
namestrTable name.

nodeRequired
node: Node;
  • Type: constructs.Node

The tree node.


nameRequired
name: str;
  • Type: str

Table 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
batchGetItemReturn the attributes of one or more items.
batchWriteItemPut or delete multiple items.
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.
transactGetItemsPerform a synchronous read operation that groups up to 100 item retrievals.
transactWriteItemsPerform a synchronous write operation that groups up to 100 action requests.
updateItemEdit an existing item's attributes, or add a new item to the table if it does not already exist.

batchGetItem
batchGetItem(options: DynamodbTableBatchGetItemOptions): DynamodbTableBatchGetItemResult

Return the attributes of one or more items.

optionsRequired

batchWriteItem
batchWriteItem(options: DynamodbTableBatchWriteItemOptions): DynamodbTableBatchWriteItemResult

Put or delete multiple items.

optionsRequired

deleteItem
deleteItem(options: DynamodbTableDeleteItemOptions): DynamodbTableDeleteItemResult

Delete an item from the table.

optionsRequired

getItem
getItem(options: DynamodbTableGetItemOptions): DynamodbTableGetItemResult

Get an item from the table.

optionsRequired

putItem
putItem(options: DynamodbTablePutItemOptions): DynamodbTablePutItemResult

Put an item into the table.

optionsRequired

query
query(options: DynamodbTableQueryOptions): DynamodbTableQueryResult

Return all items with a given partition key value.

optionsRequired

scan
scan(options?: DynamodbTableScanOptions): DynamodbTableScanResult

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

optionsOptional

transactGetItems
transactGetItems(options: DynamodbTransactGetItemsOptions): DynamodbTableTransactGetItemsResult

Perform a synchronous read operation that groups up to 100 item retrievals.

optionsRequired

transactWriteItems
transactWriteItems(options: DynamodbTransactWriteItemsOptions): DynamodbTableTransactWriteItemsResult

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

optionsRequired

updateItem
updateItem(options: DynamodbTableUpdateItemOptions): DynamodbTableUpdateItemResult

Edit an existing item's attributes, or add a new item to the table if it does not already exist.

optionsRequired

Structs

DynamodbTableBatchGetItemOptions

Options for DynamodbTable.batchGetItem.

Initializer

bring ex;

let DynamodbTableBatchGetItemOptions = ex.DynamodbTableBatchGetItemOptions{ ... };

Properties

NameTypeDescription
requestItemDynamodbTableBatchGetItemRequestItemDescribes one or more items to retrieve from that table.
returnConsumedCapacitystrDetermines the level of detail about either provisioned or on-demand throughput consumption.

requestItemRequired
requestItem: DynamodbTableBatchGetItemRequestItem;

Describes one or more items to retrieve from that table.


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

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


DynamodbTableBatchGetItemRequestItem

Options for DynamodbTable.batchGetItem request item.

Initializer

bring ex;

let DynamodbTableBatchGetItemRequestItem = ex.DynamodbTableBatchGetItemRequestItem{ ... };

Properties

NameTypeDescription
keysMutArray<Json>The primary key attribute values that define the items and the attributes associated with the items.
consistentReadboolThe consistency of a read operation.
expressionAttributeNamesJsonOne or more substitution tokens for attribute names in an expression.
projectionExpressionstrA string that identifies one or more attributes to retrieve from the table.

keysRequired
keys: MutArray<Json>;
  • Type: MutArray<Json>

The primary key attribute values that define the items and the attributes associated with the items.


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

The consistency of a read operation.


expressionAttributeNamesOptional
expressionAttributeNames: Json;

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


projectionExpressionOptional
projectionExpression: str;
  • Type: str

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


DynamodbTableBatchGetItemResult

Result for DynamodbTable.batchGetItem.

Initializer

bring ex;

let DynamodbTableBatchGetItemResult = ex.DynamodbTableBatchGetItemResult{ ... };

Properties

NameTypeDescription
consumedCapacityJsonThe capacity units consumed by the operation.
responsesMutArray<Json>The list of items that are returned, with the attributes requested.
unprocessedKeysDynamodbTableBatchGetItemRequestItemA list of keys that were not processed.

consumedCapacityOptional
consumedCapacity: Json;

The capacity units consumed by the operation.


responsesOptional
responses: MutArray<Json>;
  • Type: MutArray<Json>

The list of items that are returned, with the attributes requested.


unprocessedKeysOptional
unprocessedKeys: DynamodbTableBatchGetItemRequestItem;

A list of keys that were not processed.


DynamodbTableBatchWriteItemDeleteRequestOptions

Options for DynamodbTable.batchWriteItem's delete request.

Initializer

bring ex;

let DynamodbTableBatchWriteItemDeleteRequestOptions = ex.DynamodbTableBatchWriteItemDeleteRequestOptions{ ... };

Properties

NameTypeDescription
keyJsonThe primary key of the item to be deleted.

keyRequired
key: Json;

The primary key of the item to be deleted.


DynamodbTableBatchWriteItemOptions

Options for DynamodbTable.batchWriteItem.

Initializer

bring ex;

let DynamodbTableBatchWriteItemOptions = ex.DynamodbTableBatchWriteItemOptions{ ... };

Properties

NameTypeDescription
requestItemsMutArray<DynamodbTableBatchWriteItemRequestItem>A list of operations to be performed (DeleteRequest or PutRequest).
returnConsumedCapacitystrDetermines the level of detail about either provisioned or on-demand throughput consumption.
returnItemCollectionMetricsstrDetermines whether item collection metrics are returned.

requestItemsRequired
requestItems: MutArray<DynamodbTableBatchWriteItemRequestItem>;

A list of operations to be performed (DeleteRequest or PutRequest).


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

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


returnItemCollectionMetricsOptional
returnItemCollectionMetrics: str;
  • Type: str
  • Default: "NONE"

Determines whether item collection metrics are returned.


DynamodbTableBatchWriteItemPutRequestOptions

Options for DynamodbTable.batchWriteItem's put request.

Initializer

bring ex;

let DynamodbTableBatchWriteItemPutRequestOptions = ex.DynamodbTableBatchWriteItemPutRequestOptions{ ... };

Properties

NameTypeDescription
itemJsonThe values of the item to be put.

itemRequired
item: Json;

The values of the item to be put.


DynamodbTableBatchWriteItemRequestItem

Options for DynamodbTable.batchWriteItem request item.

Initializer

bring ex;

let DynamodbTableBatchWriteItemRequestItem = ex.DynamodbTableBatchWriteItemRequestItem{ ... };

Properties

NameTypeDescription
deleteRequestDynamodbTableBatchWriteItemDeleteRequestOptionsA request to perform a delete operation.
putRequestDynamodbTableBatchWriteItemPutRequestOptionsA request to perform a put operation.

deleteRequestOptional
deleteRequest: DynamodbTableBatchWriteItemDeleteRequestOptions;

A request to perform a delete operation.


putRequestOptional
putRequest: DynamodbTableBatchWriteItemPutRequestOptions;

A request to perform a put operation.


DynamodbTableBatchWriteItemResult

Result for DynamodbTable.batchWriteItem.

Initializer

bring ex;

let DynamodbTableBatchWriteItemResult = ex.DynamodbTableBatchWriteItemResult{ ... };

Properties

NameTypeDescription
consumedCapacityJsonThe capacity units consumed by the operation.
itemCollectionMetricsJsonInformation about item collections, if any, that were affected by the operation.
unprocessedItemsMutArray<DynamodbTableBatchWriteItemRequestItem>The unprocessed items from the operation.

consumedCapacityOptional
consumedCapacity: Json;

The capacity units consumed by the operation.


itemCollectionMetricsOptional
itemCollectionMetrics: Json;

Information about item collections, if any, that were affected by the operation.


unprocessedItemsOptional
unprocessedItems: MutArray<DynamodbTableBatchWriteItemRequestItem>;

The unprocessed items from the operation.


DynamodbTableDeleteItemOptions

Options for DynamodbTable.deleteItem.

Initializer

bring ex;

let DynamodbTableDeleteItemOptions = ex.DynamodbTableDeleteItemOptions{ ... };

Properties

NameTypeDescription
keyJsonThe primary key of the item to be deleted.
conditionExpressionstrA condition that must be satisfied in order for an operation to succeed.
expressionAttributeNamesJsonOne or more substitution tokens for attribute names in an expression.
expressionAttributeValuesJsonOne or more values that can be substituted in an expression.
returnConsumedCapacitystrDetermines the level of detail about either provisioned or on-demand throughput consumption.
returnItemCollectionMetricsstrDetermines whether item collection metrics are returned.
returnValuesstrWhether to return the item attributes as they appeared before they were deleted.
returnValuesOnConditionCheckFailurestrWhether to return the item attributes if the condition fails.

keyRequired
key: Json;

The primary key of the item to be deleted.


conditionExpressionOptional
conditionExpression: str;
  • Type: str

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


expressionAttributeNamesOptional
expressionAttributeNames: Json;

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


expressionAttributeValuesOptional
expressionAttributeValues: Json;

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


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

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


returnItemCollectionMetricsOptional
returnItemCollectionMetrics: str;
  • Type: str
  • Default: "NONE"

Determines whether item collection metrics are returned.


returnValuesOptional
returnValues: str;
  • Type: str
  • Default: "NONE"

Whether to return the item attributes as they appeared before they were deleted.


returnValuesOnConditionCheckFailureOptional
returnValuesOnConditionCheckFailure: str;
  • Type: str
  • Default: "NONE"

Whether to return the item attributes if the condition fails.


DynamodbTableDeleteItemResult

Result for DynamodbTable.deleteItem.

Initializer

bring ex;

let DynamodbTableDeleteItemResult = ex.DynamodbTableDeleteItemResult{ ... };

Properties

NameTypeDescription
attributesJsonThe attribute values as they appeared before the operation, but only if ReturnValues is specified as "ALL_OLD" in the request.
consumedCapacityJsonThe capacity units consumed by the operation.
itemCollectionMetricsJsonInformation about item collections, if any, that were affected by the operation.

attributesOptional
attributes: Json;

The attribute values as they appeared before the operation, but only if ReturnValues is specified as "ALL_OLD" in the request.


consumedCapacityOptional
consumedCapacity: Json;

The capacity units consumed by the operation.


itemCollectionMetricsOptional
itemCollectionMetrics: Json;

Information about item collections, if any, that were affected by the operation.


DynamodbTableGetItemOptions

Options for DynamodbTable.getItem.

Initializer

bring ex;

let DynamodbTableGetItemOptions = ex.DynamodbTableGetItemOptions{ ... };

Properties

NameTypeDescription
keyJsonThe primary key of the item to be retrieved.
consistentReadboolDetermines the read consistency model: If set to true, then the operation uses strongly consistent reads;
expressionAttributeNamesJsonOne or more substitution tokens for attribute names in an expression.
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.

keyRequired
key: Json;

The primary key of the item to be retrieved.


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.


expressionAttributeNamesOptional
expressionAttributeNames: Json;

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


projectionExpressionOptional
projectionExpression: str;
  • Type: str

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


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

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


DynamodbTableGetItemResult

Result for DynamodbTable.getItem.

Initializer

bring ex;

let DynamodbTableGetItemResult = ex.DynamodbTableGetItemResult{ ... };

Properties

NameTypeDescription
consumedCapacityJsonThe capacity units consumed by the operation.
itemJsonA map of attribute names to AttributeValue objects, as specified by ProjectionExpression.

consumedCapacityOptional
consumedCapacity: Json;

The capacity units consumed by the operation.


itemOptional
item: Json;

A map of attribute names to AttributeValue objects, as specified by ProjectionExpression.


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.


DynamodbTablePutItemOptions

Options for DynamodbTable.putItem.

Initializer

bring ex;

let DynamodbTablePutItemOptions = ex.DynamodbTablePutItemOptions{ ... };

Properties

NameTypeDescription
itemJsonThe values of the item to be put.
conditionExpressionstrA condition that must be satisfied in order for an operation to succeed.
expressionAttributeNamesJsonOne or more substitution tokens for attribute names in an expression.
expressionAttributeValuesJsonOne or more values that can be substituted in an expression.
returnConsumedCapacitystrDetermines the level of detail about either provisioned or on-demand throughput consumption.
returnItemCollectionMetricsstrDetermines whether item collection metrics are returned.
returnValuesOnConditionCheckFailurestrUse ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition fails.

itemRequired
item: Json;

The values of the item to be put.


conditionExpressionOptional
conditionExpression: str;
  • Type: str

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


expressionAttributeNamesOptional
expressionAttributeNames: Json;

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


expressionAttributeValuesOptional
expressionAttributeValues: Json;

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


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

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


returnItemCollectionMetricsOptional
returnItemCollectionMetrics: str;
  • Type: str
  • Default: "NONE"

Determines whether item collection metrics are returned.


returnValuesOnConditionCheckFailureOptional
returnValuesOnConditionCheckFailure: str;
  • Type: str
  • Default: "NONE"

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition fails.


DynamodbTablePutItemResult

Result for DynamodbTable.putItem.

Initializer

bring ex;

let DynamodbTablePutItemResult = ex.DynamodbTablePutItemResult{ ... };

Properties

NameTypeDescription
attributesJsonThe attribute values as they appeared before the operation, but only if ReturnValues is specified as "ALL_OLD" in the request.
consumedCapacityJsonThe capacity units consumed by the operation.
itemCollectionMetricsJsonInformation about item collections, if any, that were affected by the operation.

attributesOptional
attributes: Json;

The attribute values as they appeared before the operation, but only if ReturnValues is specified as "ALL_OLD" in the request.


consumedCapacityOptional
consumedCapacity: Json;

The capacity units consumed by the operation.


itemCollectionMetricsOptional
itemCollectionMetrics: Json;

Information about item collections, if any, that were affected by the operation.


DynamodbTableQueryOptions

Options for DynamodbTable.query.

Initializer

bring ex;

let DynamodbTableQueryOptions = ex.DynamodbTableQueryOptions{ ... };

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.


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.


exclusiveStartKeyOptional
exclusiveStartKey: Json;

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


expressionAttributeNamesOptional
expressionAttributeNames: Json;

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


expressionAttributeValuesOptional
expressionAttributeValues: Json;

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


filterExpressionOptional
filterExpression: str;
  • Type: str

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


indexNameOptional
indexName: str;
  • Type: str

The name of an index to query.


limitOptional
limit: num;
  • Type: num

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


projectionExpressionOptional
projectionExpression: str;
  • Type: str

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


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

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


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

Specifies the order for index traversal.


selectOptional
select: str;
  • Type: str

The attributes to be returned in the result.


DynamodbTableQueryResult

Result for DynamodbTable.query.

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 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 operation.


lastEvaluatedKeyOptional
lastEvaluatedKey: Json;

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


DynamodbTableScanOptions

Options for DynamodbTable.scan.

Initializer

bring ex;

let DynamodbTableScanOptions = ex.DynamodbTableScanOptions{ ... };

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.


exclusiveStartKeyOptional
exclusiveStartKey: Json;

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


expressionAttributeNamesOptional
expressionAttributeNames: Json;

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


expressionAttributeValuesOptional
expressionAttributeValues: Json;

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


filterExpressionOptional
filterExpression: str;
  • Type: str

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


indexNameOptional
indexName: str;
  • Type: str

The name of an index to query.


limitOptional
limit: num;
  • Type: num

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


projectionExpressionOptional
projectionExpression: str;
  • Type: str

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


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

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


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

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


selectOptional
select: str;
  • Type: str

The attributes to be returned in the result.


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.


DynamodbTableScanResult

Result for DynamodbTable.scan.

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 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 operation.


lastEvaluatedKeyOptional
lastEvaluatedKey: Json;

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


DynamodbTableTransactGetItemsResponseItem

Details of the requested item.

Initializer

bring ex;

let DynamodbTableTransactGetItemsResponseItem = ex.DynamodbTableTransactGetItemsResponseItem{ ... };

Properties

NameTypeDescription
itemJsonThe values of the item.

itemRequired
item: Json;

The values of the item.


DynamodbTableTransactGetItemsResult

Result for DynamodbTable.transactGetItems.

Initializer

bring ex;

let DynamodbTableTransactGetItemsResult = ex.DynamodbTableTransactGetItemsResult{ ... };

Properties

NameTypeDescription
responsesMutArray<DynamodbTableTransactGetItemsResponseItem>An ordered array of up to 100 DynamodbTableTransactGetItemsResponseItem objects.
consumedCapacityJsonThe capacity units consumed by the operation.

responsesRequired
responses: MutArray<DynamodbTableTransactGetItemsResponseItem>;

An ordered array of up to 100 DynamodbTableTransactGetItemsResponseItem objects.


consumedCapacityOptional
consumedCapacity: Json;

The capacity units consumed by the operation.


DynamodbTableTransactWriteItemsResult

Result for DynamodbTable.transactWriteItems.

Initializer

bring ex;

let DynamodbTableTransactWriteItemsResult = ex.DynamodbTableTransactWriteItemsResult{ ... };

Properties

NameTypeDescription
attributesJsonThe attribute values as they appeared before the operation, but only if ReturnValues is specified as "ALL_OLD" in the request.
consumedCapacityJsonThe capacity units consumed by the operation.
itemCollectionMetricsJsonInformation about item collections, if any, that were affected by the operation.

attributesOptional
attributes: Json;

The attribute values as they appeared before the operation, but only if ReturnValues is specified as "ALL_OLD" in the request.


consumedCapacityOptional
consumedCapacity: Json;

The capacity units consumed by the operation.


itemCollectionMetricsOptional
itemCollectionMetrics: Json;

Information about item collections, if any, that were affected by the operation.


DynamodbTableUpdateItemOptions

Options for DynamodbTable.updateItem.

Initializer

bring ex;

let DynamodbTableUpdateItemOptions = ex.DynamodbTableUpdateItemOptions{ ... };

Properties

NameTypeDescription
keyJsonThe primary key of the item to be updated.
conditionExpressionstrA condition that must be satisfied in order for a conditional update to succeed.
expressionAttributeNamesJsonOne or more substitution tokens for attribute names in an expression.
expressionAttributeValuesJsonOne or more values that can be substituted in an expression.
returnConsumedCapacitystrDetermines the level of detail about either provisioned or on-demand throughput consumption.
returnItemCollectionMetricsstrDetermines whether item collection metrics are returned.
returnValuesstrUse ReturnValues to get the item attributes if the Update operation succeeds.
returnValuesOnConditionCheckFailurestrUse ReturnValuesOnConditionCheckFailure to get the item attributes if the Update condition fails.
updateExpressionstrAn expression that defines one or more attributes to be updated.

keyRequired
key: Json;

The primary key of the item to be updated.


conditionExpressionOptional
conditionExpression: str;
  • Type: str

A condition that must be satisfied in order for a conditional update to succeed.


expressionAttributeNamesOptional
expressionAttributeNames: Json;

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


expressionAttributeValuesOptional
expressionAttributeValues: Json;

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


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

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


returnItemCollectionMetricsOptional
returnItemCollectionMetrics: str;
  • Type: str
  • Default: "NONE"

Determines whether item collection metrics are returned.


returnValuesOptional
returnValues: str;
  • Type: str
  • Default: "NONE"

Use ReturnValues to get the item attributes if the Update operation succeeds.


returnValuesOnConditionCheckFailureOptional
returnValuesOnConditionCheckFailure: str;
  • Type: str
  • Default: "NONE"

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Update condition fails.


updateExpressionOptional
updateExpression: str;
  • Type: str

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


DynamodbTableUpdateItemResult

Result for DynamodbTable.updateItem.

Initializer

bring ex;

let DynamodbTableUpdateItemResult = ex.DynamodbTableUpdateItemResult{ ... };

Properties

NameTypeDescription
attributesJsonThe attribute values as they appeared before the operation, but only if ReturnValues is specified as "ALL_OLD" in the request.
consumedCapacityJsonThe capacity units consumed by the operation.
itemCollectionMetricsJsonInformation about item collections, if any, that were affected by the operation.

attributesOptional
attributes: Json;

The attribute values as they appeared before the operation, but only if ReturnValues is specified as "ALL_OLD" in the request.


consumedCapacityOptional
consumedCapacity: Json;

The capacity units consumed by the operation.


itemCollectionMetricsOptional
itemCollectionMetrics: Json;

Information about item collections, if any, that were affected by the operation.


DynamodbTransactGetItem

Dynamodb transact get operation.

Initializer

bring ex;

let DynamodbTransactGetItem = ex.DynamodbTransactGetItem{ ... };

Properties

NameTypeDescription
getDynamodbTransactGetItemGetOptionsA request to perform a get operation.

getOptional
get: DynamodbTransactGetItemGetOptions;

A request to perform a get operation.


DynamodbTransactGetItemGetOptions

Options for DynamodbTable.transactGetItems's get operation.

Initializer

bring ex;

let DynamodbTransactGetItemGetOptions = ex.DynamodbTransactGetItemGetOptions{ ... };

Properties

NameTypeDescription
keyJsonThe primary key of the item to be retrieved.
expressionAttributeNamesJsonOne or more substitution tokens for attribute names in an expression.
projectionExpressionstrA string that identifies one or more attributes to retrieve from the table.

keyRequired
key: Json;

The primary key of the item to be retrieved.


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

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


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

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


DynamodbTransactGetItemsOptions

Options for DynamodbTable.transactGetItems.

Initializer

bring ex;

let DynamodbTransactGetItemsOptions = ex.DynamodbTransactGetItemsOptions{ ... };

Properties

NameTypeDescription
transactItemsMutArray<DynamodbTransactGetItem>An ordered array of up to 100 DynamodbTransactGetItem objects, each of which contains a DynamodbTransactGetItem structure.
returnConsumedCapacitystrDetermines the level of detail about either provisioned or on-demand throughput consumption.

transactItemsRequired
transactItems: MutArray<DynamodbTransactGetItem>;

An ordered array of up to 100 DynamodbTransactGetItem objects, each of which contains a DynamodbTransactGetItem structure.


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

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


DynamodbTransactWriteItem

Dynamodb transact write operation.

Initializer

bring ex;

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

Properties

NameTypeDescription
conditionCheckDynamodbTransactWriteItemConditionCheckOptionsA request to perform a condition check operation.
deleteDynamodbTransactWriteItemDeleteOptionsA request to perform a delete operation.
putDynamodbTransactWriteItemPutOptionsA request to perform a put operation.
updateDynamodbTransactWriteItemUpdateOptionsA request to perform a update operation.

conditionCheckOptional
conditionCheck: DynamodbTransactWriteItemConditionCheckOptions;

A request to perform a condition check operation.


deleteOptional
delete: DynamodbTransactWriteItemDeleteOptions;

A request to perform a delete operation.


putOptional
put: DynamodbTransactWriteItemPutOptions;

A request to perform a put operation.


updateOptional
update: DynamodbTransactWriteItemUpdateOptions;

A request to perform a update operation.


DynamodbTransactWriteItemConditionCheckOptions

Options for transact write item's condition check operation.

Initializer

bring ex;

let DynamodbTransactWriteItemConditionCheckOptions = ex.DynamodbTransactWriteItemConditionCheckOptions{ ... };

Properties

NameTypeDescription
keyJsonThe primary key of the item to be checked.
conditionExpressionstrA condition that must be satisfied in order for an operation to succeed.
expressionAttributeNamesJsonOne or more substitution tokens for attribute names in an expression.
expressionAttributeValuesJsonOne or more values that can be substituted in an expression.
returnValuesOnConditionCheckFailurestrDetermines the level of detail about either provisioned or on-demand throughput consumption.

keyRequired
key: Json;

The primary key of the item to be checked.


conditionExpressionOptional
conditionExpression: str;
  • Type: str

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


expressionAttributeNamesOptional
expressionAttributeNames: Json;

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


expressionAttributeValuesOptional
expressionAttributeValues: Json;

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


returnValuesOnConditionCheckFailureOptional
returnValuesOnConditionCheckFailure: str;
  • Type: str
  • Default: "NONE"

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


DynamodbTransactWriteItemDeleteOptions

Options for transact write item's delete operation.

Initializer

bring ex;

let DynamodbTransactWriteItemDeleteOptions = ex.DynamodbTransactWriteItemDeleteOptions{ ... };

Properties

NameTypeDescription
keyJsonThe primary key of the item to be deleted.
conditionExpressionstrA condition that must be satisfied in order for an operation to succeed.
expressionAttributeNamesJsonOne or more substitution tokens for attribute names in an expression.
expressionAttributeValuesJsonOne or more values that can be substituted in an expression.
returnValuesOnConditionCheckFailurestrDetermines the level of detail about either provisioned or on-demand throughput consumption.

keyRequired
key: Json;

The primary key of the item to be deleted.


conditionExpressionOptional
conditionExpression: str;
  • Type: str

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


expressionAttributeNamesOptional
expressionAttributeNames: Json;

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


expressionAttributeValuesOptional
expressionAttributeValues: Json;

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


returnValuesOnConditionCheckFailureOptional
returnValuesOnConditionCheckFailure: str;
  • Type: str
  • Default: "NONE"

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


DynamodbTransactWriteItemPutOptions

Options for transact write item's update operation.

Initializer

bring ex;

let DynamodbTransactWriteItemPutOptions = ex.DynamodbTransactWriteItemPutOptions{ ... };

Properties

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

itemRequired
item: Json;

The values of the item to be put.


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

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


DynamodbTransactWriteItemsOptions

Options for DynamodbTable.transactWriteItems.

Initializer

bring ex;

let DynamodbTransactWriteItemsOptions = ex.DynamodbTransactWriteItemsOptions{ ... };

Properties

NameTypeDescription
transactItemsMutArray<DynamodbTransactWriteItem>The write transact items.

transactItemsRequired
transactItems: MutArray<DynamodbTransactWriteItem>;

The write transact items.


DynamodbTransactWriteItemUpdateOptions

Options for transact write item's update operation.

Initializer

bring ex;

let DynamodbTransactWriteItemUpdateOptions = ex.DynamodbTransactWriteItemUpdateOptions{ ... };

Properties

NameTypeDescription
keyJsonThe primary key of the item to be updated.
conditionExpressionstrA condition that must be satisfied in order for an operation to succeed.
expressionAttributeNamesJsonOne or more substitution tokens for attribute names in an expression.
expressionAttributeValuesJsonOne or more values that can be substituted in an expression.
returnValuesOnConditionCheckFailurestrDetermines the level of detail about either provisioned or on-demand throughput consumption.
updateExpressionstrAn expression that defines one or more attributes to be updated.

keyRequired
key: Json;

The primary key of the item to be updated.


conditionExpressionOptional
conditionExpression: str;
  • Type: str

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


expressionAttributeNamesOptional
expressionAttributeNames: Json;

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


expressionAttributeValuesOptional
expressionAttributeValues: Json;

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


returnValuesOnConditionCheckFailureOptional
returnValuesOnConditionCheckFailure: str;
  • Type: str
  • Default: "NONE"

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


updateExpressionOptional
updateExpression: str;
  • Type: str

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