@aws-sdk/client-health 3.54.1 → 3.55.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.
Files changed (31) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-cjs/HealthClient.js +13 -13
  3. package/dist-cjs/commands/DescribeAffectedAccountsForOrganizationCommand.js +3 -3
  4. package/dist-cjs/commands/DescribeAffectedEntitiesCommand.js +3 -3
  5. package/dist-cjs/commands/DescribeAffectedEntitiesForOrganizationCommand.js +3 -3
  6. package/dist-cjs/commands/DescribeEntityAggregatesCommand.js +3 -3
  7. package/dist-cjs/commands/DescribeEventAggregatesCommand.js +3 -3
  8. package/dist-cjs/commands/DescribeEventDetailsCommand.js +3 -3
  9. package/dist-cjs/commands/DescribeEventDetailsForOrganizationCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeEventTypesCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeEventsCommand.js +3 -3
  12. package/dist-cjs/commands/DescribeEventsForOrganizationCommand.js +3 -3
  13. package/dist-cjs/commands/DescribeHealthServiceStatusForOrganizationCommand.js +3 -3
  14. package/dist-cjs/commands/DisableHealthServiceAccessForOrganizationCommand.js +3 -3
  15. package/dist-cjs/commands/EnableHealthServiceAccessForOrganizationCommand.js +3 -3
  16. package/dist-cjs/endpoints.js +1 -1
  17. package/dist-cjs/protocols/Aws_json1_1.js +79 -79
  18. package/dist-cjs/runtimeConfig.browser.js +4 -4
  19. package/dist-cjs/runtimeConfig.js +9 -9
  20. package/dist-cjs/runtimeConfig.native.js +1 -1
  21. package/dist-es/Health.js +13 -13
  22. package/dist-es/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +4 -4
  23. package/dist-es/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +4 -4
  24. package/dist-es/pagination/DescribeAffectedEntitiesPaginator.js +4 -4
  25. package/dist-es/pagination/DescribeEventAggregatesPaginator.js +4 -4
  26. package/dist-es/pagination/DescribeEventTypesPaginator.js +4 -4
  27. package/dist-es/pagination/DescribeEventsForOrganizationPaginator.js +4 -4
  28. package/dist-es/pagination/DescribeEventsPaginator.js +4 -4
  29. package/dist-types/runtimeConfig.native.d.ts +2 -2
  30. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  31. package/package.json +34 -34
@@ -165,7 +165,7 @@ const deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommandError
165
165
  $fault: "client",
166
166
  $metadata: deserializeMetadata(output),
167
167
  });
168
- throw smithy_client_1.decorateServiceException(response, parsedBody);
168
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
169
169
  }
170
170
  };
171
171
  const deserializeAws_json1_1DescribeAffectedEntitiesCommand = async (output, context) => {
@@ -204,7 +204,7 @@ const deserializeAws_json1_1DescribeAffectedEntitiesCommandError = async (output
204
204
  $fault: "client",
205
205
  $metadata: deserializeMetadata(output),
206
206
  });
207
- throw smithy_client_1.decorateServiceException(response, parsedBody);
207
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
208
208
  }
209
209
  };
210
210
  const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand = async (output, context) => {
@@ -243,7 +243,7 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError
243
243
  $fault: "client",
244
244
  $metadata: deserializeMetadata(output),
245
245
  });
246
- throw smithy_client_1.decorateServiceException(response, parsedBody);
246
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
247
247
  }
248
248
  };
249
249
  const deserializeAws_json1_1DescribeEntityAggregatesCommand = async (output, context) => {
@@ -276,7 +276,7 @@ const deserializeAws_json1_1DescribeEntityAggregatesCommandError = async (output
276
276
  $fault: "client",
277
277
  $metadata: deserializeMetadata(output),
278
278
  });
279
- throw smithy_client_1.decorateServiceException(response, parsedBody);
279
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
280
280
  }
281
281
  };
282
282
  const deserializeAws_json1_1DescribeEventAggregatesCommand = async (output, context) => {
@@ -312,7 +312,7 @@ const deserializeAws_json1_1DescribeEventAggregatesCommandError = async (output,
312
312
  $fault: "client",
313
313
  $metadata: deserializeMetadata(output),
314
314
  });
315
- throw smithy_client_1.decorateServiceException(response, parsedBody);
315
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
316
316
  }
317
317
  };
318
318
  const deserializeAws_json1_1DescribeEventDetailsCommand = async (output, context) => {
@@ -348,7 +348,7 @@ const deserializeAws_json1_1DescribeEventDetailsCommandError = async (output, co
348
348
  $fault: "client",
349
349
  $metadata: deserializeMetadata(output),
350
350
  });
351
- throw smithy_client_1.decorateServiceException(response, parsedBody);
351
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
352
352
  }
353
353
  };
354
354
  const deserializeAws_json1_1DescribeEventDetailsForOrganizationCommand = async (output, context) => {
@@ -384,7 +384,7 @@ const deserializeAws_json1_1DescribeEventDetailsForOrganizationCommandError = as
384
384
  $fault: "client",
385
385
  $metadata: deserializeMetadata(output),
386
386
  });
387
- throw smithy_client_1.decorateServiceException(response, parsedBody);
387
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
388
388
  }
389
389
  };
390
390
  const deserializeAws_json1_1DescribeEventsCommand = async (output, context) => {
@@ -423,7 +423,7 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
423
423
  $fault: "client",
424
424
  $metadata: deserializeMetadata(output),
425
425
  });
426
- throw smithy_client_1.decorateServiceException(response, parsedBody);
426
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
427
427
  }
428
428
  };
429
429
  const deserializeAws_json1_1DescribeEventsForOrganizationCommand = async (output, context) => {
@@ -462,7 +462,7 @@ const deserializeAws_json1_1DescribeEventsForOrganizationCommandError = async (o
462
462
  $fault: "client",
463
463
  $metadata: deserializeMetadata(output),
464
464
  });
465
- throw smithy_client_1.decorateServiceException(response, parsedBody);
465
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
466
466
  }
467
467
  };
468
468
  const deserializeAws_json1_1DescribeEventTypesCommand = async (output, context) => {
@@ -501,7 +501,7 @@ const deserializeAws_json1_1DescribeEventTypesCommandError = async (output, cont
501
501
  $fault: "client",
502
502
  $metadata: deserializeMetadata(output),
503
503
  });
504
- throw smithy_client_1.decorateServiceException(response, parsedBody);
504
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
505
505
  }
506
506
  };
507
507
  const deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand = async (output, context) => {
@@ -534,7 +534,7 @@ const deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommandErr
534
534
  $fault: "client",
535
535
  $metadata: deserializeMetadata(output),
536
536
  });
537
- throw smithy_client_1.decorateServiceException(response, parsedBody);
537
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
538
538
  }
539
539
  };
540
540
  const deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand = async (output, context) => {
@@ -567,7 +567,7 @@ const deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommandErro
567
567
  $fault: "client",
568
568
  $metadata: deserializeMetadata(output),
569
569
  });
570
- throw smithy_client_1.decorateServiceException(response, parsedBody);
570
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
571
571
  }
572
572
  };
573
573
  const deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand = async (output, context) => {
@@ -600,7 +600,7 @@ const deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommandError
600
600
  $fault: "client",
601
601
  $metadata: deserializeMetadata(output),
602
602
  });
603
- throw smithy_client_1.decorateServiceException(response, parsedBody);
603
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
604
604
  }
605
605
  };
606
606
  const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
@@ -610,7 +610,7 @@ const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (par
610
610
  $metadata: deserializeMetadata(parsedOutput),
611
611
  ...deserialized,
612
612
  });
613
- return smithy_client_1.decorateServiceException(exception, body);
613
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
614
614
  };
615
615
  const deserializeAws_json1_1InvalidPaginationTokenResponse = async (parsedOutput, context) => {
616
616
  const body = parsedOutput.body;
@@ -619,7 +619,7 @@ const deserializeAws_json1_1InvalidPaginationTokenResponse = async (parsedOutput
619
619
  $metadata: deserializeMetadata(parsedOutput),
620
620
  ...deserialized,
621
621
  });
622
- return smithy_client_1.decorateServiceException(exception, body);
622
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
623
623
  };
624
624
  const deserializeAws_json1_1UnsupportedLocaleResponse = async (parsedOutput, context) => {
625
625
  const body = parsedOutput.body;
@@ -628,7 +628,7 @@ const deserializeAws_json1_1UnsupportedLocaleResponse = async (parsedOutput, con
628
628
  $metadata: deserializeMetadata(parsedOutput),
629
629
  ...deserialized,
630
630
  });
631
- return smithy_client_1.decorateServiceException(exception, body);
631
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
632
632
  };
633
633
  const serializeAws_json1_1availabilityZones = (input, context) => {
634
634
  return input
@@ -1042,21 +1042,21 @@ const deserializeAws_json1_1affectedAccountsList = (output, context) => {
1042
1042
  if (entry === null) {
1043
1043
  return null;
1044
1044
  }
1045
- return smithy_client_1.expectString(entry);
1045
+ return (0, smithy_client_1.expectString)(entry);
1046
1046
  });
1047
1047
  return retVal;
1048
1048
  };
1049
1049
  const deserializeAws_json1_1AffectedEntity = (output, context) => {
1050
1050
  return {
1051
- awsAccountId: smithy_client_1.expectString(output.awsAccountId),
1052
- entityArn: smithy_client_1.expectString(output.entityArn),
1053
- entityUrl: smithy_client_1.expectString(output.entityUrl),
1054
- entityValue: smithy_client_1.expectString(output.entityValue),
1055
- eventArn: smithy_client_1.expectString(output.eventArn),
1051
+ awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
1052
+ entityArn: (0, smithy_client_1.expectString)(output.entityArn),
1053
+ entityUrl: (0, smithy_client_1.expectString)(output.entityUrl),
1054
+ entityValue: (0, smithy_client_1.expectString)(output.entityValue),
1055
+ eventArn: (0, smithy_client_1.expectString)(output.eventArn),
1056
1056
  lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
1057
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedTime)))
1057
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
1058
1058
  : undefined,
1059
- statusCode: smithy_client_1.expectString(output.statusCode),
1059
+ statusCode: (0, smithy_client_1.expectString)(output.statusCode),
1060
1060
  tags: output.tags !== undefined && output.tags !== null
1061
1061
  ? deserializeAws_json1_1tagSet(output.tags, context)
1062
1062
  : undefined,
@@ -1064,7 +1064,7 @@ const deserializeAws_json1_1AffectedEntity = (output, context) => {
1064
1064
  };
1065
1065
  const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
1066
1066
  return {
1067
- message: smithy_client_1.expectString(output.message),
1067
+ message: (0, smithy_client_1.expectString)(output.message),
1068
1068
  };
1069
1069
  };
1070
1070
  const deserializeAws_json1_1DescribeAffectedAccountsForOrganizationResponse = (output, context) => {
@@ -1072,8 +1072,8 @@ const deserializeAws_json1_1DescribeAffectedAccountsForOrganizationResponse = (o
1072
1072
  affectedAccounts: output.affectedAccounts !== undefined && output.affectedAccounts !== null
1073
1073
  ? deserializeAws_json1_1affectedAccountsList(output.affectedAccounts, context)
1074
1074
  : undefined,
1075
- eventScopeCode: smithy_client_1.expectString(output.eventScopeCode),
1076
- nextToken: smithy_client_1.expectString(output.nextToken),
1075
+ eventScopeCode: (0, smithy_client_1.expectString)(output.eventScopeCode),
1076
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1077
1077
  };
1078
1078
  };
1079
1079
  const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationFailedSet = (output, context) => {
@@ -1095,7 +1095,7 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationResponse = (o
1095
1095
  failedSet: output.failedSet !== undefined && output.failedSet !== null
1096
1096
  ? deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationFailedSet(output.failedSet, context)
1097
1097
  : undefined,
1098
- nextToken: smithy_client_1.expectString(output.nextToken),
1098
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1099
1099
  };
1100
1100
  };
1101
1101
  const deserializeAws_json1_1DescribeAffectedEntitiesResponse = (output, context) => {
@@ -1103,7 +1103,7 @@ const deserializeAws_json1_1DescribeAffectedEntitiesResponse = (output, context)
1103
1103
  entities: output.entities !== undefined && output.entities !== null
1104
1104
  ? deserializeAws_json1_1EntityList(output.entities, context)
1105
1105
  : undefined,
1106
- nextToken: smithy_client_1.expectString(output.nextToken),
1106
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1107
1107
  };
1108
1108
  };
1109
1109
  const deserializeAws_json1_1DescribeEntityAggregatesResponse = (output, context) => {
@@ -1118,7 +1118,7 @@ const deserializeAws_json1_1DescribeEventAggregatesResponse = (output, context)
1118
1118
  eventAggregates: output.eventAggregates !== undefined && output.eventAggregates !== null
1119
1119
  ? deserializeAws_json1_1EventAggregateList(output.eventAggregates, context)
1120
1120
  : undefined,
1121
- nextToken: smithy_client_1.expectString(output.nextToken),
1121
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1122
1122
  };
1123
1123
  };
1124
1124
  const deserializeAws_json1_1DescribeEventDetailsFailedSet = (output, context) => {
@@ -1190,7 +1190,7 @@ const deserializeAws_json1_1DescribeEventsForOrganizationResponse = (output, con
1190
1190
  events: output.events !== undefined && output.events !== null
1191
1191
  ? deserializeAws_json1_1OrganizationEventList(output.events, context)
1192
1192
  : undefined,
1193
- nextToken: smithy_client_1.expectString(output.nextToken),
1193
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1194
1194
  };
1195
1195
  };
1196
1196
  const deserializeAws_json1_1DescribeEventsResponse = (output, context) => {
@@ -1198,7 +1198,7 @@ const deserializeAws_json1_1DescribeEventsResponse = (output, context) => {
1198
1198
  events: output.events !== undefined && output.events !== null
1199
1199
  ? deserializeAws_json1_1EventList(output.events, context)
1200
1200
  : undefined,
1201
- nextToken: smithy_client_1.expectString(output.nextToken),
1201
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1202
1202
  };
1203
1203
  };
1204
1204
  const deserializeAws_json1_1DescribeEventTypesResponse = (output, context) => {
@@ -1206,18 +1206,18 @@ const deserializeAws_json1_1DescribeEventTypesResponse = (output, context) => {
1206
1206
  eventTypes: output.eventTypes !== undefined && output.eventTypes !== null
1207
1207
  ? deserializeAws_json1_1EventTypeList(output.eventTypes, context)
1208
1208
  : undefined,
1209
- nextToken: smithy_client_1.expectString(output.nextToken),
1209
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1210
1210
  };
1211
1211
  };
1212
1212
  const deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationResponse = (output, context) => {
1213
1213
  return {
1214
- healthServiceAccessStatusForOrganization: smithy_client_1.expectString(output.healthServiceAccessStatusForOrganization),
1214
+ healthServiceAccessStatusForOrganization: (0, smithy_client_1.expectString)(output.healthServiceAccessStatusForOrganization),
1215
1215
  };
1216
1216
  };
1217
1217
  const deserializeAws_json1_1EntityAggregate = (output, context) => {
1218
1218
  return {
1219
- count: smithy_client_1.expectInt32(output.count),
1220
- eventArn: smithy_client_1.expectString(output.eventArn),
1219
+ count: (0, smithy_client_1.expectInt32)(output.count),
1220
+ eventArn: (0, smithy_client_1.expectString)(output.eventArn),
1221
1221
  };
1222
1222
  };
1223
1223
  const deserializeAws_json1_1EntityAggregateList = (output, context) => {
@@ -1244,29 +1244,29 @@ const deserializeAws_json1_1EntityList = (output, context) => {
1244
1244
  };
1245
1245
  const deserializeAws_json1_1Event = (output, context) => {
1246
1246
  return {
1247
- arn: smithy_client_1.expectString(output.arn),
1248
- availabilityZone: smithy_client_1.expectString(output.availabilityZone),
1247
+ arn: (0, smithy_client_1.expectString)(output.arn),
1248
+ availabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
1249
1249
  endTime: output.endTime !== undefined && output.endTime !== null
1250
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
1250
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
1251
1251
  : undefined,
1252
- eventScopeCode: smithy_client_1.expectString(output.eventScopeCode),
1253
- eventTypeCategory: smithy_client_1.expectString(output.eventTypeCategory),
1254
- eventTypeCode: smithy_client_1.expectString(output.eventTypeCode),
1252
+ eventScopeCode: (0, smithy_client_1.expectString)(output.eventScopeCode),
1253
+ eventTypeCategory: (0, smithy_client_1.expectString)(output.eventTypeCategory),
1254
+ eventTypeCode: (0, smithy_client_1.expectString)(output.eventTypeCode),
1255
1255
  lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
1256
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedTime)))
1256
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
1257
1257
  : undefined,
1258
- region: smithy_client_1.expectString(output.region),
1259
- service: smithy_client_1.expectString(output.service),
1258
+ region: (0, smithy_client_1.expectString)(output.region),
1259
+ service: (0, smithy_client_1.expectString)(output.service),
1260
1260
  startTime: output.startTime !== undefined && output.startTime !== null
1261
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
1261
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
1262
1262
  : undefined,
1263
- statusCode: smithy_client_1.expectString(output.statusCode),
1263
+ statusCode: (0, smithy_client_1.expectString)(output.statusCode),
1264
1264
  };
1265
1265
  };
1266
1266
  const deserializeAws_json1_1EventAggregate = (output, context) => {
1267
1267
  return {
1268
- aggregateValue: smithy_client_1.expectString(output.aggregateValue),
1269
- count: smithy_client_1.expectInt32(output.count),
1268
+ aggregateValue: (0, smithy_client_1.expectString)(output.aggregateValue),
1269
+ count: (0, smithy_client_1.expectInt32)(output.count),
1270
1270
  };
1271
1271
  };
1272
1272
  const deserializeAws_json1_1EventAggregateList = (output, context) => {
@@ -1282,7 +1282,7 @@ const deserializeAws_json1_1EventAggregateList = (output, context) => {
1282
1282
  };
1283
1283
  const deserializeAws_json1_1EventDescription = (output, context) => {
1284
1284
  return {
1285
- latestDescription: smithy_client_1.expectString(output.latestDescription),
1285
+ latestDescription: (0, smithy_client_1.expectString)(output.latestDescription),
1286
1286
  };
1287
1287
  };
1288
1288
  const deserializeAws_json1_1EventDetails = (output, context) => {
@@ -1300,9 +1300,9 @@ const deserializeAws_json1_1EventDetails = (output, context) => {
1300
1300
  };
1301
1301
  const deserializeAws_json1_1EventDetailsErrorItem = (output, context) => {
1302
1302
  return {
1303
- errorMessage: smithy_client_1.expectString(output.errorMessage),
1304
- errorName: smithy_client_1.expectString(output.errorName),
1305
- eventArn: smithy_client_1.expectString(output.eventArn),
1303
+ errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
1304
+ errorName: (0, smithy_client_1.expectString)(output.errorName),
1305
+ eventArn: (0, smithy_client_1.expectString)(output.eventArn),
1306
1306
  };
1307
1307
  };
1308
1308
  const deserializeAws_json1_1EventList = (output, context) => {
@@ -1323,15 +1323,15 @@ const deserializeAws_json1_1eventMetadata = (output, context) => {
1323
1323
  }
1324
1324
  return {
1325
1325
  ...acc,
1326
- [key]: smithy_client_1.expectString(value),
1326
+ [key]: (0, smithy_client_1.expectString)(value),
1327
1327
  };
1328
1328
  }, {});
1329
1329
  };
1330
1330
  const deserializeAws_json1_1EventType = (output, context) => {
1331
1331
  return {
1332
- category: smithy_client_1.expectString(output.category),
1333
- code: smithy_client_1.expectString(output.code),
1334
- service: smithy_client_1.expectString(output.service),
1332
+ category: (0, smithy_client_1.expectString)(output.category),
1333
+ code: (0, smithy_client_1.expectString)(output.code),
1334
+ service: (0, smithy_client_1.expectString)(output.service),
1335
1335
  };
1336
1336
  };
1337
1337
  const deserializeAws_json1_1EventTypeList = (output, context) => {
@@ -1347,40 +1347,40 @@ const deserializeAws_json1_1EventTypeList = (output, context) => {
1347
1347
  };
1348
1348
  const deserializeAws_json1_1InvalidPaginationToken = (output, context) => {
1349
1349
  return {
1350
- message: smithy_client_1.expectString(output.message),
1350
+ message: (0, smithy_client_1.expectString)(output.message),
1351
1351
  };
1352
1352
  };
1353
1353
  const deserializeAws_json1_1OrganizationAffectedEntitiesErrorItem = (output, context) => {
1354
1354
  return {
1355
- awsAccountId: smithy_client_1.expectString(output.awsAccountId),
1356
- errorMessage: smithy_client_1.expectString(output.errorMessage),
1357
- errorName: smithy_client_1.expectString(output.errorName),
1358
- eventArn: smithy_client_1.expectString(output.eventArn),
1355
+ awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
1356
+ errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
1357
+ errorName: (0, smithy_client_1.expectString)(output.errorName),
1358
+ eventArn: (0, smithy_client_1.expectString)(output.eventArn),
1359
1359
  };
1360
1360
  };
1361
1361
  const deserializeAws_json1_1OrganizationEvent = (output, context) => {
1362
1362
  return {
1363
- arn: smithy_client_1.expectString(output.arn),
1363
+ arn: (0, smithy_client_1.expectString)(output.arn),
1364
1364
  endTime: output.endTime !== undefined && output.endTime !== null
1365
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
1365
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
1366
1366
  : undefined,
1367
- eventScopeCode: smithy_client_1.expectString(output.eventScopeCode),
1368
- eventTypeCategory: smithy_client_1.expectString(output.eventTypeCategory),
1369
- eventTypeCode: smithy_client_1.expectString(output.eventTypeCode),
1367
+ eventScopeCode: (0, smithy_client_1.expectString)(output.eventScopeCode),
1368
+ eventTypeCategory: (0, smithy_client_1.expectString)(output.eventTypeCategory),
1369
+ eventTypeCode: (0, smithy_client_1.expectString)(output.eventTypeCode),
1370
1370
  lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
1371
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedTime)))
1371
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
1372
1372
  : undefined,
1373
- region: smithy_client_1.expectString(output.region),
1374
- service: smithy_client_1.expectString(output.service),
1373
+ region: (0, smithy_client_1.expectString)(output.region),
1374
+ service: (0, smithy_client_1.expectString)(output.service),
1375
1375
  startTime: output.startTime !== undefined && output.startTime !== null
1376
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
1376
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
1377
1377
  : undefined,
1378
- statusCode: smithy_client_1.expectString(output.statusCode),
1378
+ statusCode: (0, smithy_client_1.expectString)(output.statusCode),
1379
1379
  };
1380
1380
  };
1381
1381
  const deserializeAws_json1_1OrganizationEventDetails = (output, context) => {
1382
1382
  return {
1383
- awsAccountId: smithy_client_1.expectString(output.awsAccountId),
1383
+ awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
1384
1384
  event: output.event !== undefined && output.event !== null
1385
1385
  ? deserializeAws_json1_1Event(output.event, context)
1386
1386
  : undefined,
@@ -1394,10 +1394,10 @@ const deserializeAws_json1_1OrganizationEventDetails = (output, context) => {
1394
1394
  };
1395
1395
  const deserializeAws_json1_1OrganizationEventDetailsErrorItem = (output, context) => {
1396
1396
  return {
1397
- awsAccountId: smithy_client_1.expectString(output.awsAccountId),
1398
- errorMessage: smithy_client_1.expectString(output.errorMessage),
1399
- errorName: smithy_client_1.expectString(output.errorName),
1400
- eventArn: smithy_client_1.expectString(output.eventArn),
1397
+ awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
1398
+ errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
1399
+ errorName: (0, smithy_client_1.expectString)(output.errorName),
1400
+ eventArn: (0, smithy_client_1.expectString)(output.eventArn),
1401
1401
  };
1402
1402
  };
1403
1403
  const deserializeAws_json1_1OrganizationEventList = (output, context) => {
@@ -1418,13 +1418,13 @@ const deserializeAws_json1_1tagSet = (output, context) => {
1418
1418
  }
1419
1419
  return {
1420
1420
  ...acc,
1421
- [key]: smithy_client_1.expectString(value),
1421
+ [key]: (0, smithy_client_1.expectString)(value),
1422
1422
  };
1423
1423
  }, {});
1424
1424
  };
1425
1425
  const deserializeAws_json1_1UnsupportedLocale = (output, context) => {
1426
1426
  return {
1427
- message: smithy_client_1.expectString(output.message),
1427
+ message: (0, smithy_client_1.expectString)(output.message),
1428
1428
  };
1429
1429
  };
1430
1430
  const deserializeMetadata = (output) => {
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,
package/dist-es/Health.js CHANGED
@@ -25,7 +25,7 @@ var Health = (function (_super) {
25
25
  }
26
26
  else if (typeof cb === "function") {
27
27
  if (typeof optionsOrCb !== "object")
28
- throw new Error("Expect http options but get " + typeof optionsOrCb);
28
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
29
29
  this.send(command, optionsOrCb || {}, cb);
30
30
  }
31
31
  else {
@@ -39,7 +39,7 @@ var Health = (function (_super) {
39
39
  }
40
40
  else if (typeof cb === "function") {
41
41
  if (typeof optionsOrCb !== "object")
42
- throw new Error("Expect http options but get " + typeof optionsOrCb);
42
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
43
43
  this.send(command, optionsOrCb || {}, cb);
44
44
  }
45
45
  else {
@@ -53,7 +53,7 @@ var Health = (function (_super) {
53
53
  }
54
54
  else if (typeof cb === "function") {
55
55
  if (typeof optionsOrCb !== "object")
56
- throw new Error("Expect http options but get " + typeof optionsOrCb);
56
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
57
57
  this.send(command, optionsOrCb || {}, cb);
58
58
  }
59
59
  else {
@@ -67,7 +67,7 @@ var Health = (function (_super) {
67
67
  }
68
68
  else if (typeof cb === "function") {
69
69
  if (typeof optionsOrCb !== "object")
70
- throw new Error("Expect http options but get " + typeof optionsOrCb);
70
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
71
71
  this.send(command, optionsOrCb || {}, cb);
72
72
  }
73
73
  else {
@@ -81,7 +81,7 @@ var Health = (function (_super) {
81
81
  }
82
82
  else if (typeof cb === "function") {
83
83
  if (typeof optionsOrCb !== "object")
84
- throw new Error("Expect http options but get " + typeof optionsOrCb);
84
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
85
85
  this.send(command, optionsOrCb || {}, cb);
86
86
  }
87
87
  else {
@@ -95,7 +95,7 @@ var Health = (function (_super) {
95
95
  }
96
96
  else if (typeof cb === "function") {
97
97
  if (typeof optionsOrCb !== "object")
98
- throw new Error("Expect http options but get " + typeof optionsOrCb);
98
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
99
99
  this.send(command, optionsOrCb || {}, cb);
100
100
  }
101
101
  else {
@@ -109,7 +109,7 @@ var Health = (function (_super) {
109
109
  }
110
110
  else if (typeof cb === "function") {
111
111
  if (typeof optionsOrCb !== "object")
112
- throw new Error("Expect http options but get " + typeof optionsOrCb);
112
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
113
113
  this.send(command, optionsOrCb || {}, cb);
114
114
  }
115
115
  else {
@@ -123,7 +123,7 @@ var Health = (function (_super) {
123
123
  }
124
124
  else if (typeof cb === "function") {
125
125
  if (typeof optionsOrCb !== "object")
126
- throw new Error("Expect http options but get " + typeof optionsOrCb);
126
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
127
127
  this.send(command, optionsOrCb || {}, cb);
128
128
  }
129
129
  else {
@@ -137,7 +137,7 @@ var Health = (function (_super) {
137
137
  }
138
138
  else if (typeof cb === "function") {
139
139
  if (typeof optionsOrCb !== "object")
140
- throw new Error("Expect http options but get " + typeof optionsOrCb);
140
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
141
141
  this.send(command, optionsOrCb || {}, cb);
142
142
  }
143
143
  else {
@@ -151,7 +151,7 @@ var Health = (function (_super) {
151
151
  }
152
152
  else if (typeof cb === "function") {
153
153
  if (typeof optionsOrCb !== "object")
154
- throw new Error("Expect http options but get " + typeof optionsOrCb);
154
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
155
155
  this.send(command, optionsOrCb || {}, cb);
156
156
  }
157
157
  else {
@@ -165,7 +165,7 @@ var Health = (function (_super) {
165
165
  }
166
166
  else if (typeof cb === "function") {
167
167
  if (typeof optionsOrCb !== "object")
168
- throw new Error("Expect http options but get " + typeof optionsOrCb);
168
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
169
169
  this.send(command, optionsOrCb || {}, cb);
170
170
  }
171
171
  else {
@@ -179,7 +179,7 @@ var Health = (function (_super) {
179
179
  }
180
180
  else if (typeof cb === "function") {
181
181
  if (typeof optionsOrCb !== "object")
182
- throw new Error("Expect http options but get " + typeof optionsOrCb);
182
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
183
183
  this.send(command, optionsOrCb || {}, cb);
184
184
  }
185
185
  else {
@@ -193,7 +193,7 @@ var Health = (function (_super) {
193
193
  }
194
194
  else if (typeof cb === "function") {
195
195
  if (typeof optionsOrCb !== "object")
196
- throw new Error("Expect http options but get " + typeof optionsOrCb);
196
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
197
197
  this.send(command, optionsOrCb || {}, cb);
198
198
  }
199
199
  else {