pulumi / pulumi-go-provider

A framework for building Go Providers for Pulumi
Apache License 2.0
33 stars 10 forks source link

Reconsider the design of `infer.Annotator.SetResourceDeprecationMessage` #248

Open iwahbe opened 4 months ago

iwahbe commented 4 months ago

Hello!

Issue details

infer.Annotator.SetResourceDeprecationMessage does not fit in with the rest of the API provided by infer.Annotator. To set descriptions (similar to deprecation messages), infer.Annotator has a Describe(subject, message) method.

I would recommend that we change SetResourceDeprecationMessage to Depreciate(subject any, message string) before we 1.0 pulumi-go-provider.

Affected area/feature