{"library":"serverless-dynamodb-client","title":"Serverless DynamoDB Client Plugin","description":"serverless-dynamodb-client is an abandoned Serverless Framework plugin designed to simplify interaction with AWS DynamoDB, providing a consistent API for both local DynamoDB instances and the AWS cloud service. Released as version `0.0.2` and last updated over 7 years ago, it was built specifically for Serverless Framework `0.5.x`. This package provides convenience wrappers for the AWS SDK's `DynamoDB` and `DynamoDB.DocumentClient` classes, automatically configuring them to point to a local DynamoDB instance (specifically on port 8000) when `serverless-dynamodb-local` is active, or to AWS otherwise. Due to its age and reliance on an extremely old version of the Serverless Framework, it is not compatible with modern Serverless setups (v1.x and above) and should not be used in new projects.","language":"javascript","status":"abandoned","last_verified":"Tue Apr 21","install":{"commands":["npm install serverless-dynamodb-client"],"cli":null},"imports":["const dynamodb = require('serverless-dynamodb-client');\nconst rawClient = dynamodb.raw;","const dynamodb = require('serverless-dynamodb-client');\nconst docClient = dynamodb.doc;"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const dynamodb = require('serverless-dynamodb-client');\nconst rawClient = dynamodb.raw;\n\nmodule.exports.listTables = async (event) => {\n  try {\n    // Ensure that serverless-dynamodb-local is running on port 8000 for local testing\n    const data = await rawClient.listTables().promise();\n    console.log(\"DynamoDB Tables:\", data.TableNames);\n\n    return {\n      statusCode: 200,\n      body: JSON.stringify({\n        message: 'Successfully listed DynamoDB tables (see console)',\n        tables: data.TableNames,\n      }),\n    };\n  } catch (error) {\n    console.error(\"Error listing tables:\", error);\n    return {\n      statusCode: 500,\n      body: JSON.stringify({\n        message: 'Failed to list DynamoDB tables',\n        error: error.message,\n      }),\n    };\n  }\n};","lang":"javascript","description":"This quickstart demonstrates how to use `serverless-dynamodb-client` to obtain the `raw` DynamoDB client and then list existing tables. It highlights the basic CommonJS `require` pattern for this legacy plugin.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}