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 Antwort
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Jahren
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen