unwrapResult
Open Beta Documentation Amazon offers this technical
documentation as part of a pre-release, open beta. The features described might change as Amazon receives feedback
and iterates on the features. For the most current feature information, see the Release
Notes.
unwrapResult<
T
>(result
,errorNameToConstructorMapping
):T
Unwrap value of type T on success else throw mapped Error type.
Type Parameters
• T
Parameters
result
errorNameToConstructorMapping
Returns
T
Last updated: Sep 30, 2025