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

How to execute read ? #1

Open
sanjinhub opened this issue Oct 9, 2022 · 3 comments
Open

How to execute read ? #1

sanjinhub opened this issue Oct 9, 2022 · 3 comments

Comments

@sanjinhub
Copy link

image

provider.ManagedResourceType("aws_xray_sampling_rule").Read()

Hello, how is this implemented? Can I provide a demo?

I don't know what parameters to transfer

Thank you !

@apparentlymart
Copy link
Owner

Hi @sanjinhub,

This library is a slowly-evolving side-project where I'm still exploring what API designs will work best.

In the current design you need to provide both a standard Go context and a ManagedResourceReadRequest object representing the read request. The main thing you will need in there is a representation of the existing object whose state you wish to refresh.

Since I've not yet implemented either the plan/apply operations or the import operation, there is currently no way through this library alone to create an object that you could subsequently read. This library won't be very useful for manipulating managed resource objects until I've implemented all of the other steps in the main loop of the resource instance lifecycle. Since this is just a side-project I can't promise to do that at any particular time.

@sanjinhub
Copy link
Author

ManagedResourceReadRequest, I don't know which parameters to wear. Can you provide an example?

@sanjinhub
Copy link
Author

image

I don't know why I reported this error。
Thank you !

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

No branches or pull requests

2 participants