mirror of https://github.com/pulumi/pulumi.git
19 lines
632 B
Python
19 lines
632 B
Python
# Copyright 2016-2024, Pulumi Corporation. All rights reserved.
|
|
|
|
from typing import Optional
|
|
|
|
import pulumi
|
|
|
|
class Component(pulumi.ComponentResource):
|
|
foo: pulumi.Output[str]
|
|
|
|
def __init__(self, name: str, foo: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None):
|
|
props = dict()
|
|
props["foo"] = foo
|
|
super().__init__("testcomponent:index:Component", name, props, opts, True)
|
|
|
|
def get_message(self) -> pulumi.Output[str]:
|
|
__args__ = dict()
|
|
__args__['__self__'] = self
|
|
return pulumi.runtime.call('testcomponent:index:Component/getMessage', __args__, res=self)
|