Interface ResourceTransformation


  • public interface ResourceTransformation
    The callback signature for the transformations resource option.
    See Also:
    apply(Args)
    • Method Detail

      • apply

        java.util.Optional<ResourceTransformation.Result> apply​(ResourceTransformation.Args args)
        ResourceTransformation#apply is the callback signature for ResourceOptions.getResourceTransformations(). A transformation is passed the same set of inputs provided to the Resource constructor, 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 the Resource constructor.
        Returns:
        The new values to use for the "args" and "options" of the Resource in place of the originally provided values. Returns Optional.empty() if the resource will not be transformed.