Skip to content

feat(clients): support awsQueryError trait #3998

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

Merged
merged 7 commits into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190 changes: 95 additions & 95 deletions clients/client-auto-scaling/src/protocols/Aws_query.ts

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions clients/client-cloudformation/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,7 @@ const deserializeAws_queryDeleteChangeSetCommandError = async (
};
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "InvalidChangeSetStatusException":
case "InvalidChangeSetStatus":
case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
throw await deserializeAws_queryInvalidChangeSetStatusExceptionResponse(parsedOutput, context);
default:
Expand Down Expand Up @@ -2137,7 +2137,7 @@ const deserializeAws_queryDescribeChangeSetCommandError = async (
};
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "ChangeSetNotFoundException":
case "ChangeSetNotFound":
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
throw await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context);
default:
Expand Down Expand Up @@ -2178,7 +2178,7 @@ const deserializeAws_queryDescribeChangeSetHooksCommandError = async (
};
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "ChangeSetNotFoundException":
case "ChangeSetNotFound":
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
throw await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context);
default:
Expand Down Expand Up @@ -2839,13 +2839,13 @@ const deserializeAws_queryExecuteChangeSetCommandError = async (
};
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "ChangeSetNotFoundException":
case "ChangeSetNotFound":
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
throw await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context);
case "InsufficientCapabilitiesException":
case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
throw await deserializeAws_queryInsufficientCapabilitiesExceptionResponse(parsedOutput, context);
case "InvalidChangeSetStatusException":
case "InvalidChangeSetStatus":
case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
throw await deserializeAws_queryInvalidChangeSetStatusExceptionResponse(parsedOutput, context);
case "TokenAlreadyExistsException":
Expand Down Expand Up @@ -2924,7 +2924,7 @@ const deserializeAws_queryGetTemplateCommandError = async (
};
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "ChangeSetNotFoundException":
case "ChangeSetNotFound":
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
throw await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context);
default:
Expand Down Expand Up @@ -3568,12 +3568,12 @@ const deserializeAws_queryRecordHandlerProgressCommandError = async (
};
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "InvalidStateTransitionException":
case "com.amazonaws.cloudformation#InvalidStateTransitionException":
throw await deserializeAws_queryInvalidStateTransitionExceptionResponse(parsedOutput, context);
case "OperationStatusCheckFailedException":
case "ConditionalCheckFailed":
case "com.amazonaws.cloudformation#OperationStatusCheckFailedException":
throw await deserializeAws_queryOperationStatusCheckFailedExceptionResponse(parsedOutput, context);
case "InvalidStateTransition":
case "com.amazonaws.cloudformation#InvalidStateTransitionException":
throw await deserializeAws_queryInvalidStateTransitionExceptionResponse(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
throwDefaultError({
Expand Down
6 changes: 3 additions & 3 deletions clients/client-cloudfront/src/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3924,12 +3924,12 @@ const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (
case "InvalidResponseCode":
case "com.amazonaws.cloudfront#InvalidResponseCode":
throw await deserializeAws_restXmlInvalidResponseCodeResponse(parsedOutput, context);
case "InvalidTagging":
case "com.amazonaws.cloudfront#InvalidTagging":
throw await deserializeAws_restXmlInvalidTaggingResponse(parsedOutput, context);
case "InvalidTTLOrder":
case "com.amazonaws.cloudfront#InvalidTTLOrder":
throw await deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context);
case "InvalidTagging":
case "com.amazonaws.cloudfront#InvalidTagging":
throw await deserializeAws_restXmlInvalidTaggingResponse(parsedOutput, context);
case "InvalidViewerCertificate":
case "com.amazonaws.cloudfront#InvalidViewerCertificate":
throw await deserializeAws_restXmlInvalidViewerCertificateResponse(parsedOutput, context);
Expand Down
Loading