Package com.pulumi.core.annotations
Annotation Type CustomType.Constructor
-
@Retention(RUNTIME) @Target(CONSTRUCTOR) public static @interface CustomType.Constructor
Annotation used by a Pulumi Cloud Provider Package to marks the constructor for a complex property type so that it can be instantiated by the Pulumi runtime.WARNING: nested classes will have a reference to the parent class as the as the first parameter of the constructor (
arg0
) and this type also needs to be deserializable or the class needs to be made static. This is unlikely scenario, but theoretically possible. The invisible fist argument needs also to be named in the annotation value.The constructor should take parameters annotated with
CustomType.Parameter
that map to the resultant @seeStruct
returned by the engine.