Package com.pulumi.resources
Interface ResourceTransformation
public interface ResourceTransformation
The callback signature for the
transformations resource option.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe argument bag passed to aResourcetransformation.static classthe result that must be returned by a resource transformation callback. -
Method Summary
Modifier and TypeMethodDescriptionResourceTransformation#apply is the callback signature forResourceOptions.getResourceTransformations().
-
Method Details
-
apply
ResourceTransformation#apply is the callback signature forResourceOptions.getResourceTransformations(). A transformation is passed the same set of inputs provided to theResourceconstructor, and can optionally return alternate values for the "properties" and/or "options" prior to the resource actually being created. The effect will be as though those "properties" and/or "options" were passed in place of the original call to theResourceconstructor.- Returns:
- The new values to use for the "args" and "options" of the
Resourcein place of the originally provided values. ReturnsOptional.empty()if the resource will not be transformed.
-