Class ResourceHookArgs
ResourceHookArgs represents the arguments passed to a resource hook. Depending on the hook type, only some of the new/old inputs/outputs are set.
| Hook Type | old_inputs | new_inputs | old_outputs | new_outputs |
| ------------- | ---------- | ---------- | ----------- | ----------- |
| before_create | | ✓ | | |
| after_create | | ✓ | | ✓ |
| before_update | ✓ | ✓ | ✓ | |
| after_update | ✓ | ✓ | ✓ | ✓ |
| before_delete | ✓ | | ✓ | |
| after_delete | ✓ | | ✓ | |
Inherited Members
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public class ResourceHookArgs
Constructors
View SourceResourceHookArgs(string, string, string, string, ImmutableDictionary<string, object?>?, ImmutableDictionary<string, object?>?, ImmutableDictionary<string, object?>?, ImmutableDictionary<string, object?>?)
Creates a new set of ResourceHookArgs.
Declaration
public ResourceHookArgs(string urn, string id, string name, string type, ImmutableDictionary<string, object?>? newInputs = null, ImmutableDictionary<string, object?>? oldInputs = null, ImmutableDictionary<string, object?>? newOutputs = null, ImmutableDictionary<string, object?>? oldOutputs = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | urn | |
| string | id | |
| string | name | |
| string | type | |
| ImmutableDictionary<string, object> | newInputs | |
| ImmutableDictionary<string, object> | oldInputs | |
| ImmutableDictionary<string, object> | newOutputs | |
| ImmutableDictionary<string, object> | oldOutputs |
Properties
View SourceId
The ID of the resource that triggered the hook.
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
The logical 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> |
NewOutputs
The new outputs of the resource that triggered the hook.
Declaration
public ImmutableDictionary<string, object?>? NewOutputs { 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 resource type token 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 |