Show / Hide Table of Contents

Delegate ResourceTransform

ResourceTransform is the callback signature for ResourceTransforms. A transform is passed the same set of inputs provided to the Resource constructor, and can optionally return back 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. If the transform returns null, this indicates that the resource will not be transformed.

Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public delegate Task<ResourceTransformResult?> ResourceTransform(ResourceTransformArgs args, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ResourceTransformArgs args ResourceTransform is the callback signature for . A transform is passed the same set of inputs provided to the constructor, and can optionally return back 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 constructor. If the transform returns null, this indicates that the resource will not be transformed.
CancellationToken cancellationToken ResourceTransform is the callback signature for . A transform is passed the same set of inputs provided to the constructor, and can optionally return back 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 constructor. If the transform returns null, this indicates that the resource will not be transformed.
Returns
Type Description
Task<ResourceTransformResult?>

The new values to use for the args and options of the Resource in place of the originally provided values.

  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.