square-coat-62279
11/10/2021, 10:18 AMprehistoric-activity-61023
11/10/2021, 10:21 AMminiature-king-36473
11/10/2021, 10:21 AMprehistoric-activity-61023
11/10/2021, 10:21 AMenough-mouse-43206
11/10/2021, 12:37 PMsquare-coat-62279
11/10/2021, 1:29 PMminiature-king-36473
11/10/2021, 1:59 PMexport class MyResource extends ComponentResource {
readonly myOutput: Output<string>;
constructor(name: string, args: any, opts?: ResourceOptions) {
super("components:MyResource", name, args, opts);
this.myOutput = "something";
}
}
You can then just reference the properties when you use the Resource
const resource = new MyResource("my_resource",{});
const output = resource.myOutput
square-coat-62279
11/10/2021, 2:13 PMprehistoric-activity-61023
11/10/2021, 2:19 PMminiature-king-36473
11/10/2021, 3:00 PMsquare-coat-62279
11/11/2021, 6:19 AMminiature-king-36473
11/11/2021, 8:59 AMprehistoric-activity-61023
11/12/2021, 7:26 AMsquare-coat-62279
11/12/2021, 8:32 AMprehistoric-activity-61023
11/12/2021, 8:38 AM