Skip to content

Commit

Permalink
chore: revert support for awsQueryError trait (#3193)
Browse files Browse the repository at this point in the history
This reverts commit 351bd3a.
  • Loading branch information
trivikr authored Jan 14, 2022
1 parent 9152e21 commit d3000f8
Show file tree
Hide file tree
Showing 27 changed files with 2,947 additions and 2,970 deletions.
190 changes: 95 additions & 95 deletions clients/client-auto-scaling/src/protocols/Aws_query.ts

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions clients/client-cloudformation/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ const deserializeAws_queryDeleteChangeSetCommandError = async (
let errorCode = "UnknownError";
errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "InvalidChangeSetStatus":
case "InvalidChangeSetStatusException":
case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
response = {
...(await deserializeAws_queryInvalidChangeSetStatusExceptionResponse(parsedOutput, context)),
Expand Down Expand Up @@ -2410,7 +2410,7 @@ const deserializeAws_queryDescribeChangeSetCommandError = async (
let errorCode = "UnknownError";
errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "ChangeSetNotFound":
case "ChangeSetNotFoundException":
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
response = {
...(await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context)),
Expand Down Expand Up @@ -3299,7 +3299,7 @@ const deserializeAws_queryExecuteChangeSetCommandError = async (
let errorCode = "UnknownError";
errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "ChangeSetNotFound":
case "ChangeSetNotFoundException":
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
response = {
...(await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context)),
Expand All @@ -3315,7 +3315,7 @@ const deserializeAws_queryExecuteChangeSetCommandError = async (
$metadata: deserializeMetadata(output),
};
break;
case "InvalidChangeSetStatus":
case "InvalidChangeSetStatusException":
case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
response = {
...(await deserializeAws_queryInvalidChangeSetStatusExceptionResponse(parsedOutput, context)),
Expand Down Expand Up @@ -3423,7 +3423,7 @@ const deserializeAws_queryGetTemplateCommandError = async (
let errorCode = "UnknownError";
errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "ChangeSetNotFound":
case "ChangeSetNotFoundException":
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
response = {
...(await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context)),
Expand Down Expand Up @@ -4303,18 +4303,18 @@ const deserializeAws_queryRecordHandlerProgressCommandError = async (
let errorCode = "UnknownError";
errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "ConditionalCheckFailed":
case "com.amazonaws.cloudformation#OperationStatusCheckFailedException":
case "InvalidStateTransitionException":
case "com.amazonaws.cloudformation#InvalidStateTransitionException":
response = {
...(await deserializeAws_queryOperationStatusCheckFailedExceptionResponse(parsedOutput, context)),
...(await deserializeAws_queryInvalidStateTransitionExceptionResponse(parsedOutput, context)),
name: errorCode,
$metadata: deserializeMetadata(output),
};
break;
case "InvalidStateTransition":
case "com.amazonaws.cloudformation#InvalidStateTransitionException":
case "OperationStatusCheckFailedException":
case "com.amazonaws.cloudformation#OperationStatusCheckFailedException":
response = {
...(await deserializeAws_queryInvalidStateTransitionExceptionResponse(parsedOutput, context)),
...(await deserializeAws_queryOperationStatusCheckFailedExceptionResponse(parsedOutput, context)),
name: errorCode,
$metadata: deserializeMetadata(output),
};
Expand Down
12 changes: 6 additions & 6 deletions clients/client-cloudfront/src/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4679,18 +4679,18 @@ const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (
$metadata: deserializeMetadata(output),
};
break;
case "InvalidTTLOrder":
case "com.amazonaws.cloudfront#InvalidTTLOrder":
case "InvalidTagging":
case "com.amazonaws.cloudfront#InvalidTagging":
response = {
...(await deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context)),
...(await deserializeAws_restXmlInvalidTaggingResponse(parsedOutput, context)),
name: errorCode,
$metadata: deserializeMetadata(output),
};
break;
case "InvalidTagging":
case "com.amazonaws.cloudfront#InvalidTagging":
case "InvalidTTLOrder":
case "com.amazonaws.cloudfront#InvalidTTLOrder":
response = {
...(await deserializeAws_restXmlInvalidTaggingResponse(parsedOutput, context)),
...(await deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context)),
name: errorCode,
$metadata: deserializeMetadata(output),
};
Expand Down
Loading

0 comments on commit d3000f8

Please sign in to comment.