The CodeBuild ListCuratedEnvironmentImages API method generates an array of EnvironmentPlatform objects. These objects have a platform property, with an incorrect list of Valid Values:
ListCuratedEnvironmentImages
EnvironmentPlatform
platform
DEBIAN | AMAZON_LINUX | UBUNTU | WINDOWS_SERVER
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
You are not logged in. Log in to post an answer.
A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.