@aws-sdk/client-service-quotas 3.489.0 → 3.495.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 (39) hide show
  1. package/dist-cjs/ServiceQuotas.js +1 -49
  2. package/dist-cjs/ServiceQuotasClient.js +1 -43
  3. package/dist-cjs/commands/AssociateServiceQuotaTemplateCommand.js +1 -28
  4. package/dist-cjs/commands/DeleteServiceQuotaIncreaseRequestFromTemplateCommand.js +1 -28
  5. package/dist-cjs/commands/DisassociateServiceQuotaTemplateCommand.js +1 -28
  6. package/dist-cjs/commands/GetAWSDefaultServiceQuotaCommand.js +1 -28
  7. package/dist-cjs/commands/GetAssociationForServiceQuotaTemplateCommand.js +1 -28
  8. package/dist-cjs/commands/GetRequestedServiceQuotaChangeCommand.js +1 -28
  9. package/dist-cjs/commands/GetServiceQuotaCommand.js +1 -28
  10. package/dist-cjs/commands/GetServiceQuotaIncreaseRequestFromTemplateCommand.js +1 -28
  11. package/dist-cjs/commands/ListAWSDefaultServiceQuotasCommand.js +1 -28
  12. package/dist-cjs/commands/ListRequestedServiceQuotaChangeHistoryByQuotaCommand.js +1 -28
  13. package/dist-cjs/commands/ListRequestedServiceQuotaChangeHistoryCommand.js +1 -28
  14. package/dist-cjs/commands/ListServiceQuotaIncreaseRequestsInTemplateCommand.js +1 -28
  15. package/dist-cjs/commands/ListServiceQuotasCommand.js +1 -28
  16. package/dist-cjs/commands/ListServicesCommand.js +1 -28
  17. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  18. package/dist-cjs/commands/PutServiceQuotaIncreaseRequestIntoTemplateCommand.js +1 -28
  19. package/dist-cjs/commands/RequestServiceQuotaIncreaseCommand.js +1 -28
  20. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  21. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  22. package/dist-cjs/commands/index.js +1 -22
  23. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  24. package/dist-cjs/extensionConfiguration.js +1 -2
  25. package/dist-cjs/index.js +2389 -11
  26. package/dist-cjs/models/ServiceQuotasServiceException.js +1 -12
  27. package/dist-cjs/models/index.js +1 -4
  28. package/dist-cjs/models/models_0.js +1 -279
  29. package/dist-cjs/pagination/Interfaces.js +1 -2
  30. package/dist-cjs/pagination/ListAWSDefaultServiceQuotasPaginator.js +1 -7
  31. package/dist-cjs/pagination/ListRequestedServiceQuotaChangeHistoryByQuotaPaginator.js +1 -7
  32. package/dist-cjs/pagination/ListRequestedServiceQuotaChangeHistoryPaginator.js +1 -7
  33. package/dist-cjs/pagination/ListServiceQuotaIncreaseRequestsInTemplatePaginator.js +1 -7
  34. package/dist-cjs/pagination/ListServiceQuotasPaginator.js +1 -7
  35. package/dist-cjs/pagination/ListServicesPaginator.js +1 -7
  36. package/dist-cjs/pagination/index.js +1 -10
  37. package/dist-cjs/protocols/Aws_json1_1.js +1 -1475
  38. package/dist-cjs/runtimeExtensions.js +1 -22
  39. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2390 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceQuotasServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ServiceQuotasClient"), exports);
6
- tslib_1.__exportStar(require("./ServiceQuotas"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var ServiceQuotasServiceException_1 = require("./models/ServiceQuotasServiceException");
12
- Object.defineProperty(exports, "ServiceQuotasServiceException", { enumerable: true, get: function () { return ServiceQuotasServiceException_1.ServiceQuotasServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AWSServiceAccessNotEnabledException: () => AWSServiceAccessNotEnabledException,
25
+ AccessDeniedException: () => AccessDeniedException,
26
+ AppliedLevelEnum: () => AppliedLevelEnum,
27
+ AssociateServiceQuotaTemplateCommand: () => AssociateServiceQuotaTemplateCommand,
28
+ DeleteServiceQuotaIncreaseRequestFromTemplateCommand: () => DeleteServiceQuotaIncreaseRequestFromTemplateCommand,
29
+ DependencyAccessDeniedException: () => DependencyAccessDeniedException,
30
+ DisassociateServiceQuotaTemplateCommand: () => DisassociateServiceQuotaTemplateCommand,
31
+ ErrorCode: () => ErrorCode,
32
+ GetAWSDefaultServiceQuotaCommand: () => GetAWSDefaultServiceQuotaCommand,
33
+ GetAssociationForServiceQuotaTemplateCommand: () => GetAssociationForServiceQuotaTemplateCommand,
34
+ GetRequestedServiceQuotaChangeCommand: () => GetRequestedServiceQuotaChangeCommand,
35
+ GetServiceQuotaCommand: () => GetServiceQuotaCommand,
36
+ GetServiceQuotaIncreaseRequestFromTemplateCommand: () => GetServiceQuotaIncreaseRequestFromTemplateCommand,
37
+ IllegalArgumentException: () => IllegalArgumentException,
38
+ InvalidPaginationTokenException: () => InvalidPaginationTokenException,
39
+ InvalidResourceStateException: () => InvalidResourceStateException,
40
+ ListAWSDefaultServiceQuotasCommand: () => ListAWSDefaultServiceQuotasCommand,
41
+ ListRequestedServiceQuotaChangeHistoryByQuotaCommand: () => ListRequestedServiceQuotaChangeHistoryByQuotaCommand,
42
+ ListRequestedServiceQuotaChangeHistoryCommand: () => ListRequestedServiceQuotaChangeHistoryCommand,
43
+ ListServiceQuotaIncreaseRequestsInTemplateCommand: () => ListServiceQuotaIncreaseRequestsInTemplateCommand,
44
+ ListServiceQuotasCommand: () => ListServiceQuotasCommand,
45
+ ListServicesCommand: () => ListServicesCommand,
46
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
47
+ NoAvailableOrganizationException: () => NoAvailableOrganizationException,
48
+ NoSuchResourceException: () => NoSuchResourceException,
49
+ OrganizationNotInAllFeaturesModeException: () => OrganizationNotInAllFeaturesModeException,
50
+ PeriodUnit: () => PeriodUnit,
51
+ PutServiceQuotaIncreaseRequestIntoTemplateCommand: () => PutServiceQuotaIncreaseRequestIntoTemplateCommand,
52
+ QuotaContextScope: () => QuotaContextScope,
53
+ QuotaExceededException: () => QuotaExceededException,
54
+ RequestServiceQuotaIncreaseCommand: () => RequestServiceQuotaIncreaseCommand,
55
+ RequestStatus: () => RequestStatus,
56
+ ResourceAlreadyExistsException: () => ResourceAlreadyExistsException,
57
+ ServiceException: () => ServiceException,
58
+ ServiceQuotaTemplateAssociationStatus: () => ServiceQuotaTemplateAssociationStatus,
59
+ ServiceQuotaTemplateNotInUseException: () => ServiceQuotaTemplateNotInUseException,
60
+ ServiceQuotas: () => ServiceQuotas,
61
+ ServiceQuotasClient: () => ServiceQuotasClient,
62
+ ServiceQuotasServiceException: () => ServiceQuotasServiceException,
63
+ TagPolicyViolationException: () => TagPolicyViolationException,
64
+ TagResourceCommand: () => TagResourceCommand,
65
+ TemplatesNotAvailableInRegionException: () => TemplatesNotAvailableInRegionException,
66
+ TooManyRequestsException: () => TooManyRequestsException,
67
+ TooManyTagsException: () => TooManyTagsException,
68
+ UntagResourceCommand: () => UntagResourceCommand,
69
+ __Client: () => import_smithy_client.Client,
70
+ paginateListAWSDefaultServiceQuotas: () => paginateListAWSDefaultServiceQuotas,
71
+ paginateListRequestedServiceQuotaChangeHistory: () => paginateListRequestedServiceQuotaChangeHistory,
72
+ paginateListRequestedServiceQuotaChangeHistoryByQuota: () => paginateListRequestedServiceQuotaChangeHistoryByQuota,
73
+ paginateListServiceQuotaIncreaseRequestsInTemplate: () => paginateListServiceQuotaIncreaseRequestsInTemplate,
74
+ paginateListServiceQuotas: () => paginateListServiceQuotas,
75
+ paginateListServices: () => paginateListServices
76
+ });
77
+ module.exports = __toCommonJS(src_exports);
78
+
79
+ // src/ServiceQuotasClient.ts
80
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
81
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
82
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
83
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
84
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
85
+ var import_config_resolver = require("@smithy/config-resolver");
86
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
87
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
88
+ var import_middleware_retry = require("@smithy/middleware-retry");
89
+
90
+
91
+ // src/endpoint/EndpointParameters.ts
92
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
93
+ return {
94
+ ...options,
95
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
96
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
97
+ defaultSigningName: "servicequotas"
98
+ };
99
+ }, "resolveClientEndpointParameters");
100
+ var commonParams = {
101
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
102
+ Endpoint: { type: "builtInParams", name: "endpoint" },
103
+ Region: { type: "builtInParams", name: "region" },
104
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
105
+ };
106
+
107
+ // src/ServiceQuotasClient.ts
108
+ var import_runtimeConfig = require("././runtimeConfig");
109
+
110
+ // src/runtimeExtensions.ts
111
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
112
+ var import_protocol_http = require("@smithy/protocol-http");
113
+ var import_smithy_client = require("@smithy/smithy-client");
114
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
115
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
116
+ const extensionConfiguration = {
117
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
118
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
119
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
120
+ };
121
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
122
+ return {
123
+ ...runtimeConfig,
124
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
125
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
126
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
127
+ };
128
+ }, "resolveRuntimeExtensions");
129
+
130
+ // src/ServiceQuotasClient.ts
131
+ var _ServiceQuotasClient = class _ServiceQuotasClient extends import_smithy_client.Client {
132
+ constructor(...[configuration]) {
133
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
134
+ const _config_1 = resolveClientEndpointParameters(_config_0);
135
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
136
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
137
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
138
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
139
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
140
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
141
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
142
+ super(_config_8);
143
+ this.config = _config_8;
144
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
145
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
146
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
147
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
148
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
149
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
150
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
151
+ }
152
+ /**
153
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
154
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
155
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
156
+ */
157
+ destroy() {
158
+ super.destroy();
159
+ }
160
+ };
161
+ __name(_ServiceQuotasClient, "ServiceQuotasClient");
162
+ var ServiceQuotasClient = _ServiceQuotasClient;
163
+
164
+ // src/ServiceQuotas.ts
165
+
166
+
167
+ // src/commands/AssociateServiceQuotaTemplateCommand.ts
168
+
169
+ var import_middleware_serde = require("@smithy/middleware-serde");
170
+
171
+ var import_types = require("@smithy/types");
172
+
173
+ // src/protocols/Aws_json1_1.ts
174
+
175
+
176
+
177
+ // src/models/ServiceQuotasServiceException.ts
178
+
179
+ var _ServiceQuotasServiceException = class _ServiceQuotasServiceException extends import_smithy_client.ServiceException {
180
+ /**
181
+ * @internal
182
+ */
183
+ constructor(options) {
184
+ super(options);
185
+ Object.setPrototypeOf(this, _ServiceQuotasServiceException.prototype);
186
+ }
187
+ };
188
+ __name(_ServiceQuotasServiceException, "ServiceQuotasServiceException");
189
+ var ServiceQuotasServiceException = _ServiceQuotasServiceException;
190
+
191
+ // src/models/models_0.ts
192
+ var _AccessDeniedException = class _AccessDeniedException extends ServiceQuotasServiceException {
193
+ /**
194
+ * @internal
195
+ */
196
+ constructor(opts) {
197
+ super({
198
+ name: "AccessDeniedException",
199
+ $fault: "client",
200
+ ...opts
201
+ });
202
+ this.name = "AccessDeniedException";
203
+ this.$fault = "client";
204
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
205
+ this.Message = opts.Message;
206
+ }
207
+ };
208
+ __name(_AccessDeniedException, "AccessDeniedException");
209
+ var AccessDeniedException = _AccessDeniedException;
210
+ var AppliedLevelEnum = {
211
+ ACCOUNT: "ACCOUNT",
212
+ ALL: "ALL",
213
+ RESOURCE: "RESOURCE"
214
+ };
215
+ var _AWSServiceAccessNotEnabledException = class _AWSServiceAccessNotEnabledException extends ServiceQuotasServiceException {
216
+ /**
217
+ * @internal
218
+ */
219
+ constructor(opts) {
220
+ super({
221
+ name: "AWSServiceAccessNotEnabledException",
222
+ $fault: "client",
223
+ ...opts
224
+ });
225
+ this.name = "AWSServiceAccessNotEnabledException";
226
+ this.$fault = "client";
227
+ Object.setPrototypeOf(this, _AWSServiceAccessNotEnabledException.prototype);
228
+ this.Message = opts.Message;
229
+ }
230
+ };
231
+ __name(_AWSServiceAccessNotEnabledException, "AWSServiceAccessNotEnabledException");
232
+ var AWSServiceAccessNotEnabledException = _AWSServiceAccessNotEnabledException;
233
+ var _DependencyAccessDeniedException = class _DependencyAccessDeniedException extends ServiceQuotasServiceException {
234
+ /**
235
+ * @internal
236
+ */
237
+ constructor(opts) {
238
+ super({
239
+ name: "DependencyAccessDeniedException",
240
+ $fault: "client",
241
+ ...opts
242
+ });
243
+ this.name = "DependencyAccessDeniedException";
244
+ this.$fault = "client";
245
+ Object.setPrototypeOf(this, _DependencyAccessDeniedException.prototype);
246
+ this.Message = opts.Message;
247
+ }
248
+ };
249
+ __name(_DependencyAccessDeniedException, "DependencyAccessDeniedException");
250
+ var DependencyAccessDeniedException = _DependencyAccessDeniedException;
251
+ var _NoAvailableOrganizationException = class _NoAvailableOrganizationException extends ServiceQuotasServiceException {
252
+ /**
253
+ * @internal
254
+ */
255
+ constructor(opts) {
256
+ super({
257
+ name: "NoAvailableOrganizationException",
258
+ $fault: "client",
259
+ ...opts
260
+ });
261
+ this.name = "NoAvailableOrganizationException";
262
+ this.$fault = "client";
263
+ Object.setPrototypeOf(this, _NoAvailableOrganizationException.prototype);
264
+ this.Message = opts.Message;
265
+ }
266
+ };
267
+ __name(_NoAvailableOrganizationException, "NoAvailableOrganizationException");
268
+ var NoAvailableOrganizationException = _NoAvailableOrganizationException;
269
+ var _OrganizationNotInAllFeaturesModeException = class _OrganizationNotInAllFeaturesModeException extends ServiceQuotasServiceException {
270
+ /**
271
+ * @internal
272
+ */
273
+ constructor(opts) {
274
+ super({
275
+ name: "OrganizationNotInAllFeaturesModeException",
276
+ $fault: "client",
277
+ ...opts
278
+ });
279
+ this.name = "OrganizationNotInAllFeaturesModeException";
280
+ this.$fault = "client";
281
+ Object.setPrototypeOf(this, _OrganizationNotInAllFeaturesModeException.prototype);
282
+ this.Message = opts.Message;
283
+ }
284
+ };
285
+ __name(_OrganizationNotInAllFeaturesModeException, "OrganizationNotInAllFeaturesModeException");
286
+ var OrganizationNotInAllFeaturesModeException = _OrganizationNotInAllFeaturesModeException;
287
+ var _ServiceException = class _ServiceException extends ServiceQuotasServiceException {
288
+ /**
289
+ * @internal
290
+ */
291
+ constructor(opts) {
292
+ super({
293
+ name: "ServiceException",
294
+ $fault: "server",
295
+ ...opts
296
+ });
297
+ this.name = "ServiceException";
298
+ this.$fault = "server";
299
+ Object.setPrototypeOf(this, _ServiceException.prototype);
300
+ this.Message = opts.Message;
301
+ }
302
+ };
303
+ __name(_ServiceException, "ServiceException");
304
+ var ServiceException = _ServiceException;
305
+ var _TemplatesNotAvailableInRegionException = class _TemplatesNotAvailableInRegionException extends ServiceQuotasServiceException {
306
+ /**
307
+ * @internal
308
+ */
309
+ constructor(opts) {
310
+ super({
311
+ name: "TemplatesNotAvailableInRegionException",
312
+ $fault: "client",
313
+ ...opts
314
+ });
315
+ this.name = "TemplatesNotAvailableInRegionException";
316
+ this.$fault = "client";
317
+ Object.setPrototypeOf(this, _TemplatesNotAvailableInRegionException.prototype);
318
+ this.Message = opts.Message;
319
+ }
320
+ };
321
+ __name(_TemplatesNotAvailableInRegionException, "TemplatesNotAvailableInRegionException");
322
+ var TemplatesNotAvailableInRegionException = _TemplatesNotAvailableInRegionException;
323
+ var _TooManyRequestsException = class _TooManyRequestsException extends ServiceQuotasServiceException {
324
+ /**
325
+ * @internal
326
+ */
327
+ constructor(opts) {
328
+ super({
329
+ name: "TooManyRequestsException",
330
+ $fault: "client",
331
+ ...opts
332
+ });
333
+ this.name = "TooManyRequestsException";
334
+ this.$fault = "client";
335
+ Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
336
+ this.Message = opts.Message;
337
+ }
338
+ };
339
+ __name(_TooManyRequestsException, "TooManyRequestsException");
340
+ var TooManyRequestsException = _TooManyRequestsException;
341
+ var _IllegalArgumentException = class _IllegalArgumentException extends ServiceQuotasServiceException {
342
+ /**
343
+ * @internal
344
+ */
345
+ constructor(opts) {
346
+ super({
347
+ name: "IllegalArgumentException",
348
+ $fault: "client",
349
+ ...opts
350
+ });
351
+ this.name = "IllegalArgumentException";
352
+ this.$fault = "client";
353
+ Object.setPrototypeOf(this, _IllegalArgumentException.prototype);
354
+ this.Message = opts.Message;
355
+ }
356
+ };
357
+ __name(_IllegalArgumentException, "IllegalArgumentException");
358
+ var IllegalArgumentException = _IllegalArgumentException;
359
+ var _NoSuchResourceException = class _NoSuchResourceException extends ServiceQuotasServiceException {
360
+ /**
361
+ * @internal
362
+ */
363
+ constructor(opts) {
364
+ super({
365
+ name: "NoSuchResourceException",
366
+ $fault: "client",
367
+ ...opts
368
+ });
369
+ this.name = "NoSuchResourceException";
370
+ this.$fault = "client";
371
+ Object.setPrototypeOf(this, _NoSuchResourceException.prototype);
372
+ this.Message = opts.Message;
373
+ }
374
+ };
375
+ __name(_NoSuchResourceException, "NoSuchResourceException");
376
+ var NoSuchResourceException = _NoSuchResourceException;
377
+ var _ServiceQuotaTemplateNotInUseException = class _ServiceQuotaTemplateNotInUseException extends ServiceQuotasServiceException {
378
+ /**
379
+ * @internal
380
+ */
381
+ constructor(opts) {
382
+ super({
383
+ name: "ServiceQuotaTemplateNotInUseException",
384
+ $fault: "client",
385
+ ...opts
386
+ });
387
+ this.name = "ServiceQuotaTemplateNotInUseException";
388
+ this.$fault = "client";
389
+ Object.setPrototypeOf(this, _ServiceQuotaTemplateNotInUseException.prototype);
390
+ this.Message = opts.Message;
391
+ }
392
+ };
393
+ __name(_ServiceQuotaTemplateNotInUseException, "ServiceQuotaTemplateNotInUseException");
394
+ var ServiceQuotaTemplateNotInUseException = _ServiceQuotaTemplateNotInUseException;
395
+ var ErrorCode = {
396
+ DEPENDENCY_ACCESS_DENIED_ERROR: "DEPENDENCY_ACCESS_DENIED_ERROR",
397
+ DEPENDENCY_SERVICE_ERROR: "DEPENDENCY_SERVICE_ERROR",
398
+ DEPENDENCY_THROTTLING_ERROR: "DEPENDENCY_THROTTLING_ERROR",
399
+ SERVICE_QUOTA_NOT_AVAILABLE_ERROR: "SERVICE_QUOTA_NOT_AVAILABLE_ERROR"
400
+ };
401
+ var ServiceQuotaTemplateAssociationStatus = {
402
+ ASSOCIATED: "ASSOCIATED",
403
+ DISASSOCIATED: "DISASSOCIATED"
404
+ };
405
+ var PeriodUnit = {
406
+ DAY: "DAY",
407
+ HOUR: "HOUR",
408
+ MICROSECOND: "MICROSECOND",
409
+ MILLISECOND: "MILLISECOND",
410
+ MINUTE: "MINUTE",
411
+ SECOND: "SECOND",
412
+ WEEK: "WEEK"
413
+ };
414
+ var QuotaContextScope = {
415
+ ACCOUNT: "ACCOUNT",
416
+ RESOURCE: "RESOURCE"
417
+ };
418
+ var RequestStatus = {
419
+ APPROVED: "APPROVED",
420
+ CASE_CLOSED: "CASE_CLOSED",
421
+ CASE_OPENED: "CASE_OPENED",
422
+ DENIED: "DENIED",
423
+ INVALID_REQUEST: "INVALID_REQUEST",
424
+ NOT_APPROVED: "NOT_APPROVED",
425
+ PENDING: "PENDING"
426
+ };
427
+ var _InvalidPaginationTokenException = class _InvalidPaginationTokenException extends ServiceQuotasServiceException {
428
+ /**
429
+ * @internal
430
+ */
431
+ constructor(opts) {
432
+ super({
433
+ name: "InvalidPaginationTokenException",
434
+ $fault: "client",
435
+ ...opts
436
+ });
437
+ this.name = "InvalidPaginationTokenException";
438
+ this.$fault = "client";
439
+ Object.setPrototypeOf(this, _InvalidPaginationTokenException.prototype);
440
+ this.Message = opts.Message;
441
+ }
442
+ };
443
+ __name(_InvalidPaginationTokenException, "InvalidPaginationTokenException");
444
+ var InvalidPaginationTokenException = _InvalidPaginationTokenException;
445
+ var _InvalidResourceStateException = class _InvalidResourceStateException extends ServiceQuotasServiceException {
446
+ /**
447
+ * @internal
448
+ */
449
+ constructor(opts) {
450
+ super({
451
+ name: "InvalidResourceStateException",
452
+ $fault: "client",
453
+ ...opts
454
+ });
455
+ this.name = "InvalidResourceStateException";
456
+ this.$fault = "client";
457
+ Object.setPrototypeOf(this, _InvalidResourceStateException.prototype);
458
+ this.Message = opts.Message;
459
+ }
460
+ };
461
+ __name(_InvalidResourceStateException, "InvalidResourceStateException");
462
+ var InvalidResourceStateException = _InvalidResourceStateException;
463
+ var _QuotaExceededException = class _QuotaExceededException extends ServiceQuotasServiceException {
464
+ /**
465
+ * @internal
466
+ */
467
+ constructor(opts) {
468
+ super({
469
+ name: "QuotaExceededException",
470
+ $fault: "client",
471
+ ...opts
472
+ });
473
+ this.name = "QuotaExceededException";
474
+ this.$fault = "client";
475
+ Object.setPrototypeOf(this, _QuotaExceededException.prototype);
476
+ this.Message = opts.Message;
477
+ }
478
+ };
479
+ __name(_QuotaExceededException, "QuotaExceededException");
480
+ var QuotaExceededException = _QuotaExceededException;
481
+ var _ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends ServiceQuotasServiceException {
482
+ /**
483
+ * @internal
484
+ */
485
+ constructor(opts) {
486
+ super({
487
+ name: "ResourceAlreadyExistsException",
488
+ $fault: "client",
489
+ ...opts
490
+ });
491
+ this.name = "ResourceAlreadyExistsException";
492
+ this.$fault = "client";
493
+ Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
494
+ this.Message = opts.Message;
495
+ }
496
+ };
497
+ __name(_ResourceAlreadyExistsException, "ResourceAlreadyExistsException");
498
+ var ResourceAlreadyExistsException = _ResourceAlreadyExistsException;
499
+ var _TagPolicyViolationException = class _TagPolicyViolationException extends ServiceQuotasServiceException {
500
+ /**
501
+ * @internal
502
+ */
503
+ constructor(opts) {
504
+ super({
505
+ name: "TagPolicyViolationException",
506
+ $fault: "client",
507
+ ...opts
508
+ });
509
+ this.name = "TagPolicyViolationException";
510
+ this.$fault = "client";
511
+ Object.setPrototypeOf(this, _TagPolicyViolationException.prototype);
512
+ this.Message = opts.Message;
513
+ }
514
+ };
515
+ __name(_TagPolicyViolationException, "TagPolicyViolationException");
516
+ var TagPolicyViolationException = _TagPolicyViolationException;
517
+ var _TooManyTagsException = class _TooManyTagsException extends ServiceQuotasServiceException {
518
+ /**
519
+ * @internal
520
+ */
521
+ constructor(opts) {
522
+ super({
523
+ name: "TooManyTagsException",
524
+ $fault: "client",
525
+ ...opts
526
+ });
527
+ this.name = "TooManyTagsException";
528
+ this.$fault = "client";
529
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
530
+ this.Message = opts.Message;
531
+ }
532
+ };
533
+ __name(_TooManyTagsException, "TooManyTagsException");
534
+ var TooManyTagsException = _TooManyTagsException;
535
+
536
+ // src/protocols/Aws_json1_1.ts
537
+ var se_AssociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
538
+ const headers = sharedHeaders("AssociateServiceQuotaTemplate");
539
+ let body;
540
+ body = JSON.stringify((0, import_smithy_client._json)(input));
541
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
542
+ }, "se_AssociateServiceQuotaTemplateCommand");
543
+ var se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
544
+ const headers = sharedHeaders("DeleteServiceQuotaIncreaseRequestFromTemplate");
545
+ let body;
546
+ body = JSON.stringify((0, import_smithy_client._json)(input));
547
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
548
+ }, "se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand");
549
+ var se_DisassociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
550
+ const headers = sharedHeaders("DisassociateServiceQuotaTemplate");
551
+ let body;
552
+ body = JSON.stringify((0, import_smithy_client._json)(input));
553
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
554
+ }, "se_DisassociateServiceQuotaTemplateCommand");
555
+ var se_GetAssociationForServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
556
+ const headers = sharedHeaders("GetAssociationForServiceQuotaTemplate");
557
+ let body;
558
+ body = JSON.stringify((0, import_smithy_client._json)(input));
559
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
560
+ }, "se_GetAssociationForServiceQuotaTemplateCommand");
561
+ var se_GetAWSDefaultServiceQuotaCommand = /* @__PURE__ */ __name(async (input, context) => {
562
+ const headers = sharedHeaders("GetAWSDefaultServiceQuota");
563
+ let body;
564
+ body = JSON.stringify((0, import_smithy_client._json)(input));
565
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
566
+ }, "se_GetAWSDefaultServiceQuotaCommand");
567
+ var se_GetRequestedServiceQuotaChangeCommand = /* @__PURE__ */ __name(async (input, context) => {
568
+ const headers = sharedHeaders("GetRequestedServiceQuotaChange");
569
+ let body;
570
+ body = JSON.stringify((0, import_smithy_client._json)(input));
571
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
572
+ }, "se_GetRequestedServiceQuotaChangeCommand");
573
+ var se_GetServiceQuotaCommand = /* @__PURE__ */ __name(async (input, context) => {
574
+ const headers = sharedHeaders("GetServiceQuota");
575
+ let body;
576
+ body = JSON.stringify((0, import_smithy_client._json)(input));
577
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
578
+ }, "se_GetServiceQuotaCommand");
579
+ var se_GetServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
580
+ const headers = sharedHeaders("GetServiceQuotaIncreaseRequestFromTemplate");
581
+ let body;
582
+ body = JSON.stringify((0, import_smithy_client._json)(input));
583
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
584
+ }, "se_GetServiceQuotaIncreaseRequestFromTemplateCommand");
585
+ var se_ListAWSDefaultServiceQuotasCommand = /* @__PURE__ */ __name(async (input, context) => {
586
+ const headers = sharedHeaders("ListAWSDefaultServiceQuotas");
587
+ let body;
588
+ body = JSON.stringify((0, import_smithy_client._json)(input));
589
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
590
+ }, "se_ListAWSDefaultServiceQuotasCommand");
591
+ var se_ListRequestedServiceQuotaChangeHistoryCommand = /* @__PURE__ */ __name(async (input, context) => {
592
+ const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistory");
593
+ let body;
594
+ body = JSON.stringify((0, import_smithy_client._json)(input));
595
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
596
+ }, "se_ListRequestedServiceQuotaChangeHistoryCommand");
597
+ var se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = /* @__PURE__ */ __name(async (input, context) => {
598
+ const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistoryByQuota");
599
+ let body;
600
+ body = JSON.stringify((0, import_smithy_client._json)(input));
601
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
602
+ }, "se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand");
603
+ var se_ListServiceQuotaIncreaseRequestsInTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
604
+ const headers = sharedHeaders("ListServiceQuotaIncreaseRequestsInTemplate");
605
+ let body;
606
+ body = JSON.stringify((0, import_smithy_client._json)(input));
607
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
608
+ }, "se_ListServiceQuotaIncreaseRequestsInTemplateCommand");
609
+ var se_ListServiceQuotasCommand = /* @__PURE__ */ __name(async (input, context) => {
610
+ const headers = sharedHeaders("ListServiceQuotas");
611
+ let body;
612
+ body = JSON.stringify((0, import_smithy_client._json)(input));
613
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
614
+ }, "se_ListServiceQuotasCommand");
615
+ var se_ListServicesCommand = /* @__PURE__ */ __name(async (input, context) => {
616
+ const headers = sharedHeaders("ListServices");
617
+ let body;
618
+ body = JSON.stringify((0, import_smithy_client._json)(input));
619
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
620
+ }, "se_ListServicesCommand");
621
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
622
+ const headers = sharedHeaders("ListTagsForResource");
623
+ let body;
624
+ body = JSON.stringify((0, import_smithy_client._json)(input));
625
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
626
+ }, "se_ListTagsForResourceCommand");
627
+ var se_PutServiceQuotaIncreaseRequestIntoTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
628
+ const headers = sharedHeaders("PutServiceQuotaIncreaseRequestIntoTemplate");
629
+ let body;
630
+ body = JSON.stringify(se_PutServiceQuotaIncreaseRequestIntoTemplateRequest(input, context));
631
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
632
+ }, "se_PutServiceQuotaIncreaseRequestIntoTemplateCommand");
633
+ var se_RequestServiceQuotaIncreaseCommand = /* @__PURE__ */ __name(async (input, context) => {
634
+ const headers = sharedHeaders("RequestServiceQuotaIncrease");
635
+ let body;
636
+ body = JSON.stringify(se_RequestServiceQuotaIncreaseRequest(input, context));
637
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
638
+ }, "se_RequestServiceQuotaIncreaseCommand");
639
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
640
+ const headers = sharedHeaders("TagResource");
641
+ let body;
642
+ body = JSON.stringify((0, import_smithy_client._json)(input));
643
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
644
+ }, "se_TagResourceCommand");
645
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
646
+ const headers = sharedHeaders("UntagResource");
647
+ let body;
648
+ body = JSON.stringify((0, import_smithy_client._json)(input));
649
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
650
+ }, "se_UntagResourceCommand");
651
+ var de_AssociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
652
+ if (output.statusCode >= 300) {
653
+ return de_AssociateServiceQuotaTemplateCommandError(output, context);
654
+ }
655
+ const data = await parseBody(output.body, context);
656
+ let contents = {};
657
+ contents = (0, import_smithy_client._json)(data);
658
+ const response = {
659
+ $metadata: deserializeMetadata(output),
660
+ ...contents
661
+ };
662
+ return response;
663
+ }, "de_AssociateServiceQuotaTemplateCommand");
664
+ var de_AssociateServiceQuotaTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
665
+ const parsedOutput = {
666
+ ...output,
667
+ body: await parseErrorBody(output.body, context)
668
+ };
669
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
670
+ switch (errorCode) {
671
+ case "AWSServiceAccessNotEnabledException":
672
+ case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
673
+ throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
674
+ case "AccessDeniedException":
675
+ case "com.amazonaws.servicequotas#AccessDeniedException":
676
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
677
+ case "DependencyAccessDeniedException":
678
+ case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
679
+ throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
680
+ case "NoAvailableOrganizationException":
681
+ case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
682
+ throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
683
+ case "OrganizationNotInAllFeaturesModeException":
684
+ case "com.amazonaws.servicequotas#OrganizationNotInAllFeaturesModeException":
685
+ throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
686
+ case "ServiceException":
687
+ case "com.amazonaws.servicequotas#ServiceException":
688
+ throw await de_ServiceExceptionRes(parsedOutput, context);
689
+ case "TemplatesNotAvailableInRegionException":
690
+ case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
691
+ throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
692
+ case "TooManyRequestsException":
693
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
694
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
695
+ default:
696
+ const parsedBody = parsedOutput.body;
697
+ return throwDefaultError({
698
+ output,
699
+ parsedBody,
700
+ errorCode
701
+ });
702
+ }
703
+ }, "de_AssociateServiceQuotaTemplateCommandError");
704
+ var de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
705
+ if (output.statusCode >= 300) {
706
+ return de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError(output, context);
707
+ }
708
+ const data = await parseBody(output.body, context);
709
+ let contents = {};
710
+ contents = (0, import_smithy_client._json)(data);
711
+ const response = {
712
+ $metadata: deserializeMetadata(output),
713
+ ...contents
714
+ };
715
+ return response;
716
+ }, "de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand");
717
+ var de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
718
+ const parsedOutput = {
719
+ ...output,
720
+ body: await parseErrorBody(output.body, context)
721
+ };
722
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
723
+ switch (errorCode) {
724
+ case "AWSServiceAccessNotEnabledException":
725
+ case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
726
+ throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
727
+ case "AccessDeniedException":
728
+ case "com.amazonaws.servicequotas#AccessDeniedException":
729
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
730
+ case "DependencyAccessDeniedException":
731
+ case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
732
+ throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
733
+ case "IllegalArgumentException":
734
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
735
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
736
+ case "NoAvailableOrganizationException":
737
+ case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
738
+ throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
739
+ case "NoSuchResourceException":
740
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
741
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
742
+ case "ServiceException":
743
+ case "com.amazonaws.servicequotas#ServiceException":
744
+ throw await de_ServiceExceptionRes(parsedOutput, context);
745
+ case "TemplatesNotAvailableInRegionException":
746
+ case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
747
+ throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
748
+ case "TooManyRequestsException":
749
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
750
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
751
+ default:
752
+ const parsedBody = parsedOutput.body;
753
+ return throwDefaultError({
754
+ output,
755
+ parsedBody,
756
+ errorCode
757
+ });
758
+ }
759
+ }, "de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError");
760
+ var de_DisassociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
761
+ if (output.statusCode >= 300) {
762
+ return de_DisassociateServiceQuotaTemplateCommandError(output, context);
763
+ }
764
+ const data = await parseBody(output.body, context);
765
+ let contents = {};
766
+ contents = (0, import_smithy_client._json)(data);
767
+ const response = {
768
+ $metadata: deserializeMetadata(output),
769
+ ...contents
770
+ };
771
+ return response;
772
+ }, "de_DisassociateServiceQuotaTemplateCommand");
773
+ var de_DisassociateServiceQuotaTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
774
+ const parsedOutput = {
775
+ ...output,
776
+ body: await parseErrorBody(output.body, context)
777
+ };
778
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
779
+ switch (errorCode) {
780
+ case "AWSServiceAccessNotEnabledException":
781
+ case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
782
+ throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
783
+ case "AccessDeniedException":
784
+ case "com.amazonaws.servicequotas#AccessDeniedException":
785
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
786
+ case "DependencyAccessDeniedException":
787
+ case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
788
+ throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
789
+ case "NoAvailableOrganizationException":
790
+ case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
791
+ throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
792
+ case "ServiceException":
793
+ case "com.amazonaws.servicequotas#ServiceException":
794
+ throw await de_ServiceExceptionRes(parsedOutput, context);
795
+ case "ServiceQuotaTemplateNotInUseException":
796
+ case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
797
+ throw await de_ServiceQuotaTemplateNotInUseExceptionRes(parsedOutput, context);
798
+ case "TemplatesNotAvailableInRegionException":
799
+ case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
800
+ throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
801
+ case "TooManyRequestsException":
802
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
803
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
804
+ default:
805
+ const parsedBody = parsedOutput.body;
806
+ return throwDefaultError({
807
+ output,
808
+ parsedBody,
809
+ errorCode
810
+ });
811
+ }
812
+ }, "de_DisassociateServiceQuotaTemplateCommandError");
813
+ var de_GetAssociationForServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
814
+ if (output.statusCode >= 300) {
815
+ return de_GetAssociationForServiceQuotaTemplateCommandError(output, context);
816
+ }
817
+ const data = await parseBody(output.body, context);
818
+ let contents = {};
819
+ contents = (0, import_smithy_client._json)(data);
820
+ const response = {
821
+ $metadata: deserializeMetadata(output),
822
+ ...contents
823
+ };
824
+ return response;
825
+ }, "de_GetAssociationForServiceQuotaTemplateCommand");
826
+ var de_GetAssociationForServiceQuotaTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
827
+ const parsedOutput = {
828
+ ...output,
829
+ body: await parseErrorBody(output.body, context)
830
+ };
831
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
832
+ switch (errorCode) {
833
+ case "AWSServiceAccessNotEnabledException":
834
+ case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
835
+ throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
836
+ case "AccessDeniedException":
837
+ case "com.amazonaws.servicequotas#AccessDeniedException":
838
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
839
+ case "DependencyAccessDeniedException":
840
+ case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
841
+ throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
842
+ case "NoAvailableOrganizationException":
843
+ case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
844
+ throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
845
+ case "ServiceException":
846
+ case "com.amazonaws.servicequotas#ServiceException":
847
+ throw await de_ServiceExceptionRes(parsedOutput, context);
848
+ case "ServiceQuotaTemplateNotInUseException":
849
+ case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
850
+ throw await de_ServiceQuotaTemplateNotInUseExceptionRes(parsedOutput, context);
851
+ case "TemplatesNotAvailableInRegionException":
852
+ case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
853
+ throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
854
+ case "TooManyRequestsException":
855
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
856
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
857
+ default:
858
+ const parsedBody = parsedOutput.body;
859
+ return throwDefaultError({
860
+ output,
861
+ parsedBody,
862
+ errorCode
863
+ });
864
+ }
865
+ }, "de_GetAssociationForServiceQuotaTemplateCommandError");
866
+ var de_GetAWSDefaultServiceQuotaCommand = /* @__PURE__ */ __name(async (output, context) => {
867
+ if (output.statusCode >= 300) {
868
+ return de_GetAWSDefaultServiceQuotaCommandError(output, context);
869
+ }
870
+ const data = await parseBody(output.body, context);
871
+ let contents = {};
872
+ contents = de_GetAWSDefaultServiceQuotaResponse(data, context);
873
+ const response = {
874
+ $metadata: deserializeMetadata(output),
875
+ ...contents
876
+ };
877
+ return response;
878
+ }, "de_GetAWSDefaultServiceQuotaCommand");
879
+ var de_GetAWSDefaultServiceQuotaCommandError = /* @__PURE__ */ __name(async (output, context) => {
880
+ const parsedOutput = {
881
+ ...output,
882
+ body: await parseErrorBody(output.body, context)
883
+ };
884
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
885
+ switch (errorCode) {
886
+ case "AccessDeniedException":
887
+ case "com.amazonaws.servicequotas#AccessDeniedException":
888
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
889
+ case "IllegalArgumentException":
890
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
891
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
892
+ case "NoSuchResourceException":
893
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
894
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
895
+ case "ServiceException":
896
+ case "com.amazonaws.servicequotas#ServiceException":
897
+ throw await de_ServiceExceptionRes(parsedOutput, context);
898
+ case "TooManyRequestsException":
899
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
900
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
901
+ default:
902
+ const parsedBody = parsedOutput.body;
903
+ return throwDefaultError({
904
+ output,
905
+ parsedBody,
906
+ errorCode
907
+ });
908
+ }
909
+ }, "de_GetAWSDefaultServiceQuotaCommandError");
910
+ var de_GetRequestedServiceQuotaChangeCommand = /* @__PURE__ */ __name(async (output, context) => {
911
+ if (output.statusCode >= 300) {
912
+ return de_GetRequestedServiceQuotaChangeCommandError(output, context);
913
+ }
914
+ const data = await parseBody(output.body, context);
915
+ let contents = {};
916
+ contents = de_GetRequestedServiceQuotaChangeResponse(data, context);
917
+ const response = {
918
+ $metadata: deserializeMetadata(output),
919
+ ...contents
920
+ };
921
+ return response;
922
+ }, "de_GetRequestedServiceQuotaChangeCommand");
923
+ var de_GetRequestedServiceQuotaChangeCommandError = /* @__PURE__ */ __name(async (output, context) => {
924
+ const parsedOutput = {
925
+ ...output,
926
+ body: await parseErrorBody(output.body, context)
927
+ };
928
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
929
+ switch (errorCode) {
930
+ case "AccessDeniedException":
931
+ case "com.amazonaws.servicequotas#AccessDeniedException":
932
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
933
+ case "IllegalArgumentException":
934
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
935
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
936
+ case "NoSuchResourceException":
937
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
938
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
939
+ case "ServiceException":
940
+ case "com.amazonaws.servicequotas#ServiceException":
941
+ throw await de_ServiceExceptionRes(parsedOutput, context);
942
+ case "TooManyRequestsException":
943
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
944
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
945
+ default:
946
+ const parsedBody = parsedOutput.body;
947
+ return throwDefaultError({
948
+ output,
949
+ parsedBody,
950
+ errorCode
951
+ });
952
+ }
953
+ }, "de_GetRequestedServiceQuotaChangeCommandError");
954
+ var de_GetServiceQuotaCommand = /* @__PURE__ */ __name(async (output, context) => {
955
+ if (output.statusCode >= 300) {
956
+ return de_GetServiceQuotaCommandError(output, context);
957
+ }
958
+ const data = await parseBody(output.body, context);
959
+ let contents = {};
960
+ contents = de_GetServiceQuotaResponse(data, context);
961
+ const response = {
962
+ $metadata: deserializeMetadata(output),
963
+ ...contents
964
+ };
965
+ return response;
966
+ }, "de_GetServiceQuotaCommand");
967
+ var de_GetServiceQuotaCommandError = /* @__PURE__ */ __name(async (output, context) => {
968
+ const parsedOutput = {
969
+ ...output,
970
+ body: await parseErrorBody(output.body, context)
971
+ };
972
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
973
+ switch (errorCode) {
974
+ case "AccessDeniedException":
975
+ case "com.amazonaws.servicequotas#AccessDeniedException":
976
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
977
+ case "IllegalArgumentException":
978
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
979
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
980
+ case "NoSuchResourceException":
981
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
982
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
983
+ case "ServiceException":
984
+ case "com.amazonaws.servicequotas#ServiceException":
985
+ throw await de_ServiceExceptionRes(parsedOutput, context);
986
+ case "TooManyRequestsException":
987
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
988
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
989
+ default:
990
+ const parsedBody = parsedOutput.body;
991
+ return throwDefaultError({
992
+ output,
993
+ parsedBody,
994
+ errorCode
995
+ });
996
+ }
997
+ }, "de_GetServiceQuotaCommandError");
998
+ var de_GetServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
999
+ if (output.statusCode >= 300) {
1000
+ return de_GetServiceQuotaIncreaseRequestFromTemplateCommandError(output, context);
1001
+ }
1002
+ const data = await parseBody(output.body, context);
1003
+ let contents = {};
1004
+ contents = de_GetServiceQuotaIncreaseRequestFromTemplateResponse(data, context);
1005
+ const response = {
1006
+ $metadata: deserializeMetadata(output),
1007
+ ...contents
1008
+ };
1009
+ return response;
1010
+ }, "de_GetServiceQuotaIncreaseRequestFromTemplateCommand");
1011
+ var de_GetServiceQuotaIncreaseRequestFromTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1012
+ const parsedOutput = {
1013
+ ...output,
1014
+ body: await parseErrorBody(output.body, context)
1015
+ };
1016
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1017
+ switch (errorCode) {
1018
+ case "AWSServiceAccessNotEnabledException":
1019
+ case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
1020
+ throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
1021
+ case "AccessDeniedException":
1022
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1023
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1024
+ case "DependencyAccessDeniedException":
1025
+ case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
1026
+ throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
1027
+ case "IllegalArgumentException":
1028
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1029
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1030
+ case "NoAvailableOrganizationException":
1031
+ case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
1032
+ throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
1033
+ case "NoSuchResourceException":
1034
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
1035
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1036
+ case "ServiceException":
1037
+ case "com.amazonaws.servicequotas#ServiceException":
1038
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1039
+ case "TemplatesNotAvailableInRegionException":
1040
+ case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
1041
+ throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
1042
+ case "TooManyRequestsException":
1043
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1044
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1045
+ default:
1046
+ const parsedBody = parsedOutput.body;
1047
+ return throwDefaultError({
1048
+ output,
1049
+ parsedBody,
1050
+ errorCode
1051
+ });
1052
+ }
1053
+ }, "de_GetServiceQuotaIncreaseRequestFromTemplateCommandError");
1054
+ var de_ListAWSDefaultServiceQuotasCommand = /* @__PURE__ */ __name(async (output, context) => {
1055
+ if (output.statusCode >= 300) {
1056
+ return de_ListAWSDefaultServiceQuotasCommandError(output, context);
1057
+ }
1058
+ const data = await parseBody(output.body, context);
1059
+ let contents = {};
1060
+ contents = de_ListAWSDefaultServiceQuotasResponse(data, context);
1061
+ const response = {
1062
+ $metadata: deserializeMetadata(output),
1063
+ ...contents
1064
+ };
1065
+ return response;
1066
+ }, "de_ListAWSDefaultServiceQuotasCommand");
1067
+ var de_ListAWSDefaultServiceQuotasCommandError = /* @__PURE__ */ __name(async (output, context) => {
1068
+ const parsedOutput = {
1069
+ ...output,
1070
+ body: await parseErrorBody(output.body, context)
1071
+ };
1072
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1073
+ switch (errorCode) {
1074
+ case "AccessDeniedException":
1075
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1076
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1077
+ case "IllegalArgumentException":
1078
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1079
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1080
+ case "InvalidPaginationTokenException":
1081
+ case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
1082
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1083
+ case "NoSuchResourceException":
1084
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
1085
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1086
+ case "ServiceException":
1087
+ case "com.amazonaws.servicequotas#ServiceException":
1088
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1089
+ case "TooManyRequestsException":
1090
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1091
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1092
+ default:
1093
+ const parsedBody = parsedOutput.body;
1094
+ return throwDefaultError({
1095
+ output,
1096
+ parsedBody,
1097
+ errorCode
1098
+ });
1099
+ }
1100
+ }, "de_ListAWSDefaultServiceQuotasCommandError");
1101
+ var de_ListRequestedServiceQuotaChangeHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1102
+ if (output.statusCode >= 300) {
1103
+ return de_ListRequestedServiceQuotaChangeHistoryCommandError(output, context);
1104
+ }
1105
+ const data = await parseBody(output.body, context);
1106
+ let contents = {};
1107
+ contents = de_ListRequestedServiceQuotaChangeHistoryResponse(data, context);
1108
+ const response = {
1109
+ $metadata: deserializeMetadata(output),
1110
+ ...contents
1111
+ };
1112
+ return response;
1113
+ }, "de_ListRequestedServiceQuotaChangeHistoryCommand");
1114
+ var de_ListRequestedServiceQuotaChangeHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1115
+ const parsedOutput = {
1116
+ ...output,
1117
+ body: await parseErrorBody(output.body, context)
1118
+ };
1119
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1120
+ switch (errorCode) {
1121
+ case "AccessDeniedException":
1122
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1123
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1124
+ case "IllegalArgumentException":
1125
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1126
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1127
+ case "InvalidPaginationTokenException":
1128
+ case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
1129
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1130
+ case "NoSuchResourceException":
1131
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
1132
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1133
+ case "ServiceException":
1134
+ case "com.amazonaws.servicequotas#ServiceException":
1135
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1136
+ case "TooManyRequestsException":
1137
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1138
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1139
+ default:
1140
+ const parsedBody = parsedOutput.body;
1141
+ return throwDefaultError({
1142
+ output,
1143
+ parsedBody,
1144
+ errorCode
1145
+ });
1146
+ }
1147
+ }, "de_ListRequestedServiceQuotaChangeHistoryCommandError");
1148
+ var de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = /* @__PURE__ */ __name(async (output, context) => {
1149
+ if (output.statusCode >= 300) {
1150
+ return de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError(output, context);
1151
+ }
1152
+ const data = await parseBody(output.body, context);
1153
+ let contents = {};
1154
+ contents = de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse(data, context);
1155
+ const response = {
1156
+ $metadata: deserializeMetadata(output),
1157
+ ...contents
1158
+ };
1159
+ return response;
1160
+ }, "de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand");
1161
+ var de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1162
+ const parsedOutput = {
1163
+ ...output,
1164
+ body: await parseErrorBody(output.body, context)
1165
+ };
1166
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1167
+ switch (errorCode) {
1168
+ case "AccessDeniedException":
1169
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1170
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1171
+ case "IllegalArgumentException":
1172
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1173
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1174
+ case "InvalidPaginationTokenException":
1175
+ case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
1176
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1177
+ case "NoSuchResourceException":
1178
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
1179
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1180
+ case "ServiceException":
1181
+ case "com.amazonaws.servicequotas#ServiceException":
1182
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1183
+ case "TooManyRequestsException":
1184
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1185
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1186
+ default:
1187
+ const parsedBody = parsedOutput.body;
1188
+ return throwDefaultError({
1189
+ output,
1190
+ parsedBody,
1191
+ errorCode
1192
+ });
1193
+ }
1194
+ }, "de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError");
1195
+ var de_ListServiceQuotaIncreaseRequestsInTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1196
+ if (output.statusCode >= 300) {
1197
+ return de_ListServiceQuotaIncreaseRequestsInTemplateCommandError(output, context);
1198
+ }
1199
+ const data = await parseBody(output.body, context);
1200
+ let contents = {};
1201
+ contents = de_ListServiceQuotaIncreaseRequestsInTemplateResponse(data, context);
1202
+ const response = {
1203
+ $metadata: deserializeMetadata(output),
1204
+ ...contents
1205
+ };
1206
+ return response;
1207
+ }, "de_ListServiceQuotaIncreaseRequestsInTemplateCommand");
1208
+ var de_ListServiceQuotaIncreaseRequestsInTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1209
+ const parsedOutput = {
1210
+ ...output,
1211
+ body: await parseErrorBody(output.body, context)
1212
+ };
1213
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1214
+ switch (errorCode) {
1215
+ case "AWSServiceAccessNotEnabledException":
1216
+ case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
1217
+ throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
1218
+ case "AccessDeniedException":
1219
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1220
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1221
+ case "DependencyAccessDeniedException":
1222
+ case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
1223
+ throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
1224
+ case "IllegalArgumentException":
1225
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1226
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1227
+ case "NoAvailableOrganizationException":
1228
+ case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
1229
+ throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
1230
+ case "ServiceException":
1231
+ case "com.amazonaws.servicequotas#ServiceException":
1232
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1233
+ case "TemplatesNotAvailableInRegionException":
1234
+ case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
1235
+ throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
1236
+ case "TooManyRequestsException":
1237
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1238
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1239
+ default:
1240
+ const parsedBody = parsedOutput.body;
1241
+ return throwDefaultError({
1242
+ output,
1243
+ parsedBody,
1244
+ errorCode
1245
+ });
1246
+ }
1247
+ }, "de_ListServiceQuotaIncreaseRequestsInTemplateCommandError");
1248
+ var de_ListServiceQuotasCommand = /* @__PURE__ */ __name(async (output, context) => {
1249
+ if (output.statusCode >= 300) {
1250
+ return de_ListServiceQuotasCommandError(output, context);
1251
+ }
1252
+ const data = await parseBody(output.body, context);
1253
+ let contents = {};
1254
+ contents = de_ListServiceQuotasResponse(data, context);
1255
+ const response = {
1256
+ $metadata: deserializeMetadata(output),
1257
+ ...contents
1258
+ };
1259
+ return response;
1260
+ }, "de_ListServiceQuotasCommand");
1261
+ var de_ListServiceQuotasCommandError = /* @__PURE__ */ __name(async (output, context) => {
1262
+ const parsedOutput = {
1263
+ ...output,
1264
+ body: await parseErrorBody(output.body, context)
1265
+ };
1266
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1267
+ switch (errorCode) {
1268
+ case "AccessDeniedException":
1269
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1270
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1271
+ case "IllegalArgumentException":
1272
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1273
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1274
+ case "InvalidPaginationTokenException":
1275
+ case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
1276
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1277
+ case "NoSuchResourceException":
1278
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
1279
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1280
+ case "ServiceException":
1281
+ case "com.amazonaws.servicequotas#ServiceException":
1282
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1283
+ case "TooManyRequestsException":
1284
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1285
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1286
+ default:
1287
+ const parsedBody = parsedOutput.body;
1288
+ return throwDefaultError({
1289
+ output,
1290
+ parsedBody,
1291
+ errorCode
1292
+ });
1293
+ }
1294
+ }, "de_ListServiceQuotasCommandError");
1295
+ var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
1296
+ if (output.statusCode >= 300) {
1297
+ return de_ListServicesCommandError(output, context);
1298
+ }
1299
+ const data = await parseBody(output.body, context);
1300
+ let contents = {};
1301
+ contents = (0, import_smithy_client._json)(data);
1302
+ const response = {
1303
+ $metadata: deserializeMetadata(output),
1304
+ ...contents
1305
+ };
1306
+ return response;
1307
+ }, "de_ListServicesCommand");
1308
+ var de_ListServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1309
+ const parsedOutput = {
1310
+ ...output,
1311
+ body: await parseErrorBody(output.body, context)
1312
+ };
1313
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1314
+ switch (errorCode) {
1315
+ case "AccessDeniedException":
1316
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1317
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1318
+ case "IllegalArgumentException":
1319
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1320
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1321
+ case "InvalidPaginationTokenException":
1322
+ case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
1323
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1324
+ case "ServiceException":
1325
+ case "com.amazonaws.servicequotas#ServiceException":
1326
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1327
+ case "TooManyRequestsException":
1328
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1329
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1330
+ default:
1331
+ const parsedBody = parsedOutput.body;
1332
+ return throwDefaultError({
1333
+ output,
1334
+ parsedBody,
1335
+ errorCode
1336
+ });
1337
+ }
1338
+ }, "de_ListServicesCommandError");
1339
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1340
+ if (output.statusCode >= 300) {
1341
+ return de_ListTagsForResourceCommandError(output, context);
1342
+ }
1343
+ const data = await parseBody(output.body, context);
1344
+ let contents = {};
1345
+ contents = (0, import_smithy_client._json)(data);
1346
+ const response = {
1347
+ $metadata: deserializeMetadata(output),
1348
+ ...contents
1349
+ };
1350
+ return response;
1351
+ }, "de_ListTagsForResourceCommand");
1352
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1353
+ const parsedOutput = {
1354
+ ...output,
1355
+ body: await parseErrorBody(output.body, context)
1356
+ };
1357
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1358
+ switch (errorCode) {
1359
+ case "AccessDeniedException":
1360
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1361
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1362
+ case "IllegalArgumentException":
1363
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1364
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1365
+ case "NoSuchResourceException":
1366
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
1367
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1368
+ case "ServiceException":
1369
+ case "com.amazonaws.servicequotas#ServiceException":
1370
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1371
+ case "TooManyRequestsException":
1372
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1373
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1374
+ default:
1375
+ const parsedBody = parsedOutput.body;
1376
+ return throwDefaultError({
1377
+ output,
1378
+ parsedBody,
1379
+ errorCode
1380
+ });
1381
+ }
1382
+ }, "de_ListTagsForResourceCommandError");
1383
+ var de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1384
+ if (output.statusCode >= 300) {
1385
+ return de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError(output, context);
1386
+ }
1387
+ const data = await parseBody(output.body, context);
1388
+ let contents = {};
1389
+ contents = de_PutServiceQuotaIncreaseRequestIntoTemplateResponse(data, context);
1390
+ const response = {
1391
+ $metadata: deserializeMetadata(output),
1392
+ ...contents
1393
+ };
1394
+ return response;
1395
+ }, "de_PutServiceQuotaIncreaseRequestIntoTemplateCommand");
1396
+ var de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1397
+ const parsedOutput = {
1398
+ ...output,
1399
+ body: await parseErrorBody(output.body, context)
1400
+ };
1401
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1402
+ switch (errorCode) {
1403
+ case "AWSServiceAccessNotEnabledException":
1404
+ case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
1405
+ throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
1406
+ case "AccessDeniedException":
1407
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1408
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1409
+ case "DependencyAccessDeniedException":
1410
+ case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
1411
+ throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
1412
+ case "IllegalArgumentException":
1413
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1414
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1415
+ case "NoAvailableOrganizationException":
1416
+ case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
1417
+ throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
1418
+ case "NoSuchResourceException":
1419
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
1420
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1421
+ case "QuotaExceededException":
1422
+ case "com.amazonaws.servicequotas#QuotaExceededException":
1423
+ throw await de_QuotaExceededExceptionRes(parsedOutput, context);
1424
+ case "ServiceException":
1425
+ case "com.amazonaws.servicequotas#ServiceException":
1426
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1427
+ case "TemplatesNotAvailableInRegionException":
1428
+ case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
1429
+ throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
1430
+ case "TooManyRequestsException":
1431
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1432
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1433
+ default:
1434
+ const parsedBody = parsedOutput.body;
1435
+ return throwDefaultError({
1436
+ output,
1437
+ parsedBody,
1438
+ errorCode
1439
+ });
1440
+ }
1441
+ }, "de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError");
1442
+ var de_RequestServiceQuotaIncreaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1443
+ if (output.statusCode >= 300) {
1444
+ return de_RequestServiceQuotaIncreaseCommandError(output, context);
1445
+ }
1446
+ const data = await parseBody(output.body, context);
1447
+ let contents = {};
1448
+ contents = de_RequestServiceQuotaIncreaseResponse(data, context);
1449
+ const response = {
1450
+ $metadata: deserializeMetadata(output),
1451
+ ...contents
1452
+ };
1453
+ return response;
1454
+ }, "de_RequestServiceQuotaIncreaseCommand");
1455
+ var de_RequestServiceQuotaIncreaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1456
+ const parsedOutput = {
1457
+ ...output,
1458
+ body: await parseErrorBody(output.body, context)
1459
+ };
1460
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1461
+ switch (errorCode) {
1462
+ case "AccessDeniedException":
1463
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1464
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1465
+ case "DependencyAccessDeniedException":
1466
+ case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
1467
+ throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
1468
+ case "IllegalArgumentException":
1469
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1470
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1471
+ case "InvalidResourceStateException":
1472
+ case "com.amazonaws.servicequotas#InvalidResourceStateException":
1473
+ throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
1474
+ case "NoSuchResourceException":
1475
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
1476
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1477
+ case "QuotaExceededException":
1478
+ case "com.amazonaws.servicequotas#QuotaExceededException":
1479
+ throw await de_QuotaExceededExceptionRes(parsedOutput, context);
1480
+ case "ResourceAlreadyExistsException":
1481
+ case "com.amazonaws.servicequotas#ResourceAlreadyExistsException":
1482
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1483
+ case "ServiceException":
1484
+ case "com.amazonaws.servicequotas#ServiceException":
1485
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1486
+ case "TooManyRequestsException":
1487
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1488
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1489
+ default:
1490
+ const parsedBody = parsedOutput.body;
1491
+ return throwDefaultError({
1492
+ output,
1493
+ parsedBody,
1494
+ errorCode
1495
+ });
1496
+ }
1497
+ }, "de_RequestServiceQuotaIncreaseCommandError");
1498
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1499
+ if (output.statusCode >= 300) {
1500
+ return de_TagResourceCommandError(output, context);
1501
+ }
1502
+ const data = await parseBody(output.body, context);
1503
+ let contents = {};
1504
+ contents = (0, import_smithy_client._json)(data);
1505
+ const response = {
1506
+ $metadata: deserializeMetadata(output),
1507
+ ...contents
1508
+ };
1509
+ return response;
1510
+ }, "de_TagResourceCommand");
1511
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1512
+ const parsedOutput = {
1513
+ ...output,
1514
+ body: await parseErrorBody(output.body, context)
1515
+ };
1516
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1517
+ switch (errorCode) {
1518
+ case "AccessDeniedException":
1519
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1520
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1521
+ case "IllegalArgumentException":
1522
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1523
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1524
+ case "NoSuchResourceException":
1525
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
1526
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1527
+ case "ServiceException":
1528
+ case "com.amazonaws.servicequotas#ServiceException":
1529
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1530
+ case "TagPolicyViolationException":
1531
+ case "com.amazonaws.servicequotas#TagPolicyViolationException":
1532
+ throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
1533
+ case "TooManyRequestsException":
1534
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1535
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1536
+ case "TooManyTagsException":
1537
+ case "com.amazonaws.servicequotas#TooManyTagsException":
1538
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1539
+ default:
1540
+ const parsedBody = parsedOutput.body;
1541
+ return throwDefaultError({
1542
+ output,
1543
+ parsedBody,
1544
+ errorCode
1545
+ });
1546
+ }
1547
+ }, "de_TagResourceCommandError");
1548
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1549
+ if (output.statusCode >= 300) {
1550
+ return de_UntagResourceCommandError(output, context);
1551
+ }
1552
+ const data = await parseBody(output.body, context);
1553
+ let contents = {};
1554
+ contents = (0, import_smithy_client._json)(data);
1555
+ const response = {
1556
+ $metadata: deserializeMetadata(output),
1557
+ ...contents
1558
+ };
1559
+ return response;
1560
+ }, "de_UntagResourceCommand");
1561
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1562
+ const parsedOutput = {
1563
+ ...output,
1564
+ body: await parseErrorBody(output.body, context)
1565
+ };
1566
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1567
+ switch (errorCode) {
1568
+ case "AccessDeniedException":
1569
+ case "com.amazonaws.servicequotas#AccessDeniedException":
1570
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1571
+ case "IllegalArgumentException":
1572
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
1573
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1574
+ case "NoSuchResourceException":
1575
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
1576
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1577
+ case "ServiceException":
1578
+ case "com.amazonaws.servicequotas#ServiceException":
1579
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1580
+ case "TooManyRequestsException":
1581
+ case "com.amazonaws.servicequotas#TooManyRequestsException":
1582
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1583
+ default:
1584
+ const parsedBody = parsedOutput.body;
1585
+ return throwDefaultError({
1586
+ output,
1587
+ parsedBody,
1588
+ errorCode
1589
+ });
1590
+ }
1591
+ }, "de_UntagResourceCommandError");
1592
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1593
+ const body = parsedOutput.body;
1594
+ const deserialized = (0, import_smithy_client._json)(body);
1595
+ const exception = new AccessDeniedException({
1596
+ $metadata: deserializeMetadata(parsedOutput),
1597
+ ...deserialized
1598
+ });
1599
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1600
+ }, "de_AccessDeniedExceptionRes");
1601
+ var de_AWSServiceAccessNotEnabledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1602
+ const body = parsedOutput.body;
1603
+ const deserialized = (0, import_smithy_client._json)(body);
1604
+ const exception = new AWSServiceAccessNotEnabledException({
1605
+ $metadata: deserializeMetadata(parsedOutput),
1606
+ ...deserialized
1607
+ });
1608
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1609
+ }, "de_AWSServiceAccessNotEnabledExceptionRes");
1610
+ var de_DependencyAccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1611
+ const body = parsedOutput.body;
1612
+ const deserialized = (0, import_smithy_client._json)(body);
1613
+ const exception = new DependencyAccessDeniedException({
1614
+ $metadata: deserializeMetadata(parsedOutput),
1615
+ ...deserialized
1616
+ });
1617
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1618
+ }, "de_DependencyAccessDeniedExceptionRes");
1619
+ var de_IllegalArgumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1620
+ const body = parsedOutput.body;
1621
+ const deserialized = (0, import_smithy_client._json)(body);
1622
+ const exception = new IllegalArgumentException({
1623
+ $metadata: deserializeMetadata(parsedOutput),
1624
+ ...deserialized
1625
+ });
1626
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1627
+ }, "de_IllegalArgumentExceptionRes");
1628
+ var de_InvalidPaginationTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1629
+ const body = parsedOutput.body;
1630
+ const deserialized = (0, import_smithy_client._json)(body);
1631
+ const exception = new InvalidPaginationTokenException({
1632
+ $metadata: deserializeMetadata(parsedOutput),
1633
+ ...deserialized
1634
+ });
1635
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1636
+ }, "de_InvalidPaginationTokenExceptionRes");
1637
+ var de_InvalidResourceStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1638
+ const body = parsedOutput.body;
1639
+ const deserialized = (0, import_smithy_client._json)(body);
1640
+ const exception = new InvalidResourceStateException({
1641
+ $metadata: deserializeMetadata(parsedOutput),
1642
+ ...deserialized
1643
+ });
1644
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1645
+ }, "de_InvalidResourceStateExceptionRes");
1646
+ var de_NoAvailableOrganizationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1647
+ const body = parsedOutput.body;
1648
+ const deserialized = (0, import_smithy_client._json)(body);
1649
+ const exception = new NoAvailableOrganizationException({
1650
+ $metadata: deserializeMetadata(parsedOutput),
1651
+ ...deserialized
1652
+ });
1653
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1654
+ }, "de_NoAvailableOrganizationExceptionRes");
1655
+ var de_NoSuchResourceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1656
+ const body = parsedOutput.body;
1657
+ const deserialized = (0, import_smithy_client._json)(body);
1658
+ const exception = new NoSuchResourceException({
1659
+ $metadata: deserializeMetadata(parsedOutput),
1660
+ ...deserialized
1661
+ });
1662
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1663
+ }, "de_NoSuchResourceExceptionRes");
1664
+ var de_OrganizationNotInAllFeaturesModeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1665
+ const body = parsedOutput.body;
1666
+ const deserialized = (0, import_smithy_client._json)(body);
1667
+ const exception = new OrganizationNotInAllFeaturesModeException({
1668
+ $metadata: deserializeMetadata(parsedOutput),
1669
+ ...deserialized
1670
+ });
1671
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1672
+ }, "de_OrganizationNotInAllFeaturesModeExceptionRes");
1673
+ var de_QuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1674
+ const body = parsedOutput.body;
1675
+ const deserialized = (0, import_smithy_client._json)(body);
1676
+ const exception = new QuotaExceededException({
1677
+ $metadata: deserializeMetadata(parsedOutput),
1678
+ ...deserialized
1679
+ });
1680
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1681
+ }, "de_QuotaExceededExceptionRes");
1682
+ var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1683
+ const body = parsedOutput.body;
1684
+ const deserialized = (0, import_smithy_client._json)(body);
1685
+ const exception = new ResourceAlreadyExistsException({
1686
+ $metadata: deserializeMetadata(parsedOutput),
1687
+ ...deserialized
1688
+ });
1689
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1690
+ }, "de_ResourceAlreadyExistsExceptionRes");
1691
+ var de_ServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1692
+ const body = parsedOutput.body;
1693
+ const deserialized = (0, import_smithy_client._json)(body);
1694
+ const exception = new ServiceException({
1695
+ $metadata: deserializeMetadata(parsedOutput),
1696
+ ...deserialized
1697
+ });
1698
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1699
+ }, "de_ServiceExceptionRes");
1700
+ var de_ServiceQuotaTemplateNotInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1701
+ const body = parsedOutput.body;
1702
+ const deserialized = (0, import_smithy_client._json)(body);
1703
+ const exception = new ServiceQuotaTemplateNotInUseException({
1704
+ $metadata: deserializeMetadata(parsedOutput),
1705
+ ...deserialized
1706
+ });
1707
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1708
+ }, "de_ServiceQuotaTemplateNotInUseExceptionRes");
1709
+ var de_TagPolicyViolationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1710
+ const body = parsedOutput.body;
1711
+ const deserialized = (0, import_smithy_client._json)(body);
1712
+ const exception = new TagPolicyViolationException({
1713
+ $metadata: deserializeMetadata(parsedOutput),
1714
+ ...deserialized
1715
+ });
1716
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1717
+ }, "de_TagPolicyViolationExceptionRes");
1718
+ var de_TemplatesNotAvailableInRegionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1719
+ const body = parsedOutput.body;
1720
+ const deserialized = (0, import_smithy_client._json)(body);
1721
+ const exception = new TemplatesNotAvailableInRegionException({
1722
+ $metadata: deserializeMetadata(parsedOutput),
1723
+ ...deserialized
1724
+ });
1725
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1726
+ }, "de_TemplatesNotAvailableInRegionExceptionRes");
1727
+ var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1728
+ const body = parsedOutput.body;
1729
+ const deserialized = (0, import_smithy_client._json)(body);
1730
+ const exception = new TooManyRequestsException({
1731
+ $metadata: deserializeMetadata(parsedOutput),
1732
+ ...deserialized
1733
+ });
1734
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1735
+ }, "de_TooManyRequestsExceptionRes");
1736
+ var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1737
+ const body = parsedOutput.body;
1738
+ const deserialized = (0, import_smithy_client._json)(body);
1739
+ const exception = new TooManyTagsException({
1740
+ $metadata: deserializeMetadata(parsedOutput),
1741
+ ...deserialized
1742
+ });
1743
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1744
+ }, "de_TooManyTagsExceptionRes");
1745
+ var se_PutServiceQuotaIncreaseRequestIntoTemplateRequest = /* @__PURE__ */ __name((input, context) => {
1746
+ return (0, import_smithy_client.take)(input, {
1747
+ AwsRegion: [],
1748
+ DesiredValue: import_smithy_client.serializeFloat,
1749
+ QuotaCode: [],
1750
+ ServiceCode: []
1751
+ });
1752
+ }, "se_PutServiceQuotaIncreaseRequestIntoTemplateRequest");
1753
+ var se_RequestServiceQuotaIncreaseRequest = /* @__PURE__ */ __name((input, context) => {
1754
+ return (0, import_smithy_client.take)(input, {
1755
+ ContextId: [],
1756
+ DesiredValue: import_smithy_client.serializeFloat,
1757
+ QuotaCode: [],
1758
+ ServiceCode: []
1759
+ });
1760
+ }, "se_RequestServiceQuotaIncreaseRequest");
1761
+ var de_GetAWSDefaultServiceQuotaResponse = /* @__PURE__ */ __name((output, context) => {
1762
+ return (0, import_smithy_client.take)(output, {
1763
+ Quota: (_) => de_ServiceQuota(_, context)
1764
+ });
1765
+ }, "de_GetAWSDefaultServiceQuotaResponse");
1766
+ var de_GetRequestedServiceQuotaChangeResponse = /* @__PURE__ */ __name((output, context) => {
1767
+ return (0, import_smithy_client.take)(output, {
1768
+ RequestedQuota: (_) => de_RequestedServiceQuotaChange(_, context)
1769
+ });
1770
+ }, "de_GetRequestedServiceQuotaChangeResponse");
1771
+ var de_GetServiceQuotaIncreaseRequestFromTemplateResponse = /* @__PURE__ */ __name((output, context) => {
1772
+ return (0, import_smithy_client.take)(output, {
1773
+ ServiceQuotaIncreaseRequestInTemplate: (_) => de_ServiceQuotaIncreaseRequestInTemplate(_, context)
1774
+ });
1775
+ }, "de_GetServiceQuotaIncreaseRequestFromTemplateResponse");
1776
+ var de_GetServiceQuotaResponse = /* @__PURE__ */ __name((output, context) => {
1777
+ return (0, import_smithy_client.take)(output, {
1778
+ Quota: (_) => de_ServiceQuota(_, context)
1779
+ });
1780
+ }, "de_GetServiceQuotaResponse");
1781
+ var de_ListAWSDefaultServiceQuotasResponse = /* @__PURE__ */ __name((output, context) => {
1782
+ return (0, import_smithy_client.take)(output, {
1783
+ NextToken: import_smithy_client.expectString,
1784
+ Quotas: (_) => de_ServiceQuotaListDefinition(_, context)
1785
+ });
1786
+ }, "de_ListAWSDefaultServiceQuotasResponse");
1787
+ var de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse = /* @__PURE__ */ __name((output, context) => {
1788
+ return (0, import_smithy_client.take)(output, {
1789
+ NextToken: import_smithy_client.expectString,
1790
+ RequestedQuotas: (_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_, context)
1791
+ });
1792
+ }, "de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse");
1793
+ var de_ListRequestedServiceQuotaChangeHistoryResponse = /* @__PURE__ */ __name((output, context) => {
1794
+ return (0, import_smithy_client.take)(output, {
1795
+ NextToken: import_smithy_client.expectString,
1796
+ RequestedQuotas: (_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_, context)
1797
+ });
1798
+ }, "de_ListRequestedServiceQuotaChangeHistoryResponse");
1799
+ var de_ListServiceQuotaIncreaseRequestsInTemplateResponse = /* @__PURE__ */ __name((output, context) => {
1800
+ return (0, import_smithy_client.take)(output, {
1801
+ NextToken: import_smithy_client.expectString,
1802
+ ServiceQuotaIncreaseRequestInTemplateList: (_) => de_ServiceQuotaIncreaseRequestInTemplateList(_, context)
1803
+ });
1804
+ }, "de_ListServiceQuotaIncreaseRequestsInTemplateResponse");
1805
+ var de_ListServiceQuotasResponse = /* @__PURE__ */ __name((output, context) => {
1806
+ return (0, import_smithy_client.take)(output, {
1807
+ NextToken: import_smithy_client.expectString,
1808
+ Quotas: (_) => de_ServiceQuotaListDefinition(_, context)
1809
+ });
1810
+ }, "de_ListServiceQuotasResponse");
1811
+ var de_PutServiceQuotaIncreaseRequestIntoTemplateResponse = /* @__PURE__ */ __name((output, context) => {
1812
+ return (0, import_smithy_client.take)(output, {
1813
+ ServiceQuotaIncreaseRequestInTemplate: (_) => de_ServiceQuotaIncreaseRequestInTemplate(_, context)
1814
+ });
1815
+ }, "de_PutServiceQuotaIncreaseRequestIntoTemplateResponse");
1816
+ var de_RequestedServiceQuotaChange = /* @__PURE__ */ __name((output, context) => {
1817
+ return (0, import_smithy_client.take)(output, {
1818
+ CaseId: import_smithy_client.expectString,
1819
+ Created: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1820
+ DesiredValue: import_smithy_client.limitedParseDouble,
1821
+ GlobalQuota: import_smithy_client.expectBoolean,
1822
+ Id: import_smithy_client.expectString,
1823
+ LastUpdated: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1824
+ QuotaArn: import_smithy_client.expectString,
1825
+ QuotaCode: import_smithy_client.expectString,
1826
+ QuotaContext: import_smithy_client._json,
1827
+ QuotaName: import_smithy_client.expectString,
1828
+ QuotaRequestedAtLevel: import_smithy_client.expectString,
1829
+ Requester: import_smithy_client.expectString,
1830
+ ServiceCode: import_smithy_client.expectString,
1831
+ ServiceName: import_smithy_client.expectString,
1832
+ Status: import_smithy_client.expectString,
1833
+ Unit: import_smithy_client.expectString
1834
+ });
1835
+ }, "de_RequestedServiceQuotaChange");
1836
+ var de_RequestedServiceQuotaChangeHistoryListDefinition = /* @__PURE__ */ __name((output, context) => {
1837
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1838
+ return de_RequestedServiceQuotaChange(entry, context);
1839
+ });
1840
+ return retVal;
1841
+ }, "de_RequestedServiceQuotaChangeHistoryListDefinition");
1842
+ var de_RequestServiceQuotaIncreaseResponse = /* @__PURE__ */ __name((output, context) => {
1843
+ return (0, import_smithy_client.take)(output, {
1844
+ RequestedQuota: (_) => de_RequestedServiceQuotaChange(_, context)
1845
+ });
1846
+ }, "de_RequestServiceQuotaIncreaseResponse");
1847
+ var de_ServiceQuota = /* @__PURE__ */ __name((output, context) => {
1848
+ return (0, import_smithy_client.take)(output, {
1849
+ Adjustable: import_smithy_client.expectBoolean,
1850
+ ErrorReason: import_smithy_client._json,
1851
+ GlobalQuota: import_smithy_client.expectBoolean,
1852
+ Period: import_smithy_client._json,
1853
+ QuotaAppliedAtLevel: import_smithy_client.expectString,
1854
+ QuotaArn: import_smithy_client.expectString,
1855
+ QuotaCode: import_smithy_client.expectString,
1856
+ QuotaContext: import_smithy_client._json,
1857
+ QuotaName: import_smithy_client.expectString,
1858
+ ServiceCode: import_smithy_client.expectString,
1859
+ ServiceName: import_smithy_client.expectString,
1860
+ Unit: import_smithy_client.expectString,
1861
+ UsageMetric: import_smithy_client._json,
1862
+ Value: import_smithy_client.limitedParseDouble
1863
+ });
1864
+ }, "de_ServiceQuota");
1865
+ var de_ServiceQuotaIncreaseRequestInTemplate = /* @__PURE__ */ __name((output, context) => {
1866
+ return (0, import_smithy_client.take)(output, {
1867
+ AwsRegion: import_smithy_client.expectString,
1868
+ DesiredValue: import_smithy_client.limitedParseDouble,
1869
+ GlobalQuota: import_smithy_client.expectBoolean,
1870
+ QuotaCode: import_smithy_client.expectString,
1871
+ QuotaName: import_smithy_client.expectString,
1872
+ ServiceCode: import_smithy_client.expectString,
1873
+ ServiceName: import_smithy_client.expectString,
1874
+ Unit: import_smithy_client.expectString
1875
+ });
1876
+ }, "de_ServiceQuotaIncreaseRequestInTemplate");
1877
+ var de_ServiceQuotaIncreaseRequestInTemplateList = /* @__PURE__ */ __name((output, context) => {
1878
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1879
+ return de_ServiceQuotaIncreaseRequestInTemplate(entry, context);
1880
+ });
1881
+ return retVal;
1882
+ }, "de_ServiceQuotaIncreaseRequestInTemplateList");
1883
+ var de_ServiceQuotaListDefinition = /* @__PURE__ */ __name((output, context) => {
1884
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1885
+ return de_ServiceQuota(entry, context);
1886
+ });
1887
+ return retVal;
1888
+ }, "de_ServiceQuotaListDefinition");
1889
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1890
+ httpStatusCode: output.statusCode,
1891
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1892
+ extendedRequestId: output.headers["x-amz-id-2"],
1893
+ cfId: output.headers["x-amz-cf-id"]
1894
+ }), "deserializeMetadata");
1895
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1896
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ServiceQuotasServiceException);
1897
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1898
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1899
+ const contents = {
1900
+ protocol,
1901
+ hostname,
1902
+ port,
1903
+ method: "POST",
1904
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1905
+ headers
1906
+ };
1907
+ if (resolvedHostname !== void 0) {
1908
+ contents.hostname = resolvedHostname;
1909
+ }
1910
+ if (body !== void 0) {
1911
+ contents.body = body;
1912
+ }
1913
+ return new import_protocol_http.HttpRequest(contents);
1914
+ }, "buildHttpRpcRequest");
1915
+ function sharedHeaders(operation) {
1916
+ return {
1917
+ "content-type": "application/x-amz-json-1.1",
1918
+ "x-amz-target": `ServiceQuotasV20190624.${operation}`
1919
+ };
1920
+ }
1921
+ __name(sharedHeaders, "sharedHeaders");
1922
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1923
+ if (encoded.length) {
1924
+ return JSON.parse(encoded);
1925
+ }
1926
+ return {};
1927
+ }), "parseBody");
1928
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1929
+ const value = await parseBody(errorBody, context);
1930
+ value.message = value.message ?? value.Message;
1931
+ return value;
1932
+ }, "parseErrorBody");
1933
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1934
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1935
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1936
+ let cleanValue = rawValue;
1937
+ if (typeof cleanValue === "number") {
1938
+ cleanValue = cleanValue.toString();
1939
+ }
1940
+ if (cleanValue.indexOf(",") >= 0) {
1941
+ cleanValue = cleanValue.split(",")[0];
1942
+ }
1943
+ if (cleanValue.indexOf(":") >= 0) {
1944
+ cleanValue = cleanValue.split(":")[0];
1945
+ }
1946
+ if (cleanValue.indexOf("#") >= 0) {
1947
+ cleanValue = cleanValue.split("#")[1];
1948
+ }
1949
+ return cleanValue;
1950
+ }, "sanitizeErrorCode");
1951
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1952
+ if (headerKey !== void 0) {
1953
+ return sanitizeErrorCode(output.headers[headerKey]);
1954
+ }
1955
+ if (data.code !== void 0) {
1956
+ return sanitizeErrorCode(data.code);
1957
+ }
1958
+ if (data["__type"] !== void 0) {
1959
+ return sanitizeErrorCode(data["__type"]);
1960
+ }
1961
+ }, "loadRestJsonErrorCode");
1962
+
1963
+ // src/commands/AssociateServiceQuotaTemplateCommand.ts
1964
+ var _AssociateServiceQuotaTemplateCommand = class _AssociateServiceQuotaTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
1965
+ ...commonParams
1966
+ }).m(function(Command, cs, config, o) {
1967
+ return [
1968
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1969
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1970
+ ];
1971
+ }).s("ServiceQuotasV20190624", "AssociateServiceQuotaTemplate", {}).n("ServiceQuotasClient", "AssociateServiceQuotaTemplateCommand").f(void 0, void 0).ser(se_AssociateServiceQuotaTemplateCommand).de(de_AssociateServiceQuotaTemplateCommand).build() {
1972
+ };
1973
+ __name(_AssociateServiceQuotaTemplateCommand, "AssociateServiceQuotaTemplateCommand");
1974
+ var AssociateServiceQuotaTemplateCommand = _AssociateServiceQuotaTemplateCommand;
1975
+
1976
+ // src/commands/DeleteServiceQuotaIncreaseRequestFromTemplateCommand.ts
1977
+
1978
+
1979
+
1980
+
1981
+ var _DeleteServiceQuotaIncreaseRequestFromTemplateCommand = class _DeleteServiceQuotaIncreaseRequestFromTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
1982
+ ...commonParams
1983
+ }).m(function(Command, cs, config, o) {
1984
+ return [
1985
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1986
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1987
+ ];
1988
+ }).s("ServiceQuotasV20190624", "DeleteServiceQuotaIncreaseRequestFromTemplate", {}).n("ServiceQuotasClient", "DeleteServiceQuotaIncreaseRequestFromTemplateCommand").f(void 0, void 0).ser(se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand).de(de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand).build() {
1989
+ };
1990
+ __name(_DeleteServiceQuotaIncreaseRequestFromTemplateCommand, "DeleteServiceQuotaIncreaseRequestFromTemplateCommand");
1991
+ var DeleteServiceQuotaIncreaseRequestFromTemplateCommand = _DeleteServiceQuotaIncreaseRequestFromTemplateCommand;
1992
+
1993
+ // src/commands/DisassociateServiceQuotaTemplateCommand.ts
1994
+
1995
+
1996
+
1997
+
1998
+ var _DisassociateServiceQuotaTemplateCommand = class _DisassociateServiceQuotaTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
1999
+ ...commonParams
2000
+ }).m(function(Command, cs, config, o) {
2001
+ return [
2002
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2003
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2004
+ ];
2005
+ }).s("ServiceQuotasV20190624", "DisassociateServiceQuotaTemplate", {}).n("ServiceQuotasClient", "DisassociateServiceQuotaTemplateCommand").f(void 0, void 0).ser(se_DisassociateServiceQuotaTemplateCommand).de(de_DisassociateServiceQuotaTemplateCommand).build() {
2006
+ };
2007
+ __name(_DisassociateServiceQuotaTemplateCommand, "DisassociateServiceQuotaTemplateCommand");
2008
+ var DisassociateServiceQuotaTemplateCommand = _DisassociateServiceQuotaTemplateCommand;
2009
+
2010
+ // src/commands/GetAssociationForServiceQuotaTemplateCommand.ts
2011
+
2012
+
2013
+
2014
+
2015
+ var _GetAssociationForServiceQuotaTemplateCommand = class _GetAssociationForServiceQuotaTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2016
+ ...commonParams
2017
+ }).m(function(Command, cs, config, o) {
2018
+ return [
2019
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2020
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2021
+ ];
2022
+ }).s("ServiceQuotasV20190624", "GetAssociationForServiceQuotaTemplate", {}).n("ServiceQuotasClient", "GetAssociationForServiceQuotaTemplateCommand").f(void 0, void 0).ser(se_GetAssociationForServiceQuotaTemplateCommand).de(de_GetAssociationForServiceQuotaTemplateCommand).build() {
2023
+ };
2024
+ __name(_GetAssociationForServiceQuotaTemplateCommand, "GetAssociationForServiceQuotaTemplateCommand");
2025
+ var GetAssociationForServiceQuotaTemplateCommand = _GetAssociationForServiceQuotaTemplateCommand;
2026
+
2027
+ // src/commands/GetAWSDefaultServiceQuotaCommand.ts
2028
+
2029
+
2030
+
2031
+
2032
+ var _GetAWSDefaultServiceQuotaCommand = class _GetAWSDefaultServiceQuotaCommand extends import_smithy_client.Command.classBuilder().ep({
2033
+ ...commonParams
2034
+ }).m(function(Command, cs, config, o) {
2035
+ return [
2036
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2037
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2038
+ ];
2039
+ }).s("ServiceQuotasV20190624", "GetAWSDefaultServiceQuota", {}).n("ServiceQuotasClient", "GetAWSDefaultServiceQuotaCommand").f(void 0, void 0).ser(se_GetAWSDefaultServiceQuotaCommand).de(de_GetAWSDefaultServiceQuotaCommand).build() {
2040
+ };
2041
+ __name(_GetAWSDefaultServiceQuotaCommand, "GetAWSDefaultServiceQuotaCommand");
2042
+ var GetAWSDefaultServiceQuotaCommand = _GetAWSDefaultServiceQuotaCommand;
2043
+
2044
+ // src/commands/GetRequestedServiceQuotaChangeCommand.ts
2045
+
2046
+
2047
+
2048
+
2049
+ var _GetRequestedServiceQuotaChangeCommand = class _GetRequestedServiceQuotaChangeCommand extends import_smithy_client.Command.classBuilder().ep({
2050
+ ...commonParams
2051
+ }).m(function(Command, cs, config, o) {
2052
+ return [
2053
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2054
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2055
+ ];
2056
+ }).s("ServiceQuotasV20190624", "GetRequestedServiceQuotaChange", {}).n("ServiceQuotasClient", "GetRequestedServiceQuotaChangeCommand").f(void 0, void 0).ser(se_GetRequestedServiceQuotaChangeCommand).de(de_GetRequestedServiceQuotaChangeCommand).build() {
2057
+ };
2058
+ __name(_GetRequestedServiceQuotaChangeCommand, "GetRequestedServiceQuotaChangeCommand");
2059
+ var GetRequestedServiceQuotaChangeCommand = _GetRequestedServiceQuotaChangeCommand;
2060
+
2061
+ // src/commands/GetServiceQuotaCommand.ts
2062
+
2063
+
2064
+
2065
+
2066
+ var _GetServiceQuotaCommand = class _GetServiceQuotaCommand extends import_smithy_client.Command.classBuilder().ep({
2067
+ ...commonParams
2068
+ }).m(function(Command, cs, config, o) {
2069
+ return [
2070
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2071
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2072
+ ];
2073
+ }).s("ServiceQuotasV20190624", "GetServiceQuota", {}).n("ServiceQuotasClient", "GetServiceQuotaCommand").f(void 0, void 0).ser(se_GetServiceQuotaCommand).de(de_GetServiceQuotaCommand).build() {
2074
+ };
2075
+ __name(_GetServiceQuotaCommand, "GetServiceQuotaCommand");
2076
+ var GetServiceQuotaCommand = _GetServiceQuotaCommand;
2077
+
2078
+ // src/commands/GetServiceQuotaIncreaseRequestFromTemplateCommand.ts
2079
+
2080
+
2081
+
2082
+
2083
+ var _GetServiceQuotaIncreaseRequestFromTemplateCommand = class _GetServiceQuotaIncreaseRequestFromTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2084
+ ...commonParams
2085
+ }).m(function(Command, cs, config, o) {
2086
+ return [
2087
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2088
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2089
+ ];
2090
+ }).s("ServiceQuotasV20190624", "GetServiceQuotaIncreaseRequestFromTemplate", {}).n("ServiceQuotasClient", "GetServiceQuotaIncreaseRequestFromTemplateCommand").f(void 0, void 0).ser(se_GetServiceQuotaIncreaseRequestFromTemplateCommand).de(de_GetServiceQuotaIncreaseRequestFromTemplateCommand).build() {
2091
+ };
2092
+ __name(_GetServiceQuotaIncreaseRequestFromTemplateCommand, "GetServiceQuotaIncreaseRequestFromTemplateCommand");
2093
+ var GetServiceQuotaIncreaseRequestFromTemplateCommand = _GetServiceQuotaIncreaseRequestFromTemplateCommand;
2094
+
2095
+ // src/commands/ListAWSDefaultServiceQuotasCommand.ts
2096
+
2097
+
2098
+
2099
+
2100
+ var _ListAWSDefaultServiceQuotasCommand = class _ListAWSDefaultServiceQuotasCommand extends import_smithy_client.Command.classBuilder().ep({
2101
+ ...commonParams
2102
+ }).m(function(Command, cs, config, o) {
2103
+ return [
2104
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2105
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2106
+ ];
2107
+ }).s("ServiceQuotasV20190624", "ListAWSDefaultServiceQuotas", {}).n("ServiceQuotasClient", "ListAWSDefaultServiceQuotasCommand").f(void 0, void 0).ser(se_ListAWSDefaultServiceQuotasCommand).de(de_ListAWSDefaultServiceQuotasCommand).build() {
2108
+ };
2109
+ __name(_ListAWSDefaultServiceQuotasCommand, "ListAWSDefaultServiceQuotasCommand");
2110
+ var ListAWSDefaultServiceQuotasCommand = _ListAWSDefaultServiceQuotasCommand;
2111
+
2112
+ // src/commands/ListRequestedServiceQuotaChangeHistoryByQuotaCommand.ts
2113
+
2114
+
2115
+
2116
+
2117
+ var _ListRequestedServiceQuotaChangeHistoryByQuotaCommand = class _ListRequestedServiceQuotaChangeHistoryByQuotaCommand extends import_smithy_client.Command.classBuilder().ep({
2118
+ ...commonParams
2119
+ }).m(function(Command, cs, config, o) {
2120
+ return [
2121
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2122
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2123
+ ];
2124
+ }).s("ServiceQuotasV20190624", "ListRequestedServiceQuotaChangeHistoryByQuota", {}).n("ServiceQuotasClient", "ListRequestedServiceQuotaChangeHistoryByQuotaCommand").f(void 0, void 0).ser(se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand).de(de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand).build() {
2125
+ };
2126
+ __name(_ListRequestedServiceQuotaChangeHistoryByQuotaCommand, "ListRequestedServiceQuotaChangeHistoryByQuotaCommand");
2127
+ var ListRequestedServiceQuotaChangeHistoryByQuotaCommand = _ListRequestedServiceQuotaChangeHistoryByQuotaCommand;
2128
+
2129
+ // src/commands/ListRequestedServiceQuotaChangeHistoryCommand.ts
2130
+
2131
+
2132
+
2133
+
2134
+ var _ListRequestedServiceQuotaChangeHistoryCommand = class _ListRequestedServiceQuotaChangeHistoryCommand extends import_smithy_client.Command.classBuilder().ep({
2135
+ ...commonParams
2136
+ }).m(function(Command, cs, config, o) {
2137
+ return [
2138
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2139
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2140
+ ];
2141
+ }).s("ServiceQuotasV20190624", "ListRequestedServiceQuotaChangeHistory", {}).n("ServiceQuotasClient", "ListRequestedServiceQuotaChangeHistoryCommand").f(void 0, void 0).ser(se_ListRequestedServiceQuotaChangeHistoryCommand).de(de_ListRequestedServiceQuotaChangeHistoryCommand).build() {
2142
+ };
2143
+ __name(_ListRequestedServiceQuotaChangeHistoryCommand, "ListRequestedServiceQuotaChangeHistoryCommand");
2144
+ var ListRequestedServiceQuotaChangeHistoryCommand = _ListRequestedServiceQuotaChangeHistoryCommand;
2145
+
2146
+ // src/commands/ListServiceQuotaIncreaseRequestsInTemplateCommand.ts
2147
+
2148
+
2149
+
2150
+
2151
+ var _ListServiceQuotaIncreaseRequestsInTemplateCommand = class _ListServiceQuotaIncreaseRequestsInTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2152
+ ...commonParams
2153
+ }).m(function(Command, cs, config, o) {
2154
+ return [
2155
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2156
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2157
+ ];
2158
+ }).s("ServiceQuotasV20190624", "ListServiceQuotaIncreaseRequestsInTemplate", {}).n("ServiceQuotasClient", "ListServiceQuotaIncreaseRequestsInTemplateCommand").f(void 0, void 0).ser(se_ListServiceQuotaIncreaseRequestsInTemplateCommand).de(de_ListServiceQuotaIncreaseRequestsInTemplateCommand).build() {
2159
+ };
2160
+ __name(_ListServiceQuotaIncreaseRequestsInTemplateCommand, "ListServiceQuotaIncreaseRequestsInTemplateCommand");
2161
+ var ListServiceQuotaIncreaseRequestsInTemplateCommand = _ListServiceQuotaIncreaseRequestsInTemplateCommand;
2162
+
2163
+ // src/commands/ListServiceQuotasCommand.ts
2164
+
2165
+
2166
+
2167
+
2168
+ var _ListServiceQuotasCommand = class _ListServiceQuotasCommand extends import_smithy_client.Command.classBuilder().ep({
2169
+ ...commonParams
2170
+ }).m(function(Command, cs, config, o) {
2171
+ return [
2172
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2173
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2174
+ ];
2175
+ }).s("ServiceQuotasV20190624", "ListServiceQuotas", {}).n("ServiceQuotasClient", "ListServiceQuotasCommand").f(void 0, void 0).ser(se_ListServiceQuotasCommand).de(de_ListServiceQuotasCommand).build() {
2176
+ };
2177
+ __name(_ListServiceQuotasCommand, "ListServiceQuotasCommand");
2178
+ var ListServiceQuotasCommand = _ListServiceQuotasCommand;
2179
+
2180
+ // src/commands/ListServicesCommand.ts
2181
+
2182
+
2183
+
2184
+
2185
+ var _ListServicesCommand = class _ListServicesCommand extends import_smithy_client.Command.classBuilder().ep({
2186
+ ...commonParams
2187
+ }).m(function(Command, cs, config, o) {
2188
+ return [
2189
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2190
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2191
+ ];
2192
+ }).s("ServiceQuotasV20190624", "ListServices", {}).n("ServiceQuotasClient", "ListServicesCommand").f(void 0, void 0).ser(se_ListServicesCommand).de(de_ListServicesCommand).build() {
2193
+ };
2194
+ __name(_ListServicesCommand, "ListServicesCommand");
2195
+ var ListServicesCommand = _ListServicesCommand;
2196
+
2197
+ // src/commands/ListTagsForResourceCommand.ts
2198
+
2199
+
2200
+
2201
+
2202
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2203
+ ...commonParams
2204
+ }).m(function(Command, cs, config, o) {
2205
+ return [
2206
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2207
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2208
+ ];
2209
+ }).s("ServiceQuotasV20190624", "ListTagsForResource", {}).n("ServiceQuotasClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2210
+ };
2211
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2212
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2213
+
2214
+ // src/commands/PutServiceQuotaIncreaseRequestIntoTemplateCommand.ts
2215
+
2216
+
2217
+
2218
+
2219
+ var _PutServiceQuotaIncreaseRequestIntoTemplateCommand = class _PutServiceQuotaIncreaseRequestIntoTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2220
+ ...commonParams
2221
+ }).m(function(Command, cs, config, o) {
2222
+ return [
2223
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2224
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2225
+ ];
2226
+ }).s("ServiceQuotasV20190624", "PutServiceQuotaIncreaseRequestIntoTemplate", {}).n("ServiceQuotasClient", "PutServiceQuotaIncreaseRequestIntoTemplateCommand").f(void 0, void 0).ser(se_PutServiceQuotaIncreaseRequestIntoTemplateCommand).de(de_PutServiceQuotaIncreaseRequestIntoTemplateCommand).build() {
2227
+ };
2228
+ __name(_PutServiceQuotaIncreaseRequestIntoTemplateCommand, "PutServiceQuotaIncreaseRequestIntoTemplateCommand");
2229
+ var PutServiceQuotaIncreaseRequestIntoTemplateCommand = _PutServiceQuotaIncreaseRequestIntoTemplateCommand;
2230
+
2231
+ // src/commands/RequestServiceQuotaIncreaseCommand.ts
2232
+
2233
+
2234
+
2235
+
2236
+ var _RequestServiceQuotaIncreaseCommand = class _RequestServiceQuotaIncreaseCommand extends import_smithy_client.Command.classBuilder().ep({
2237
+ ...commonParams
2238
+ }).m(function(Command, cs, config, o) {
2239
+ return [
2240
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2241
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2242
+ ];
2243
+ }).s("ServiceQuotasV20190624", "RequestServiceQuotaIncrease", {}).n("ServiceQuotasClient", "RequestServiceQuotaIncreaseCommand").f(void 0, void 0).ser(se_RequestServiceQuotaIncreaseCommand).de(de_RequestServiceQuotaIncreaseCommand).build() {
2244
+ };
2245
+ __name(_RequestServiceQuotaIncreaseCommand, "RequestServiceQuotaIncreaseCommand");
2246
+ var RequestServiceQuotaIncreaseCommand = _RequestServiceQuotaIncreaseCommand;
2247
+
2248
+ // src/commands/TagResourceCommand.ts
2249
+
2250
+
2251
+
2252
+
2253
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2254
+ ...commonParams
2255
+ }).m(function(Command, cs, config, o) {
2256
+ return [
2257
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2258
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2259
+ ];
2260
+ }).s("ServiceQuotasV20190624", "TagResource", {}).n("ServiceQuotasClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2261
+ };
2262
+ __name(_TagResourceCommand, "TagResourceCommand");
2263
+ var TagResourceCommand = _TagResourceCommand;
2264
+
2265
+ // src/commands/UntagResourceCommand.ts
2266
+
2267
+
2268
+
2269
+
2270
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2271
+ ...commonParams
2272
+ }).m(function(Command, cs, config, o) {
2273
+ return [
2274
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2275
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2276
+ ];
2277
+ }).s("ServiceQuotasV20190624", "UntagResource", {}).n("ServiceQuotasClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2278
+ };
2279
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2280
+ var UntagResourceCommand = _UntagResourceCommand;
2281
+
2282
+ // src/ServiceQuotas.ts
2283
+ var commands = {
2284
+ AssociateServiceQuotaTemplateCommand,
2285
+ DeleteServiceQuotaIncreaseRequestFromTemplateCommand,
2286
+ DisassociateServiceQuotaTemplateCommand,
2287
+ GetAssociationForServiceQuotaTemplateCommand,
2288
+ GetAWSDefaultServiceQuotaCommand,
2289
+ GetRequestedServiceQuotaChangeCommand,
2290
+ GetServiceQuotaCommand,
2291
+ GetServiceQuotaIncreaseRequestFromTemplateCommand,
2292
+ ListAWSDefaultServiceQuotasCommand,
2293
+ ListRequestedServiceQuotaChangeHistoryCommand,
2294
+ ListRequestedServiceQuotaChangeHistoryByQuotaCommand,
2295
+ ListServiceQuotaIncreaseRequestsInTemplateCommand,
2296
+ ListServiceQuotasCommand,
2297
+ ListServicesCommand,
2298
+ ListTagsForResourceCommand,
2299
+ PutServiceQuotaIncreaseRequestIntoTemplateCommand,
2300
+ RequestServiceQuotaIncreaseCommand,
2301
+ TagResourceCommand,
2302
+ UntagResourceCommand
2303
+ };
2304
+ var _ServiceQuotas = class _ServiceQuotas extends ServiceQuotasClient {
2305
+ };
2306
+ __name(_ServiceQuotas, "ServiceQuotas");
2307
+ var ServiceQuotas = _ServiceQuotas;
2308
+ (0, import_smithy_client.createAggregatedClient)(commands, ServiceQuotas);
2309
+
2310
+ // src/pagination/ListAWSDefaultServiceQuotasPaginator.ts
2311
+ var import_core = require("@smithy/core");
2312
+ var paginateListAWSDefaultServiceQuotas = (0, import_core.createPaginator)(ServiceQuotasClient, ListAWSDefaultServiceQuotasCommand, "NextToken", "NextToken", "MaxResults");
2313
+
2314
+ // src/pagination/ListRequestedServiceQuotaChangeHistoryByQuotaPaginator.ts
2315
+
2316
+ var paginateListRequestedServiceQuotaChangeHistoryByQuota = (0, import_core.createPaginator)(ServiceQuotasClient, ListRequestedServiceQuotaChangeHistoryByQuotaCommand, "NextToken", "NextToken", "MaxResults");
2317
+
2318
+ // src/pagination/ListRequestedServiceQuotaChangeHistoryPaginator.ts
2319
+
2320
+ var paginateListRequestedServiceQuotaChangeHistory = (0, import_core.createPaginator)(ServiceQuotasClient, ListRequestedServiceQuotaChangeHistoryCommand, "NextToken", "NextToken", "MaxResults");
2321
+
2322
+ // src/pagination/ListServiceQuotaIncreaseRequestsInTemplatePaginator.ts
2323
+
2324
+ var paginateListServiceQuotaIncreaseRequestsInTemplate = (0, import_core.createPaginator)(ServiceQuotasClient, ListServiceQuotaIncreaseRequestsInTemplateCommand, "NextToken", "NextToken", "MaxResults");
2325
+
2326
+ // src/pagination/ListServiceQuotasPaginator.ts
2327
+
2328
+ var paginateListServiceQuotas = (0, import_core.createPaginator)(ServiceQuotasClient, ListServiceQuotasCommand, "NextToken", "NextToken", "MaxResults");
2329
+
2330
+ // src/pagination/ListServicesPaginator.ts
2331
+
2332
+ var paginateListServices = (0, import_core.createPaginator)(ServiceQuotasClient, ListServicesCommand, "NextToken", "NextToken", "MaxResults");
2333
+
2334
+ // src/index.ts
2335
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2336
+ // Annotate the CommonJS export names for ESM import in node:
2337
+ 0 && (module.exports = {
2338
+ AWSServiceAccessNotEnabledException,
2339
+ AccessDeniedException,
2340
+ AppliedLevelEnum,
2341
+ AssociateServiceQuotaTemplateCommand,
2342
+ DeleteServiceQuotaIncreaseRequestFromTemplateCommand,
2343
+ DependencyAccessDeniedException,
2344
+ DisassociateServiceQuotaTemplateCommand,
2345
+ ErrorCode,
2346
+ GetAWSDefaultServiceQuotaCommand,
2347
+ GetAssociationForServiceQuotaTemplateCommand,
2348
+ GetRequestedServiceQuotaChangeCommand,
2349
+ GetServiceQuotaCommand,
2350
+ GetServiceQuotaIncreaseRequestFromTemplateCommand,
2351
+ IllegalArgumentException,
2352
+ InvalidPaginationTokenException,
2353
+ InvalidResourceStateException,
2354
+ ListAWSDefaultServiceQuotasCommand,
2355
+ ListRequestedServiceQuotaChangeHistoryByQuotaCommand,
2356
+ ListRequestedServiceQuotaChangeHistoryCommand,
2357
+ ListServiceQuotaIncreaseRequestsInTemplateCommand,
2358
+ ListServiceQuotasCommand,
2359
+ ListServicesCommand,
2360
+ ListTagsForResourceCommand,
2361
+ NoAvailableOrganizationException,
2362
+ NoSuchResourceException,
2363
+ OrganizationNotInAllFeaturesModeException,
2364
+ PeriodUnit,
2365
+ PutServiceQuotaIncreaseRequestIntoTemplateCommand,
2366
+ QuotaContextScope,
2367
+ QuotaExceededException,
2368
+ RequestServiceQuotaIncreaseCommand,
2369
+ RequestStatus,
2370
+ ResourceAlreadyExistsException,
2371
+ ServiceException,
2372
+ ServiceQuotaTemplateAssociationStatus,
2373
+ ServiceQuotaTemplateNotInUseException,
2374
+ ServiceQuotas,
2375
+ ServiceQuotasClient,
2376
+ ServiceQuotasServiceException,
2377
+ TagPolicyViolationException,
2378
+ TagResourceCommand,
2379
+ TemplatesNotAvailableInRegionException,
2380
+ TooManyRequestsException,
2381
+ TooManyTagsException,
2382
+ UntagResourceCommand,
2383
+ __Client,
2384
+ paginateListAWSDefaultServiceQuotas,
2385
+ paginateListRequestedServiceQuotaChangeHistory,
2386
+ paginateListRequestedServiceQuotaChangeHistoryByQuota,
2387
+ paginateListServiceQuotaIncreaseRequestsInTemplate,
2388
+ paginateListServiceQuotas,
2389
+ paginateListServices
2390
+ });