@aws-sdk/client-oam 3.312.0 → 3.315.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/protocols/Aws_restJson1.js +196 -346
- package/dist-es/protocols/Aws_restJson1.js +173 -323
- package/package.json +6 -6
|
@@ -12,12 +12,12 @@ const se_CreateLinkCommand = async (input, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLink";
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
LabelTemplate: [],
|
|
17
|
+
ResourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
+
SinkIdentifier: [],
|
|
19
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
}));
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
23
23
|
hostname,
|
|
@@ -36,10 +36,10 @@ const se_CreateSinkCommand = async (input, context) => {
|
|
|
36
36
|
};
|
|
37
37
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSink";
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
});
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
40
|
+
Name: [],
|
|
41
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
42
|
+
}));
|
|
43
43
|
return new protocol_http_1.HttpRequest({
|
|
44
44
|
protocol,
|
|
45
45
|
hostname,
|
|
@@ -58,9 +58,9 @@ const se_DeleteLinkCommand = async (input, context) => {
|
|
|
58
58
|
};
|
|
59
59
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLink";
|
|
60
60
|
let body;
|
|
61
|
-
body = JSON.stringify({
|
|
62
|
-
|
|
63
|
-
});
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
62
|
+
Identifier: [],
|
|
63
|
+
}));
|
|
64
64
|
return new protocol_http_1.HttpRequest({
|
|
65
65
|
protocol,
|
|
66
66
|
hostname,
|
|
@@ -79,9 +79,9 @@ const se_DeleteSinkCommand = async (input, context) => {
|
|
|
79
79
|
};
|
|
80
80
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSink";
|
|
81
81
|
let body;
|
|
82
|
-
body = JSON.stringify({
|
|
83
|
-
|
|
84
|
-
});
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
83
|
+
Identifier: [],
|
|
84
|
+
}));
|
|
85
85
|
return new protocol_http_1.HttpRequest({
|
|
86
86
|
protocol,
|
|
87
87
|
hostname,
|
|
@@ -100,9 +100,9 @@ const se_GetLinkCommand = async (input, context) => {
|
|
|
100
100
|
};
|
|
101
101
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLink";
|
|
102
102
|
let body;
|
|
103
|
-
body = JSON.stringify({
|
|
104
|
-
|
|
105
|
-
});
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
104
|
+
Identifier: [],
|
|
105
|
+
}));
|
|
106
106
|
return new protocol_http_1.HttpRequest({
|
|
107
107
|
protocol,
|
|
108
108
|
hostname,
|
|
@@ -121,9 +121,9 @@ const se_GetSinkCommand = async (input, context) => {
|
|
|
121
121
|
};
|
|
122
122
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetSink";
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify({
|
|
125
|
-
|
|
126
|
-
});
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
125
|
+
Identifier: [],
|
|
126
|
+
}));
|
|
127
127
|
return new protocol_http_1.HttpRequest({
|
|
128
128
|
protocol,
|
|
129
129
|
hostname,
|
|
@@ -142,9 +142,9 @@ const se_GetSinkPolicyCommand = async (input, context) => {
|
|
|
142
142
|
};
|
|
143
143
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetSinkPolicy";
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify({
|
|
146
|
-
|
|
147
|
-
});
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
146
|
+
SinkIdentifier: [],
|
|
147
|
+
}));
|
|
148
148
|
return new protocol_http_1.HttpRequest({
|
|
149
149
|
protocol,
|
|
150
150
|
hostname,
|
|
@@ -163,11 +163,11 @@ const se_ListAttachedLinksCommand = async (input, context) => {
|
|
|
163
163
|
};
|
|
164
164
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListAttachedLinks";
|
|
165
165
|
let body;
|
|
166
|
-
body = JSON.stringify({
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
});
|
|
166
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
167
|
+
MaxResults: [],
|
|
168
|
+
NextToken: [],
|
|
169
|
+
SinkIdentifier: [],
|
|
170
|
+
}));
|
|
171
171
|
return new protocol_http_1.HttpRequest({
|
|
172
172
|
protocol,
|
|
173
173
|
hostname,
|
|
@@ -186,10 +186,10 @@ const se_ListLinksCommand = async (input, context) => {
|
|
|
186
186
|
};
|
|
187
187
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLinks";
|
|
188
188
|
let body;
|
|
189
|
-
body = JSON.stringify({
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
});
|
|
189
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
190
|
+
MaxResults: [],
|
|
191
|
+
NextToken: [],
|
|
192
|
+
}));
|
|
193
193
|
return new protocol_http_1.HttpRequest({
|
|
194
194
|
protocol,
|
|
195
195
|
hostname,
|
|
@@ -208,10 +208,10 @@ const se_ListSinksCommand = async (input, context) => {
|
|
|
208
208
|
};
|
|
209
209
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListSinks";
|
|
210
210
|
let body;
|
|
211
|
-
body = JSON.stringify({
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
});
|
|
211
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
212
|
+
MaxResults: [],
|
|
213
|
+
NextToken: [],
|
|
214
|
+
}));
|
|
215
215
|
return new protocol_http_1.HttpRequest({
|
|
216
216
|
protocol,
|
|
217
217
|
hostname,
|
|
@@ -247,10 +247,10 @@ const se_PutSinkPolicyCommand = async (input, context) => {
|
|
|
247
247
|
};
|
|
248
248
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutSinkPolicy";
|
|
249
249
|
let body;
|
|
250
|
-
body = JSON.stringify({
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
});
|
|
250
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
251
|
+
Policy: [],
|
|
252
|
+
SinkIdentifier: [],
|
|
253
|
+
}));
|
|
254
254
|
return new protocol_http_1.HttpRequest({
|
|
255
255
|
protocol,
|
|
256
256
|
hostname,
|
|
@@ -270,9 +270,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
270
270
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
271
271
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
272
272
|
let body;
|
|
273
|
-
body = JSON.stringify({
|
|
274
|
-
|
|
275
|
-
});
|
|
273
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
274
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
275
|
+
}));
|
|
276
276
|
return new protocol_http_1.HttpRequest({
|
|
277
277
|
protocol,
|
|
278
278
|
hostname,
|
|
@@ -289,7 +289,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
289
289
|
const headers = {};
|
|
290
290
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
291
291
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
292
|
-
const query = map({
|
|
292
|
+
const query = (0, smithy_client_1.map)({
|
|
293
293
|
tagKeys: [
|
|
294
294
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
295
295
|
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
@@ -315,10 +315,10 @@ const se_UpdateLinkCommand = async (input, context) => {
|
|
|
315
315
|
};
|
|
316
316
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLink";
|
|
317
317
|
let body;
|
|
318
|
-
body = JSON.stringify({
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
});
|
|
318
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
319
|
+
Identifier: [],
|
|
320
|
+
ResourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
321
|
+
}));
|
|
322
322
|
return new protocol_http_1.HttpRequest({
|
|
323
323
|
protocol,
|
|
324
324
|
hostname,
|
|
@@ -334,31 +334,20 @@ const de_CreateLinkCommand = async (output, context) => {
|
|
|
334
334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
335
335
|
return de_CreateLinkCommandError(output, context);
|
|
336
336
|
}
|
|
337
|
-
const contents = map({
|
|
337
|
+
const contents = (0, smithy_client_1.map)({
|
|
338
338
|
$metadata: deserializeMetadata(output),
|
|
339
339
|
});
|
|
340
340
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
contents.LabelTemplate = (0, smithy_client_1.expectString)(data.LabelTemplate);
|
|
352
|
-
}
|
|
353
|
-
if (data.ResourceTypes != null) {
|
|
354
|
-
contents.ResourceTypes = de_ResourceTypesOutput(data.ResourceTypes, context);
|
|
355
|
-
}
|
|
356
|
-
if (data.SinkArn != null) {
|
|
357
|
-
contents.SinkArn = (0, smithy_client_1.expectString)(data.SinkArn);
|
|
358
|
-
}
|
|
359
|
-
if (data.Tags != null) {
|
|
360
|
-
contents.Tags = de_TagMapOutput(data.Tags, context);
|
|
361
|
-
}
|
|
341
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
342
|
+
Arn: smithy_client_1.expectString,
|
|
343
|
+
Id: smithy_client_1.expectString,
|
|
344
|
+
Label: smithy_client_1.expectString,
|
|
345
|
+
LabelTemplate: smithy_client_1.expectString,
|
|
346
|
+
ResourceTypes: smithy_client_1._json,
|
|
347
|
+
SinkArn: smithy_client_1.expectString,
|
|
348
|
+
Tags: smithy_client_1._json,
|
|
349
|
+
});
|
|
350
|
+
Object.assign(contents, doc);
|
|
362
351
|
return contents;
|
|
363
352
|
};
|
|
364
353
|
exports.de_CreateLinkCommand = de_CreateLinkCommand;
|
|
@@ -386,10 +375,9 @@ const de_CreateLinkCommandError = async (output, context) => {
|
|
|
386
375
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
387
376
|
default:
|
|
388
377
|
const parsedBody = parsedOutput.body;
|
|
389
|
-
|
|
378
|
+
return throwDefaultError({
|
|
390
379
|
output,
|
|
391
380
|
parsedBody,
|
|
392
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
393
381
|
errorCode,
|
|
394
382
|
});
|
|
395
383
|
}
|
|
@@ -398,22 +386,17 @@ const de_CreateSinkCommand = async (output, context) => {
|
|
|
398
386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
399
387
|
return de_CreateSinkCommandError(output, context);
|
|
400
388
|
}
|
|
401
|
-
const contents = map({
|
|
389
|
+
const contents = (0, smithy_client_1.map)({
|
|
402
390
|
$metadata: deserializeMetadata(output),
|
|
403
391
|
});
|
|
404
392
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
413
|
-
}
|
|
414
|
-
if (data.Tags != null) {
|
|
415
|
-
contents.Tags = de_TagMapOutput(data.Tags, context);
|
|
416
|
-
}
|
|
393
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
394
|
+
Arn: smithy_client_1.expectString,
|
|
395
|
+
Id: smithy_client_1.expectString,
|
|
396
|
+
Name: smithy_client_1.expectString,
|
|
397
|
+
Tags: smithy_client_1._json,
|
|
398
|
+
});
|
|
399
|
+
Object.assign(contents, doc);
|
|
417
400
|
return contents;
|
|
418
401
|
};
|
|
419
402
|
exports.de_CreateSinkCommand = de_CreateSinkCommand;
|
|
@@ -441,10 +424,9 @@ const de_CreateSinkCommandError = async (output, context) => {
|
|
|
441
424
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
442
425
|
default:
|
|
443
426
|
const parsedBody = parsedOutput.body;
|
|
444
|
-
|
|
427
|
+
return throwDefaultError({
|
|
445
428
|
output,
|
|
446
429
|
parsedBody,
|
|
447
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
448
430
|
errorCode,
|
|
449
431
|
});
|
|
450
432
|
}
|
|
@@ -453,7 +435,7 @@ const de_DeleteLinkCommand = async (output, context) => {
|
|
|
453
435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
454
436
|
return de_DeleteLinkCommandError(output, context);
|
|
455
437
|
}
|
|
456
|
-
const contents = map({
|
|
438
|
+
const contents = (0, smithy_client_1.map)({
|
|
457
439
|
$metadata: deserializeMetadata(output),
|
|
458
440
|
});
|
|
459
441
|
await collectBody(output.body, context);
|
|
@@ -481,10 +463,9 @@ const de_DeleteLinkCommandError = async (output, context) => {
|
|
|
481
463
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
482
464
|
default:
|
|
483
465
|
const parsedBody = parsedOutput.body;
|
|
484
|
-
|
|
466
|
+
return throwDefaultError({
|
|
485
467
|
output,
|
|
486
468
|
parsedBody,
|
|
487
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
488
469
|
errorCode,
|
|
489
470
|
});
|
|
490
471
|
}
|
|
@@ -493,7 +474,7 @@ const de_DeleteSinkCommand = async (output, context) => {
|
|
|
493
474
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
494
475
|
return de_DeleteSinkCommandError(output, context);
|
|
495
476
|
}
|
|
496
|
-
const contents = map({
|
|
477
|
+
const contents = (0, smithy_client_1.map)({
|
|
497
478
|
$metadata: deserializeMetadata(output),
|
|
498
479
|
});
|
|
499
480
|
await collectBody(output.body, context);
|
|
@@ -524,10 +505,9 @@ const de_DeleteSinkCommandError = async (output, context) => {
|
|
|
524
505
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
525
506
|
default:
|
|
526
507
|
const parsedBody = parsedOutput.body;
|
|
527
|
-
|
|
508
|
+
return throwDefaultError({
|
|
528
509
|
output,
|
|
529
510
|
parsedBody,
|
|
530
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
531
511
|
errorCode,
|
|
532
512
|
});
|
|
533
513
|
}
|
|
@@ -536,31 +516,20 @@ const de_GetLinkCommand = async (output, context) => {
|
|
|
536
516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
537
517
|
return de_GetLinkCommandError(output, context);
|
|
538
518
|
}
|
|
539
|
-
const contents = map({
|
|
519
|
+
const contents = (0, smithy_client_1.map)({
|
|
540
520
|
$metadata: deserializeMetadata(output),
|
|
541
521
|
});
|
|
542
522
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
contents.LabelTemplate = (0, smithy_client_1.expectString)(data.LabelTemplate);
|
|
554
|
-
}
|
|
555
|
-
if (data.ResourceTypes != null) {
|
|
556
|
-
contents.ResourceTypes = de_ResourceTypesOutput(data.ResourceTypes, context);
|
|
557
|
-
}
|
|
558
|
-
if (data.SinkArn != null) {
|
|
559
|
-
contents.SinkArn = (0, smithy_client_1.expectString)(data.SinkArn);
|
|
560
|
-
}
|
|
561
|
-
if (data.Tags != null) {
|
|
562
|
-
contents.Tags = de_TagMapOutput(data.Tags, context);
|
|
563
|
-
}
|
|
523
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
524
|
+
Arn: smithy_client_1.expectString,
|
|
525
|
+
Id: smithy_client_1.expectString,
|
|
526
|
+
Label: smithy_client_1.expectString,
|
|
527
|
+
LabelTemplate: smithy_client_1.expectString,
|
|
528
|
+
ResourceTypes: smithy_client_1._json,
|
|
529
|
+
SinkArn: smithy_client_1.expectString,
|
|
530
|
+
Tags: smithy_client_1._json,
|
|
531
|
+
});
|
|
532
|
+
Object.assign(contents, doc);
|
|
564
533
|
return contents;
|
|
565
534
|
};
|
|
566
535
|
exports.de_GetLinkCommand = de_GetLinkCommand;
|
|
@@ -585,10 +554,9 @@ const de_GetLinkCommandError = async (output, context) => {
|
|
|
585
554
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
586
555
|
default:
|
|
587
556
|
const parsedBody = parsedOutput.body;
|
|
588
|
-
|
|
557
|
+
return throwDefaultError({
|
|
589
558
|
output,
|
|
590
559
|
parsedBody,
|
|
591
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
592
560
|
errorCode,
|
|
593
561
|
});
|
|
594
562
|
}
|
|
@@ -597,22 +565,17 @@ const de_GetSinkCommand = async (output, context) => {
|
|
|
597
565
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
598
566
|
return de_GetSinkCommandError(output, context);
|
|
599
567
|
}
|
|
600
|
-
const contents = map({
|
|
568
|
+
const contents = (0, smithy_client_1.map)({
|
|
601
569
|
$metadata: deserializeMetadata(output),
|
|
602
570
|
});
|
|
603
571
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
612
|
-
}
|
|
613
|
-
if (data.Tags != null) {
|
|
614
|
-
contents.Tags = de_TagMapOutput(data.Tags, context);
|
|
615
|
-
}
|
|
572
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
573
|
+
Arn: smithy_client_1.expectString,
|
|
574
|
+
Id: smithy_client_1.expectString,
|
|
575
|
+
Name: smithy_client_1.expectString,
|
|
576
|
+
Tags: smithy_client_1._json,
|
|
577
|
+
});
|
|
578
|
+
Object.assign(contents, doc);
|
|
616
579
|
return contents;
|
|
617
580
|
};
|
|
618
581
|
exports.de_GetSinkCommand = de_GetSinkCommand;
|
|
@@ -637,10 +600,9 @@ const de_GetSinkCommandError = async (output, context) => {
|
|
|
637
600
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
638
601
|
default:
|
|
639
602
|
const parsedBody = parsedOutput.body;
|
|
640
|
-
|
|
603
|
+
return throwDefaultError({
|
|
641
604
|
output,
|
|
642
605
|
parsedBody,
|
|
643
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
644
606
|
errorCode,
|
|
645
607
|
});
|
|
646
608
|
}
|
|
@@ -649,19 +611,16 @@ const de_GetSinkPolicyCommand = async (output, context) => {
|
|
|
649
611
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
650
612
|
return de_GetSinkPolicyCommandError(output, context);
|
|
651
613
|
}
|
|
652
|
-
const contents = map({
|
|
614
|
+
const contents = (0, smithy_client_1.map)({
|
|
653
615
|
$metadata: deserializeMetadata(output),
|
|
654
616
|
});
|
|
655
617
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
if (data.SinkId != null) {
|
|
663
|
-
contents.SinkId = (0, smithy_client_1.expectString)(data.SinkId);
|
|
664
|
-
}
|
|
618
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
619
|
+
Policy: smithy_client_1.expectString,
|
|
620
|
+
SinkArn: smithy_client_1.expectString,
|
|
621
|
+
SinkId: smithy_client_1.expectString,
|
|
622
|
+
});
|
|
623
|
+
Object.assign(contents, doc);
|
|
665
624
|
return contents;
|
|
666
625
|
};
|
|
667
626
|
exports.de_GetSinkPolicyCommand = de_GetSinkPolicyCommand;
|
|
@@ -686,10 +645,9 @@ const de_GetSinkPolicyCommandError = async (output, context) => {
|
|
|
686
645
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
687
646
|
default:
|
|
688
647
|
const parsedBody = parsedOutput.body;
|
|
689
|
-
|
|
648
|
+
return throwDefaultError({
|
|
690
649
|
output,
|
|
691
650
|
parsedBody,
|
|
692
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
693
651
|
errorCode,
|
|
694
652
|
});
|
|
695
653
|
}
|
|
@@ -698,16 +656,15 @@ const de_ListAttachedLinksCommand = async (output, context) => {
|
|
|
698
656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
699
657
|
return de_ListAttachedLinksCommandError(output, context);
|
|
700
658
|
}
|
|
701
|
-
const contents = map({
|
|
659
|
+
const contents = (0, smithy_client_1.map)({
|
|
702
660
|
$metadata: deserializeMetadata(output),
|
|
703
661
|
});
|
|
704
662
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
}
|
|
663
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
664
|
+
Items: smithy_client_1._json,
|
|
665
|
+
NextToken: smithy_client_1.expectString,
|
|
666
|
+
});
|
|
667
|
+
Object.assign(contents, doc);
|
|
711
668
|
return contents;
|
|
712
669
|
};
|
|
713
670
|
exports.de_ListAttachedLinksCommand = de_ListAttachedLinksCommand;
|
|
@@ -732,10 +689,9 @@ const de_ListAttachedLinksCommandError = async (output, context) => {
|
|
|
732
689
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
733
690
|
default:
|
|
734
691
|
const parsedBody = parsedOutput.body;
|
|
735
|
-
|
|
692
|
+
return throwDefaultError({
|
|
736
693
|
output,
|
|
737
694
|
parsedBody,
|
|
738
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
739
695
|
errorCode,
|
|
740
696
|
});
|
|
741
697
|
}
|
|
@@ -744,16 +700,15 @@ const de_ListLinksCommand = async (output, context) => {
|
|
|
744
700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
745
701
|
return de_ListLinksCommandError(output, context);
|
|
746
702
|
}
|
|
747
|
-
const contents = map({
|
|
703
|
+
const contents = (0, smithy_client_1.map)({
|
|
748
704
|
$metadata: deserializeMetadata(output),
|
|
749
705
|
});
|
|
750
706
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
}
|
|
707
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
708
|
+
Items: smithy_client_1._json,
|
|
709
|
+
NextToken: smithy_client_1.expectString,
|
|
710
|
+
});
|
|
711
|
+
Object.assign(contents, doc);
|
|
757
712
|
return contents;
|
|
758
713
|
};
|
|
759
714
|
exports.de_ListLinksCommand = de_ListLinksCommand;
|
|
@@ -775,10 +730,9 @@ const de_ListLinksCommandError = async (output, context) => {
|
|
|
775
730
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
776
731
|
default:
|
|
777
732
|
const parsedBody = parsedOutput.body;
|
|
778
|
-
|
|
733
|
+
return throwDefaultError({
|
|
779
734
|
output,
|
|
780
735
|
parsedBody,
|
|
781
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
782
736
|
errorCode,
|
|
783
737
|
});
|
|
784
738
|
}
|
|
@@ -787,16 +741,15 @@ const de_ListSinksCommand = async (output, context) => {
|
|
|
787
741
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
788
742
|
return de_ListSinksCommandError(output, context);
|
|
789
743
|
}
|
|
790
|
-
const contents = map({
|
|
744
|
+
const contents = (0, smithy_client_1.map)({
|
|
791
745
|
$metadata: deserializeMetadata(output),
|
|
792
746
|
});
|
|
793
747
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
}
|
|
748
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
749
|
+
Items: smithy_client_1._json,
|
|
750
|
+
NextToken: smithy_client_1.expectString,
|
|
751
|
+
});
|
|
752
|
+
Object.assign(contents, doc);
|
|
800
753
|
return contents;
|
|
801
754
|
};
|
|
802
755
|
exports.de_ListSinksCommand = de_ListSinksCommand;
|
|
@@ -818,10 +771,9 @@ const de_ListSinksCommandError = async (output, context) => {
|
|
|
818
771
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
819
772
|
default:
|
|
820
773
|
const parsedBody = parsedOutput.body;
|
|
821
|
-
|
|
774
|
+
return throwDefaultError({
|
|
822
775
|
output,
|
|
823
776
|
parsedBody,
|
|
824
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
825
777
|
errorCode,
|
|
826
778
|
});
|
|
827
779
|
}
|
|
@@ -830,13 +782,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
830
782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
831
783
|
return de_ListTagsForResourceCommandError(output, context);
|
|
832
784
|
}
|
|
833
|
-
const contents = map({
|
|
785
|
+
const contents = (0, smithy_client_1.map)({
|
|
834
786
|
$metadata: deserializeMetadata(output),
|
|
835
787
|
});
|
|
836
788
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
}
|
|
789
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
790
|
+
Tags: smithy_client_1._json,
|
|
791
|
+
});
|
|
792
|
+
Object.assign(contents, doc);
|
|
840
793
|
return contents;
|
|
841
794
|
};
|
|
842
795
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -855,10 +808,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
855
808
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
856
809
|
default:
|
|
857
810
|
const parsedBody = parsedOutput.body;
|
|
858
|
-
|
|
811
|
+
return throwDefaultError({
|
|
859
812
|
output,
|
|
860
813
|
parsedBody,
|
|
861
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
862
814
|
errorCode,
|
|
863
815
|
});
|
|
864
816
|
}
|
|
@@ -867,19 +819,16 @@ const de_PutSinkPolicyCommand = async (output, context) => {
|
|
|
867
819
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
868
820
|
return de_PutSinkPolicyCommandError(output, context);
|
|
869
821
|
}
|
|
870
|
-
const contents = map({
|
|
822
|
+
const contents = (0, smithy_client_1.map)({
|
|
871
823
|
$metadata: deserializeMetadata(output),
|
|
872
824
|
});
|
|
873
825
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
if (data.SinkId != null) {
|
|
881
|
-
contents.SinkId = (0, smithy_client_1.expectString)(data.SinkId);
|
|
882
|
-
}
|
|
826
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
827
|
+
Policy: smithy_client_1.expectString,
|
|
828
|
+
SinkArn: smithy_client_1.expectString,
|
|
829
|
+
SinkId: smithy_client_1.expectString,
|
|
830
|
+
});
|
|
831
|
+
Object.assign(contents, doc);
|
|
883
832
|
return contents;
|
|
884
833
|
};
|
|
885
834
|
exports.de_PutSinkPolicyCommand = de_PutSinkPolicyCommand;
|
|
@@ -904,10 +853,9 @@ const de_PutSinkPolicyCommandError = async (output, context) => {
|
|
|
904
853
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
905
854
|
default:
|
|
906
855
|
const parsedBody = parsedOutput.body;
|
|
907
|
-
|
|
856
|
+
return throwDefaultError({
|
|
908
857
|
output,
|
|
909
858
|
parsedBody,
|
|
910
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
911
859
|
errorCode,
|
|
912
860
|
});
|
|
913
861
|
}
|
|
@@ -916,7 +864,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
916
864
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
917
865
|
return de_TagResourceCommandError(output, context);
|
|
918
866
|
}
|
|
919
|
-
const contents = map({
|
|
867
|
+
const contents = (0, smithy_client_1.map)({
|
|
920
868
|
$metadata: deserializeMetadata(output),
|
|
921
869
|
});
|
|
922
870
|
await collectBody(output.body, context);
|
|
@@ -941,10 +889,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
941
889
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
942
890
|
default:
|
|
943
891
|
const parsedBody = parsedOutput.body;
|
|
944
|
-
|
|
892
|
+
return throwDefaultError({
|
|
945
893
|
output,
|
|
946
894
|
parsedBody,
|
|
947
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
948
895
|
errorCode,
|
|
949
896
|
});
|
|
950
897
|
}
|
|
@@ -953,7 +900,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
953
900
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
954
901
|
return de_UntagResourceCommandError(output, context);
|
|
955
902
|
}
|
|
956
|
-
const contents = map({
|
|
903
|
+
const contents = (0, smithy_client_1.map)({
|
|
957
904
|
$metadata: deserializeMetadata(output),
|
|
958
905
|
});
|
|
959
906
|
await collectBody(output.body, context);
|
|
@@ -975,10 +922,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
975
922
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
976
923
|
default:
|
|
977
924
|
const parsedBody = parsedOutput.body;
|
|
978
|
-
|
|
925
|
+
return throwDefaultError({
|
|
979
926
|
output,
|
|
980
927
|
parsedBody,
|
|
981
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
982
928
|
errorCode,
|
|
983
929
|
});
|
|
984
930
|
}
|
|
@@ -987,31 +933,20 @@ const de_UpdateLinkCommand = async (output, context) => {
|
|
|
987
933
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
988
934
|
return de_UpdateLinkCommandError(output, context);
|
|
989
935
|
}
|
|
990
|
-
const contents = map({
|
|
936
|
+
const contents = (0, smithy_client_1.map)({
|
|
991
937
|
$metadata: deserializeMetadata(output),
|
|
992
938
|
});
|
|
993
939
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
contents.LabelTemplate = (0, smithy_client_1.expectString)(data.LabelTemplate);
|
|
1005
|
-
}
|
|
1006
|
-
if (data.ResourceTypes != null) {
|
|
1007
|
-
contents.ResourceTypes = de_ResourceTypesOutput(data.ResourceTypes, context);
|
|
1008
|
-
}
|
|
1009
|
-
if (data.SinkArn != null) {
|
|
1010
|
-
contents.SinkArn = (0, smithy_client_1.expectString)(data.SinkArn);
|
|
1011
|
-
}
|
|
1012
|
-
if (data.Tags != null) {
|
|
1013
|
-
contents.Tags = de_TagMapOutput(data.Tags, context);
|
|
1014
|
-
}
|
|
940
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
941
|
+
Arn: smithy_client_1.expectString,
|
|
942
|
+
Id: smithy_client_1.expectString,
|
|
943
|
+
Label: smithy_client_1.expectString,
|
|
944
|
+
LabelTemplate: smithy_client_1.expectString,
|
|
945
|
+
ResourceTypes: smithy_client_1._json,
|
|
946
|
+
SinkArn: smithy_client_1.expectString,
|
|
947
|
+
Tags: smithy_client_1._json,
|
|
948
|
+
});
|
|
949
|
+
Object.assign(contents, doc);
|
|
1015
950
|
return contents;
|
|
1016
951
|
};
|
|
1017
952
|
exports.de_UpdateLinkCommand = de_UpdateLinkCommand;
|
|
@@ -1036,23 +971,23 @@ const de_UpdateLinkCommandError = async (output, context) => {
|
|
|
1036
971
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1037
972
|
default:
|
|
1038
973
|
const parsedBody = parsedOutput.body;
|
|
1039
|
-
|
|
974
|
+
return throwDefaultError({
|
|
1040
975
|
output,
|
|
1041
976
|
parsedBody,
|
|
1042
|
-
exceptionCtor: OAMServiceException_1.OAMServiceException,
|
|
1043
977
|
errorCode,
|
|
1044
978
|
});
|
|
1045
979
|
}
|
|
1046
980
|
};
|
|
1047
|
-
const
|
|
981
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(OAMServiceException_1.OAMServiceException);
|
|
1048
982
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1049
|
-
const contents = map({
|
|
983
|
+
const contents = (0, smithy_client_1.map)({
|
|
1050
984
|
amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1051
985
|
});
|
|
1052
986
|
const data = parsedOutput.body;
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
}
|
|
987
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
988
|
+
Message: smithy_client_1.expectString,
|
|
989
|
+
});
|
|
990
|
+
Object.assign(contents, doc);
|
|
1056
991
|
const exception = new models_0_1.ConflictException({
|
|
1057
992
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1058
993
|
...contents,
|
|
@@ -1060,13 +995,14 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1060
995
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1061
996
|
};
|
|
1062
997
|
const de_InternalServiceFaultRes = async (parsedOutput, context) => {
|
|
1063
|
-
const contents = map({
|
|
998
|
+
const contents = (0, smithy_client_1.map)({
|
|
1064
999
|
amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1065
1000
|
});
|
|
1066
1001
|
const data = parsedOutput.body;
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
}
|
|
1002
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1003
|
+
Message: smithy_client_1.expectString,
|
|
1004
|
+
});
|
|
1005
|
+
Object.assign(contents, doc);
|
|
1070
1006
|
const exception = new models_0_1.InternalServiceFault({
|
|
1071
1007
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1072
1008
|
...contents,
|
|
@@ -1074,13 +1010,14 @@ const de_InternalServiceFaultRes = async (parsedOutput, context) => {
|
|
|
1074
1010
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1075
1011
|
};
|
|
1076
1012
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1077
|
-
const contents = map({
|
|
1013
|
+
const contents = (0, smithy_client_1.map)({
|
|
1078
1014
|
amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1079
1015
|
});
|
|
1080
1016
|
const data = parsedOutput.body;
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
}
|
|
1017
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1018
|
+
message: smithy_client_1.expectString,
|
|
1019
|
+
});
|
|
1020
|
+
Object.assign(contents, doc);
|
|
1084
1021
|
const exception = new models_0_1.InvalidParameterException({
|
|
1085
1022
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1086
1023
|
...contents,
|
|
@@ -1088,13 +1025,14 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
1088
1025
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1089
1026
|
};
|
|
1090
1027
|
const de_MissingRequiredParameterExceptionRes = async (parsedOutput, context) => {
|
|
1091
|
-
const contents = map({
|
|
1028
|
+
const contents = (0, smithy_client_1.map)({
|
|
1092
1029
|
amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1093
1030
|
});
|
|
1094
1031
|
const data = parsedOutput.body;
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
}
|
|
1032
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1033
|
+
message: smithy_client_1.expectString,
|
|
1034
|
+
});
|
|
1035
|
+
Object.assign(contents, doc);
|
|
1098
1036
|
const exception = new models_0_1.MissingRequiredParameterException({
|
|
1099
1037
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1100
1038
|
...contents,
|
|
@@ -1102,13 +1040,14 @@ const de_MissingRequiredParameterExceptionRes = async (parsedOutput, context) =>
|
|
|
1102
1040
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1103
1041
|
};
|
|
1104
1042
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1105
|
-
const contents = map({
|
|
1043
|
+
const contents = (0, smithy_client_1.map)({
|
|
1106
1044
|
amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1107
1045
|
});
|
|
1108
1046
|
const data = parsedOutput.body;
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
}
|
|
1047
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1048
|
+
Message: smithy_client_1.expectString,
|
|
1049
|
+
});
|
|
1050
|
+
Object.assign(contents, doc);
|
|
1112
1051
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1113
1052
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1114
1053
|
...contents,
|
|
@@ -1116,13 +1055,14 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1116
1055
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1117
1056
|
};
|
|
1118
1057
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1119
|
-
const contents = map({
|
|
1058
|
+
const contents = (0, smithy_client_1.map)({
|
|
1120
1059
|
amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1121
1060
|
});
|
|
1122
1061
|
const data = parsedOutput.body;
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
}
|
|
1062
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1063
|
+
Message: smithy_client_1.expectString,
|
|
1064
|
+
});
|
|
1065
|
+
Object.assign(contents, doc);
|
|
1126
1066
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1127
1067
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1128
1068
|
...contents,
|
|
@@ -1130,11 +1070,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1130
1070
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1131
1071
|
};
|
|
1132
1072
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1133
|
-
const contents = map({});
|
|
1073
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1134
1074
|
const data = parsedOutput.body;
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
}
|
|
1075
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1076
|
+
Message: smithy_client_1.expectString,
|
|
1077
|
+
});
|
|
1078
|
+
Object.assign(contents, doc);
|
|
1138
1079
|
const exception = new models_0_1.TooManyTagsException({
|
|
1139
1080
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1140
1081
|
...contents,
|
|
@@ -1142,109 +1083,18 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
1142
1083
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1143
1084
|
};
|
|
1144
1085
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1145
|
-
const contents = map({});
|
|
1086
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1146
1087
|
const data = parsedOutput.body;
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
}
|
|
1088
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1089
|
+
Message: smithy_client_1.expectString,
|
|
1090
|
+
});
|
|
1091
|
+
Object.assign(contents, doc);
|
|
1150
1092
|
const exception = new models_0_1.ValidationException({
|
|
1151
1093
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1152
1094
|
...contents,
|
|
1153
1095
|
});
|
|
1154
1096
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1155
1097
|
};
|
|
1156
|
-
const se_ResourceTypesInput = (input, context) => {
|
|
1157
|
-
return input
|
|
1158
|
-
.filter((e) => e != null)
|
|
1159
|
-
.map((entry) => {
|
|
1160
|
-
return entry;
|
|
1161
|
-
});
|
|
1162
|
-
};
|
|
1163
|
-
const se_TagMapInput = (input, context) => {
|
|
1164
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1165
|
-
if (value === null) {
|
|
1166
|
-
return acc;
|
|
1167
|
-
}
|
|
1168
|
-
acc[key] = value;
|
|
1169
|
-
return acc;
|
|
1170
|
-
}, {});
|
|
1171
|
-
};
|
|
1172
|
-
const de_ListAttachedLinksItem = (output, context) => {
|
|
1173
|
-
return {
|
|
1174
|
-
Label: (0, smithy_client_1.expectString)(output.Label),
|
|
1175
|
-
LinkArn: (0, smithy_client_1.expectString)(output.LinkArn),
|
|
1176
|
-
ResourceTypes: output.ResourceTypes != null ? de_ResourceTypesOutput(output.ResourceTypes, context) : undefined,
|
|
1177
|
-
};
|
|
1178
|
-
};
|
|
1179
|
-
const de_ListAttachedLinksItems = (output, context) => {
|
|
1180
|
-
const retVal = (output || [])
|
|
1181
|
-
.filter((e) => e != null)
|
|
1182
|
-
.map((entry) => {
|
|
1183
|
-
if (entry === null) {
|
|
1184
|
-
return null;
|
|
1185
|
-
}
|
|
1186
|
-
return de_ListAttachedLinksItem(entry, context);
|
|
1187
|
-
});
|
|
1188
|
-
return retVal;
|
|
1189
|
-
};
|
|
1190
|
-
const de_ListLinksItem = (output, context) => {
|
|
1191
|
-
return {
|
|
1192
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1193
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1194
|
-
Label: (0, smithy_client_1.expectString)(output.Label),
|
|
1195
|
-
ResourceTypes: output.ResourceTypes != null ? de_ResourceTypesOutput(output.ResourceTypes, context) : undefined,
|
|
1196
|
-
SinkArn: (0, smithy_client_1.expectString)(output.SinkArn),
|
|
1197
|
-
};
|
|
1198
|
-
};
|
|
1199
|
-
const de_ListLinksItems = (output, context) => {
|
|
1200
|
-
const retVal = (output || [])
|
|
1201
|
-
.filter((e) => e != null)
|
|
1202
|
-
.map((entry) => {
|
|
1203
|
-
if (entry === null) {
|
|
1204
|
-
return null;
|
|
1205
|
-
}
|
|
1206
|
-
return de_ListLinksItem(entry, context);
|
|
1207
|
-
});
|
|
1208
|
-
return retVal;
|
|
1209
|
-
};
|
|
1210
|
-
const de_ListSinksItem = (output, context) => {
|
|
1211
|
-
return {
|
|
1212
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1213
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1214
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1215
|
-
};
|
|
1216
|
-
};
|
|
1217
|
-
const de_ListSinksItems = (output, context) => {
|
|
1218
|
-
const retVal = (output || [])
|
|
1219
|
-
.filter((e) => e != null)
|
|
1220
|
-
.map((entry) => {
|
|
1221
|
-
if (entry === null) {
|
|
1222
|
-
return null;
|
|
1223
|
-
}
|
|
1224
|
-
return de_ListSinksItem(entry, context);
|
|
1225
|
-
});
|
|
1226
|
-
return retVal;
|
|
1227
|
-
};
|
|
1228
|
-
const de_ResourceTypesOutput = (output, context) => {
|
|
1229
|
-
const retVal = (output || [])
|
|
1230
|
-
.filter((e) => e != null)
|
|
1231
|
-
.map((entry) => {
|
|
1232
|
-
if (entry === null) {
|
|
1233
|
-
return null;
|
|
1234
|
-
}
|
|
1235
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1236
|
-
});
|
|
1237
|
-
return retVal;
|
|
1238
|
-
};
|
|
1239
|
-
const de_TagMapOutput = (output, context) => {
|
|
1240
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1241
|
-
if (value === null) {
|
|
1242
|
-
return acc;
|
|
1243
|
-
}
|
|
1244
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1245
|
-
return acc;
|
|
1246
|
-
}, {});
|
|
1247
|
-
};
|
|
1248
1098
|
const deserializeMetadata = (output) => ({
|
|
1249
1099
|
httpStatusCode: output.statusCode,
|
|
1250
1100
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|