Class ErrorHook
An error hook is a callback that can be registered to run when a resource operation fails. The callback can return true to retry the operation or false to not retry.
Inherited Members
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public class ErrorHook
Constructors
View SourceErrorHook(string, ErrorHookCallback)
Creates a new ErrorHook with the specified name and callback.
Declaration
public ErrorHook(string name, ErrorHookCallback callback)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| ErrorHookCallback | callback |
ErrorHook(string, ErrorHookCallback, Task)
Creates a new ErrorHook with the specified name, callback, and registration task. Used by Pulumi.ResourceHookUtilities.StubErrorHook when reconstructing hooks from proto.
Declaration
protected ErrorHook(string name, ErrorHookCallback callback, Task registered)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| ErrorHookCallback | callback | |
| Task | registered |
Properties
View SourceCallback
The callback to invoke when the error hook is triggered.
Declaration
public ErrorHookCallback Callback { get; }
Property Value
| Type | Description |
|---|---|
| ErrorHookCallback |
Name
The name of the error hook. This must be unique within a program.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |