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
- Generic collections of the above: ImmutableArray<T>, ImmutableDictionary<TKey, TValue> with string keys, Union<T0, T1>
public sealed class DictionaryResourceArgs : ResourceArgs
Constructs an instance of DictionaryResourceArgs from a dictionary of input objects.
public DictionaryResourceArgs(ImmutableDictionary<string, object?> dictionary)
The input dictionary. It may only contain objects that are serializable by Pulumi.