pulumi / pulumi/pulumi-java

[api/suggestion] builders for CustomResourceArgs in sdk

Open
#410 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api/suggestion area/languages kind/enhancement
Dominant language
Java
Stars
85
Forks
26
Avg merge
11h 49m
Merged PRs (30d)
22

Description

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

I found that StackReferenceArgs was missing a builder. I'd like to make sure there is consistency between the pulumi SDK and provider SDKs such that if there always a builder option no matter how trivial.

A firm solution for this would be making ResourceArgs an abstract base class and requiring a builder and then we would get compilation errors if a class was missing a Builder.

https://github.com/pulumi/pulumi-jvm/blob/c5c9e93897ec3fb799c9a3a7fe8bfb93669a4996/sdk/jvm/pulumi/src/main/java/io/pulumi/resources/ResourceArgs.java#L1-L18

Affected area/feature

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with sdk/jvm/pulumi/src/main/java/io/pulumi/resources/ResourceArgs.java and compare the builder situation for StackReferenceArgs and CustomResourceArgs. Clarify whether every ResourceArgs subtype should require a builder, then define the affected classes and tests needed to demonstrate consistent builder availability.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.