This little repo was an experiment in taking an existing solution that AWS provides that currently uses the old AWS Javascript SDK V2 into using the V3 version, along with all the changes this brought.
An accompanying blogpost exists exploring some of the thoughts and other details, but do ensure you go check out the whole VMX2-VoicemailExpress solution, as rather than requiring Java using a NodeJS may be more approachable depending on your background.
NOTE: The modified version also includes a few other alterations, like processing the audio via muLaw format, which allows it to be used as an audio source within Connect. This is left as an interesting aside, however is not really relevant to the overall upgrade as most changes relate to the KVS processing prior to this.
You can find the blogpost here
** 12/04/2024 Addition **
Added a version of the code removing the usage of global scoped variables and general cleanup that still retains functionality, with lowered risk of cross invocation pollution of data