sparse-intern-71089
11/16/2021, 4:15 PMmicroscopic-florist-22719
endpoint bit isn’t particularly satisfying.microscopic-florist-22719
pulumi.Resource superclass needs to see all potential properties in the props bag, not just input properties. If the names of the output properties are not present in that bag, the Resource machinery can’t determine which output properties to expect.microscopic-florist-22719
microscopic-florist-22719
class Cluster extends pulumi.dynamic.Resource {
public readonly endpoint!: pulumi.Output<string>;
constructor(
name: string,
props: IClusterInputs,
opts?: pulumi.CustomResourceOptions,
) {
super(new ClusterProvider(), name, { endpoint: undefined, ...props }, opts);
}
}microscopic-florist-22719
pulumi.output(cluster.endpoint) changed things is that it turned an undefined value into a resolved (but defined!) pulumi.Output value whose inner value is undefined.microscopic-florist-22719
id is always defined by the SDK.rough-hydrogen-27449
11/16/2021, 5:17 PMendpoint like that in the dynamic resource constructor?microscopic-florist-22719
this (e.g. properties that are present on every object shouldn’t be considered output properties), but my JS/TS expertise may be failing me here (cc @microscopic-pilot-97530).rough-hydrogen-27449
11/16/2021, 9:50 PM