2019-12-18 06:04:36 +01:00
|
|
|
import * as pulumi from "@pulumi/pulumi";
|
2019-12-24 02:32:48 +01:00
|
|
|
import * as mycomponent from "./proxy";
|
2019-12-18 06:04:36 +01:00
|
|
|
|
2019-12-24 02:32:48 +01:00
|
|
|
// This is code the user would write to use `mycomponent` from the guest language.
|
2019-12-18 06:04:36 +01:00
|
|
|
|
2019-12-24 02:32:48 +01:00
|
|
|
const res = new mycomponent.MyComponent("n", {
|
2019-12-20 22:58:23 +01:00
|
|
|
input1: Promise.resolve(24),
|
2019-12-18 06:04:36 +01:00
|
|
|
});
|
|
|
|
|
2019-12-22 20:25:17 +01:00
|
|
|
export const id2 = res.myid;
|
|
|
|
export const output1 = res.output1;
|
2019-12-24 02:27:50 +01:00
|
|
|
export const customResource = res.customResource; // TODO: This comes back as the `id` - not a live resource object.
|
|
|
|
export const innerComponent = res.innerComponent.data;
|