Class DiscriminatedUnionDiscriminatorAttribute
Attribute used to mark an interface that represents a discriminated union of complex
output property types. The interface must also carry one
DiscriminatedUnionCaseAttribute per union member. When deserializing, the
Pulumi runtime reads the discriminator property named by PropertyName from
the raw value and instantiates the member whose tag matches.
Inheritance
DiscriminatedUnionDiscriminatorAttribute
Assembly: Pulumi.dll
Syntax
[AttributeUsage(AttributeTargets.Interface)]
public sealed class DiscriminatedUnionDiscriminatorAttribute : Attribute
Constructors
View Source
DiscriminatedUnionDiscriminatorAttribute(string)
Declaration
public DiscriminatedUnionDiscriminatorAttribute(string propertyName)
Parameters
| Type |
Name |
Description |
| string |
propertyName |
|
Properties
View Source
PropertyName
Declaration
public string PropertyName { get; }
Property Value