Show / Hide Table of Contents

Class ErrorHookArgs

ErrorHookArgs represents the arguments passed to an error hook. Depending on the failed operation, only some of the new/old inputs/outputs are set.

| Failed Operation | old_inputs | new_inputs | old_outputs |
| ---------------- | ---------- | ---------- | ----------- |
| create           |            | ✓          |             |
| update           | ✓          | ✓          | ✓           |
| delete           | ✓          |            | ✓           |
Inheritance
object
ErrorHookArgs
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 ErrorHookArgs

Constructors

View Source

ErrorHookArgs(string, string, string, string, ImmutableDictionary<string, object?>?, ImmutableDictionary<string, object?>?, ImmutableDictionary<string, object?>?, string, IReadOnlyList<string>?)

Declaration
public ErrorHookArgs(string urn, string id, string name, string type, ImmutableDictionary<string, object?>? newInputs = null, ImmutableDictionary<string, object?>? oldInputs = null, ImmutableDictionary<string, object?>? oldOutputs = null, string failedOperation = "", IReadOnlyList<string>? errors = null)
Parameters
Type Name Description
string urn
string id
string name
string type
ImmutableDictionary<string, object> newInputs
ImmutableDictionary<string, object> oldInputs
ImmutableDictionary<string, object> oldOutputs
string failedOperation
IReadOnlyList<string> errors

Properties

View Source

Errors

The errors that have been seen so far (newest first).

Declaration
public IReadOnlyList<string> Errors { get; }
Property Value
Type Description
IReadOnlyList<string>
View Source

FailedOperation

The operation that failed (create, update, or delete).

Declaration
public string FailedOperation { get; }
Property Value
Type Description
string
View Source

Id

The ID of the resource that triggered the hook.

Declaration
public string Id { get; }
Property Value
Type Description
string
View Source

Name

The name of the resource that triggered the hook.

Declaration
public string Name { get; }
Property Value
Type Description
string
View Source

NewInputs

The new inputs of the resource that triggered the hook.

Declaration
public ImmutableDictionary<string, object?>? NewInputs { get; }
Property Value
Type Description
ImmutableDictionary<string, object>
View Source

OldInputs

The old inputs of the resource that triggered the hook.

Declaration
public ImmutableDictionary<string, object?>? OldInputs { get; }
Property Value
Type Description
ImmutableDictionary<string, object>
View Source

OldOutputs

The old outputs of the resource that triggered the hook.

Declaration
public ImmutableDictionary<string, object?>? OldOutputs { get; }
Property Value
Type Description
ImmutableDictionary<string, object>
View Source

Type

The type of the resource that triggered the hook.

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

Urn

The URN of the resource that triggered the hook.

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