You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**v2**: Whether to marshal request parameters to the prefix of hostname.
49
51
-**v3**: **Deprecated**. SDK _always_ injects the hostname prefix when necessary.
@@ -195,8 +197,37 @@ In v3, [`@aws-sdk/s3-request-presigner` package](https://github.com/aws/aws-sdk-
195
197
is available. You don't have to differentiate `getSignedUrl()` and `getSignedUrlPromise()` any more. We also have [a blog](https://aws.amazon.com/blogs/developer/generate-presigned-url-modular-aws-sdk-javascript/)
196
198
discussing the details of this package.
197
199
198
-
<!---
199
200
## DynamoDB Document Client
200
201
201
-
TBD
202
-
-->
202
+
In v2, you can use the [`AWS.DynamoDB.DocumentClient` class](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB/DocumentClient.html)
203
+
to call DynamoDB API with native JavaScript types like Buffer, Array, and Object. It thus simplifies working with items
204
+
in Amazon DynamoDB by abstracting away the notion of attribute values.
205
+
206
+
In v3, equivalent [`@aws-sdk/lib-dynamodb`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/modules/_aws_sdk_lib_dynamodb.html)
207
+
is available. It's similar to normal service clients from v3 SDK, with the difference that it takes a basic DynamoDB
208
+
client in its constructor. Here's an brief example:
constddbDocClient=DynamoDBDocumentClient.from(client); // client is DynamoDB client
221
+
222
+
awaitddbDocClient.send(
223
+
newPutCommand({
224
+
TableName,
225
+
Item: {
226
+
id:"1",
227
+
content:"content from DynamoDBDocumentClient",
228
+
},
229
+
})
230
+
);
231
+
```
232
+
233
+
More examples and configurations are available in the [package README](https://github.com/aws/aws-sdk-js-v3/blob/main/lib/lib-dynamodb/README.md).
0 commit comments