@aws-sdk/client-support 3.121.0 → 3.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-support
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-support
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -791,29 +791,24 @@ const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, c
791
791
  };
792
792
  const serializeAws_json1_1AddAttachmentsToSetRequest = (input, context) => {
793
793
  return {
794
- ...(input.attachmentSetId !== undefined &&
795
- input.attachmentSetId !== null && { attachmentSetId: input.attachmentSetId }),
796
- ...(input.attachments !== undefined &&
797
- input.attachments !== null && { attachments: serializeAws_json1_1Attachments(input.attachments, context) }),
794
+ ...(input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId }),
795
+ ...(input.attachments != null && { attachments: serializeAws_json1_1Attachments(input.attachments, context) }),
798
796
  };
799
797
  };
800
798
  const serializeAws_json1_1AddCommunicationToCaseRequest = (input, context) => {
801
799
  return {
802
- ...(input.attachmentSetId !== undefined &&
803
- input.attachmentSetId !== null && { attachmentSetId: input.attachmentSetId }),
804
- ...(input.caseId !== undefined && input.caseId !== null && { caseId: input.caseId }),
805
- ...(input.ccEmailAddresses !== undefined &&
806
- input.ccEmailAddresses !== null && {
800
+ ...(input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId }),
801
+ ...(input.caseId != null && { caseId: input.caseId }),
802
+ ...(input.ccEmailAddresses != null && {
807
803
  ccEmailAddresses: serializeAws_json1_1CcEmailAddressList(input.ccEmailAddresses, context),
808
804
  }),
809
- ...(input.communicationBody !== undefined &&
810
- input.communicationBody !== null && { communicationBody: input.communicationBody }),
805
+ ...(input.communicationBody != null && { communicationBody: input.communicationBody }),
811
806
  };
812
807
  };
813
808
  const serializeAws_json1_1Attachment = (input, context) => {
814
809
  return {
815
- ...(input.data !== undefined && input.data !== null && { data: context.base64Encoder(input.data) }),
816
- ...(input.fileName !== undefined && input.fileName !== null && { fileName: input.fileName }),
810
+ ...(input.data != null && { data: context.base64Encoder(input.data) }),
811
+ ...(input.fileName != null && { fileName: input.fileName }),
817
812
  };
818
813
  };
819
814
  const serializeAws_json1_1Attachments = (input, context) => {
@@ -848,97 +843,88 @@ const serializeAws_json1_1CcEmailAddressList = (input, context) => {
848
843
  };
849
844
  const serializeAws_json1_1CreateCaseRequest = (input, context) => {
850
845
  return {
851
- ...(input.attachmentSetId !== undefined &&
852
- input.attachmentSetId !== null && { attachmentSetId: input.attachmentSetId }),
853
- ...(input.categoryCode !== undefined && input.categoryCode !== null && { categoryCode: input.categoryCode }),
854
- ...(input.ccEmailAddresses !== undefined &&
855
- input.ccEmailAddresses !== null && {
846
+ ...(input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId }),
847
+ ...(input.categoryCode != null && { categoryCode: input.categoryCode }),
848
+ ...(input.ccEmailAddresses != null && {
856
849
  ccEmailAddresses: serializeAws_json1_1CcEmailAddressList(input.ccEmailAddresses, context),
857
850
  }),
858
- ...(input.communicationBody !== undefined &&
859
- input.communicationBody !== null && { communicationBody: input.communicationBody }),
860
- ...(input.issueType !== undefined && input.issueType !== null && { issueType: input.issueType }),
861
- ...(input.language !== undefined && input.language !== null && { language: input.language }),
862
- ...(input.serviceCode !== undefined && input.serviceCode !== null && { serviceCode: input.serviceCode }),
863
- ...(input.severityCode !== undefined && input.severityCode !== null && { severityCode: input.severityCode }),
864
- ...(input.subject !== undefined && input.subject !== null && { subject: input.subject }),
851
+ ...(input.communicationBody != null && { communicationBody: input.communicationBody }),
852
+ ...(input.issueType != null && { issueType: input.issueType }),
853
+ ...(input.language != null && { language: input.language }),
854
+ ...(input.serviceCode != null && { serviceCode: input.serviceCode }),
855
+ ...(input.severityCode != null && { severityCode: input.severityCode }),
856
+ ...(input.subject != null && { subject: input.subject }),
865
857
  };
866
858
  };
867
859
  const serializeAws_json1_1DescribeAttachmentRequest = (input, context) => {
868
860
  return {
869
- ...(input.attachmentId !== undefined && input.attachmentId !== null && { attachmentId: input.attachmentId }),
861
+ ...(input.attachmentId != null && { attachmentId: input.attachmentId }),
870
862
  };
871
863
  };
872
864
  const serializeAws_json1_1DescribeCasesRequest = (input, context) => {
873
865
  return {
874
- ...(input.afterTime !== undefined && input.afterTime !== null && { afterTime: input.afterTime }),
875
- ...(input.beforeTime !== undefined && input.beforeTime !== null && { beforeTime: input.beforeTime }),
876
- ...(input.caseIdList !== undefined &&
877
- input.caseIdList !== null && { caseIdList: serializeAws_json1_1CaseIdList(input.caseIdList, context) }),
878
- ...(input.displayId !== undefined && input.displayId !== null && { displayId: input.displayId }),
879
- ...(input.includeCommunications !== undefined &&
880
- input.includeCommunications !== null && { includeCommunications: input.includeCommunications }),
881
- ...(input.includeResolvedCases !== undefined &&
882
- input.includeResolvedCases !== null && { includeResolvedCases: input.includeResolvedCases }),
883
- ...(input.language !== undefined && input.language !== null && { language: input.language }),
884
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
885
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
866
+ ...(input.afterTime != null && { afterTime: input.afterTime }),
867
+ ...(input.beforeTime != null && { beforeTime: input.beforeTime }),
868
+ ...(input.caseIdList != null && { caseIdList: serializeAws_json1_1CaseIdList(input.caseIdList, context) }),
869
+ ...(input.displayId != null && { displayId: input.displayId }),
870
+ ...(input.includeCommunications != null && { includeCommunications: input.includeCommunications }),
871
+ ...(input.includeResolvedCases != null && { includeResolvedCases: input.includeResolvedCases }),
872
+ ...(input.language != null && { language: input.language }),
873
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
874
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
886
875
  };
887
876
  };
888
877
  const serializeAws_json1_1DescribeCommunicationsRequest = (input, context) => {
889
878
  return {
890
- ...(input.afterTime !== undefined && input.afterTime !== null && { afterTime: input.afterTime }),
891
- ...(input.beforeTime !== undefined && input.beforeTime !== null && { beforeTime: input.beforeTime }),
892
- ...(input.caseId !== undefined && input.caseId !== null && { caseId: input.caseId }),
893
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
894
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
879
+ ...(input.afterTime != null && { afterTime: input.afterTime }),
880
+ ...(input.beforeTime != null && { beforeTime: input.beforeTime }),
881
+ ...(input.caseId != null && { caseId: input.caseId }),
882
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
883
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
895
884
  };
896
885
  };
897
886
  const serializeAws_json1_1DescribeServicesRequest = (input, context) => {
898
887
  return {
899
- ...(input.language !== undefined && input.language !== null && { language: input.language }),
900
- ...(input.serviceCodeList !== undefined &&
901
- input.serviceCodeList !== null && {
888
+ ...(input.language != null && { language: input.language }),
889
+ ...(input.serviceCodeList != null && {
902
890
  serviceCodeList: serializeAws_json1_1ServiceCodeList(input.serviceCodeList, context),
903
891
  }),
904
892
  };
905
893
  };
906
894
  const serializeAws_json1_1DescribeSeverityLevelsRequest = (input, context) => {
907
895
  return {
908
- ...(input.language !== undefined && input.language !== null && { language: input.language }),
896
+ ...(input.language != null && { language: input.language }),
909
897
  };
910
898
  };
911
899
  const serializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesRequest = (input, context) => {
912
900
  return {
913
- ...(input.checkIds !== undefined &&
914
- input.checkIds !== null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }),
901
+ ...(input.checkIds != null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }),
915
902
  };
916
903
  };
917
904
  const serializeAws_json1_1DescribeTrustedAdvisorCheckResultRequest = (input, context) => {
918
905
  return {
919
- ...(input.checkId !== undefined && input.checkId !== null && { checkId: input.checkId }),
920
- ...(input.language !== undefined && input.language !== null && { language: input.language }),
906
+ ...(input.checkId != null && { checkId: input.checkId }),
907
+ ...(input.language != null && { language: input.language }),
921
908
  };
922
909
  };
923
910
  const serializeAws_json1_1DescribeTrustedAdvisorChecksRequest = (input, context) => {
924
911
  return {
925
- ...(input.language !== undefined && input.language !== null && { language: input.language }),
912
+ ...(input.language != null && { language: input.language }),
926
913
  };
927
914
  };
928
915
  const serializeAws_json1_1DescribeTrustedAdvisorCheckSummariesRequest = (input, context) => {
929
916
  return {
930
- ...(input.checkIds !== undefined &&
931
- input.checkIds !== null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }),
917
+ ...(input.checkIds != null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }),
932
918
  };
933
919
  };
934
920
  const serializeAws_json1_1RefreshTrustedAdvisorCheckRequest = (input, context) => {
935
921
  return {
936
- ...(input.checkId !== undefined && input.checkId !== null && { checkId: input.checkId }),
922
+ ...(input.checkId != null && { checkId: input.checkId }),
937
923
  };
938
924
  };
939
925
  const serializeAws_json1_1ResolveCaseRequest = (input, context) => {
940
926
  return {
941
- ...(input.caseId !== undefined && input.caseId !== null && { caseId: input.caseId }),
927
+ ...(input.caseId != null && { caseId: input.caseId }),
942
928
  };
943
929
  };
944
930
  const serializeAws_json1_1ServiceCodeList = (input, context) => {
@@ -974,7 +960,7 @@ const deserializeAws_json1_1AddCommunicationToCaseResponse = (output, context) =
974
960
  };
975
961
  const deserializeAws_json1_1Attachment = (output, context) => {
976
962
  return {
977
- data: output.data !== undefined && output.data !== null ? context.base64Decoder(output.data) : undefined,
963
+ data: output.data != null ? context.base64Decoder(output.data) : undefined,
978
964
  fileName: (0, smithy_client_1.expectString)(output.fileName),
979
965
  };
980
966
  };
@@ -1029,12 +1015,12 @@ const deserializeAws_json1_1CaseDetails = (output, context) => {
1029
1015
  return {
1030
1016
  caseId: (0, smithy_client_1.expectString)(output.caseId),
1031
1017
  categoryCode: (0, smithy_client_1.expectString)(output.categoryCode),
1032
- ccEmailAddresses: output.ccEmailAddresses !== undefined && output.ccEmailAddresses !== null
1018
+ ccEmailAddresses: output.ccEmailAddresses != null
1033
1019
  ? deserializeAws_json1_1CcEmailAddressList(output.ccEmailAddresses, context)
1034
1020
  : undefined,
1035
1021
  displayId: (0, smithy_client_1.expectString)(output.displayId),
1036
1022
  language: (0, smithy_client_1.expectString)(output.language),
1037
- recentCommunications: output.recentCommunications !== undefined && output.recentCommunications !== null
1023
+ recentCommunications: output.recentCommunications != null
1038
1024
  ? deserializeAws_json1_1RecentCaseCommunications(output.recentCommunications, context)
1039
1025
  : undefined,
1040
1026
  serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
@@ -1091,9 +1077,7 @@ const deserializeAws_json1_1CcEmailAddressList = (output, context) => {
1091
1077
  };
1092
1078
  const deserializeAws_json1_1Communication = (output, context) => {
1093
1079
  return {
1094
- attachmentSet: output.attachmentSet !== undefined && output.attachmentSet !== null
1095
- ? deserializeAws_json1_1AttachmentSet(output.attachmentSet, context)
1096
- : undefined,
1080
+ attachmentSet: output.attachmentSet != null ? deserializeAws_json1_1AttachmentSet(output.attachmentSet, context) : undefined,
1097
1081
  body: (0, smithy_client_1.expectString)(output.body),
1098
1082
  caseId: (0, smithy_client_1.expectString)(output.caseId),
1099
1083
  submittedBy: (0, smithy_client_1.expectString)(output.submittedBy),
@@ -1123,22 +1107,18 @@ const deserializeAws_json1_1DescribeAttachmentLimitExceeded = (output, context)
1123
1107
  };
1124
1108
  const deserializeAws_json1_1DescribeAttachmentResponse = (output, context) => {
1125
1109
  return {
1126
- attachment: output.attachment !== undefined && output.attachment !== null
1127
- ? deserializeAws_json1_1Attachment(output.attachment, context)
1128
- : undefined,
1110
+ attachment: output.attachment != null ? deserializeAws_json1_1Attachment(output.attachment, context) : undefined,
1129
1111
  };
1130
1112
  };
1131
1113
  const deserializeAws_json1_1DescribeCasesResponse = (output, context) => {
1132
1114
  return {
1133
- cases: output.cases !== undefined && output.cases !== null
1134
- ? deserializeAws_json1_1CaseList(output.cases, context)
1135
- : undefined,
1115
+ cases: output.cases != null ? deserializeAws_json1_1CaseList(output.cases, context) : undefined,
1136
1116
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1137
1117
  };
1138
1118
  };
1139
1119
  const deserializeAws_json1_1DescribeCommunicationsResponse = (output, context) => {
1140
1120
  return {
1141
- communications: output.communications !== undefined && output.communications !== null
1121
+ communications: output.communications != null
1142
1122
  ? deserializeAws_json1_1CommunicationList(output.communications, context)
1143
1123
  : undefined,
1144
1124
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -1146,42 +1126,36 @@ const deserializeAws_json1_1DescribeCommunicationsResponse = (output, context) =
1146
1126
  };
1147
1127
  const deserializeAws_json1_1DescribeServicesResponse = (output, context) => {
1148
1128
  return {
1149
- services: output.services !== undefined && output.services !== null
1150
- ? deserializeAws_json1_1ServiceList(output.services, context)
1151
- : undefined,
1129
+ services: output.services != null ? deserializeAws_json1_1ServiceList(output.services, context) : undefined,
1152
1130
  };
1153
1131
  };
1154
1132
  const deserializeAws_json1_1DescribeSeverityLevelsResponse = (output, context) => {
1155
1133
  return {
1156
- severityLevels: output.severityLevels !== undefined && output.severityLevels !== null
1134
+ severityLevels: output.severityLevels != null
1157
1135
  ? deserializeAws_json1_1SeverityLevelsList(output.severityLevels, context)
1158
1136
  : undefined,
1159
1137
  };
1160
1138
  };
1161
1139
  const deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesResponse = (output, context) => {
1162
1140
  return {
1163
- statuses: output.statuses !== undefined && output.statuses !== null
1141
+ statuses: output.statuses != null
1164
1142
  ? deserializeAws_json1_1TrustedAdvisorCheckRefreshStatusList(output.statuses, context)
1165
1143
  : undefined,
1166
1144
  };
1167
1145
  };
1168
1146
  const deserializeAws_json1_1DescribeTrustedAdvisorCheckResultResponse = (output, context) => {
1169
1147
  return {
1170
- result: output.result !== undefined && output.result !== null
1171
- ? deserializeAws_json1_1TrustedAdvisorCheckResult(output.result, context)
1172
- : undefined,
1148
+ result: output.result != null ? deserializeAws_json1_1TrustedAdvisorCheckResult(output.result, context) : undefined,
1173
1149
  };
1174
1150
  };
1175
1151
  const deserializeAws_json1_1DescribeTrustedAdvisorChecksResponse = (output, context) => {
1176
1152
  return {
1177
- checks: output.checks !== undefined && output.checks !== null
1178
- ? deserializeAws_json1_1TrustedAdvisorCheckList(output.checks, context)
1179
- : undefined,
1153
+ checks: output.checks != null ? deserializeAws_json1_1TrustedAdvisorCheckList(output.checks, context) : undefined,
1180
1154
  };
1181
1155
  };
1182
1156
  const deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesResponse = (output, context) => {
1183
1157
  return {
1184
- summaries: output.summaries !== undefined && output.summaries !== null
1158
+ summaries: output.summaries != null
1185
1159
  ? deserializeAws_json1_1TrustedAdvisorCheckSummaryList(output.summaries, context)
1186
1160
  : undefined,
1187
1161
  };
@@ -1193,7 +1167,7 @@ const deserializeAws_json1_1InternalServerError = (output, context) => {
1193
1167
  };
1194
1168
  const deserializeAws_json1_1RecentCaseCommunications = (output, context) => {
1195
1169
  return {
1196
- communications: output.communications !== undefined && output.communications !== null
1170
+ communications: output.communications != null
1197
1171
  ? deserializeAws_json1_1CommunicationList(output.communications, context)
1198
1172
  : undefined,
1199
1173
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -1201,7 +1175,7 @@ const deserializeAws_json1_1RecentCaseCommunications = (output, context) => {
1201
1175
  };
1202
1176
  const deserializeAws_json1_1RefreshTrustedAdvisorCheckResponse = (output, context) => {
1203
1177
  return {
1204
- status: output.status !== undefined && output.status !== null
1178
+ status: output.status != null
1205
1179
  ? deserializeAws_json1_1TrustedAdvisorCheckRefreshStatus(output.status, context)
1206
1180
  : undefined,
1207
1181
  };
@@ -1214,9 +1188,7 @@ const deserializeAws_json1_1ResolveCaseResponse = (output, context) => {
1214
1188
  };
1215
1189
  const deserializeAws_json1_1Service = (output, context) => {
1216
1190
  return {
1217
- categories: output.categories !== undefined && output.categories !== null
1218
- ? deserializeAws_json1_1CategoryList(output.categories, context)
1219
- : undefined,
1191
+ categories: output.categories != null ? deserializeAws_json1_1CategoryList(output.categories, context) : undefined,
1220
1192
  code: (0, smithy_client_1.expectString)(output.code),
1221
1193
  name: (0, smithy_client_1.expectString)(output.name),
1222
1194
  };
@@ -1262,7 +1234,7 @@ const deserializeAws_json1_1StringList = (output, context) => {
1262
1234
  };
1263
1235
  const deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary = (output, context) => {
1264
1236
  return {
1265
- costOptimizing: output.costOptimizing !== undefined && output.costOptimizing !== null
1237
+ costOptimizing: output.costOptimizing != null
1266
1238
  ? deserializeAws_json1_1TrustedAdvisorCostOptimizingSummary(output.costOptimizing, context)
1267
1239
  : undefined,
1268
1240
  };
@@ -1272,9 +1244,7 @@ const deserializeAws_json1_1TrustedAdvisorCheckDescription = (output, context) =
1272
1244
  category: (0, smithy_client_1.expectString)(output.category),
1273
1245
  description: (0, smithy_client_1.expectString)(output.description),
1274
1246
  id: (0, smithy_client_1.expectString)(output.id),
1275
- metadata: output.metadata !== undefined && output.metadata !== null
1276
- ? deserializeAws_json1_1StringList(output.metadata, context)
1277
- : undefined,
1247
+ metadata: output.metadata != null ? deserializeAws_json1_1StringList(output.metadata, context) : undefined,
1278
1248
  name: (0, smithy_client_1.expectString)(output.name),
1279
1249
  };
1280
1250
  };
@@ -1309,14 +1279,14 @@ const deserializeAws_json1_1TrustedAdvisorCheckRefreshStatusList = (output, cont
1309
1279
  };
1310
1280
  const deserializeAws_json1_1TrustedAdvisorCheckResult = (output, context) => {
1311
1281
  return {
1312
- categorySpecificSummary: output.categorySpecificSummary !== undefined && output.categorySpecificSummary !== null
1282
+ categorySpecificSummary: output.categorySpecificSummary != null
1313
1283
  ? deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
1314
1284
  : undefined,
1315
1285
  checkId: (0, smithy_client_1.expectString)(output.checkId),
1316
- flaggedResources: output.flaggedResources !== undefined && output.flaggedResources !== null
1286
+ flaggedResources: output.flaggedResources != null
1317
1287
  ? deserializeAws_json1_1TrustedAdvisorResourceDetailList(output.flaggedResources, context)
1318
1288
  : undefined,
1319
- resourcesSummary: output.resourcesSummary !== undefined && output.resourcesSummary !== null
1289
+ resourcesSummary: output.resourcesSummary != null
1320
1290
  ? deserializeAws_json1_1TrustedAdvisorResourcesSummary(output.resourcesSummary, context)
1321
1291
  : undefined,
1322
1292
  status: (0, smithy_client_1.expectString)(output.status),
@@ -1325,12 +1295,12 @@ const deserializeAws_json1_1TrustedAdvisorCheckResult = (output, context) => {
1325
1295
  };
1326
1296
  const deserializeAws_json1_1TrustedAdvisorCheckSummary = (output, context) => {
1327
1297
  return {
1328
- categorySpecificSummary: output.categorySpecificSummary !== undefined && output.categorySpecificSummary !== null
1298
+ categorySpecificSummary: output.categorySpecificSummary != null
1329
1299
  ? deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
1330
1300
  : undefined,
1331
1301
  checkId: (0, smithy_client_1.expectString)(output.checkId),
1332
1302
  hasFlaggedResources: (0, smithy_client_1.expectBoolean)(output.hasFlaggedResources),
1333
- resourcesSummary: output.resourcesSummary !== undefined && output.resourcesSummary !== null
1303
+ resourcesSummary: output.resourcesSummary != null
1334
1304
  ? deserializeAws_json1_1TrustedAdvisorResourcesSummary(output.resourcesSummary, context)
1335
1305
  : undefined,
1336
1306
  status: (0, smithy_client_1.expectString)(output.status),
@@ -1357,9 +1327,7 @@ const deserializeAws_json1_1TrustedAdvisorCostOptimizingSummary = (output, conte
1357
1327
  const deserializeAws_json1_1TrustedAdvisorResourceDetail = (output, context) => {
1358
1328
  return {
1359
1329
  isSuppressed: (0, smithy_client_1.expectBoolean)(output.isSuppressed),
1360
- metadata: output.metadata !== undefined && output.metadata !== null
1361
- ? deserializeAws_json1_1StringList(output.metadata, context)
1362
- : undefined,
1330
+ metadata: output.metadata != null ? deserializeAws_json1_1StringList(output.metadata, context) : undefined,
1363
1331
  region: (0, smithy_client_1.expectString)(output.region),
1364
1332
  resourceId: (0, smithy_client_1.expectString)(output.resourceId),
1365
1333
  status: (0, smithy_client_1.expectString)(output.status),
@@ -1428,6 +1396,9 @@ const loadRestJsonErrorCode = (output, data) => {
1428
1396
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1429
1397
  const sanitizeErrorCode = (rawValue) => {
1430
1398
  let cleanValue = rawValue;
1399
+ if (typeof cleanValue === "number") {
1400
+ cleanValue = cleanValue.toString();
1401
+ }
1431
1402
  if (cleanValue.indexOf(":") >= 0) {
1432
1403
  cleanValue = cleanValue.split(":")[0];
1433
1404
  }
@@ -1013,20 +1013,15 @@ var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput,
1013
1013
  });
1014
1014
  }); };
1015
1015
  var serializeAws_json1_1AddAttachmentsToSetRequest = function (input, context) {
1016
- return __assign(__assign({}, (input.attachmentSetId !== undefined &&
1017
- input.attachmentSetId !== null && { attachmentSetId: input.attachmentSetId })), (input.attachments !== undefined &&
1018
- input.attachments !== null && { attachments: serializeAws_json1_1Attachments(input.attachments, context) }));
1016
+ return __assign(__assign({}, (input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId })), (input.attachments != null && { attachments: serializeAws_json1_1Attachments(input.attachments, context) }));
1019
1017
  };
1020
1018
  var serializeAws_json1_1AddCommunicationToCaseRequest = function (input, context) {
1021
- return __assign(__assign(__assign(__assign({}, (input.attachmentSetId !== undefined &&
1022
- input.attachmentSetId !== null && { attachmentSetId: input.attachmentSetId })), (input.caseId !== undefined && input.caseId !== null && { caseId: input.caseId })), (input.ccEmailAddresses !== undefined &&
1023
- input.ccEmailAddresses !== null && {
1019
+ return __assign(__assign(__assign(__assign({}, (input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId })), (input.caseId != null && { caseId: input.caseId })), (input.ccEmailAddresses != null && {
1024
1020
  ccEmailAddresses: serializeAws_json1_1CcEmailAddressList(input.ccEmailAddresses, context),
1025
- })), (input.communicationBody !== undefined &&
1026
- input.communicationBody !== null && { communicationBody: input.communicationBody }));
1021
+ })), (input.communicationBody != null && { communicationBody: input.communicationBody }));
1027
1022
  };
1028
1023
  var serializeAws_json1_1Attachment = function (input, context) {
1029
- return __assign(__assign({}, (input.data !== undefined && input.data !== null && { data: context.base64Encoder(input.data) })), (input.fileName !== undefined && input.fileName !== null && { fileName: input.fileName }));
1024
+ return __assign(__assign({}, (input.data != null && { data: context.base64Encoder(input.data) })), (input.fileName != null && { fileName: input.fileName }));
1030
1025
  };
1031
1026
  var serializeAws_json1_1Attachments = function (input, context) {
1032
1027
  return input
@@ -1059,53 +1054,44 @@ var serializeAws_json1_1CcEmailAddressList = function (input, context) {
1059
1054
  });
1060
1055
  };
1061
1056
  var serializeAws_json1_1CreateCaseRequest = function (input, context) {
1062
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.attachmentSetId !== undefined &&
1063
- input.attachmentSetId !== null && { attachmentSetId: input.attachmentSetId })), (input.categoryCode !== undefined && input.categoryCode !== null && { categoryCode: input.categoryCode })), (input.ccEmailAddresses !== undefined &&
1064
- input.ccEmailAddresses !== null && {
1057
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId })), (input.categoryCode != null && { categoryCode: input.categoryCode })), (input.ccEmailAddresses != null && {
1065
1058
  ccEmailAddresses: serializeAws_json1_1CcEmailAddressList(input.ccEmailAddresses, context),
1066
- })), (input.communicationBody !== undefined &&
1067
- input.communicationBody !== null && { communicationBody: input.communicationBody })), (input.issueType !== undefined && input.issueType !== null && { issueType: input.issueType })), (input.language !== undefined && input.language !== null && { language: input.language })), (input.serviceCode !== undefined && input.serviceCode !== null && { serviceCode: input.serviceCode })), (input.severityCode !== undefined && input.severityCode !== null && { severityCode: input.severityCode })), (input.subject !== undefined && input.subject !== null && { subject: input.subject }));
1059
+ })), (input.communicationBody != null && { communicationBody: input.communicationBody })), (input.issueType != null && { issueType: input.issueType })), (input.language != null && { language: input.language })), (input.serviceCode != null && { serviceCode: input.serviceCode })), (input.severityCode != null && { severityCode: input.severityCode })), (input.subject != null && { subject: input.subject }));
1068
1060
  };
1069
1061
  var serializeAws_json1_1DescribeAttachmentRequest = function (input, context) {
1070
- return __assign({}, (input.attachmentId !== undefined && input.attachmentId !== null && { attachmentId: input.attachmentId }));
1062
+ return __assign({}, (input.attachmentId != null && { attachmentId: input.attachmentId }));
1071
1063
  };
1072
1064
  var serializeAws_json1_1DescribeCasesRequest = function (input, context) {
1073
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterTime !== undefined && input.afterTime !== null && { afterTime: input.afterTime })), (input.beforeTime !== undefined && input.beforeTime !== null && { beforeTime: input.beforeTime })), (input.caseIdList !== undefined &&
1074
- input.caseIdList !== null && { caseIdList: serializeAws_json1_1CaseIdList(input.caseIdList, context) })), (input.displayId !== undefined && input.displayId !== null && { displayId: input.displayId })), (input.includeCommunications !== undefined &&
1075
- input.includeCommunications !== null && { includeCommunications: input.includeCommunications })), (input.includeResolvedCases !== undefined &&
1076
- input.includeResolvedCases !== null && { includeResolvedCases: input.includeResolvedCases })), (input.language !== undefined && input.language !== null && { language: input.language })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
1065
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterTime != null && { afterTime: input.afterTime })), (input.beforeTime != null && { beforeTime: input.beforeTime })), (input.caseIdList != null && { caseIdList: serializeAws_json1_1CaseIdList(input.caseIdList, context) })), (input.displayId != null && { displayId: input.displayId })), (input.includeCommunications != null && { includeCommunications: input.includeCommunications })), (input.includeResolvedCases != null && { includeResolvedCases: input.includeResolvedCases })), (input.language != null && { language: input.language })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
1077
1066
  };
1078
1067
  var serializeAws_json1_1DescribeCommunicationsRequest = function (input, context) {
1079
- return __assign(__assign(__assign(__assign(__assign({}, (input.afterTime !== undefined && input.afterTime !== null && { afterTime: input.afterTime })), (input.beforeTime !== undefined && input.beforeTime !== null && { beforeTime: input.beforeTime })), (input.caseId !== undefined && input.caseId !== null && { caseId: input.caseId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
1068
+ return __assign(__assign(__assign(__assign(__assign({}, (input.afterTime != null && { afterTime: input.afterTime })), (input.beforeTime != null && { beforeTime: input.beforeTime })), (input.caseId != null && { caseId: input.caseId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
1080
1069
  };
1081
1070
  var serializeAws_json1_1DescribeServicesRequest = function (input, context) {
1082
- return __assign(__assign({}, (input.language !== undefined && input.language !== null && { language: input.language })), (input.serviceCodeList !== undefined &&
1083
- input.serviceCodeList !== null && {
1071
+ return __assign(__assign({}, (input.language != null && { language: input.language })), (input.serviceCodeList != null && {
1084
1072
  serviceCodeList: serializeAws_json1_1ServiceCodeList(input.serviceCodeList, context),
1085
1073
  }));
1086
1074
  };
1087
1075
  var serializeAws_json1_1DescribeSeverityLevelsRequest = function (input, context) {
1088
- return __assign({}, (input.language !== undefined && input.language !== null && { language: input.language }));
1076
+ return __assign({}, (input.language != null && { language: input.language }));
1089
1077
  };
1090
1078
  var serializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesRequest = function (input, context) {
1091
- return __assign({}, (input.checkIds !== undefined &&
1092
- input.checkIds !== null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }));
1079
+ return __assign({}, (input.checkIds != null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }));
1093
1080
  };
1094
1081
  var serializeAws_json1_1DescribeTrustedAdvisorCheckResultRequest = function (input, context) {
1095
- return __assign(__assign({}, (input.checkId !== undefined && input.checkId !== null && { checkId: input.checkId })), (input.language !== undefined && input.language !== null && { language: input.language }));
1082
+ return __assign(__assign({}, (input.checkId != null && { checkId: input.checkId })), (input.language != null && { language: input.language }));
1096
1083
  };
1097
1084
  var serializeAws_json1_1DescribeTrustedAdvisorChecksRequest = function (input, context) {
1098
- return __assign({}, (input.language !== undefined && input.language !== null && { language: input.language }));
1085
+ return __assign({}, (input.language != null && { language: input.language }));
1099
1086
  };
1100
1087
  var serializeAws_json1_1DescribeTrustedAdvisorCheckSummariesRequest = function (input, context) {
1101
- return __assign({}, (input.checkIds !== undefined &&
1102
- input.checkIds !== null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }));
1088
+ return __assign({}, (input.checkIds != null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }));
1103
1089
  };
1104
1090
  var serializeAws_json1_1RefreshTrustedAdvisorCheckRequest = function (input, context) {
1105
- return __assign({}, (input.checkId !== undefined && input.checkId !== null && { checkId: input.checkId }));
1091
+ return __assign({}, (input.checkId != null && { checkId: input.checkId }));
1106
1092
  };
1107
1093
  var serializeAws_json1_1ResolveCaseRequest = function (input, context) {
1108
- return __assign({}, (input.caseId !== undefined && input.caseId !== null && { caseId: input.caseId }));
1094
+ return __assign({}, (input.caseId != null && { caseId: input.caseId }));
1109
1095
  };
1110
1096
  var serializeAws_json1_1ServiceCodeList = function (input, context) {
1111
1097
  return input
@@ -1140,7 +1126,7 @@ var deserializeAws_json1_1AddCommunicationToCaseResponse = function (output, con
1140
1126
  };
1141
1127
  var deserializeAws_json1_1Attachment = function (output, context) {
1142
1128
  return {
1143
- data: output.data !== undefined && output.data !== null ? context.base64Decoder(output.data) : undefined,
1129
+ data: output.data != null ? context.base64Decoder(output.data) : undefined,
1144
1130
  fileName: __expectString(output.fileName),
1145
1131
  };
1146
1132
  };
@@ -1195,12 +1181,12 @@ var deserializeAws_json1_1CaseDetails = function (output, context) {
1195
1181
  return {
1196
1182
  caseId: __expectString(output.caseId),
1197
1183
  categoryCode: __expectString(output.categoryCode),
1198
- ccEmailAddresses: output.ccEmailAddresses !== undefined && output.ccEmailAddresses !== null
1184
+ ccEmailAddresses: output.ccEmailAddresses != null
1199
1185
  ? deserializeAws_json1_1CcEmailAddressList(output.ccEmailAddresses, context)
1200
1186
  : undefined,
1201
1187
  displayId: __expectString(output.displayId),
1202
1188
  language: __expectString(output.language),
1203
- recentCommunications: output.recentCommunications !== undefined && output.recentCommunications !== null
1189
+ recentCommunications: output.recentCommunications != null
1204
1190
  ? deserializeAws_json1_1RecentCaseCommunications(output.recentCommunications, context)
1205
1191
  : undefined,
1206
1192
  serviceCode: __expectString(output.serviceCode),
@@ -1257,9 +1243,7 @@ var deserializeAws_json1_1CcEmailAddressList = function (output, context) {
1257
1243
  };
1258
1244
  var deserializeAws_json1_1Communication = function (output, context) {
1259
1245
  return {
1260
- attachmentSet: output.attachmentSet !== undefined && output.attachmentSet !== null
1261
- ? deserializeAws_json1_1AttachmentSet(output.attachmentSet, context)
1262
- : undefined,
1246
+ attachmentSet: output.attachmentSet != null ? deserializeAws_json1_1AttachmentSet(output.attachmentSet, context) : undefined,
1263
1247
  body: __expectString(output.body),
1264
1248
  caseId: __expectString(output.caseId),
1265
1249
  submittedBy: __expectString(output.submittedBy),
@@ -1289,22 +1273,18 @@ var deserializeAws_json1_1DescribeAttachmentLimitExceeded = function (output, co
1289
1273
  };
1290
1274
  var deserializeAws_json1_1DescribeAttachmentResponse = function (output, context) {
1291
1275
  return {
1292
- attachment: output.attachment !== undefined && output.attachment !== null
1293
- ? deserializeAws_json1_1Attachment(output.attachment, context)
1294
- : undefined,
1276
+ attachment: output.attachment != null ? deserializeAws_json1_1Attachment(output.attachment, context) : undefined,
1295
1277
  };
1296
1278
  };
1297
1279
  var deserializeAws_json1_1DescribeCasesResponse = function (output, context) {
1298
1280
  return {
1299
- cases: output.cases !== undefined && output.cases !== null
1300
- ? deserializeAws_json1_1CaseList(output.cases, context)
1301
- : undefined,
1281
+ cases: output.cases != null ? deserializeAws_json1_1CaseList(output.cases, context) : undefined,
1302
1282
  nextToken: __expectString(output.nextToken),
1303
1283
  };
1304
1284
  };
1305
1285
  var deserializeAws_json1_1DescribeCommunicationsResponse = function (output, context) {
1306
1286
  return {
1307
- communications: output.communications !== undefined && output.communications !== null
1287
+ communications: output.communications != null
1308
1288
  ? deserializeAws_json1_1CommunicationList(output.communications, context)
1309
1289
  : undefined,
1310
1290
  nextToken: __expectString(output.nextToken),
@@ -1312,42 +1292,36 @@ var deserializeAws_json1_1DescribeCommunicationsResponse = function (output, con
1312
1292
  };
1313
1293
  var deserializeAws_json1_1DescribeServicesResponse = function (output, context) {
1314
1294
  return {
1315
- services: output.services !== undefined && output.services !== null
1316
- ? deserializeAws_json1_1ServiceList(output.services, context)
1317
- : undefined,
1295
+ services: output.services != null ? deserializeAws_json1_1ServiceList(output.services, context) : undefined,
1318
1296
  };
1319
1297
  };
1320
1298
  var deserializeAws_json1_1DescribeSeverityLevelsResponse = function (output, context) {
1321
1299
  return {
1322
- severityLevels: output.severityLevels !== undefined && output.severityLevels !== null
1300
+ severityLevels: output.severityLevels != null
1323
1301
  ? deserializeAws_json1_1SeverityLevelsList(output.severityLevels, context)
1324
1302
  : undefined,
1325
1303
  };
1326
1304
  };
1327
1305
  var deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesResponse = function (output, context) {
1328
1306
  return {
1329
- statuses: output.statuses !== undefined && output.statuses !== null
1307
+ statuses: output.statuses != null
1330
1308
  ? deserializeAws_json1_1TrustedAdvisorCheckRefreshStatusList(output.statuses, context)
1331
1309
  : undefined,
1332
1310
  };
1333
1311
  };
1334
1312
  var deserializeAws_json1_1DescribeTrustedAdvisorCheckResultResponse = function (output, context) {
1335
1313
  return {
1336
- result: output.result !== undefined && output.result !== null
1337
- ? deserializeAws_json1_1TrustedAdvisorCheckResult(output.result, context)
1338
- : undefined,
1314
+ result: output.result != null ? deserializeAws_json1_1TrustedAdvisorCheckResult(output.result, context) : undefined,
1339
1315
  };
1340
1316
  };
1341
1317
  var deserializeAws_json1_1DescribeTrustedAdvisorChecksResponse = function (output, context) {
1342
1318
  return {
1343
- checks: output.checks !== undefined && output.checks !== null
1344
- ? deserializeAws_json1_1TrustedAdvisorCheckList(output.checks, context)
1345
- : undefined,
1319
+ checks: output.checks != null ? deserializeAws_json1_1TrustedAdvisorCheckList(output.checks, context) : undefined,
1346
1320
  };
1347
1321
  };
1348
1322
  var deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesResponse = function (output, context) {
1349
1323
  return {
1350
- summaries: output.summaries !== undefined && output.summaries !== null
1324
+ summaries: output.summaries != null
1351
1325
  ? deserializeAws_json1_1TrustedAdvisorCheckSummaryList(output.summaries, context)
1352
1326
  : undefined,
1353
1327
  };
@@ -1359,7 +1333,7 @@ var deserializeAws_json1_1InternalServerError = function (output, context) {
1359
1333
  };
1360
1334
  var deserializeAws_json1_1RecentCaseCommunications = function (output, context) {
1361
1335
  return {
1362
- communications: output.communications !== undefined && output.communications !== null
1336
+ communications: output.communications != null
1363
1337
  ? deserializeAws_json1_1CommunicationList(output.communications, context)
1364
1338
  : undefined,
1365
1339
  nextToken: __expectString(output.nextToken),
@@ -1367,7 +1341,7 @@ var deserializeAws_json1_1RecentCaseCommunications = function (output, context)
1367
1341
  };
1368
1342
  var deserializeAws_json1_1RefreshTrustedAdvisorCheckResponse = function (output, context) {
1369
1343
  return {
1370
- status: output.status !== undefined && output.status !== null
1344
+ status: output.status != null
1371
1345
  ? deserializeAws_json1_1TrustedAdvisorCheckRefreshStatus(output.status, context)
1372
1346
  : undefined,
1373
1347
  };
@@ -1380,9 +1354,7 @@ var deserializeAws_json1_1ResolveCaseResponse = function (output, context) {
1380
1354
  };
1381
1355
  var deserializeAws_json1_1Service = function (output, context) {
1382
1356
  return {
1383
- categories: output.categories !== undefined && output.categories !== null
1384
- ? deserializeAws_json1_1CategoryList(output.categories, context)
1385
- : undefined,
1357
+ categories: output.categories != null ? deserializeAws_json1_1CategoryList(output.categories, context) : undefined,
1386
1358
  code: __expectString(output.code),
1387
1359
  name: __expectString(output.name),
1388
1360
  };
@@ -1428,7 +1400,7 @@ var deserializeAws_json1_1StringList = function (output, context) {
1428
1400
  };
1429
1401
  var deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary = function (output, context) {
1430
1402
  return {
1431
- costOptimizing: output.costOptimizing !== undefined && output.costOptimizing !== null
1403
+ costOptimizing: output.costOptimizing != null
1432
1404
  ? deserializeAws_json1_1TrustedAdvisorCostOptimizingSummary(output.costOptimizing, context)
1433
1405
  : undefined,
1434
1406
  };
@@ -1438,9 +1410,7 @@ var deserializeAws_json1_1TrustedAdvisorCheckDescription = function (output, con
1438
1410
  category: __expectString(output.category),
1439
1411
  description: __expectString(output.description),
1440
1412
  id: __expectString(output.id),
1441
- metadata: output.metadata !== undefined && output.metadata !== null
1442
- ? deserializeAws_json1_1StringList(output.metadata, context)
1443
- : undefined,
1413
+ metadata: output.metadata != null ? deserializeAws_json1_1StringList(output.metadata, context) : undefined,
1444
1414
  name: __expectString(output.name),
1445
1415
  };
1446
1416
  };
@@ -1475,14 +1445,14 @@ var deserializeAws_json1_1TrustedAdvisorCheckRefreshStatusList = function (outpu
1475
1445
  };
1476
1446
  var deserializeAws_json1_1TrustedAdvisorCheckResult = function (output, context) {
1477
1447
  return {
1478
- categorySpecificSummary: output.categorySpecificSummary !== undefined && output.categorySpecificSummary !== null
1448
+ categorySpecificSummary: output.categorySpecificSummary != null
1479
1449
  ? deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
1480
1450
  : undefined,
1481
1451
  checkId: __expectString(output.checkId),
1482
- flaggedResources: output.flaggedResources !== undefined && output.flaggedResources !== null
1452
+ flaggedResources: output.flaggedResources != null
1483
1453
  ? deserializeAws_json1_1TrustedAdvisorResourceDetailList(output.flaggedResources, context)
1484
1454
  : undefined,
1485
- resourcesSummary: output.resourcesSummary !== undefined && output.resourcesSummary !== null
1455
+ resourcesSummary: output.resourcesSummary != null
1486
1456
  ? deserializeAws_json1_1TrustedAdvisorResourcesSummary(output.resourcesSummary, context)
1487
1457
  : undefined,
1488
1458
  status: __expectString(output.status),
@@ -1491,12 +1461,12 @@ var deserializeAws_json1_1TrustedAdvisorCheckResult = function (output, context)
1491
1461
  };
1492
1462
  var deserializeAws_json1_1TrustedAdvisorCheckSummary = function (output, context) {
1493
1463
  return {
1494
- categorySpecificSummary: output.categorySpecificSummary !== undefined && output.categorySpecificSummary !== null
1464
+ categorySpecificSummary: output.categorySpecificSummary != null
1495
1465
  ? deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
1496
1466
  : undefined,
1497
1467
  checkId: __expectString(output.checkId),
1498
1468
  hasFlaggedResources: __expectBoolean(output.hasFlaggedResources),
1499
- resourcesSummary: output.resourcesSummary !== undefined && output.resourcesSummary !== null
1469
+ resourcesSummary: output.resourcesSummary != null
1500
1470
  ? deserializeAws_json1_1TrustedAdvisorResourcesSummary(output.resourcesSummary, context)
1501
1471
  : undefined,
1502
1472
  status: __expectString(output.status),
@@ -1523,9 +1493,7 @@ var deserializeAws_json1_1TrustedAdvisorCostOptimizingSummary = function (output
1523
1493
  var deserializeAws_json1_1TrustedAdvisorResourceDetail = function (output, context) {
1524
1494
  return {
1525
1495
  isSuppressed: __expectBoolean(output.isSuppressed),
1526
- metadata: output.metadata !== undefined && output.metadata !== null
1527
- ? deserializeAws_json1_1StringList(output.metadata, context)
1528
- : undefined,
1496
+ metadata: output.metadata != null ? deserializeAws_json1_1StringList(output.metadata, context) : undefined,
1529
1497
  region: __expectString(output.region),
1530
1498
  resourceId: __expectString(output.resourceId),
1531
1499
  status: __expectString(output.status),
@@ -1606,6 +1574,9 @@ var loadRestJsonErrorCode = function (output, data) {
1606
1574
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1607
1575
  var sanitizeErrorCode = function (rawValue) {
1608
1576
  var cleanValue = rawValue;
1577
+ if (typeof cleanValue === "number") {
1578
+ cleanValue = cleanValue.toString();
1579
+ }
1609
1580
  if (cleanValue.indexOf(":") >= 0) {
1610
1581
  cleanValue = cleanValue.split(":")[0];
1611
1582
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-support",
3
3
  "description": "AWS SDK for JavaScript Support Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"