Invalid Platform values for ListCuratedEnvironmentImages output

0

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

nmussy
질문됨 2달 전102회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠