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>
Inherited Members
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 |
---|---|---|
ImmutableDictionary<string, object> | dictionary | The input dictionary. It may only contain objects that are serializable by Pulumi. |