Show / Hide Table of Contents

Class DictionaryInvokeArgs

A special type of InvokeArgs with resource inputs represented as a loosely-typed dictionary of objects. Normally, DictionaryInvokeArgs should not be used by resource providers since it's too low-level and provides low safety. Its target scenario are resources with a very dynamic shape of inputs. The input dictionary may only contain objects that are serializable by Pulumi, i.e only the following types (or pulumi.Output of those types) are allowed:

  • Primitive types: string, double, int, bool
  • Asset, Archive, or AssetArchive
  • JsonElement
  • Generic collections of the above: ImmutableArray<T>, ImmutableDictionary<TKey, TValue> with string keys, Union<T0, T1>
Inheritance
object
InputArgs
InvokeArgs
DictionaryInvokeArgs
Inherited Members
InvokeArgs.Empty
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public sealed class DictionaryInvokeArgs : InvokeArgs

Constructors

View Source

DictionaryInvokeArgs(ImmutableDictionary<string, object?>)

Constructs an instance of DictionaryInvokeArgs from a dictionary of input objects.

Declaration
public DictionaryInvokeArgs(ImmutableDictionary<string, object?> dictionary)
Parameters
Type Name Description
ImmutableDictionary<string, object> dictionary

The input dictionary. It may only contain objects that are serializable by Pulumi.

  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.