Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Register*Resource #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Oct 19, 2022

This PR provides a type-safe wrapper around pulumi.Context.RegisterRemoteCustomResource and pulumi.Context.RegisterResource.

The wrappers are convenient, in that it allow users to call these functions without dealing with untyped property bags.

The wrappers are also necessary, since constructors do not know the type tokens of other resources defined in the same package in advance. To allow provider composability, a well behaving provider will not hard code tokens, which makes this necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant