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.
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 theprops
and/oropts
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 returnsundefined
, this indicates that the resource will not be transformed.