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: System.String, System.Double, System.Int32, System.Boolean
- Asset, Archive, or AssetArchive
- System.Text.Json.JsonElement
- Generic collections of the above: System.Collections.Immutable.ImmutableArray<T>, System.Collections.Immutable.ImmutableDictionary<TKey, TValue> with System.String keys, Union<T0, T1>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public sealed class DictionaryResourceArgs : ResourceArgs
Constructors
View SourceDictionaryResourceArgs(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 |
---|---|---|
System.Collections.Immutable.ImmutableDictionary<System.String, System.Object> | dictionary | The input dictionary. It may only contain objects that are serializable by Pulumi. |