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
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인