Skip to content

Conversation

@justinmk3
Copy link
Contributor

Problem

cw service model files are out of date. Need new apis.

Solution

  1. get latest service models:
    • client/token/bearer-token-service.json - from: <AWSVectorConsolasRuntimeServiceModel>/aws-sdk-external-2022-11-11/c2j/codewhispererruntime-2022-11-11.json
    • client/sigv4/service.json
      • from: <AWSVectorConsolasRuntimeServiceModel>/aws-sdk-external/c2j/codewhisperer-2024-10-25.json
  2. !!NOTE!! remove line "signatureVersion": "bearer", from bearer-token-service.json
  3. restore the script that was mysteriously reverted in Revert Service client generator script #161 without any documented alternative...
  4. run ./node_modules/.bin/ts-node server/aws-lsp-codewhisperer/script/genclient.ts

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

1. get latest service models:
    - `client/token/bearer-token-service.json`
        - from: `<AWSVectorConsolasRuntimeServiceModel>/aws-sdk-external-2022-11-11/c2j/codewhispererruntime-2022-11-11.json`
    - `client/sigv4/service.json`
        - from: `<AWSVectorConsolasRuntimeServiceModel>/aws-sdk-external/c2j/codewhisperer-2024-10-25.json`
2. !!NOTE!! remove line `"signatureVersion": "bearer",` from `bearer-token-service.json`
3. restore the script that was mysteriously reverted in
   aws#161 without any
   documented alternative...
4. run `./node_modules/.bin/ts-node server/aws-lsp-codewhisperer/script/genclient.ts`
@justinmk3 justinmk3 requested a review from a team as a code owner May 9, 2025 23:59
@justinmk3 justinmk3 marked this pull request as draft May 13, 2025 14:20
@justinmk3
Copy link
Contributor Author

Included in #1197

@justinmk3 justinmk3 closed this Jun 9, 2025
@justinmk3 justinmk3 deleted the updateservicemodel branch June 9, 2025 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants