Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWSQuery compatible error code #4221

Merged
merged 21 commits into from
Sep 28, 2022
Merged

AWSQuery compatible error code #4221

merged 21 commits into from
Sep 28, 2022

Conversation

eddy-aws
Copy link
Contributor

  • Reverts previous change Sqs AwsJson migration #4105 that used a different approach
  • Uses the header value to return AWSQuery compatible error code.
Checklist
  • [ x] npm run test passes
  • [ x] changelog is added, npm run add-change

eddy-aws and others added 21 commits April 25, 2022 18:39
When awsQueryCompatible trait is found, it's made available as an API property. When this property is found,
the error code is returned by looking up the mapping. This is a pre-requisite for migrating services from
AWSQuery wire protocol to AWSJson.
* Add awsQueryCompatible trait support to service

When awsQueryCompatible trait is found, it's made available as an API property. When this property is found,
the error code is returned by looking up the mapping. This is a pre-requisite for migrating services from
AWSQuery wire protocol to AWSJson.

* Minor edit

* Add additional tests; review comments

* Minor edits
Co-authored-by: AllanZhengYP <zheallan@amazon.com>
When  header value is found, then error code is populated from the header
If there is no header found, then the default error code is returned.
@eddy-aws eddy-aws requested a review from a team as a code owner September 28, 2022 19:31
@kuhe kuhe merged commit 8dd2749 into aws:master Sep 28, 2022
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