fix: update validation for image builder workflow type #39810
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The documentation of the resource
ami_imagebuilder_workflow
mentions for the argumenttype
Image Builder handles the workflow type DISTRIBUTION, it cannot be configured by users.
When trying to do so, for example using the code snippet provided as part of #39785
the API returns the error
The value supplied for parameter 'type' is not valid. Custom distribution workflows are not supported.
This pull request is to update the documentation for the resource as well as the validation for the argument.
Two points from my side:
ValidateDiagFunc
toValidateFunc
, typically it should be the other, right? Feedback is appreciated.type
, but adding one would also not cover the change.Relations
Closes #39785
References
Here I explained the current situation.
Output from Acceptance Testing