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
{{ message }}
Repository navigation
ec2: render CreateLaunchTemplate's warning/ValidationWarning element #693
Noted as the hook point in #671, which decided that CreateLaunchTemplate does not refuse an invalid block device mapping.
CreateLaunchTemplate's response carries a warning member — element name warning, notvalidationWarnings — of type ValidationWarning, holding a list of ValidationError (code plus message). AWS documents it as existing precisely for "parameters or parameter combinations that are not valid", and CreateLaunchTemplate's Errors section lists none for an invalid mapping. Substrate never renders the element, so a template carrying a mapping RunInstances will refuse is accepted silently, and the caller learns of it only at launch.
That an invalid block device mapping lands in warning rather than a 400 is substrate's reading, recorded as such in #671 and in docs/services.md; rendering the element is what makes the reading useful rather than merely stated.
Acceptance criteria
The response renders warning with AWS's exact element and member names, verified against the API reference, and the element is absent when there is nothing to warn about.
CreateLaunchTemplateVersion is covered too if AWS documents the member there.
Activity
feat(ec2): CreateLaunchTemplate reports an invalid mapping through it…