@aws-sdk/client-service-quotas 3.180.0 → 3.183.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 (38) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +46 -40
  3. package/dist-es/ServiceQuotas.js +78 -85
  4. package/dist-es/ServiceQuotasClient.js +22 -28
  5. package/dist-es/commands/AssociateServiceQuotaTemplateCommand.js +21 -28
  6. package/dist-es/commands/DeleteServiceQuotaIncreaseRequestFromTemplateCommand.js +21 -28
  7. package/dist-es/commands/DisassociateServiceQuotaTemplateCommand.js +21 -28
  8. package/dist-es/commands/GetAWSDefaultServiceQuotaCommand.js +21 -28
  9. package/dist-es/commands/GetAssociationForServiceQuotaTemplateCommand.js +21 -28
  10. package/dist-es/commands/GetRequestedServiceQuotaChangeCommand.js +21 -28
  11. package/dist-es/commands/GetServiceQuotaCommand.js +21 -28
  12. package/dist-es/commands/GetServiceQuotaIncreaseRequestFromTemplateCommand.js +21 -28
  13. package/dist-es/commands/ListAWSDefaultServiceQuotasCommand.js +21 -28
  14. package/dist-es/commands/ListRequestedServiceQuotaChangeHistoryByQuotaCommand.js +21 -28
  15. package/dist-es/commands/ListRequestedServiceQuotaChangeHistoryCommand.js +21 -28
  16. package/dist-es/commands/ListServiceQuotaIncreaseRequestsInTemplateCommand.js +21 -28
  17. package/dist-es/commands/ListServiceQuotasCommand.js +21 -28
  18. package/dist-es/commands/ListServicesCommand.js +21 -28
  19. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  20. package/dist-es/commands/PutServiceQuotaIncreaseRequestIntoTemplateCommand.js +21 -28
  21. package/dist-es/commands/RequestServiceQuotaIncreaseCommand.js +21 -28
  22. package/dist-es/commands/TagResourceCommand.js +21 -28
  23. package/dist-es/commands/UntagResourceCommand.js +21 -28
  24. package/dist-es/endpoints.js +8 -8
  25. package/dist-es/models/ServiceQuotasServiceException.js +5 -10
  26. package/dist-es/models/models_0.js +342 -251
  27. package/dist-es/pagination/ListAWSDefaultServiceQuotasPaginator.js +25 -68
  28. package/dist-es/pagination/ListRequestedServiceQuotaChangeHistoryByQuotaPaginator.js +25 -68
  29. package/dist-es/pagination/ListRequestedServiceQuotaChangeHistoryPaginator.js +25 -68
  30. package/dist-es/pagination/ListServiceQuotaIncreaseRequestsInTemplatePaginator.js +25 -68
  31. package/dist-es/pagination/ListServiceQuotasPaginator.js +25 -68
  32. package/dist-es/pagination/ListServicesPaginator.js +25 -68
  33. package/dist-es/protocols/Aws_json1_1.js +1501 -1939
  34. package/dist-es/runtimeConfig.browser.js +26 -12
  35. package/dist-es/runtimeConfig.js +30 -12
  36. package/dist-es/runtimeConfig.native.js +8 -5
  37. package/dist-es/runtimeConfig.shared.js +8 -11
  38. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-service-quotas
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+ ### Features
24
+
25
+ * **clients:** support awsQueryError trait ([#3998](https://github.com/aws/aws-sdk-js-v3/issues/3998)) ([384cbd7](https://github.com/aws/aws-sdk-js-v3/commit/384cbd7cbdbc0635d2dbff53b54d769ca80dabbb))
26
+
27
+
28
+
29
+
30
+
6
31
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
32
 
8
33
  **Note:** Version bump only for package @aws-sdk/client-service-quotas
@@ -212,16 +212,16 @@ exports.deserializeAws_json1_1AssociateServiceQuotaTemplateCommand = deserialize
212
212
  const deserializeAws_json1_1AssociateServiceQuotaTemplateCommandError = async (output, context) => {
213
213
  const parsedOutput = {
214
214
  ...output,
215
- body: await parseBody(output.body, context),
215
+ body: await parseErrorBody(output.body, context),
216
216
  };
217
217
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
218
218
  switch (errorCode) {
219
- case "AccessDeniedException":
220
- case "com.amazonaws.servicequotas#AccessDeniedException":
221
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
222
219
  case "AWSServiceAccessNotEnabledException":
223
220
  case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
224
221
  throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
222
+ case "AccessDeniedException":
223
+ case "com.amazonaws.servicequotas#AccessDeniedException":
224
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
225
225
  case "DependencyAccessDeniedException":
226
226
  case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
227
227
  throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
@@ -267,16 +267,16 @@ exports.deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateComma
267
267
  const deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
268
268
  const parsedOutput = {
269
269
  ...output,
270
- body: await parseBody(output.body, context),
270
+ body: await parseErrorBody(output.body, context),
271
271
  };
272
272
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
273
273
  switch (errorCode) {
274
- case "AccessDeniedException":
275
- case "com.amazonaws.servicequotas#AccessDeniedException":
276
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
277
274
  case "AWSServiceAccessNotEnabledException":
278
275
  case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
279
276
  throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
277
+ case "AccessDeniedException":
278
+ case "com.amazonaws.servicequotas#AccessDeniedException":
279
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
280
280
  case "DependencyAccessDeniedException":
281
281
  case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
282
282
  throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
@@ -325,16 +325,16 @@ exports.deserializeAws_json1_1DisassociateServiceQuotaTemplateCommand = deserial
325
325
  const deserializeAws_json1_1DisassociateServiceQuotaTemplateCommandError = async (output, context) => {
326
326
  const parsedOutput = {
327
327
  ...output,
328
- body: await parseBody(output.body, context),
328
+ body: await parseErrorBody(output.body, context),
329
329
  };
330
330
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
331
331
  switch (errorCode) {
332
- case "AccessDeniedException":
333
- case "com.amazonaws.servicequotas#AccessDeniedException":
334
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
335
332
  case "AWSServiceAccessNotEnabledException":
336
333
  case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
337
334
  throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
335
+ case "AccessDeniedException":
336
+ case "com.amazonaws.servicequotas#AccessDeniedException":
337
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
338
338
  case "DependencyAccessDeniedException":
339
339
  case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
340
340
  throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
@@ -380,16 +380,16 @@ exports.deserializeAws_json1_1GetAssociationForServiceQuotaTemplateCommand = des
380
380
  const deserializeAws_json1_1GetAssociationForServiceQuotaTemplateCommandError = async (output, context) => {
381
381
  const parsedOutput = {
382
382
  ...output,
383
- body: await parseBody(output.body, context),
383
+ body: await parseErrorBody(output.body, context),
384
384
  };
385
385
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
386
386
  switch (errorCode) {
387
- case "AccessDeniedException":
388
- case "com.amazonaws.servicequotas#AccessDeniedException":
389
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
390
387
  case "AWSServiceAccessNotEnabledException":
391
388
  case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
392
389
  throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
390
+ case "AccessDeniedException":
391
+ case "com.amazonaws.servicequotas#AccessDeniedException":
392
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
393
393
  case "DependencyAccessDeniedException":
394
394
  case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
395
395
  throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
@@ -435,7 +435,7 @@ exports.deserializeAws_json1_1GetAWSDefaultServiceQuotaCommand = deserializeAws_
435
435
  const deserializeAws_json1_1GetAWSDefaultServiceQuotaCommandError = async (output, context) => {
436
436
  const parsedOutput = {
437
437
  ...output,
438
- body: await parseBody(output.body, context),
438
+ body: await parseErrorBody(output.body, context),
439
439
  };
440
440
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
441
441
  switch (errorCode) {
@@ -481,7 +481,7 @@ exports.deserializeAws_json1_1GetRequestedServiceQuotaChangeCommand = deserializ
481
481
  const deserializeAws_json1_1GetRequestedServiceQuotaChangeCommandError = async (output, context) => {
482
482
  const parsedOutput = {
483
483
  ...output,
484
- body: await parseBody(output.body, context),
484
+ body: await parseErrorBody(output.body, context),
485
485
  };
486
486
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
487
487
  switch (errorCode) {
@@ -527,7 +527,7 @@ exports.deserializeAws_json1_1GetServiceQuotaCommand = deserializeAws_json1_1Get
527
527
  const deserializeAws_json1_1GetServiceQuotaCommandError = async (output, context) => {
528
528
  const parsedOutput = {
529
529
  ...output,
530
- body: await parseBody(output.body, context),
530
+ body: await parseErrorBody(output.body, context),
531
531
  };
532
532
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
533
533
  switch (errorCode) {
@@ -573,16 +573,16 @@ exports.deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommand
573
573
  const deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
574
574
  const parsedOutput = {
575
575
  ...output,
576
- body: await parseBody(output.body, context),
576
+ body: await parseErrorBody(output.body, context),
577
577
  };
578
578
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
579
579
  switch (errorCode) {
580
- case "AccessDeniedException":
581
- case "com.amazonaws.servicequotas#AccessDeniedException":
582
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
583
580
  case "AWSServiceAccessNotEnabledException":
584
581
  case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
585
582
  throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
583
+ case "AccessDeniedException":
584
+ case "com.amazonaws.servicequotas#AccessDeniedException":
585
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
586
586
  case "DependencyAccessDeniedException":
587
587
  case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
588
588
  throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
@@ -631,7 +631,7 @@ exports.deserializeAws_json1_1ListAWSDefaultServiceQuotasCommand = deserializeAw
631
631
  const deserializeAws_json1_1ListAWSDefaultServiceQuotasCommandError = async (output, context) => {
632
632
  const parsedOutput = {
633
633
  ...output,
634
- body: await parseBody(output.body, context),
634
+ body: await parseErrorBody(output.body, context),
635
635
  };
636
636
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
637
637
  switch (errorCode) {
@@ -680,7 +680,7 @@ exports.deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommand = de
680
680
  const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommandError = async (output, context) => {
681
681
  const parsedOutput = {
682
682
  ...output,
683
- body: await parseBody(output.body, context),
683
+ body: await parseErrorBody(output.body, context),
684
684
  };
685
685
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
686
686
  switch (errorCode) {
@@ -729,7 +729,7 @@ exports.deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaComma
729
729
  const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaCommandError = async (output, context) => {
730
730
  const parsedOutput = {
731
731
  ...output,
732
- body: await parseBody(output.body, context),
732
+ body: await parseErrorBody(output.body, context),
733
733
  };
734
734
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
735
735
  switch (errorCode) {
@@ -778,16 +778,16 @@ exports.deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommand
778
778
  const deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommandError = async (output, context) => {
779
779
  const parsedOutput = {
780
780
  ...output,
781
- body: await parseBody(output.body, context),
781
+ body: await parseErrorBody(output.body, context),
782
782
  };
783
783
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
784
784
  switch (errorCode) {
785
- case "AccessDeniedException":
786
- case "com.amazonaws.servicequotas#AccessDeniedException":
787
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
788
785
  case "AWSServiceAccessNotEnabledException":
789
786
  case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
790
787
  throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
788
+ case "AccessDeniedException":
789
+ case "com.amazonaws.servicequotas#AccessDeniedException":
790
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
791
791
  case "DependencyAccessDeniedException":
792
792
  case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
793
793
  throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
@@ -833,7 +833,7 @@ exports.deserializeAws_json1_1ListServiceQuotasCommand = deserializeAws_json1_1L
833
833
  const deserializeAws_json1_1ListServiceQuotasCommandError = async (output, context) => {
834
834
  const parsedOutput = {
835
835
  ...output,
836
- body: await parseBody(output.body, context),
836
+ body: await parseErrorBody(output.body, context),
837
837
  };
838
838
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
839
839
  switch (errorCode) {
@@ -882,7 +882,7 @@ exports.deserializeAws_json1_1ListServicesCommand = deserializeAws_json1_1ListSe
882
882
  const deserializeAws_json1_1ListServicesCommandError = async (output, context) => {
883
883
  const parsedOutput = {
884
884
  ...output,
885
- body: await parseBody(output.body, context),
885
+ body: await parseErrorBody(output.body, context),
886
886
  };
887
887
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
888
888
  switch (errorCode) {
@@ -928,7 +928,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
928
928
  const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
929
929
  const parsedOutput = {
930
930
  ...output,
931
- body: await parseBody(output.body, context),
931
+ body: await parseErrorBody(output.body, context),
932
932
  };
933
933
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
934
934
  switch (errorCode) {
@@ -974,16 +974,16 @@ exports.deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommand
974
974
  const deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommandError = async (output, context) => {
975
975
  const parsedOutput = {
976
976
  ...output,
977
- body: await parseBody(output.body, context),
977
+ body: await parseErrorBody(output.body, context),
978
978
  };
979
979
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
980
980
  switch (errorCode) {
981
- case "AccessDeniedException":
982
- case "com.amazonaws.servicequotas#AccessDeniedException":
983
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
984
981
  case "AWSServiceAccessNotEnabledException":
985
982
  case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
986
983
  throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
984
+ case "AccessDeniedException":
985
+ case "com.amazonaws.servicequotas#AccessDeniedException":
986
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
987
987
  case "DependencyAccessDeniedException":
988
988
  case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
989
989
  throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
@@ -1035,7 +1035,7 @@ exports.deserializeAws_json1_1RequestServiceQuotaIncreaseCommand = deserializeAw
1035
1035
  const deserializeAws_json1_1RequestServiceQuotaIncreaseCommandError = async (output, context) => {
1036
1036
  const parsedOutput = {
1037
1037
  ...output,
1038
- body: await parseBody(output.body, context),
1038
+ body: await parseErrorBody(output.body, context),
1039
1039
  };
1040
1040
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1041
1041
  switch (errorCode) {
@@ -1093,7 +1093,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
1093
1093
  const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
1094
1094
  const parsedOutput = {
1095
1095
  ...output,
1096
- body: await parseBody(output.body, context),
1096
+ body: await parseErrorBody(output.body, context),
1097
1097
  };
1098
1098
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1099
1099
  switch (errorCode) {
@@ -1145,7 +1145,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
1145
1145
  const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
1146
1146
  const parsedOutput = {
1147
1147
  ...output,
1148
- body: await parseBody(output.body, context),
1148
+ body: await parseErrorBody(output.body, context),
1149
1149
  };
1150
1150
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1151
1151
  switch (errorCode) {
@@ -1842,6 +1842,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1842
1842
  }
1843
1843
  return {};
1844
1844
  });
1845
+ const parseErrorBody = async (errorBody, context) => {
1846
+ var _a;
1847
+ const value = await parseBody(errorBody, context);
1848
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
1849
+ return value;
1850
+ };
1845
1851
  const loadRestJsonErrorCode = (output, data) => {
1846
1852
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1847
1853
  const sanitizeErrorCode = (rawValue) => {
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateServiceQuotaTemplateCommand, } from "./commands/AssociateServiceQuotaTemplateCommand";
3
2
  import { DeleteServiceQuotaIncreaseRequestFromTemplateCommand, } from "./commands/DeleteServiceQuotaIncreaseRequestFromTemplateCommand";
4
3
  import { DisassociateServiceQuotaTemplateCommand, } from "./commands/DisassociateServiceQuotaTemplateCommand";
@@ -19,277 +18,271 @@ import { RequestServiceQuotaIncreaseCommand, } from "./commands/RequestServiceQu
19
18
  import { TagResourceCommand } from "./commands/TagResourceCommand";
20
19
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
21
20
  import { ServiceQuotasClient } from "./ServiceQuotasClient";
22
- var ServiceQuotas = (function (_super) {
23
- __extends(ServiceQuotas, _super);
24
- function ServiceQuotas() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- ServiceQuotas.prototype.associateServiceQuotaTemplate = function (args, optionsOrCb, cb) {
28
- var command = new AssociateServiceQuotaTemplateCommand(args);
21
+ export class ServiceQuotas extends ServiceQuotasClient {
22
+ associateServiceQuotaTemplate(args, optionsOrCb, cb) {
23
+ const command = new AssociateServiceQuotaTemplateCommand(args);
29
24
  if (typeof optionsOrCb === "function") {
30
25
  this.send(command, optionsOrCb);
31
26
  }
32
27
  else if (typeof cb === "function") {
33
28
  if (typeof optionsOrCb !== "object")
34
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
29
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
35
30
  this.send(command, optionsOrCb || {}, cb);
36
31
  }
37
32
  else {
38
33
  return this.send(command, optionsOrCb);
39
34
  }
40
- };
41
- ServiceQuotas.prototype.deleteServiceQuotaIncreaseRequestFromTemplate = function (args, optionsOrCb, cb) {
42
- var command = new DeleteServiceQuotaIncreaseRequestFromTemplateCommand(args);
35
+ }
36
+ deleteServiceQuotaIncreaseRequestFromTemplate(args, optionsOrCb, cb) {
37
+ const command = new DeleteServiceQuotaIncreaseRequestFromTemplateCommand(args);
43
38
  if (typeof optionsOrCb === "function") {
44
39
  this.send(command, optionsOrCb);
45
40
  }
46
41
  else if (typeof cb === "function") {
47
42
  if (typeof optionsOrCb !== "object")
48
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
43
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
44
  this.send(command, optionsOrCb || {}, cb);
50
45
  }
51
46
  else {
52
47
  return this.send(command, optionsOrCb);
53
48
  }
54
- };
55
- ServiceQuotas.prototype.disassociateServiceQuotaTemplate = function (args, optionsOrCb, cb) {
56
- var command = new DisassociateServiceQuotaTemplateCommand(args);
49
+ }
50
+ disassociateServiceQuotaTemplate(args, optionsOrCb, cb) {
51
+ const command = new DisassociateServiceQuotaTemplateCommand(args);
57
52
  if (typeof optionsOrCb === "function") {
58
53
  this.send(command, optionsOrCb);
59
54
  }
60
55
  else if (typeof cb === "function") {
61
56
  if (typeof optionsOrCb !== "object")
62
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
57
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
58
  this.send(command, optionsOrCb || {}, cb);
64
59
  }
65
60
  else {
66
61
  return this.send(command, optionsOrCb);
67
62
  }
68
- };
69
- ServiceQuotas.prototype.getAssociationForServiceQuotaTemplate = function (args, optionsOrCb, cb) {
70
- var command = new GetAssociationForServiceQuotaTemplateCommand(args);
63
+ }
64
+ getAssociationForServiceQuotaTemplate(args, optionsOrCb, cb) {
65
+ const command = new GetAssociationForServiceQuotaTemplateCommand(args);
71
66
  if (typeof optionsOrCb === "function") {
72
67
  this.send(command, optionsOrCb);
73
68
  }
74
69
  else if (typeof cb === "function") {
75
70
  if (typeof optionsOrCb !== "object")
76
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
71
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
72
  this.send(command, optionsOrCb || {}, cb);
78
73
  }
79
74
  else {
80
75
  return this.send(command, optionsOrCb);
81
76
  }
82
- };
83
- ServiceQuotas.prototype.getAWSDefaultServiceQuota = function (args, optionsOrCb, cb) {
84
- var command = new GetAWSDefaultServiceQuotaCommand(args);
77
+ }
78
+ getAWSDefaultServiceQuota(args, optionsOrCb, cb) {
79
+ const command = new GetAWSDefaultServiceQuotaCommand(args);
85
80
  if (typeof optionsOrCb === "function") {
86
81
  this.send(command, optionsOrCb);
87
82
  }
88
83
  else if (typeof cb === "function") {
89
84
  if (typeof optionsOrCb !== "object")
90
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
85
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
86
  this.send(command, optionsOrCb || {}, cb);
92
87
  }
93
88
  else {
94
89
  return this.send(command, optionsOrCb);
95
90
  }
96
- };
97
- ServiceQuotas.prototype.getRequestedServiceQuotaChange = function (args, optionsOrCb, cb) {
98
- var command = new GetRequestedServiceQuotaChangeCommand(args);
91
+ }
92
+ getRequestedServiceQuotaChange(args, optionsOrCb, cb) {
93
+ const command = new GetRequestedServiceQuotaChangeCommand(args);
99
94
  if (typeof optionsOrCb === "function") {
100
95
  this.send(command, optionsOrCb);
101
96
  }
102
97
  else if (typeof cb === "function") {
103
98
  if (typeof optionsOrCb !== "object")
104
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
99
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
100
  this.send(command, optionsOrCb || {}, cb);
106
101
  }
107
102
  else {
108
103
  return this.send(command, optionsOrCb);
109
104
  }
110
- };
111
- ServiceQuotas.prototype.getServiceQuota = function (args, optionsOrCb, cb) {
112
- var command = new GetServiceQuotaCommand(args);
105
+ }
106
+ getServiceQuota(args, optionsOrCb, cb) {
107
+ const command = new GetServiceQuotaCommand(args);
113
108
  if (typeof optionsOrCb === "function") {
114
109
  this.send(command, optionsOrCb);
115
110
  }
116
111
  else if (typeof cb === "function") {
117
112
  if (typeof optionsOrCb !== "object")
118
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
113
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
114
  this.send(command, optionsOrCb || {}, cb);
120
115
  }
121
116
  else {
122
117
  return this.send(command, optionsOrCb);
123
118
  }
124
- };
125
- ServiceQuotas.prototype.getServiceQuotaIncreaseRequestFromTemplate = function (args, optionsOrCb, cb) {
126
- var command = new GetServiceQuotaIncreaseRequestFromTemplateCommand(args);
119
+ }
120
+ getServiceQuotaIncreaseRequestFromTemplate(args, optionsOrCb, cb) {
121
+ const command = new GetServiceQuotaIncreaseRequestFromTemplateCommand(args);
127
122
  if (typeof optionsOrCb === "function") {
128
123
  this.send(command, optionsOrCb);
129
124
  }
130
125
  else if (typeof cb === "function") {
131
126
  if (typeof optionsOrCb !== "object")
132
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
127
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
128
  this.send(command, optionsOrCb || {}, cb);
134
129
  }
135
130
  else {
136
131
  return this.send(command, optionsOrCb);
137
132
  }
138
- };
139
- ServiceQuotas.prototype.listAWSDefaultServiceQuotas = function (args, optionsOrCb, cb) {
140
- var command = new ListAWSDefaultServiceQuotasCommand(args);
133
+ }
134
+ listAWSDefaultServiceQuotas(args, optionsOrCb, cb) {
135
+ const command = new ListAWSDefaultServiceQuotasCommand(args);
141
136
  if (typeof optionsOrCb === "function") {
142
137
  this.send(command, optionsOrCb);
143
138
  }
144
139
  else if (typeof cb === "function") {
145
140
  if (typeof optionsOrCb !== "object")
146
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
141
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
142
  this.send(command, optionsOrCb || {}, cb);
148
143
  }
149
144
  else {
150
145
  return this.send(command, optionsOrCb);
151
146
  }
152
- };
153
- ServiceQuotas.prototype.listRequestedServiceQuotaChangeHistory = function (args, optionsOrCb, cb) {
154
- var command = new ListRequestedServiceQuotaChangeHistoryCommand(args);
147
+ }
148
+ listRequestedServiceQuotaChangeHistory(args, optionsOrCb, cb) {
149
+ const command = new ListRequestedServiceQuotaChangeHistoryCommand(args);
155
150
  if (typeof optionsOrCb === "function") {
156
151
  this.send(command, optionsOrCb);
157
152
  }
158
153
  else if (typeof cb === "function") {
159
154
  if (typeof optionsOrCb !== "object")
160
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
155
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
156
  this.send(command, optionsOrCb || {}, cb);
162
157
  }
163
158
  else {
164
159
  return this.send(command, optionsOrCb);
165
160
  }
166
- };
167
- ServiceQuotas.prototype.listRequestedServiceQuotaChangeHistoryByQuota = function (args, optionsOrCb, cb) {
168
- var command = new ListRequestedServiceQuotaChangeHistoryByQuotaCommand(args);
161
+ }
162
+ listRequestedServiceQuotaChangeHistoryByQuota(args, optionsOrCb, cb) {
163
+ const command = new ListRequestedServiceQuotaChangeHistoryByQuotaCommand(args);
169
164
  if (typeof optionsOrCb === "function") {
170
165
  this.send(command, optionsOrCb);
171
166
  }
172
167
  else if (typeof cb === "function") {
173
168
  if (typeof optionsOrCb !== "object")
174
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
169
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
175
170
  this.send(command, optionsOrCb || {}, cb);
176
171
  }
177
172
  else {
178
173
  return this.send(command, optionsOrCb);
179
174
  }
180
- };
181
- ServiceQuotas.prototype.listServiceQuotaIncreaseRequestsInTemplate = function (args, optionsOrCb, cb) {
182
- var command = new ListServiceQuotaIncreaseRequestsInTemplateCommand(args);
175
+ }
176
+ listServiceQuotaIncreaseRequestsInTemplate(args, optionsOrCb, cb) {
177
+ const command = new ListServiceQuotaIncreaseRequestsInTemplateCommand(args);
183
178
  if (typeof optionsOrCb === "function") {
184
179
  this.send(command, optionsOrCb);
185
180
  }
186
181
  else if (typeof cb === "function") {
187
182
  if (typeof optionsOrCb !== "object")
188
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
183
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
189
184
  this.send(command, optionsOrCb || {}, cb);
190
185
  }
191
186
  else {
192
187
  return this.send(command, optionsOrCb);
193
188
  }
194
- };
195
- ServiceQuotas.prototype.listServiceQuotas = function (args, optionsOrCb, cb) {
196
- var command = new ListServiceQuotasCommand(args);
189
+ }
190
+ listServiceQuotas(args, optionsOrCb, cb) {
191
+ const command = new ListServiceQuotasCommand(args);
197
192
  if (typeof optionsOrCb === "function") {
198
193
  this.send(command, optionsOrCb);
199
194
  }
200
195
  else if (typeof cb === "function") {
201
196
  if (typeof optionsOrCb !== "object")
202
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
197
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
203
198
  this.send(command, optionsOrCb || {}, cb);
204
199
  }
205
200
  else {
206
201
  return this.send(command, optionsOrCb);
207
202
  }
208
- };
209
- ServiceQuotas.prototype.listServices = function (args, optionsOrCb, cb) {
210
- var command = new ListServicesCommand(args);
203
+ }
204
+ listServices(args, optionsOrCb, cb) {
205
+ const command = new ListServicesCommand(args);
211
206
  if (typeof optionsOrCb === "function") {
212
207
  this.send(command, optionsOrCb);
213
208
  }
214
209
  else if (typeof cb === "function") {
215
210
  if (typeof optionsOrCb !== "object")
216
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
211
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
217
212
  this.send(command, optionsOrCb || {}, cb);
218
213
  }
219
214
  else {
220
215
  return this.send(command, optionsOrCb);
221
216
  }
222
- };
223
- ServiceQuotas.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
224
- var command = new ListTagsForResourceCommand(args);
217
+ }
218
+ listTagsForResource(args, optionsOrCb, cb) {
219
+ const command = new ListTagsForResourceCommand(args);
225
220
  if (typeof optionsOrCb === "function") {
226
221
  this.send(command, optionsOrCb);
227
222
  }
228
223
  else if (typeof cb === "function") {
229
224
  if (typeof optionsOrCb !== "object")
230
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
225
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
231
226
  this.send(command, optionsOrCb || {}, cb);
232
227
  }
233
228
  else {
234
229
  return this.send(command, optionsOrCb);
235
230
  }
236
- };
237
- ServiceQuotas.prototype.putServiceQuotaIncreaseRequestIntoTemplate = function (args, optionsOrCb, cb) {
238
- var command = new PutServiceQuotaIncreaseRequestIntoTemplateCommand(args);
231
+ }
232
+ putServiceQuotaIncreaseRequestIntoTemplate(args, optionsOrCb, cb) {
233
+ const command = new PutServiceQuotaIncreaseRequestIntoTemplateCommand(args);
239
234
  if (typeof optionsOrCb === "function") {
240
235
  this.send(command, optionsOrCb);
241
236
  }
242
237
  else if (typeof cb === "function") {
243
238
  if (typeof optionsOrCb !== "object")
244
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
239
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
245
240
  this.send(command, optionsOrCb || {}, cb);
246
241
  }
247
242
  else {
248
243
  return this.send(command, optionsOrCb);
249
244
  }
250
- };
251
- ServiceQuotas.prototype.requestServiceQuotaIncrease = function (args, optionsOrCb, cb) {
252
- var command = new RequestServiceQuotaIncreaseCommand(args);
245
+ }
246
+ requestServiceQuotaIncrease(args, optionsOrCb, cb) {
247
+ const command = new RequestServiceQuotaIncreaseCommand(args);
253
248
  if (typeof optionsOrCb === "function") {
254
249
  this.send(command, optionsOrCb);
255
250
  }
256
251
  else if (typeof cb === "function") {
257
252
  if (typeof optionsOrCb !== "object")
258
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
253
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
259
254
  this.send(command, optionsOrCb || {}, cb);
260
255
  }
261
256
  else {
262
257
  return this.send(command, optionsOrCb);
263
258
  }
264
- };
265
- ServiceQuotas.prototype.tagResource = function (args, optionsOrCb, cb) {
266
- var command = new TagResourceCommand(args);
259
+ }
260
+ tagResource(args, optionsOrCb, cb) {
261
+ const command = new TagResourceCommand(args);
267
262
  if (typeof optionsOrCb === "function") {
268
263
  this.send(command, optionsOrCb);
269
264
  }
270
265
  else if (typeof cb === "function") {
271
266
  if (typeof optionsOrCb !== "object")
272
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
267
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
273
268
  this.send(command, optionsOrCb || {}, cb);
274
269
  }
275
270
  else {
276
271
  return this.send(command, optionsOrCb);
277
272
  }
278
- };
279
- ServiceQuotas.prototype.untagResource = function (args, optionsOrCb, cb) {
280
- var command = new UntagResourceCommand(args);
273
+ }
274
+ untagResource(args, optionsOrCb, cb) {
275
+ const command = new UntagResourceCommand(args);
281
276
  if (typeof optionsOrCb === "function") {
282
277
  this.send(command, optionsOrCb);
283
278
  }
284
279
  else if (typeof cb === "function") {
285
280
  if (typeof optionsOrCb !== "object")
286
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
281
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
287
282
  this.send(command, optionsOrCb || {}, cb);
288
283
  }
289
284
  else {
290
285
  return this.send(command, optionsOrCb);
291
286
  }
292
- };
293
- return ServiceQuotas;
294
- }(ServiceQuotasClient));
295
- export { ServiceQuotas };
287
+ }
288
+ }