aws-client is a minimalist Node.js client library providing simplified access to a subset of AWS services. Currently, it supports core operations for DynamoDB (get, batchGet, put, batchPut, query) via `DynamoClient` and SNS (publish) via `SNSClient`. The package is at version 3.0.6 and appears to be actively maintained, with an ongoing migration of "v1 functions" to "v2 functions." A key differentiator is its focus on minimalism and efficiency: v2 functions leverage the modular packages of the AWS SDK v3 internally, reducing the overall dependency footprint compared to requiring the full `aws-sdk` package. However, users employing older "v1 functions" must still explicitly install `aws-sdk` as a peer dependency, a requirement that will be phased out as the migration completes.
npm install aws-clientVerified import paths — ran on the pinned version, not inferred.
Demonstrates initializing a DynamoClient and fetching an item by ID. Includes error handling and shows the minimalist API for a common DynamoDB operation.
If using `v1` functions, run `npm install aws-sdk`. It is recommended to migrate to the `v2` functions as `v1` functions will eventually be deprecated and removed.
Consult the package documentation for the list of supported services and operations. For broader AWS service coverage or unsupported operations, consider using the official AWS SDK directly.
Run `npm install aws-sdk` if you intend to use 'v1' functions. Otherwise, refactor your code to use 'v2' functions which do not have this dependency.
Verify that the desired operation is listed in the `aws-client` documentation for the specific client (e.g., `DynamoClient`, `SNSClient`). If not supported, use the official AWS SDK directly for that operation.