Skip to content

Conversation

@krokoko
Copy link
Collaborator

@krokoko krokoko commented Nov 4, 2025

Fixes #

Fixed the Go binding issues in the Kendra module and upgrade deps. The main problem was a namespace conflict. The Kendra namespace conflicted with the kendra module name when generating Go bindings, causing Edition, UserContextPolicy, and IndexFieldTypes to be undefined.

  • Exported enums at the module level with prefixed names:
    • KendraEdition (instead of Kendra.Edition)
    • KendraIndexFieldTypes (instead of Kendra.IndexFieldTypes)
    • KendraUserContextPolicy (instead of Kendra.UserContextPolicy)
  • Kept backward compatibility: the Kendra namespace remains with deprecated enums that reference the same values, so existing TypeScript code continues to work.
  • Updated all references in KendraGenAiIndex to use the new enum names directly.
  • JSDoc format; the dash after @default was causing a syntax error in the generated Go code.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

@krokoko krokoko requested a review from a team as a code owner November 4, 2025 16:29
@krokoko krokoko changed the title chore(kendra): go binding issue chore(kendra): go binding issue and deps upgrade Nov 4, 2025
@krokoko krokoko marked this pull request as draft November 4, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants