Type alias ResourceTransformation

ResourceTransformation: ((args) => ResourceTransformationResult | undefined)

ResourceTransformation is the callback signature for the transformations resource option. A transformation is passed the same set of inputs provided to the Resource constructor, and can optionally return back alternate values for the props and/or opts prior to the resource actually being created. The effect will be as though those props and opts were passed in place of the original call to the Resource constructor. If the transformation returns undefined, this indicates that the resource will not be transformed.

Type declaration

Generated using TypeDoc