npm install typescript-aws-dynamo-helper@latest
const logger = new Logger(LogLevel.Trace);
const helper = new DynamoHelper(logger);
const response = await helper.GetItemByKeyAsync(
'tableName',
'keyName',
'keyValue',
);
import * as DynamoDB from '@aws-sdk/client-dynamodb';
const logger = new Logger(LogLevel.Trace);
const options: DynamoDB.DynamoDBClientConfig = {
accessKeyId: '{access_key}',
secretAccessKey: '{secret_key}',
region: 'us-east-1',
};
const repository = new DynamoDB.DynamoDB(options);
const helper = new DynamoHelper(logger, repository);
const response = await helper.GetItemByKeyAsync(
'tableName',
'keyName',
'keyValue',
);
If no options are supplied, will default to us-east-1
as the region
Clone the latest and run
npm run prep
to install packages and prep the git hooks