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 | ✓ | | ✓ |
Inherited Members
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public class ErrorHookArgs
Constructors
View SourceErrorHookArgs(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 SourceErrors
The errors that have been seen so far (newest first).
Declaration
public IReadOnlyList<string> Errors { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
FailedOperation
The operation that failed (create, update, or delete).
Declaration
public string FailedOperation { get; }
Property Value
| Type | Description |
|---|---|
| string |
Id
The ID of the resource that triggered the hook.
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
The name of the resource that triggered the hook.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
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> |
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> |
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> |
Type
The type of the resource that triggered the hook.
Declaration
public string Type { get; }
Property Value
| Type | Description |
|---|---|
| string |
Urn
The URN of the resource that triggered the hook.
Declaration
public string Urn { get; }
Property Value
| Type | Description |
|---|---|
| string |