assumeRole does not spawn a background thread to refresh credentials.
This means that if the block goes on long enough, expired credentials
errors will start happening.
withAssumedRole addresses this. I chose to make a new function under a
different name for two reasons:
The fixed function incurs a MonadUnliftIO constraint. Users could
stay on the deprecated function if they're not able to quickly
organize things to satisfy this constraint.
The naming better matches the analogous Amazonka function^1.
assumeRole
does not spawn a background thread to refresh credentials. This means that if the block goes on long enough, expired credentials errors will start happening.withAssumedRole
addresses this. I chose to make a new function under a different name for two reasons:MonadUnliftIO
constraint. Users could stay on the deprecated function if they're not able to quickly organize things to satisfy this constraint.