pulumi/tests/testdata/codegen/synthetic-resource-properti.../nodejs/synthetic-resource-properti...

9 lines
351 B
TypeScript

import * as pulumi from "@pulumi/pulumi";
import * as synthetic from "@pulumi/synthetic";
const rt = new synthetic.resourceproperties.Root("rt", {});
export const trivial = rt;
export const simple = rt.res1;
export const foo = rt.res1.apply(res1 => res1.obj1?.res2?.obj2);
export const complex = rt.res1.apply(res1 => res1.obj1?.res2?.obj2?.answer);