Skip to content

Scan

Source: src/AWS/DynamoDB/Scan.ts

Runtime binding for dynamodb:Scan.

Bind this operation to a Table inside a function runtime to get a callable that scans the full table, automatically injecting the table name. Provide the ScanHttp layer on the Function to satisfy the binding.

const scan = yield* AWS.DynamoDB.Scan(table);
const response = yield* scan({});
const items = response.Items;
const count = response.Count;