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

Facilitate translating between SDK names and "raw" names #256

Open
mjeffryes opened this issue Jul 30, 2024 · 0 comments
Open

Facilitate translating between SDK names and "raw" names #256

mjeffryes opened this issue Jul 30, 2024 · 0 comments
Labels
kind/enhancement Improvements or new features

Comments

@mjeffryes
Copy link
Member

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Many providers must maintain a map that transforms the "raw" names used by the cloud service resources into sanitized names for the engine/codegen to use in the SDKs. (And the reverse map to translate SDK names back into the names rthat must be sent to the service.) This framework could probably save provider authors some headache by maintaining these maps and performing the translations so that the provider code only has to work with the raw names.

Examples

  • K8s CRDs often contain symbols that are not allowed in names in pulumi schema
  • AWS native transforms acronyms to PascalCase to get better word splitting in the engine

Affected area/feature

@mjeffryes mjeffryes added the kind/enhancement Improvements or new features label Jul 30, 2024
@pulumi-bot pulumi-bot added the needs-triage Needs attention from the triage team label Jul 30, 2024
@mjeffryes mjeffryes removed the needs-triage Needs attention from the triage team label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants