The CodeBuild ListCuratedEnvironmentImages
API method generates an array of EnvironmentPlatform
objects. These objects have a platform
property, with an incorrect list of Valid Values:
- Expected:
DEBIAN | AMAZON_LINUX | UBUNTU | WINDOWS_SERVER
- Actual:
AMAZON_LINUX | AMAZON_LINUX_2 | UBUNTU | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022
$ aws codebuild list-curated-environment-images | jq '.platforms | map(.platform) | join(" | ")'
"AMAZON_LINUX | AMAZON_LINUX_2 | UBUNTU | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022"
This incorrect definition also causes invalid enumerations and typings for the AWS JS SDK v3 (see generated type):
Type '"AMAZON_LINUX_2"' is not comparable to type 'PlatformType | undefined'.ts(2678)
I have also submitted a feedback form for the corresponding documentation page