@aws-sdk/client-resource-groups-tagging-api 3.52.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ResourceGroupsTaggingAPIServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +86 -1
- package/dist-cjs/protocols/Aws_json1_1.js +93 -301
- package/dist-es/index.js +1 -0
- package/dist-es/models/ResourceGroupsTaggingAPIServiceException.js +12 -0
- package/dist-es/models/models_0.js +80 -1
- package/dist-es/protocols/Aws_json1_1.js +189 -322
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ResourceGroupsTaggingAPIServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +44 -19
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ResourceGroupsTaggingAPIServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +32 -19
- package/package.json +25 -25
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1UntagResourcesCommand = exports.deserializeAws_json1_1TagResourcesCommand = exports.deserializeAws_json1_1StartReportCreationCommand = exports.deserializeAws_json1_1GetTagValuesCommand = exports.deserializeAws_json1_1GetTagKeysCommand = exports.deserializeAws_json1_1GetResourcesCommand = exports.deserializeAws_json1_1GetComplianceSummaryCommand = exports.deserializeAws_json1_1DescribeReportCreationCommand = exports.serializeAws_json1_1UntagResourcesCommand = exports.serializeAws_json1_1TagResourcesCommand = exports.serializeAws_json1_1StartReportCreationCommand = exports.serializeAws_json1_1GetTagValuesCommand = exports.serializeAws_json1_1GetTagKeysCommand = exports.serializeAws_json1_1GetResourcesCommand = exports.serializeAws_json1_1GetComplianceSummaryCommand = exports.serializeAws_json1_1DescribeReportCreationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const ResourceGroupsTaggingAPIServiceException_1 = require("../models/ResourceGroupsTaggingAPIServiceException");
|
|
6
8
|
const serializeAws_json1_1DescribeReportCreationCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -108,51 +110,25 @@ const deserializeAws_json1_1DescribeReportCreationCommandError = async (output,
|
|
|
108
110
|
switch (errorCode) {
|
|
109
111
|
case "ConstraintViolationException":
|
|
110
112
|
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
111
|
-
|
|
112
|
-
...(await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)),
|
|
113
|
-
name: errorCode,
|
|
114
|
-
$metadata: deserializeMetadata(output),
|
|
115
|
-
};
|
|
116
|
-
break;
|
|
113
|
+
throw await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context);
|
|
117
114
|
case "InternalServiceException":
|
|
118
115
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
119
|
-
|
|
120
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
121
|
-
name: errorCode,
|
|
122
|
-
$metadata: deserializeMetadata(output),
|
|
123
|
-
};
|
|
124
|
-
break;
|
|
116
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
125
117
|
case "InvalidParameterException":
|
|
126
118
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
127
|
-
|
|
128
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
129
|
-
name: errorCode,
|
|
130
|
-
$metadata: deserializeMetadata(output),
|
|
131
|
-
};
|
|
132
|
-
break;
|
|
119
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
133
120
|
case "ThrottledException":
|
|
134
121
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
135
|
-
|
|
136
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
137
|
-
name: errorCode,
|
|
138
|
-
$metadata: deserializeMetadata(output),
|
|
139
|
-
};
|
|
140
|
-
break;
|
|
122
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
141
123
|
default:
|
|
142
124
|
const parsedBody = parsedOutput.body;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
...parsedBody,
|
|
146
|
-
name: `${errorCode}`,
|
|
147
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
125
|
+
response = new ResourceGroupsTaggingAPIServiceException_1.ResourceGroupsTaggingAPIServiceException({
|
|
126
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
148
127
|
$fault: "client",
|
|
149
128
|
$metadata: deserializeMetadata(output),
|
|
150
|
-
};
|
|
129
|
+
});
|
|
130
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
151
131
|
}
|
|
152
|
-
const message = response.message || response.Message || errorCode;
|
|
153
|
-
response.message = message;
|
|
154
|
-
delete response.Message;
|
|
155
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
156
132
|
};
|
|
157
133
|
const deserializeAws_json1_1GetComplianceSummaryCommand = async (output, context) => {
|
|
158
134
|
if (output.statusCode >= 300) {
|
|
@@ -179,51 +155,25 @@ const deserializeAws_json1_1GetComplianceSummaryCommandError = async (output, co
|
|
|
179
155
|
switch (errorCode) {
|
|
180
156
|
case "ConstraintViolationException":
|
|
181
157
|
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
182
|
-
|
|
183
|
-
...(await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)),
|
|
184
|
-
name: errorCode,
|
|
185
|
-
$metadata: deserializeMetadata(output),
|
|
186
|
-
};
|
|
187
|
-
break;
|
|
158
|
+
throw await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context);
|
|
188
159
|
case "InternalServiceException":
|
|
189
160
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
190
|
-
|
|
191
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
192
|
-
name: errorCode,
|
|
193
|
-
$metadata: deserializeMetadata(output),
|
|
194
|
-
};
|
|
195
|
-
break;
|
|
161
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
196
162
|
case "InvalidParameterException":
|
|
197
163
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
198
|
-
|
|
199
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
200
|
-
name: errorCode,
|
|
201
|
-
$metadata: deserializeMetadata(output),
|
|
202
|
-
};
|
|
203
|
-
break;
|
|
164
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
204
165
|
case "ThrottledException":
|
|
205
166
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
206
|
-
|
|
207
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
208
|
-
name: errorCode,
|
|
209
|
-
$metadata: deserializeMetadata(output),
|
|
210
|
-
};
|
|
211
|
-
break;
|
|
167
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
212
168
|
default:
|
|
213
169
|
const parsedBody = parsedOutput.body;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
...parsedBody,
|
|
217
|
-
name: `${errorCode}`,
|
|
218
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
170
|
+
response = new ResourceGroupsTaggingAPIServiceException_1.ResourceGroupsTaggingAPIServiceException({
|
|
171
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
219
172
|
$fault: "client",
|
|
220
173
|
$metadata: deserializeMetadata(output),
|
|
221
|
-
};
|
|
174
|
+
});
|
|
175
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
222
176
|
}
|
|
223
|
-
const message = response.message || response.Message || errorCode;
|
|
224
|
-
response.message = message;
|
|
225
|
-
delete response.Message;
|
|
226
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
227
177
|
};
|
|
228
178
|
const deserializeAws_json1_1GetResourcesCommand = async (output, context) => {
|
|
229
179
|
if (output.statusCode >= 300) {
|
|
@@ -250,51 +200,25 @@ const deserializeAws_json1_1GetResourcesCommandError = async (output, context) =
|
|
|
250
200
|
switch (errorCode) {
|
|
251
201
|
case "InternalServiceException":
|
|
252
202
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
253
|
-
|
|
254
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
255
|
-
name: errorCode,
|
|
256
|
-
$metadata: deserializeMetadata(output),
|
|
257
|
-
};
|
|
258
|
-
break;
|
|
203
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
259
204
|
case "InvalidParameterException":
|
|
260
205
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
261
|
-
|
|
262
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
263
|
-
name: errorCode,
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
};
|
|
266
|
-
break;
|
|
206
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
267
207
|
case "PaginationTokenExpiredException":
|
|
268
208
|
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
269
|
-
|
|
270
|
-
...(await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)),
|
|
271
|
-
name: errorCode,
|
|
272
|
-
$metadata: deserializeMetadata(output),
|
|
273
|
-
};
|
|
274
|
-
break;
|
|
209
|
+
throw await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context);
|
|
275
210
|
case "ThrottledException":
|
|
276
211
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
277
|
-
|
|
278
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
279
|
-
name: errorCode,
|
|
280
|
-
$metadata: deserializeMetadata(output),
|
|
281
|
-
};
|
|
282
|
-
break;
|
|
212
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
283
213
|
default:
|
|
284
214
|
const parsedBody = parsedOutput.body;
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
...parsedBody,
|
|
288
|
-
name: `${errorCode}`,
|
|
289
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
215
|
+
response = new ResourceGroupsTaggingAPIServiceException_1.ResourceGroupsTaggingAPIServiceException({
|
|
216
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
290
217
|
$fault: "client",
|
|
291
218
|
$metadata: deserializeMetadata(output),
|
|
292
|
-
};
|
|
219
|
+
});
|
|
220
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
293
221
|
}
|
|
294
|
-
const message = response.message || response.Message || errorCode;
|
|
295
|
-
response.message = message;
|
|
296
|
-
delete response.Message;
|
|
297
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
298
222
|
};
|
|
299
223
|
const deserializeAws_json1_1GetTagKeysCommand = async (output, context) => {
|
|
300
224
|
if (output.statusCode >= 300) {
|
|
@@ -321,51 +245,25 @@ const deserializeAws_json1_1GetTagKeysCommandError = async (output, context) =>
|
|
|
321
245
|
switch (errorCode) {
|
|
322
246
|
case "InternalServiceException":
|
|
323
247
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
324
|
-
|
|
325
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
326
|
-
name: errorCode,
|
|
327
|
-
$metadata: deserializeMetadata(output),
|
|
328
|
-
};
|
|
329
|
-
break;
|
|
248
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
330
249
|
case "InvalidParameterException":
|
|
331
250
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
332
|
-
|
|
333
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
334
|
-
name: errorCode,
|
|
335
|
-
$metadata: deserializeMetadata(output),
|
|
336
|
-
};
|
|
337
|
-
break;
|
|
251
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
338
252
|
case "PaginationTokenExpiredException":
|
|
339
253
|
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
340
|
-
|
|
341
|
-
...(await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)),
|
|
342
|
-
name: errorCode,
|
|
343
|
-
$metadata: deserializeMetadata(output),
|
|
344
|
-
};
|
|
345
|
-
break;
|
|
254
|
+
throw await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context);
|
|
346
255
|
case "ThrottledException":
|
|
347
256
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
348
|
-
|
|
349
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
350
|
-
name: errorCode,
|
|
351
|
-
$metadata: deserializeMetadata(output),
|
|
352
|
-
};
|
|
353
|
-
break;
|
|
257
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
354
258
|
default:
|
|
355
259
|
const parsedBody = parsedOutput.body;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
...parsedBody,
|
|
359
|
-
name: `${errorCode}`,
|
|
360
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
260
|
+
response = new ResourceGroupsTaggingAPIServiceException_1.ResourceGroupsTaggingAPIServiceException({
|
|
261
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
361
262
|
$fault: "client",
|
|
362
263
|
$metadata: deserializeMetadata(output),
|
|
363
|
-
};
|
|
264
|
+
});
|
|
265
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
364
266
|
}
|
|
365
|
-
const message = response.message || response.Message || errorCode;
|
|
366
|
-
response.message = message;
|
|
367
|
-
delete response.Message;
|
|
368
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
369
267
|
};
|
|
370
268
|
const deserializeAws_json1_1GetTagValuesCommand = async (output, context) => {
|
|
371
269
|
if (output.statusCode >= 300) {
|
|
@@ -392,51 +290,25 @@ const deserializeAws_json1_1GetTagValuesCommandError = async (output, context) =
|
|
|
392
290
|
switch (errorCode) {
|
|
393
291
|
case "InternalServiceException":
|
|
394
292
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
395
|
-
|
|
396
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
397
|
-
name: errorCode,
|
|
398
|
-
$metadata: deserializeMetadata(output),
|
|
399
|
-
};
|
|
400
|
-
break;
|
|
293
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
401
294
|
case "InvalidParameterException":
|
|
402
295
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
403
|
-
|
|
404
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
405
|
-
name: errorCode,
|
|
406
|
-
$metadata: deserializeMetadata(output),
|
|
407
|
-
};
|
|
408
|
-
break;
|
|
296
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
409
297
|
case "PaginationTokenExpiredException":
|
|
410
298
|
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
411
|
-
|
|
412
|
-
...(await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)),
|
|
413
|
-
name: errorCode,
|
|
414
|
-
$metadata: deserializeMetadata(output),
|
|
415
|
-
};
|
|
416
|
-
break;
|
|
299
|
+
throw await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context);
|
|
417
300
|
case "ThrottledException":
|
|
418
301
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
419
|
-
|
|
420
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
421
|
-
name: errorCode,
|
|
422
|
-
$metadata: deserializeMetadata(output),
|
|
423
|
-
};
|
|
424
|
-
break;
|
|
302
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
425
303
|
default:
|
|
426
304
|
const parsedBody = parsedOutput.body;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
...parsedBody,
|
|
430
|
-
name: `${errorCode}`,
|
|
431
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
305
|
+
response = new ResourceGroupsTaggingAPIServiceException_1.ResourceGroupsTaggingAPIServiceException({
|
|
306
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
432
307
|
$fault: "client",
|
|
433
308
|
$metadata: deserializeMetadata(output),
|
|
434
|
-
};
|
|
309
|
+
});
|
|
310
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
435
311
|
}
|
|
436
|
-
const message = response.message || response.Message || errorCode;
|
|
437
|
-
response.message = message;
|
|
438
|
-
delete response.Message;
|
|
439
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
440
312
|
};
|
|
441
313
|
const deserializeAws_json1_1StartReportCreationCommand = async (output, context) => {
|
|
442
314
|
if (output.statusCode >= 300) {
|
|
@@ -463,59 +335,28 @@ const deserializeAws_json1_1StartReportCreationCommandError = async (output, con
|
|
|
463
335
|
switch (errorCode) {
|
|
464
336
|
case "ConcurrentModificationException":
|
|
465
337
|
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
|
|
466
|
-
|
|
467
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
468
|
-
name: errorCode,
|
|
469
|
-
$metadata: deserializeMetadata(output),
|
|
470
|
-
};
|
|
471
|
-
break;
|
|
338
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
472
339
|
case "ConstraintViolationException":
|
|
473
340
|
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
474
|
-
|
|
475
|
-
...(await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)),
|
|
476
|
-
name: errorCode,
|
|
477
|
-
$metadata: deserializeMetadata(output),
|
|
478
|
-
};
|
|
479
|
-
break;
|
|
341
|
+
throw await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context);
|
|
480
342
|
case "InternalServiceException":
|
|
481
343
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
482
|
-
|
|
483
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
484
|
-
name: errorCode,
|
|
485
|
-
$metadata: deserializeMetadata(output),
|
|
486
|
-
};
|
|
487
|
-
break;
|
|
344
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
488
345
|
case "InvalidParameterException":
|
|
489
346
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
490
|
-
|
|
491
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
492
|
-
name: errorCode,
|
|
493
|
-
$metadata: deserializeMetadata(output),
|
|
494
|
-
};
|
|
495
|
-
break;
|
|
347
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
496
348
|
case "ThrottledException":
|
|
497
349
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
498
|
-
|
|
499
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
500
|
-
name: errorCode,
|
|
501
|
-
$metadata: deserializeMetadata(output),
|
|
502
|
-
};
|
|
503
|
-
break;
|
|
350
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
504
351
|
default:
|
|
505
352
|
const parsedBody = parsedOutput.body;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
...parsedBody,
|
|
509
|
-
name: `${errorCode}`,
|
|
510
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
353
|
+
response = new ResourceGroupsTaggingAPIServiceException_1.ResourceGroupsTaggingAPIServiceException({
|
|
354
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
511
355
|
$fault: "client",
|
|
512
356
|
$metadata: deserializeMetadata(output),
|
|
513
|
-
};
|
|
357
|
+
});
|
|
358
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
514
359
|
}
|
|
515
|
-
const message = response.message || response.Message || errorCode;
|
|
516
|
-
response.message = message;
|
|
517
|
-
delete response.Message;
|
|
518
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
519
360
|
};
|
|
520
361
|
const deserializeAws_json1_1TagResourcesCommand = async (output, context) => {
|
|
521
362
|
if (output.statusCode >= 300) {
|
|
@@ -542,43 +383,22 @@ const deserializeAws_json1_1TagResourcesCommandError = async (output, context) =
|
|
|
542
383
|
switch (errorCode) {
|
|
543
384
|
case "InternalServiceException":
|
|
544
385
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
545
|
-
|
|
546
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
547
|
-
name: errorCode,
|
|
548
|
-
$metadata: deserializeMetadata(output),
|
|
549
|
-
};
|
|
550
|
-
break;
|
|
386
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
551
387
|
case "InvalidParameterException":
|
|
552
388
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
553
|
-
|
|
554
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
555
|
-
name: errorCode,
|
|
556
|
-
$metadata: deserializeMetadata(output),
|
|
557
|
-
};
|
|
558
|
-
break;
|
|
389
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
559
390
|
case "ThrottledException":
|
|
560
391
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
561
|
-
|
|
562
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
563
|
-
name: errorCode,
|
|
564
|
-
$metadata: deserializeMetadata(output),
|
|
565
|
-
};
|
|
566
|
-
break;
|
|
392
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
567
393
|
default:
|
|
568
394
|
const parsedBody = parsedOutput.body;
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
...parsedBody,
|
|
572
|
-
name: `${errorCode}`,
|
|
573
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
395
|
+
response = new ResourceGroupsTaggingAPIServiceException_1.ResourceGroupsTaggingAPIServiceException({
|
|
396
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
574
397
|
$fault: "client",
|
|
575
398
|
$metadata: deserializeMetadata(output),
|
|
576
|
-
};
|
|
399
|
+
});
|
|
400
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
577
401
|
}
|
|
578
|
-
const message = response.message || response.Message || errorCode;
|
|
579
|
-
response.message = message;
|
|
580
|
-
delete response.Message;
|
|
581
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
582
402
|
};
|
|
583
403
|
const deserializeAws_json1_1UntagResourcesCommand = async (output, context) => {
|
|
584
404
|
if (output.statusCode >= 300) {
|
|
@@ -605,109 +425,76 @@ const deserializeAws_json1_1UntagResourcesCommandError = async (output, context)
|
|
|
605
425
|
switch (errorCode) {
|
|
606
426
|
case "InternalServiceException":
|
|
607
427
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
608
|
-
|
|
609
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
610
|
-
name: errorCode,
|
|
611
|
-
$metadata: deserializeMetadata(output),
|
|
612
|
-
};
|
|
613
|
-
break;
|
|
428
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
614
429
|
case "InvalidParameterException":
|
|
615
430
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
616
|
-
|
|
617
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
618
|
-
name: errorCode,
|
|
619
|
-
$metadata: deserializeMetadata(output),
|
|
620
|
-
};
|
|
621
|
-
break;
|
|
431
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
622
432
|
case "ThrottledException":
|
|
623
433
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
624
|
-
|
|
625
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
626
|
-
name: errorCode,
|
|
627
|
-
$metadata: deserializeMetadata(output),
|
|
628
|
-
};
|
|
629
|
-
break;
|
|
434
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
630
435
|
default:
|
|
631
436
|
const parsedBody = parsedOutput.body;
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
...parsedBody,
|
|
635
|
-
name: `${errorCode}`,
|
|
636
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
437
|
+
response = new ResourceGroupsTaggingAPIServiceException_1.ResourceGroupsTaggingAPIServiceException({
|
|
438
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
637
439
|
$fault: "client",
|
|
638
440
|
$metadata: deserializeMetadata(output),
|
|
639
|
-
};
|
|
441
|
+
});
|
|
442
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
640
443
|
}
|
|
641
|
-
const message = response.message || response.Message || errorCode;
|
|
642
|
-
response.message = message;
|
|
643
|
-
delete response.Message;
|
|
644
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
645
444
|
};
|
|
646
445
|
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
647
446
|
const body = parsedOutput.body;
|
|
648
447
|
const deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
649
|
-
const
|
|
650
|
-
name: "ConcurrentModificationException",
|
|
651
|
-
$fault: "client",
|
|
448
|
+
const exception = new models_0_1.ConcurrentModificationException({
|
|
652
449
|
$metadata: deserializeMetadata(parsedOutput),
|
|
653
450
|
...deserialized,
|
|
654
|
-
};
|
|
655
|
-
return
|
|
451
|
+
});
|
|
452
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
656
453
|
};
|
|
657
454
|
const deserializeAws_json1_1ConstraintViolationExceptionResponse = async (parsedOutput, context) => {
|
|
658
455
|
const body = parsedOutput.body;
|
|
659
456
|
const deserialized = deserializeAws_json1_1ConstraintViolationException(body, context);
|
|
660
|
-
const
|
|
661
|
-
name: "ConstraintViolationException",
|
|
662
|
-
$fault: "client",
|
|
457
|
+
const exception = new models_0_1.ConstraintViolationException({
|
|
663
458
|
$metadata: deserializeMetadata(parsedOutput),
|
|
664
459
|
...deserialized,
|
|
665
|
-
};
|
|
666
|
-
return
|
|
460
|
+
});
|
|
461
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
667
462
|
};
|
|
668
463
|
const deserializeAws_json1_1InternalServiceExceptionResponse = async (parsedOutput, context) => {
|
|
669
464
|
const body = parsedOutput.body;
|
|
670
465
|
const deserialized = deserializeAws_json1_1InternalServiceException(body, context);
|
|
671
|
-
const
|
|
672
|
-
name: "InternalServiceException",
|
|
673
|
-
$fault: "server",
|
|
466
|
+
const exception = new models_0_1.InternalServiceException({
|
|
674
467
|
$metadata: deserializeMetadata(parsedOutput),
|
|
675
468
|
...deserialized,
|
|
676
|
-
};
|
|
677
|
-
return
|
|
469
|
+
});
|
|
470
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
678
471
|
};
|
|
679
472
|
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
680
473
|
const body = parsedOutput.body;
|
|
681
474
|
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
682
|
-
const
|
|
683
|
-
name: "InvalidParameterException",
|
|
684
|
-
$fault: "client",
|
|
475
|
+
const exception = new models_0_1.InvalidParameterException({
|
|
685
476
|
$metadata: deserializeMetadata(parsedOutput),
|
|
686
477
|
...deserialized,
|
|
687
|
-
};
|
|
688
|
-
return
|
|
478
|
+
});
|
|
479
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
689
480
|
};
|
|
690
481
|
const deserializeAws_json1_1PaginationTokenExpiredExceptionResponse = async (parsedOutput, context) => {
|
|
691
482
|
const body = parsedOutput.body;
|
|
692
483
|
const deserialized = deserializeAws_json1_1PaginationTokenExpiredException(body, context);
|
|
693
|
-
const
|
|
694
|
-
name: "PaginationTokenExpiredException",
|
|
695
|
-
$fault: "client",
|
|
484
|
+
const exception = new models_0_1.PaginationTokenExpiredException({
|
|
696
485
|
$metadata: deserializeMetadata(parsedOutput),
|
|
697
486
|
...deserialized,
|
|
698
|
-
};
|
|
699
|
-
return
|
|
487
|
+
});
|
|
488
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
700
489
|
};
|
|
701
490
|
const deserializeAws_json1_1ThrottledExceptionResponse = async (parsedOutput, context) => {
|
|
702
491
|
const body = parsedOutput.body;
|
|
703
492
|
const deserialized = deserializeAws_json1_1ThrottledException(body, context);
|
|
704
|
-
const
|
|
705
|
-
name: "ThrottledException",
|
|
706
|
-
$fault: "client",
|
|
493
|
+
const exception = new models_0_1.ThrottledException({
|
|
707
494
|
$metadata: deserializeMetadata(parsedOutput),
|
|
708
495
|
...deserialized,
|
|
709
|
-
};
|
|
710
|
-
return
|
|
496
|
+
});
|
|
497
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
711
498
|
};
|
|
712
499
|
const serializeAws_json1_1DescribeReportCreationInput = (input, context) => {
|
|
713
500
|
return {};
|
|
@@ -1021,7 +808,7 @@ const deserializeAws_json1_1ResourceTagMapping = (output, context) => {
|
|
|
1021
808
|
};
|
|
1022
809
|
};
|
|
1023
810
|
const deserializeAws_json1_1ResourceTagMappingList = (output, context) => {
|
|
1024
|
-
|
|
811
|
+
const retVal = (output || [])
|
|
1025
812
|
.filter((e) => e != null)
|
|
1026
813
|
.map((entry) => {
|
|
1027
814
|
if (entry === null) {
|
|
@@ -1029,6 +816,7 @@ const deserializeAws_json1_1ResourceTagMappingList = (output, context) => {
|
|
|
1029
816
|
}
|
|
1030
817
|
return deserializeAws_json1_1ResourceTagMapping(entry, context);
|
|
1031
818
|
});
|
|
819
|
+
return retVal;
|
|
1032
820
|
};
|
|
1033
821
|
const deserializeAws_json1_1StartReportCreationOutput = (output, context) => {
|
|
1034
822
|
return {};
|
|
@@ -1044,7 +832,7 @@ const deserializeAws_json1_1Summary = (output, context) => {
|
|
|
1044
832
|
};
|
|
1045
833
|
};
|
|
1046
834
|
const deserializeAws_json1_1SummaryList = (output, context) => {
|
|
1047
|
-
|
|
835
|
+
const retVal = (output || [])
|
|
1048
836
|
.filter((e) => e != null)
|
|
1049
837
|
.map((entry) => {
|
|
1050
838
|
if (entry === null) {
|
|
@@ -1052,6 +840,7 @@ const deserializeAws_json1_1SummaryList = (output, context) => {
|
|
|
1052
840
|
}
|
|
1053
841
|
return deserializeAws_json1_1Summary(entry, context);
|
|
1054
842
|
});
|
|
843
|
+
return retVal;
|
|
1055
844
|
};
|
|
1056
845
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
1057
846
|
return {
|
|
@@ -1060,7 +849,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
1060
849
|
};
|
|
1061
850
|
};
|
|
1062
851
|
const deserializeAws_json1_1TagKeyList = (output, context) => {
|
|
1063
|
-
|
|
852
|
+
const retVal = (output || [])
|
|
1064
853
|
.filter((e) => e != null)
|
|
1065
854
|
.map((entry) => {
|
|
1066
855
|
if (entry === null) {
|
|
@@ -1068,9 +857,10 @@ const deserializeAws_json1_1TagKeyList = (output, context) => {
|
|
|
1068
857
|
}
|
|
1069
858
|
return smithy_client_1.expectString(entry);
|
|
1070
859
|
});
|
|
860
|
+
return retVal;
|
|
1071
861
|
};
|
|
1072
862
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
1073
|
-
|
|
863
|
+
const retVal = (output || [])
|
|
1074
864
|
.filter((e) => e != null)
|
|
1075
865
|
.map((entry) => {
|
|
1076
866
|
if (entry === null) {
|
|
@@ -1078,6 +868,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
1078
868
|
}
|
|
1079
869
|
return deserializeAws_json1_1Tag(entry, context);
|
|
1080
870
|
});
|
|
871
|
+
return retVal;
|
|
1081
872
|
};
|
|
1082
873
|
const deserializeAws_json1_1TagResourcesOutput = (output, context) => {
|
|
1083
874
|
return {
|
|
@@ -1087,7 +878,7 @@ const deserializeAws_json1_1TagResourcesOutput = (output, context) => {
|
|
|
1087
878
|
};
|
|
1088
879
|
};
|
|
1089
880
|
const deserializeAws_json1_1TagValuesOutputList = (output, context) => {
|
|
1090
|
-
|
|
881
|
+
const retVal = (output || [])
|
|
1091
882
|
.filter((e) => e != null)
|
|
1092
883
|
.map((entry) => {
|
|
1093
884
|
if (entry === null) {
|
|
@@ -1095,6 +886,7 @@ const deserializeAws_json1_1TagValuesOutputList = (output, context) => {
|
|
|
1095
886
|
}
|
|
1096
887
|
return smithy_client_1.expectString(entry);
|
|
1097
888
|
});
|
|
889
|
+
return retVal;
|
|
1098
890
|
};
|
|
1099
891
|
const deserializeAws_json1_1ThrottledException = (output, context) => {
|
|
1100
892
|
return {
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var ResourceGroupsTaggingAPIServiceException = (function (_super) {
|
|
4
|
+
__extends(ResourceGroupsTaggingAPIServiceException, _super);
|
|
5
|
+
function ResourceGroupsTaggingAPIServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, ResourceGroupsTaggingAPIServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return ResourceGroupsTaggingAPIServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { ResourceGroupsTaggingAPIServiceException };
|