1回答
- 新しい順
- 投票が多い順
- コメントが多い順
2
Hi Albert.
These two are equivalent versions of the same client. You can use either, however, please favor using LexRuntimeV2Client. per the documentation, the client can also send requests using v2 compatible style (LexRuntimeV2). However, it results in a bigger bundle size and may be dropped in next major version.
More details can be found here:
- https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-runtime-v2/
- https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-runtime-v2/classes/lexruntimev2.html
- https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-runtime-v2/classes/lexruntimev2client.html
I hope this helps.
Thanks for the clarification! The first link really helped me understand the syntax differences between the v3 style versus the v2 style.