[Tech Debt]: Migrate AutoFlex ResourcePrefix workflow to an option #37266
Labels
flex
Pertains to FLatteners and EXpanders.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
Description
#36437 introduced the concept of option functions to AutoFlex.
AutoFlex also has a special case of field name matching which allows for a "resource prefix" to be specified in cases where multiple field names from an AWS struct will have an expected prefix. This optional resource prefix is currently passed into the
flex.Expand
orflex.Flatten
function via a context value:Now that we have option functions, this workflow can be migrated to a formal, documented AutoFlex option to make it more discoverable for contributors outside the core team.
Once implemented, the appropriate flex function can be called with the new option.
References
IgnoreFieldNames
option #36437Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: