Class PulumiFn
A Pulumi program as an inline function (in process).
Inherited Members
Namespace: Pulumi.Automation
Assembly: Pulumi.Automation.dll
Syntax
public abstract class PulumiFn
Methods
View SourceCreate(Action)
Creates an inline (in process) pulumi program.
Declaration
public static PulumiFn Create(Action program)
Parameters
Type | Name | Description |
---|---|---|
Action | program | A pulumi program. |
Returns
Type | Description |
---|---|
PulumiFn |
Create(Func<IDictionary<string, object?>>)
Creates an inline (in process) pulumi program.
Declaration
public static PulumiFn Create(Func<IDictionary<string, object?>> program)
Parameters
Type | Name | Description |
---|---|---|
Func<IDictionary<string, object>> | program | A pulumi program that returns an output. |
Returns
Type | Description |
---|---|
PulumiFn |
Create(Func<CancellationToken, Task<IDictionary<string, object?>>>)
Creates an asynchronous inline (in process) pulumi program.
Declaration
public static PulumiFn Create(Func<CancellationToken, Task<IDictionary<string, object?>>> program)
Parameters
Type | Name | Description |
---|---|---|
Func<CancellationToken, Task<IDictionary<string, object>>> | program | An asynchronous pulumi program that takes in a CancellationToken and returns an output. |
Returns
Type | Description |
---|---|
PulumiFn |
Create(Func<CancellationToken, Task>)
Creates an asynchronous inline (in process) pulumi program.
Declaration
public static PulumiFn Create(Func<CancellationToken, Task> program)
Parameters
Type | Name | Description |
---|---|---|
Func<CancellationToken, Task> | program | An asynchronous pulumi program that takes in a CancellationToken. |
Returns
Type | Description |
---|---|
PulumiFn |
Create(Func<Task<IDictionary<string, object?>>>)
Creates an asynchronous inline (in process) pulumi program.
Declaration
public static PulumiFn Create(Func<Task<IDictionary<string, object?>>> program)
Parameters
Type | Name | Description |
---|---|---|
Func<Task<IDictionary<string, object>>> | program | An asynchronous pulumi program that returns an output. |
Returns
Type | Description |
---|---|
PulumiFn |
Create(Func<Task>)
Creates an asynchronous inline (in process) pulumi program.
Declaration
public static PulumiFn Create(Func<Task> program)
Parameters
Type | Name | Description |
---|---|---|
Func<Task> | program | An asynchronous pulumi program. |
Returns
Type | Description |
---|---|
PulumiFn |
Create(IServiceProvider, Type)
Creates an inline (in process) pulumi program via a traditional Stack implementation.
When invoked, a new stack instance will be resolved based on the providedstackType
type parameter
using the serviceProvider
.
Declaration
public static PulumiFn Create(IServiceProvider serviceProvider, Type stackType)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | serviceProvider | The service provider that will be used to resolve an instance of type |
Type | stackType | The stack type, which must derive from Stack. |
Returns
Type | Description |
---|---|
PulumiFn |
Create<TStack>()
Creates an inline (in process) pulumi program via a traditional Stack implementation.
Declaration
public static PulumiFn Create<TStack>() where TStack : Stack, new()
Returns
Type | Description |
---|---|
PulumiFn |
Type Parameters
Name | Description |
---|---|
TStack | The Stack type. |
Create<TStack>(IServiceProvider)
Creates an inline (in process) pulumi program via a traditional Stack implementation.
When invoked, a new stack instance will be resolved based on the providedTStack
type parameter
using the serviceProvider
.
Declaration
public static PulumiFn Create<TStack>(IServiceProvider serviceProvider) where TStack : Stack
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | serviceProvider | The service provider that will be used to resolve an instance of |
Returns
Type | Description |
---|---|
PulumiFn |
Type Parameters
Name | Description |
---|---|
TStack | The Stack type. |