bored-activity-40468
05/09/2021, 5:29 PMbored-oyster-3147
05/10/2021, 1:15 PMPulumiFn
class. It is just another way of providing your pulumi program delegate.
You could either:
• PulumiFn.Create<TStack>();
• PulumiFn.Create(delegate);
It is the same functionality as before Automation API where you would either:
• Deployment.RunAsync<TStack>();
• Deployment.RunAsync(delegate);
bored-activity-40468
05/10/2021, 2:28 PMbored-oyster-3147
05/10/2021, 2:34 PMTStack
type than internally Pulumi is just doing that for you. I can link you the code 1 secTStack
and delegate programs, the following code:
var parent = type == Stack._rootPulumiStackTypeName
? null
: (options.Parent ?? Deployment.InternalInstance.Stack);
parent
would be set by Deployment.InternalInstance.Stack
It just ensures that Pulumi.Stack
resource never has a parent