1.0.4 • Published 9 months ago

aws-sdk-extra-v3 v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

aws-ddb-client-extra-v3

GetStarted

npm i --save \
  @aws-sdk/credential-providers \
  @aws-sdk/client-cognito-identity-provider \
  @aws-sdk/lib-dynamodb \
  @aws-sdk/client-dynamodb \
  aws-sdk-extra-v3

DynamoDB DocumentClient Extra

const { fromIni } = require('@aws-sdk/credential-providers');
const { docClient: docClientExtra } = require('aws-sdk-extra-v3');

const { AWS_PROFILE, AWS_REGION } = process.env;

const config = {
  region: AWS_REGION,
  credentials: fromIni({
    profile: AWS_PROFILE,
  }),
};

const docClient = docClientExtra(config);

const res = await docClient.get({
  TableName: '',
  Key: {
    id: '',
  },
});
1.0.4

9 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago