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 réponse
1
Réponse acceptée

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
EXPERT
répondu il y a 2 ans
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions