Show / Hide Table of Contents

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  | ✓          |            | ✓           |             |
Inheritance
object
ResourceHookArgs
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 ResourceHookArgs

Constructors

View Source

ResourceHookArgs(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 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 logical 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

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>
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 resource type token 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.