pulumi/tests/testdata/codegen/unknown-resource-pp/nodejs/unknown-resource.ts

17 lines
555 B
TypeScript

import * as pulumi from "@pulumi/pulumi";
import * as unknown from "@pulumi/unknown";
const provider = new pulumi.providers.Unknown("provider", {});
const main = new unknown.index.Main("main", {
first: "hello",
second: {
foo: "bar",
},
});
const fromModule: unknown.eks.Example[] = [];
for (const range = {value: 0}; range.value < 10; range.value++) {
fromModule.push(new unknown.eks.Example(`fromModule-${range.value}`, {associatedMain: main.id}));
}
export const mainId = main.id;
export const values = fromModule.values.first;