Show / Hide Table of Contents

Class DictionaryResourceArgs

A special type of ResourceArgs with resource inputs represented as a loosely-typed dictionary of objects. Normally, DictionaryResourceArgs 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
ResourceArgs
DictionaryResourceArgs
Inherited Members
ResourceArgs.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 DictionaryResourceArgs : ResourceArgs

Constructors

View Source

DictionaryResourceArgs(ImmutableDictionary<string, object?>)

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

Declaration
public DictionaryResourceArgs(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.