How to use JS SDK V3 to getItem from DAX: "@aws-sdk/client-dax" instead of "amazon-dax-client"

0

Is it possible to read from DAX with benefit of SDK V3 for JS usage? I would like to configure reading from specified DAX endpoint but I can't find any details how to do it. I only found following solution for SDK V2:

    var dax = new AmazonDaxClient({endpoints: ["DaxClusterEndpoint"], region: region})
    daxClient = new AWS.DynamoDB.DocumentClient({service: dax });

I can't use DocumentClient from SDK V3 to initialize it with AmazonDaxClient from SDK V3 and I also can't find any option to use "@aws-sdk/client-dax" with specified endpoint and then add it to DynamoDBDocumentClient from V3.

Any suggestions if it's even possible? With usage of AmazonDaxClient my lambda is getting big in size.

1回答
1
承認された回答

Hi,

@aws-sdk/client-dax does not currently support Data Plane operations, only Control Plane such as CreateCluster.

There is currently a feature request in place for Data Plane functionality, I will add you as a +1 to that request. There is currently no ETA for the feature release.

For now we suggest to use the AWS JS SDK V2.

References

https://github.com/aws/aws-sdk-js-v3/issues/2575

profile pictureAWS
エキスパート
回答済み 2年前
profile picture
エキスパート
レビュー済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ