Type alias ResourceTransform

ResourceTransform: ((args) => Promise<ResourceTransformResult | undefined> | ResourceTransformResult | undefined)

ResourceTransform is the callback signature for the transforms resource option. A transform 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 transform returns undefined, this indicates that the resource will not be transformed.

Type declaration

Generated using TypeDoc