Show / Hide Table of Contents

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.

Inheritance
object
ErrorHook
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public class ErrorHook

Constructors

View Source

ErrorHook(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
View Source

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 Source

Callback

The callback to invoke when the error hook is triggered.

Declaration
public ErrorHookCallback Callback { get; }
Property Value
Type Description
ErrorHookCallback
View Source

Name

The name of the error hook. This must be unique within a program.

Declaration
public string Name { get; }
Property Value
Type Description
string
  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.