You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(bedrock-alpha): added missing validation when prompt uses default variant (#35366)
### Issue # (if applicable)
Closes #<issue number here>.
### Reason for this change
When using Prompts and PromptVariants in bedrock, you can define the default variant your prompt will use, but if you dont add it to the variants array too, it will fail at deployment time.
### Description of changes
Added a validation that checks the correct conditions at synth time, so you don't waste time and leave a stack with a bad deployment
### Describe any new or updated permissions being added
NA
### Description of how you validated changes
Unit tests. We don't create integ tests for validations (synth time) as they wont add any additional value
### Checklist
- [X] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
0 commit comments