{"_id":"@aws-sdk/client-dynamodb-v2-node","_rev":"20-999bb7ecdbd5f07baa3f243e21e24015","name":"@aws-sdk/client-dynamodb-v2-node","dist-tags":{"preview":"0.1.0-preview.2","latest":"0.1.0-preview.2"},"versions":{"0.1.0-preview.1":{"name":"@aws-sdk/client-dynamodb-v2-node","version":"0.1.0-preview.1","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team","email":"aws-sdk-js@amazon.com"},"license":"Apache-2.0","_id":"@aws-sdk/client-dynamodb-v2-node@0.1.0-preview.1","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"cjradek","email":"cjradek@gmail.com"},{"name":"jpeddicord","email":"jacob@peddicord.net"},{"name":"zheallan","email":"zyp19930608@gmail.com"}],"dist":{"shasum":"21f561323f09e371f01b4e1fffd7d08c780dda16","tarball":"https://registry.npmjs.org/@aws-sdk/client-dynamodb-v2-node/-/client-dynamodb-v2-node-0.1.0-preview.1.tgz","fileCount":1387,"integrity":"sha512-W6XCXJOOel+gRuJFTJ19syMheGgIaS3DWD6Z/EtMlpPac6FyVlzsLWfFH9MGd+bJ8QWNXRP9yctM/lnY7N8LmQ==","signatures":[{"sig":"MEUCIEfpiJSlopdT0meGBYnLwSuwExfOJc1/ngelcxcIhcBhAiEA4wWEEQlM9Qe/bRD/KaibBdgMyVwUYKIcuFltvnZvAiw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":917223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb80YjCRA9TVsSAnZWagAAh9UP/iuRwTP/59aDOR8OHpjz\nIfku0IWKpfRzTsIlX4VwzXxuW6gg0PrumnQ8/jDT/J3/oEINP59g8b5h0UHY\nD7Q1pj/hLV7wBOLdpwceR0iP28uWKuC2Y+A80OqeRT6W69Rinl6xsVRflxkI\niDUJEb+fjQo3CebRnXs3hIzgyp2YPwpjN86UjUUBstHH0yX72+2VVSK9nf11\nNiMaa83P4xX+DjrJghO10FXnDfNZ0abYsAg+RefjI5+0ugmeOC+zficobSC7\nLAGLu+SxI+sG6wEGnK2FyXTDav+5WDuPduAU9t+J5SoWxPcoivJIU8Q/XAxH\n55ERnzGKbAKSV4suPZKupxLIXx9Z0j8Y6aKV1vYKa714QIDs/RJc6ny1v6rJ\nMftuyk8NLTiO8rZrY05Cil0+jFkKnOSGhbAdq6sJU2Plw6uHVASHN7OyVo2o\nIhUYdpWcg7yWk/UDl5VbD88msYZE0hb1N+7kygvFh3UYyZ/Na9Hz/Y3pGd6Z\n3+vqxijl5R2IQRdMAMgmsG/xJyZWm+qJ5J7x4VBq7XAMXcPghkDshLsxDQWR\nYpwoBWbcIHy7yJpt/R56MRmuuXAX45kO61OPB6mWZNXzxT4sBSORaDNweYmA\n+187JRLtkgSJNwV8vTGE/BO6+w4tXpUBqlIdp9FhRGOXqwzt1I6JddergY4M\nppUC\r\n=whJW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","_from":"file:aws-sdk-client-dynamodb-v2-node-0.1.0-preview.1.tgz","types":"./index.d.ts","gitHead":"960970c0c25938a8d51d1a243d3f21f05acea92e","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"_resolved":"","_integrity":"","_npmVersion":"6.4.1","description":"Node SDK for Amazon DynamoDB","directories":{},"_nodeVersion":"8.8.1","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.1","@aws-sdk/hash-node":"^0.1.0-preview.1","@aws-sdk/json-parser":"^0.1.0-preview.1","@aws-sdk/core-handler":"^0.1.0-preview.1","@aws-sdk/json-builder":"^0.1.0-preview.1","@aws-sdk/signature-v4":"^0.1.0-preview.1","@aws-sdk/util-utf8-node":"^0.1.0-preview.1","@aws-sdk/config-resolver":"^0.1.0-preview.1","@aws-sdk/region-provider":"^0.1.0-preview.1","@aws-sdk/url-parser-node":"^0.1.0-preview.1","@aws-sdk/middleware-stack":"^0.1.0-preview.1","@aws-sdk/retry-middleware":"^0.1.0-preview.1","@aws-sdk/util-base64-node":"^0.1.0-preview.1","@aws-sdk/node-http-handler":"^0.1.0-preview.1","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.1","@aws-sdk/signing-middleware":"^0.1.0-preview.1","@aws-sdk/middleware-serializer":"^0.1.0-preview.1","@aws-sdk/stream-collector-node":"^0.1.0-preview.1","@aws-sdk/util-body-length-node":"^0.1.0-preview.1","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.1","@aws-sdk/credential-provider-node":"^0.1.0-preview.1","@aws-sdk/middleware-content-length":"^0.1.0-preview.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^20.0.4","rimraf":"^2.6.2","typedoc":"^0.10.0","typescript":"^3.0.0","@types/jest":"^20.0.2","@types/node":"^8.10.29","@aws-sdk/client-documentation-generator":"^0.1.0-preview.1"},"_npmOperationalInternal":{"tmp":"tmp/client-dynamodb-v2-node_0.1.0-preview.1_1542669859139_0.7379870159191495","host":"s3://npm-registry-packages"}},"0.1.0-preview.2":{"name":"@aws-sdk/client-dynamodb-v2-node","version":"0.1.0-preview.2","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team","email":"aws-sdk-js@amazon.com"},"license":"Apache-2.0","_id":"@aws-sdk/client-dynamodb-v2-node@0.1.0-preview.2","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"cjradek","email":"cjradek@gmail.com"},{"name":"jpeddicord","email":"jacob@peddicord.net"},{"name":"zheallan","email":"zyp19930608@gmail.com"}],"dist":{"shasum":"cafa4ff671dea9050a47045864d111ac6afa2e45","tarball":"https://registry.npmjs.org/@aws-sdk/client-dynamodb-v2-node/-/client-dynamodb-v2-node-0.1.0-preview.2.tgz","fileCount":1387,"integrity":"sha512-aj9JhRMh8Ro5u3CidZKT9ymHDsR1HhXaClKAVejxRPpOJrlyxfNprCT9uf1kxE5q/cAQn5T94394n2GKZEtOQA==","signatures":[{"sig":"MEQCIFMy5xlXTEGcKWoXymd/QRKBfTDQvQEe4YTpqFaMAPvfAiBjAJ5DC67wc8CVhPWBobvyIixumygNK6cDff6NVbgiQQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":924199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcS5IgCRA9TVsSAnZWagAASCUP/2c+NA/o8LGc0fjidx1Q\nk9t6L3vN9rx5mDP1oqE8CFZTib2/kXJg+hspiMiXf/tpRjIsAQs5kmwaV7tG\nzvTX1LP3dNwGwqunNERqtc+DnjjETVDvHrCVUAbK/gudJtaug6H+FrwVf9uK\nvbpxANgkw1RYzvsgvANhiiDZt/BZqvqa+vvBVLTvZmcgMVSNS97WihJCml8A\nRcIYfQvXE7s0Wo9+WPaqEVOoy/kdS5mWY9u6t+abbepjkK2OI9Vw3joR5vJN\nVLQZ5CrO7JmGrnEHwwoi7FKvUDYjPy3QYA/gmCHunLGrjEoSm+HWuQmG0pmh\nTf6Kw9YG0ZLz7A6LvRLtDuzhC40jHCcAuITNxeLU9OBe9mHyABuOLSI2fJHW\nL6HmonJhnMwjSB/iB1OWHanHKAVQRZ5D3kMld95PImdYgb2HQCqOsK7JRe8A\nlvf0BwwxB4Kx6H149PaLmI7hJ1MCw3D4jjyRb69jo3hNmiJHvn6VGqlgZgW3\nRGn+q2BGici5lQA818YbrBO1AHNpFdZbMBvkNPe0MQGLpud/qC/x1UWWQ31V\nTV3xBUbZUcnCU5AZpQ/cTjif6KU5sGcXxLYBYJ4HYPFuJZrjeqb3ZVuG2rry\nHBbRvPfDbDJNN7CvKPOgIjLNgcS/V7VOds8SKlsQcSq4SHEzE/Azz/6zid8L\n+xN6\r\n=X3hK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"_npmVersion":"6.4.1","description":"Node SDK for Amazon DynamoDB","directories":{},"_nodeVersion":"8.8.1","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.1","@aws-sdk/hash-node":"^0.1.0-preview.1","@aws-sdk/json-parser":"^0.1.0-preview.1","@aws-sdk/core-handler":"^0.1.0-preview.1","@aws-sdk/json-builder":"^0.1.0-preview.1","@aws-sdk/signature-v4":"^0.1.0-preview.2","@aws-sdk/util-utf8-node":"^0.1.0-preview.1","@aws-sdk/config-resolver":"^0.1.0-preview.1","@aws-sdk/region-provider":"^0.1.0-preview.1","@aws-sdk/url-parser-node":"^0.1.0-preview.1","@aws-sdk/middleware-stack":"^0.1.0-preview.2","@aws-sdk/retry-middleware":"^0.1.0-preview.1","@aws-sdk/util-base64-node":"^0.1.0-preview.1","@aws-sdk/node-http-handler":"^0.1.0-preview.2","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.2","@aws-sdk/signing-middleware":"^0.1.0-preview.2","@aws-sdk/util-user-agent-node":"^0.1.0-preview.2","@aws-sdk/middleware-serializer":"^0.1.0-preview.1","@aws-sdk/stream-collector-node":"^0.1.0-preview.1","@aws-sdk/util-body-length-node":"^0.1.0-preview.2","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.2","@aws-sdk/credential-provider-node":"^0.1.0-preview.2","@aws-sdk/middleware-content-length":"^0.1.0-preview.1","@aws-sdk/middleware-header-default":"^0.1.0-preview.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^20.0.4","rimraf":"^2.6.2","typedoc":"^0.10.0","typescript":"^3.0.0","@types/jest":"^20.0.2","@types/node":"^8.10.29","@aws-sdk/client-documentation-generator":"^0.1.0-preview.1"},"_npmOperationalInternal":{"tmp":"tmp/client-dynamodb-v2-node_0.1.0-preview.2_1548456480209_0.9914015788241326","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-11-19T23:24:18.893Z","modified":"2025-03-27T18:38:07.404Z","0.1.0-preview.1":"2018-11-19T23:24:19.355Z","0.1.0-preview.2":"2019-01-25T22:48:00.415Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team","email":"aws-sdk-js@amazon.com"},"license":"Apache-2.0","description":"Node SDK for Amazon DynamoDB","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"# @aws-sdk/client-dynamodb-v2-node\n\n## Description\n\n<fullname>Amazon DynamoDB</fullname> <p>Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. DynamoDB lets you offload the administrative burdens of operating and scaling a distributed database, so that you don't have to worry about hardware provisioning, setup and configuration, replication, software patching, or cluster scaling.</p> <p>With DynamoDB, you can create database tables that can store and retrieve any amount of data, and serve any level of request traffic. You can scale up or scale down your tables' throughput capacity without downtime or performance degradation, and use the AWS Management Console to monitor resource utilization and performance metrics.</p> <p>DynamoDB automatically spreads the data and traffic for your tables over a sufficient number of servers to handle your throughput and storage requirements, while maintaining consistent and fast performance. All of your data is stored on solid state disks (SSDs) and automatically replicated across multiple Availability Zones in an AWS region, providing built-in high availability and data durability. </p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window: \n\n```\nnpm install @aws-sdk/client-dynamodb-v2-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commends in CommonJS modules. To send a request, you only need to import the client(`DynamoDBClient`) and the commands you need, for example `BatchGetItemCommand`:\n\n```javascript\n//javascript\nconst { DynamoDBClient } = require('@aws-sdk/client-dynamodb-v2-node/DynamoDBClient');\nconst { BatchGetItemCommand } = require('@aws-sdk/client-dynamodb-v2-node/BatchGetItemCommand');\n```\n\n```javascript\n//typescript\nconst { DynamoDBClient } = import '@aws-sdk/client-dynamodb-v2-node/DynamoDBClient';\nconst { BatchGetItemCommand } = import '@aws-sdk/client-dynamodb-v2-node/commands/BatchGetItemCommand';\n```\n\n### Usage\n\nTo send a request, you:\n\n* Initiate client with configurations.(credentials, region). For more information you can refer to the [API reference][].\n* Initiate command with input parameters.\n* Call `send` operation of client with command object as input.\n* If you are using a custom http handler, you may call `destroy()` to close open connections. \n\n```javascript\nconst dynamoDB = new DynamoDBClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n    RequestItems: { /**a map with key of string and value of structure*/ },\n};\nconst batchGetItemCommand = new BatchGetItemCommand(params);\ndynamoDB.send(batchGetItemCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nBesides using promise style, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n    const data = await dynamoDB.send(batchGetItemCommand);\n    // do something\n} catch(error) {\n    // error handling\n}\n```\n\n```javascript\n// callback\ndynamoDB.send(batchGetItemCommand, (err, data) => {\n    //do something\n})\n```\n \nBesides using `send()`, the SDK can also send requests using the simplified callback style in version 2 of the SDK.\n\n```javascript\nimport * as AWS from '@aws-sdk/@aws-sdk/client-dynamodb-v2-node/DynamoDB';\nconst dynamoDB = new AWS.DynamoDB({region: 'region'})\ndynamoDB.batchGetItem(params, (err, data) => {\n    //do something\n})\n\n```\n\n### Troubleshooting \n\nWhen the service returns an exception, inpecting the exceptions is always helpful. You can not only access the exception information but also response metadata(i.e request id).\n\n```javascript\ntry {\n    const data = await dynamoDB.send(batchGetItemCommand);\n    // do something\n} catch(error) {\n    const metadata = error.$metadata;\n    console.log(\n`requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n    );\n/*\nThe keys within exceptions are also parsed, you can access them by specifying exception names like below:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n * Ask a question on [StackOverflow](https://stackoverflow.com/) and tag it with `aws-sdk-js`\n * Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n * If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n \nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-dynamodb-v2-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n\n[API reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","readmeFilename":"README.md"}