@aws-sdk/client-service-quotas 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +93 -720
- package/dist-es/protocols/Aws_json1_1.js +88 -715
- package/package.json +3 -3
|
@@ -118,7 +118,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
118
118
|
};
|
|
119
119
|
export const de_AssociateServiceQuotaTemplateCommand = async (output, context) => {
|
|
120
120
|
if (output.statusCode >= 300) {
|
|
121
|
-
return
|
|
121
|
+
return de_CommandError(output, context);
|
|
122
122
|
}
|
|
123
123
|
const data = await parseBody(output.body, context);
|
|
124
124
|
let contents = {};
|
|
@@ -129,49 +129,9 @@ export const de_AssociateServiceQuotaTemplateCommand = async (output, context) =
|
|
|
129
129
|
};
|
|
130
130
|
return response;
|
|
131
131
|
};
|
|
132
|
-
const de_AssociateServiceQuotaTemplateCommandError = async (output, context) => {
|
|
133
|
-
const parsedOutput = {
|
|
134
|
-
...output,
|
|
135
|
-
body: await parseErrorBody(output.body, context),
|
|
136
|
-
};
|
|
137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
138
|
-
switch (errorCode) {
|
|
139
|
-
case "AWSServiceAccessNotEnabledException":
|
|
140
|
-
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
141
|
-
throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
142
|
-
case "AccessDeniedException":
|
|
143
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
144
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
145
|
-
case "DependencyAccessDeniedException":
|
|
146
|
-
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
147
|
-
throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
|
|
148
|
-
case "NoAvailableOrganizationException":
|
|
149
|
-
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
150
|
-
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
151
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
152
|
-
case "com.amazonaws.servicequotas#OrganizationNotInAllFeaturesModeException":
|
|
153
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
154
|
-
case "ServiceException":
|
|
155
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
156
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
157
|
-
case "TemplatesNotAvailableInRegionException":
|
|
158
|
-
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
159
|
-
throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
|
|
160
|
-
case "TooManyRequestsException":
|
|
161
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
162
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
163
|
-
default:
|
|
164
|
-
const parsedBody = parsedOutput.body;
|
|
165
|
-
return throwDefaultError({
|
|
166
|
-
output,
|
|
167
|
-
parsedBody,
|
|
168
|
-
errorCode,
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
132
|
export const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (output, context) => {
|
|
173
133
|
if (output.statusCode >= 300) {
|
|
174
|
-
return
|
|
134
|
+
return de_CommandError(output, context);
|
|
175
135
|
}
|
|
176
136
|
const data = await parseBody(output.body, context);
|
|
177
137
|
let contents = {};
|
|
@@ -182,52 +142,9 @@ export const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (ou
|
|
|
182
142
|
};
|
|
183
143
|
return response;
|
|
184
144
|
};
|
|
185
|
-
const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
|
|
186
|
-
const parsedOutput = {
|
|
187
|
-
...output,
|
|
188
|
-
body: await parseErrorBody(output.body, context),
|
|
189
|
-
};
|
|
190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
191
|
-
switch (errorCode) {
|
|
192
|
-
case "AWSServiceAccessNotEnabledException":
|
|
193
|
-
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
194
|
-
throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
195
|
-
case "AccessDeniedException":
|
|
196
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
197
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
198
|
-
case "DependencyAccessDeniedException":
|
|
199
|
-
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
200
|
-
throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
|
|
201
|
-
case "IllegalArgumentException":
|
|
202
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
203
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
204
|
-
case "NoAvailableOrganizationException":
|
|
205
|
-
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
206
|
-
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
207
|
-
case "NoSuchResourceException":
|
|
208
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
209
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
210
|
-
case "ServiceException":
|
|
211
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
212
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
213
|
-
case "TemplatesNotAvailableInRegionException":
|
|
214
|
-
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
215
|
-
throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
|
|
216
|
-
case "TooManyRequestsException":
|
|
217
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
218
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
219
|
-
default:
|
|
220
|
-
const parsedBody = parsedOutput.body;
|
|
221
|
-
return throwDefaultError({
|
|
222
|
-
output,
|
|
223
|
-
parsedBody,
|
|
224
|
-
errorCode,
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
145
|
export const de_DisassociateServiceQuotaTemplateCommand = async (output, context) => {
|
|
229
146
|
if (output.statusCode >= 300) {
|
|
230
|
-
return
|
|
147
|
+
return de_CommandError(output, context);
|
|
231
148
|
}
|
|
232
149
|
const data = await parseBody(output.body, context);
|
|
233
150
|
let contents = {};
|
|
@@ -238,49 +155,9 @@ export const de_DisassociateServiceQuotaTemplateCommand = async (output, context
|
|
|
238
155
|
};
|
|
239
156
|
return response;
|
|
240
157
|
};
|
|
241
|
-
const de_DisassociateServiceQuotaTemplateCommandError = async (output, context) => {
|
|
242
|
-
const parsedOutput = {
|
|
243
|
-
...output,
|
|
244
|
-
body: await parseErrorBody(output.body, context),
|
|
245
|
-
};
|
|
246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
247
|
-
switch (errorCode) {
|
|
248
|
-
case "AWSServiceAccessNotEnabledException":
|
|
249
|
-
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
250
|
-
throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
251
|
-
case "AccessDeniedException":
|
|
252
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
253
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
254
|
-
case "DependencyAccessDeniedException":
|
|
255
|
-
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
256
|
-
throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
|
|
257
|
-
case "NoAvailableOrganizationException":
|
|
258
|
-
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
259
|
-
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
260
|
-
case "ServiceException":
|
|
261
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
262
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
263
|
-
case "ServiceQuotaTemplateNotInUseException":
|
|
264
|
-
case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
|
|
265
|
-
throw await de_ServiceQuotaTemplateNotInUseExceptionRes(parsedOutput, context);
|
|
266
|
-
case "TemplatesNotAvailableInRegionException":
|
|
267
|
-
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
268
|
-
throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
|
|
269
|
-
case "TooManyRequestsException":
|
|
270
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
271
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
272
|
-
default:
|
|
273
|
-
const parsedBody = parsedOutput.body;
|
|
274
|
-
return throwDefaultError({
|
|
275
|
-
output,
|
|
276
|
-
parsedBody,
|
|
277
|
-
errorCode,
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
158
|
export const de_GetAssociationForServiceQuotaTemplateCommand = async (output, context) => {
|
|
282
159
|
if (output.statusCode >= 300) {
|
|
283
|
-
return
|
|
160
|
+
return de_CommandError(output, context);
|
|
284
161
|
}
|
|
285
162
|
const data = await parseBody(output.body, context);
|
|
286
163
|
let contents = {};
|
|
@@ -291,49 +168,9 @@ export const de_GetAssociationForServiceQuotaTemplateCommand = async (output, co
|
|
|
291
168
|
};
|
|
292
169
|
return response;
|
|
293
170
|
};
|
|
294
|
-
const de_GetAssociationForServiceQuotaTemplateCommandError = async (output, context) => {
|
|
295
|
-
const parsedOutput = {
|
|
296
|
-
...output,
|
|
297
|
-
body: await parseErrorBody(output.body, context),
|
|
298
|
-
};
|
|
299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
300
|
-
switch (errorCode) {
|
|
301
|
-
case "AWSServiceAccessNotEnabledException":
|
|
302
|
-
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
303
|
-
throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
304
|
-
case "AccessDeniedException":
|
|
305
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
306
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
307
|
-
case "DependencyAccessDeniedException":
|
|
308
|
-
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
309
|
-
throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
|
|
310
|
-
case "NoAvailableOrganizationException":
|
|
311
|
-
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
312
|
-
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
313
|
-
case "ServiceException":
|
|
314
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
315
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
316
|
-
case "ServiceQuotaTemplateNotInUseException":
|
|
317
|
-
case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
|
|
318
|
-
throw await de_ServiceQuotaTemplateNotInUseExceptionRes(parsedOutput, context);
|
|
319
|
-
case "TemplatesNotAvailableInRegionException":
|
|
320
|
-
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
321
|
-
throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
|
|
322
|
-
case "TooManyRequestsException":
|
|
323
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
324
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
325
|
-
default:
|
|
326
|
-
const parsedBody = parsedOutput.body;
|
|
327
|
-
return throwDefaultError({
|
|
328
|
-
output,
|
|
329
|
-
parsedBody,
|
|
330
|
-
errorCode,
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
171
|
export const de_GetAWSDefaultServiceQuotaCommand = async (output, context) => {
|
|
335
172
|
if (output.statusCode >= 300) {
|
|
336
|
-
return
|
|
173
|
+
return de_CommandError(output, context);
|
|
337
174
|
}
|
|
338
175
|
const data = await parseBody(output.body, context);
|
|
339
176
|
let contents = {};
|
|
@@ -344,40 +181,9 @@ export const de_GetAWSDefaultServiceQuotaCommand = async (output, context) => {
|
|
|
344
181
|
};
|
|
345
182
|
return response;
|
|
346
183
|
};
|
|
347
|
-
const de_GetAWSDefaultServiceQuotaCommandError = async (output, context) => {
|
|
348
|
-
const parsedOutput = {
|
|
349
|
-
...output,
|
|
350
|
-
body: await parseErrorBody(output.body, context),
|
|
351
|
-
};
|
|
352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
353
|
-
switch (errorCode) {
|
|
354
|
-
case "AccessDeniedException":
|
|
355
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
356
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
357
|
-
case "IllegalArgumentException":
|
|
358
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
359
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
360
|
-
case "NoSuchResourceException":
|
|
361
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
362
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
363
|
-
case "ServiceException":
|
|
364
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
365
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
366
|
-
case "TooManyRequestsException":
|
|
367
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
368
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
369
|
-
default:
|
|
370
|
-
const parsedBody = parsedOutput.body;
|
|
371
|
-
return throwDefaultError({
|
|
372
|
-
output,
|
|
373
|
-
parsedBody,
|
|
374
|
-
errorCode,
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
184
|
export const de_GetRequestedServiceQuotaChangeCommand = async (output, context) => {
|
|
379
185
|
if (output.statusCode >= 300) {
|
|
380
|
-
return
|
|
186
|
+
return de_CommandError(output, context);
|
|
381
187
|
}
|
|
382
188
|
const data = await parseBody(output.body, context);
|
|
383
189
|
let contents = {};
|
|
@@ -388,40 +194,9 @@ export const de_GetRequestedServiceQuotaChangeCommand = async (output, context)
|
|
|
388
194
|
};
|
|
389
195
|
return response;
|
|
390
196
|
};
|
|
391
|
-
const de_GetRequestedServiceQuotaChangeCommandError = async (output, context) => {
|
|
392
|
-
const parsedOutput = {
|
|
393
|
-
...output,
|
|
394
|
-
body: await parseErrorBody(output.body, context),
|
|
395
|
-
};
|
|
396
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
397
|
-
switch (errorCode) {
|
|
398
|
-
case "AccessDeniedException":
|
|
399
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
400
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
401
|
-
case "IllegalArgumentException":
|
|
402
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
403
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
404
|
-
case "NoSuchResourceException":
|
|
405
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
406
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
407
|
-
case "ServiceException":
|
|
408
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
409
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
410
|
-
case "TooManyRequestsException":
|
|
411
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
412
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
413
|
-
default:
|
|
414
|
-
const parsedBody = parsedOutput.body;
|
|
415
|
-
return throwDefaultError({
|
|
416
|
-
output,
|
|
417
|
-
parsedBody,
|
|
418
|
-
errorCode,
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
};
|
|
422
197
|
export const de_GetServiceQuotaCommand = async (output, context) => {
|
|
423
198
|
if (output.statusCode >= 300) {
|
|
424
|
-
return
|
|
199
|
+
return de_CommandError(output, context);
|
|
425
200
|
}
|
|
426
201
|
const data = await parseBody(output.body, context);
|
|
427
202
|
let contents = {};
|
|
@@ -432,40 +207,9 @@ export const de_GetServiceQuotaCommand = async (output, context) => {
|
|
|
432
207
|
};
|
|
433
208
|
return response;
|
|
434
209
|
};
|
|
435
|
-
const de_GetServiceQuotaCommandError = async (output, context) => {
|
|
436
|
-
const parsedOutput = {
|
|
437
|
-
...output,
|
|
438
|
-
body: await parseErrorBody(output.body, context),
|
|
439
|
-
};
|
|
440
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
|
-
switch (errorCode) {
|
|
442
|
-
case "AccessDeniedException":
|
|
443
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
444
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
445
|
-
case "IllegalArgumentException":
|
|
446
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
447
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
448
|
-
case "NoSuchResourceException":
|
|
449
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
450
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
451
|
-
case "ServiceException":
|
|
452
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
453
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
454
|
-
case "TooManyRequestsException":
|
|
455
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
456
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
457
|
-
default:
|
|
458
|
-
const parsedBody = parsedOutput.body;
|
|
459
|
-
return throwDefaultError({
|
|
460
|
-
output,
|
|
461
|
-
parsedBody,
|
|
462
|
-
errorCode,
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
210
|
export const de_GetServiceQuotaIncreaseRequestFromTemplateCommand = async (output, context) => {
|
|
467
211
|
if (output.statusCode >= 300) {
|
|
468
|
-
return
|
|
212
|
+
return de_CommandError(output, context);
|
|
469
213
|
}
|
|
470
214
|
const data = await parseBody(output.body, context);
|
|
471
215
|
let contents = {};
|
|
@@ -476,52 +220,9 @@ export const de_GetServiceQuotaIncreaseRequestFromTemplateCommand = async (outpu
|
|
|
476
220
|
};
|
|
477
221
|
return response;
|
|
478
222
|
};
|
|
479
|
-
const de_GetServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
|
|
480
|
-
const parsedOutput = {
|
|
481
|
-
...output,
|
|
482
|
-
body: await parseErrorBody(output.body, context),
|
|
483
|
-
};
|
|
484
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
|
-
switch (errorCode) {
|
|
486
|
-
case "AWSServiceAccessNotEnabledException":
|
|
487
|
-
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
488
|
-
throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
489
|
-
case "AccessDeniedException":
|
|
490
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
491
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
492
|
-
case "DependencyAccessDeniedException":
|
|
493
|
-
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
494
|
-
throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
|
|
495
|
-
case "IllegalArgumentException":
|
|
496
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
497
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
498
|
-
case "NoAvailableOrganizationException":
|
|
499
|
-
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
500
|
-
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
501
|
-
case "NoSuchResourceException":
|
|
502
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
503
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
504
|
-
case "ServiceException":
|
|
505
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
506
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
507
|
-
case "TemplatesNotAvailableInRegionException":
|
|
508
|
-
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
509
|
-
throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
|
|
510
|
-
case "TooManyRequestsException":
|
|
511
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
512
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
513
|
-
default:
|
|
514
|
-
const parsedBody = parsedOutput.body;
|
|
515
|
-
return throwDefaultError({
|
|
516
|
-
output,
|
|
517
|
-
parsedBody,
|
|
518
|
-
errorCode,
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
223
|
export const de_ListAWSDefaultServiceQuotasCommand = async (output, context) => {
|
|
523
224
|
if (output.statusCode >= 300) {
|
|
524
|
-
return
|
|
225
|
+
return de_CommandError(output, context);
|
|
525
226
|
}
|
|
526
227
|
const data = await parseBody(output.body, context);
|
|
527
228
|
let contents = {};
|
|
@@ -532,43 +233,9 @@ export const de_ListAWSDefaultServiceQuotasCommand = async (output, context) =>
|
|
|
532
233
|
};
|
|
533
234
|
return response;
|
|
534
235
|
};
|
|
535
|
-
const de_ListAWSDefaultServiceQuotasCommandError = async (output, context) => {
|
|
536
|
-
const parsedOutput = {
|
|
537
|
-
...output,
|
|
538
|
-
body: await parseErrorBody(output.body, context),
|
|
539
|
-
};
|
|
540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
-
switch (errorCode) {
|
|
542
|
-
case "AccessDeniedException":
|
|
543
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
544
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
545
|
-
case "IllegalArgumentException":
|
|
546
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
547
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
548
|
-
case "InvalidPaginationTokenException":
|
|
549
|
-
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
550
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
551
|
-
case "NoSuchResourceException":
|
|
552
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
553
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ServiceException":
|
|
555
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
556
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
557
|
-
case "TooManyRequestsException":
|
|
558
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
559
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
560
|
-
default:
|
|
561
|
-
const parsedBody = parsedOutput.body;
|
|
562
|
-
return throwDefaultError({
|
|
563
|
-
output,
|
|
564
|
-
parsedBody,
|
|
565
|
-
errorCode,
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
236
|
export const de_ListRequestedServiceQuotaChangeHistoryCommand = async (output, context) => {
|
|
570
237
|
if (output.statusCode >= 300) {
|
|
571
|
-
return
|
|
238
|
+
return de_CommandError(output, context);
|
|
572
239
|
}
|
|
573
240
|
const data = await parseBody(output.body, context);
|
|
574
241
|
let contents = {};
|
|
@@ -579,234 +246,48 @@ export const de_ListRequestedServiceQuotaChangeHistoryCommand = async (output, c
|
|
|
579
246
|
};
|
|
580
247
|
return response;
|
|
581
248
|
};
|
|
582
|
-
const de_ListRequestedServiceQuotaChangeHistoryCommandError = async (output, context) => {
|
|
583
|
-
const parsedOutput = {
|
|
584
|
-
...output,
|
|
585
|
-
body: await parseErrorBody(output.body, context),
|
|
586
|
-
};
|
|
587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
|
-
switch (errorCode) {
|
|
589
|
-
case "AccessDeniedException":
|
|
590
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
591
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
592
|
-
case "IllegalArgumentException":
|
|
593
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
594
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
595
|
-
case "InvalidPaginationTokenException":
|
|
596
|
-
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
597
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
598
|
-
case "NoSuchResourceException":
|
|
599
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
600
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
601
|
-
case "ServiceException":
|
|
602
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
603
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
604
|
-
case "TooManyRequestsException":
|
|
605
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
606
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
607
|
-
default:
|
|
608
|
-
const parsedBody = parsedOutput.body;
|
|
609
|
-
return throwDefaultError({
|
|
610
|
-
output,
|
|
611
|
-
parsedBody,
|
|
612
|
-
errorCode,
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
249
|
export const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (output, context) => {
|
|
617
250
|
if (output.statusCode >= 300) {
|
|
618
|
-
return
|
|
251
|
+
return de_CommandError(output, context);
|
|
619
252
|
}
|
|
620
253
|
const data = await parseBody(output.body, context);
|
|
621
254
|
let contents = {};
|
|
622
255
|
contents = de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse(data, context);
|
|
623
256
|
const response = {
|
|
624
257
|
$metadata: deserializeMetadata(output),
|
|
625
|
-
...contents,
|
|
626
|
-
};
|
|
627
|
-
return response;
|
|
628
|
-
};
|
|
629
|
-
const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError = async (output, context) => {
|
|
630
|
-
const parsedOutput = {
|
|
631
|
-
...output,
|
|
632
|
-
body: await parseErrorBody(output.body, context),
|
|
633
|
-
};
|
|
634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
|
-
switch (errorCode) {
|
|
636
|
-
case "AccessDeniedException":
|
|
637
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
638
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
639
|
-
case "IllegalArgumentException":
|
|
640
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
641
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
642
|
-
case "InvalidPaginationTokenException":
|
|
643
|
-
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
644
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
645
|
-
case "NoSuchResourceException":
|
|
646
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
647
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ServiceException":
|
|
649
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
650
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
651
|
-
case "TooManyRequestsException":
|
|
652
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
653
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
654
|
-
default:
|
|
655
|
-
const parsedBody = parsedOutput.body;
|
|
656
|
-
return throwDefaultError({
|
|
657
|
-
output,
|
|
658
|
-
parsedBody,
|
|
659
|
-
errorCode,
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
export const de_ListServiceQuotaIncreaseRequestsInTemplateCommand = async (output, context) => {
|
|
664
|
-
if (output.statusCode >= 300) {
|
|
665
|
-
return de_ListServiceQuotaIncreaseRequestsInTemplateCommandError(output, context);
|
|
666
|
-
}
|
|
667
|
-
const data = await parseBody(output.body, context);
|
|
668
|
-
let contents = {};
|
|
669
|
-
contents = de_ListServiceQuotaIncreaseRequestsInTemplateResponse(data, context);
|
|
670
|
-
const response = {
|
|
671
|
-
$metadata: deserializeMetadata(output),
|
|
672
|
-
...contents,
|
|
673
|
-
};
|
|
674
|
-
return response;
|
|
675
|
-
};
|
|
676
|
-
const de_ListServiceQuotaIncreaseRequestsInTemplateCommandError = async (output, context) => {
|
|
677
|
-
const parsedOutput = {
|
|
678
|
-
...output,
|
|
679
|
-
body: await parseErrorBody(output.body, context),
|
|
680
|
-
};
|
|
681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
|
-
switch (errorCode) {
|
|
683
|
-
case "AWSServiceAccessNotEnabledException":
|
|
684
|
-
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
685
|
-
throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
686
|
-
case "AccessDeniedException":
|
|
687
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
688
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
689
|
-
case "DependencyAccessDeniedException":
|
|
690
|
-
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
691
|
-
throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
|
|
692
|
-
case "IllegalArgumentException":
|
|
693
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
694
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
695
|
-
case "NoAvailableOrganizationException":
|
|
696
|
-
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
697
|
-
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ServiceException":
|
|
699
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
700
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
701
|
-
case "TemplatesNotAvailableInRegionException":
|
|
702
|
-
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
703
|
-
throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
|
|
704
|
-
case "TooManyRequestsException":
|
|
705
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
706
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
707
|
-
default:
|
|
708
|
-
const parsedBody = parsedOutput.body;
|
|
709
|
-
return throwDefaultError({
|
|
710
|
-
output,
|
|
711
|
-
parsedBody,
|
|
712
|
-
errorCode,
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
};
|
|
716
|
-
export const de_ListServiceQuotasCommand = async (output, context) => {
|
|
717
|
-
if (output.statusCode >= 300) {
|
|
718
|
-
return de_ListServiceQuotasCommandError(output, context);
|
|
719
|
-
}
|
|
720
|
-
const data = await parseBody(output.body, context);
|
|
721
|
-
let contents = {};
|
|
722
|
-
contents = de_ListServiceQuotasResponse(data, context);
|
|
723
|
-
const response = {
|
|
724
|
-
$metadata: deserializeMetadata(output),
|
|
725
|
-
...contents,
|
|
726
|
-
};
|
|
727
|
-
return response;
|
|
728
|
-
};
|
|
729
|
-
const de_ListServiceQuotasCommandError = async (output, context) => {
|
|
730
|
-
const parsedOutput = {
|
|
731
|
-
...output,
|
|
732
|
-
body: await parseErrorBody(output.body, context),
|
|
733
|
-
};
|
|
734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
-
switch (errorCode) {
|
|
736
|
-
case "AccessDeniedException":
|
|
737
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
738
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
739
|
-
case "IllegalArgumentException":
|
|
740
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
741
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
742
|
-
case "InvalidPaginationTokenException":
|
|
743
|
-
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
744
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
745
|
-
case "NoSuchResourceException":
|
|
746
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
747
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
748
|
-
case "ServiceException":
|
|
749
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
750
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
751
|
-
case "TooManyRequestsException":
|
|
752
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
753
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
754
|
-
default:
|
|
755
|
-
const parsedBody = parsedOutput.body;
|
|
756
|
-
return throwDefaultError({
|
|
757
|
-
output,
|
|
758
|
-
parsedBody,
|
|
759
|
-
errorCode,
|
|
760
|
-
});
|
|
761
|
-
}
|
|
258
|
+
...contents,
|
|
259
|
+
};
|
|
260
|
+
return response;
|
|
762
261
|
};
|
|
763
|
-
export const
|
|
262
|
+
export const de_ListServiceQuotaIncreaseRequestsInTemplateCommand = async (output, context) => {
|
|
764
263
|
if (output.statusCode >= 300) {
|
|
765
|
-
return
|
|
264
|
+
return de_CommandError(output, context);
|
|
766
265
|
}
|
|
767
266
|
const data = await parseBody(output.body, context);
|
|
768
267
|
let contents = {};
|
|
769
|
-
contents =
|
|
268
|
+
contents = de_ListServiceQuotaIncreaseRequestsInTemplateResponse(data, context);
|
|
770
269
|
const response = {
|
|
771
270
|
$metadata: deserializeMetadata(output),
|
|
772
271
|
...contents,
|
|
773
272
|
};
|
|
774
273
|
return response;
|
|
775
274
|
};
|
|
776
|
-
const
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
body: await parseErrorBody(output.body, context),
|
|
780
|
-
};
|
|
781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
-
switch (errorCode) {
|
|
783
|
-
case "AccessDeniedException":
|
|
784
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
785
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
786
|
-
case "IllegalArgumentException":
|
|
787
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
788
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
789
|
-
case "InvalidPaginationTokenException":
|
|
790
|
-
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
791
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ServiceException":
|
|
793
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
794
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
795
|
-
case "TooManyRequestsException":
|
|
796
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
797
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
798
|
-
default:
|
|
799
|
-
const parsedBody = parsedOutput.body;
|
|
800
|
-
return throwDefaultError({
|
|
801
|
-
output,
|
|
802
|
-
parsedBody,
|
|
803
|
-
errorCode,
|
|
804
|
-
});
|
|
275
|
+
export const de_ListServiceQuotasCommand = async (output, context) => {
|
|
276
|
+
if (output.statusCode >= 300) {
|
|
277
|
+
return de_CommandError(output, context);
|
|
805
278
|
}
|
|
279
|
+
const data = await parseBody(output.body, context);
|
|
280
|
+
let contents = {};
|
|
281
|
+
contents = de_ListServiceQuotasResponse(data, context);
|
|
282
|
+
const response = {
|
|
283
|
+
$metadata: deserializeMetadata(output),
|
|
284
|
+
...contents,
|
|
285
|
+
};
|
|
286
|
+
return response;
|
|
806
287
|
};
|
|
807
|
-
export const
|
|
288
|
+
export const de_ListServicesCommand = async (output, context) => {
|
|
808
289
|
if (output.statusCode >= 300) {
|
|
809
|
-
return
|
|
290
|
+
return de_CommandError(output, context);
|
|
810
291
|
}
|
|
811
292
|
const data = await parseBody(output.body, context);
|
|
812
293
|
let contents = {};
|
|
@@ -817,40 +298,22 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
817
298
|
};
|
|
818
299
|
return response;
|
|
819
300
|
};
|
|
820
|
-
const
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
body: await parseErrorBody(output.body, context),
|
|
824
|
-
};
|
|
825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
|
-
switch (errorCode) {
|
|
827
|
-
case "AccessDeniedException":
|
|
828
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
829
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
830
|
-
case "IllegalArgumentException":
|
|
831
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
832
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
833
|
-
case "NoSuchResourceException":
|
|
834
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
835
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
836
|
-
case "ServiceException":
|
|
837
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
838
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
839
|
-
case "TooManyRequestsException":
|
|
840
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
841
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
842
|
-
default:
|
|
843
|
-
const parsedBody = parsedOutput.body;
|
|
844
|
-
return throwDefaultError({
|
|
845
|
-
output,
|
|
846
|
-
parsedBody,
|
|
847
|
-
errorCode,
|
|
848
|
-
});
|
|
301
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
302
|
+
if (output.statusCode >= 300) {
|
|
303
|
+
return de_CommandError(output, context);
|
|
849
304
|
}
|
|
305
|
+
const data = await parseBody(output.body, context);
|
|
306
|
+
let contents = {};
|
|
307
|
+
contents = _json(data);
|
|
308
|
+
const response = {
|
|
309
|
+
$metadata: deserializeMetadata(output),
|
|
310
|
+
...contents,
|
|
311
|
+
};
|
|
312
|
+
return response;
|
|
850
313
|
};
|
|
851
314
|
export const de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (output, context) => {
|
|
852
315
|
if (output.statusCode >= 300) {
|
|
853
|
-
return
|
|
316
|
+
return de_CommandError(output, context);
|
|
854
317
|
}
|
|
855
318
|
const data = await parseBody(output.body, context);
|
|
856
319
|
let contents = {};
|
|
@@ -861,55 +324,9 @@ export const de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (outpu
|
|
|
861
324
|
};
|
|
862
325
|
return response;
|
|
863
326
|
};
|
|
864
|
-
const de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError = async (output, context) => {
|
|
865
|
-
const parsedOutput = {
|
|
866
|
-
...output,
|
|
867
|
-
body: await parseErrorBody(output.body, context),
|
|
868
|
-
};
|
|
869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
-
switch (errorCode) {
|
|
871
|
-
case "AWSServiceAccessNotEnabledException":
|
|
872
|
-
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
873
|
-
throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
874
|
-
case "AccessDeniedException":
|
|
875
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
876
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
877
|
-
case "DependencyAccessDeniedException":
|
|
878
|
-
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
879
|
-
throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
|
|
880
|
-
case "IllegalArgumentException":
|
|
881
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
882
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
883
|
-
case "NoAvailableOrganizationException":
|
|
884
|
-
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
885
|
-
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
886
|
-
case "NoSuchResourceException":
|
|
887
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
888
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
889
|
-
case "QuotaExceededException":
|
|
890
|
-
case "com.amazonaws.servicequotas#QuotaExceededException":
|
|
891
|
-
throw await de_QuotaExceededExceptionRes(parsedOutput, context);
|
|
892
|
-
case "ServiceException":
|
|
893
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
894
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
895
|
-
case "TemplatesNotAvailableInRegionException":
|
|
896
|
-
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
897
|
-
throw await de_TemplatesNotAvailableInRegionExceptionRes(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
|
-
};
|
|
910
327
|
export const de_RequestServiceQuotaIncreaseCommand = async (output, context) => {
|
|
911
328
|
if (output.statusCode >= 300) {
|
|
912
|
-
return
|
|
329
|
+
return de_CommandError(output, context);
|
|
913
330
|
}
|
|
914
331
|
const data = await parseBody(output.body, context);
|
|
915
332
|
let contents = {};
|
|
@@ -920,52 +337,9 @@ export const de_RequestServiceQuotaIncreaseCommand = async (output, context) =>
|
|
|
920
337
|
};
|
|
921
338
|
return response;
|
|
922
339
|
};
|
|
923
|
-
const de_RequestServiceQuotaIncreaseCommandError = 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 "DependencyAccessDeniedException":
|
|
934
|
-
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
935
|
-
throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
|
|
936
|
-
case "IllegalArgumentException":
|
|
937
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
938
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
939
|
-
case "InvalidResourceStateException":
|
|
940
|
-
case "com.amazonaws.servicequotas#InvalidResourceStateException":
|
|
941
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
942
|
-
case "NoSuchResourceException":
|
|
943
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
944
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
945
|
-
case "QuotaExceededException":
|
|
946
|
-
case "com.amazonaws.servicequotas#QuotaExceededException":
|
|
947
|
-
throw await de_QuotaExceededExceptionRes(parsedOutput, context);
|
|
948
|
-
case "ResourceAlreadyExistsException":
|
|
949
|
-
case "com.amazonaws.servicequotas#ResourceAlreadyExistsException":
|
|
950
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
951
|
-
case "ServiceException":
|
|
952
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
953
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
954
|
-
case "TooManyRequestsException":
|
|
955
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
956
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
957
|
-
default:
|
|
958
|
-
const parsedBody = parsedOutput.body;
|
|
959
|
-
return throwDefaultError({
|
|
960
|
-
output,
|
|
961
|
-
parsedBody,
|
|
962
|
-
errorCode,
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
};
|
|
966
340
|
export const de_TagResourceCommand = async (output, context) => {
|
|
967
341
|
if (output.statusCode >= 300) {
|
|
968
|
-
return
|
|
342
|
+
return de_CommandError(output, context);
|
|
969
343
|
}
|
|
970
344
|
const data = await parseBody(output.body, context);
|
|
971
345
|
let contents = {};
|
|
@@ -976,46 +350,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
976
350
|
};
|
|
977
351
|
return response;
|
|
978
352
|
};
|
|
979
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
980
|
-
const parsedOutput = {
|
|
981
|
-
...output,
|
|
982
|
-
body: await parseErrorBody(output.body, context),
|
|
983
|
-
};
|
|
984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
|
-
switch (errorCode) {
|
|
986
|
-
case "AccessDeniedException":
|
|
987
|
-
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
988
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
989
|
-
case "IllegalArgumentException":
|
|
990
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
991
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
992
|
-
case "NoSuchResourceException":
|
|
993
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
994
|
-
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
995
|
-
case "ServiceException":
|
|
996
|
-
case "com.amazonaws.servicequotas#ServiceException":
|
|
997
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
998
|
-
case "TagPolicyViolationException":
|
|
999
|
-
case "com.amazonaws.servicequotas#TagPolicyViolationException":
|
|
1000
|
-
throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "TooManyRequestsException":
|
|
1002
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1003
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "TooManyTagsException":
|
|
1005
|
-
case "com.amazonaws.servicequotas#TooManyTagsException":
|
|
1006
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1007
|
-
default:
|
|
1008
|
-
const parsedBody = parsedOutput.body;
|
|
1009
|
-
return throwDefaultError({
|
|
1010
|
-
output,
|
|
1011
|
-
parsedBody,
|
|
1012
|
-
errorCode,
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1015
|
-
};
|
|
1016
353
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1017
354
|
if (output.statusCode >= 300) {
|
|
1018
|
-
return
|
|
355
|
+
return de_CommandError(output, context);
|
|
1019
356
|
}
|
|
1020
357
|
const data = await parseBody(output.body, context);
|
|
1021
358
|
let contents = {};
|
|
@@ -1026,28 +363,64 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1026
363
|
};
|
|
1027
364
|
return response;
|
|
1028
365
|
};
|
|
1029
|
-
const
|
|
366
|
+
const de_CommandError = async (output, context) => {
|
|
1030
367
|
const parsedOutput = {
|
|
1031
368
|
...output,
|
|
1032
369
|
body: await parseErrorBody(output.body, context),
|
|
1033
370
|
};
|
|
1034
371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
372
|
switch (errorCode) {
|
|
373
|
+
case "AWSServiceAccessNotEnabledException":
|
|
374
|
+
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
375
|
+
throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
1036
376
|
case "AccessDeniedException":
|
|
1037
377
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1038
378
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "
|
|
1040
|
-
case "com.amazonaws.servicequotas#
|
|
1041
|
-
throw await
|
|
1042
|
-
case "
|
|
1043
|
-
case "com.amazonaws.servicequotas#
|
|
1044
|
-
throw await
|
|
379
|
+
case "DependencyAccessDeniedException":
|
|
380
|
+
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
381
|
+
throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
|
|
382
|
+
case "NoAvailableOrganizationException":
|
|
383
|
+
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
384
|
+
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
385
|
+
case "OrganizationNotInAllFeaturesModeException":
|
|
386
|
+
case "com.amazonaws.servicequotas#OrganizationNotInAllFeaturesModeException":
|
|
387
|
+
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
1045
388
|
case "ServiceException":
|
|
1046
389
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1047
390
|
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
391
|
+
case "TemplatesNotAvailableInRegionException":
|
|
392
|
+
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
393
|
+
throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
|
|
1048
394
|
case "TooManyRequestsException":
|
|
1049
395
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1050
396
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
397
|
+
case "IllegalArgumentException":
|
|
398
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
399
|
+
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
400
|
+
case "NoSuchResourceException":
|
|
401
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
402
|
+
throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
|
|
403
|
+
case "ServiceQuotaTemplateNotInUseException":
|
|
404
|
+
case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
|
|
405
|
+
throw await de_ServiceQuotaTemplateNotInUseExceptionRes(parsedOutput, context);
|
|
406
|
+
case "InvalidPaginationTokenException":
|
|
407
|
+
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
408
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
409
|
+
case "QuotaExceededException":
|
|
410
|
+
case "com.amazonaws.servicequotas#QuotaExceededException":
|
|
411
|
+
throw await de_QuotaExceededExceptionRes(parsedOutput, context);
|
|
412
|
+
case "InvalidResourceStateException":
|
|
413
|
+
case "com.amazonaws.servicequotas#InvalidResourceStateException":
|
|
414
|
+
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
415
|
+
case "ResourceAlreadyExistsException":
|
|
416
|
+
case "com.amazonaws.servicequotas#ResourceAlreadyExistsException":
|
|
417
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
418
|
+
case "TagPolicyViolationException":
|
|
419
|
+
case "com.amazonaws.servicequotas#TagPolicyViolationException":
|
|
420
|
+
throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
|
|
421
|
+
case "TooManyTagsException":
|
|
422
|
+
case "com.amazonaws.servicequotas#TooManyTagsException":
|
|
423
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1051
424
|
default:
|
|
1052
425
|
const parsedBody = parsedOutput.body;
|
|
1053
426
|
return throwDefaultError({
|