@aws-sdk/client-synthetics 3.310.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 +279 -580
- package/dist-es/protocols/Aws_restJson1.js +247 -548
- package/package.json +6 -6
|
@@ -13,9 +13,9 @@ const se_AssociateResourceCommand = async (input, context) => {
|
|
|
13
13
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/associate";
|
|
14
14
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
ResourceArn: [],
|
|
18
|
+
}));
|
|
19
19
|
return new protocol_http_1.HttpRequest({
|
|
20
20
|
protocol,
|
|
21
21
|
hostname,
|
|
@@ -34,24 +34,20 @@ const se_CreateCanaryCommand = async (input, context) => {
|
|
|
34
34
|
};
|
|
35
35
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary";
|
|
36
36
|
let body;
|
|
37
|
-
body = JSON.stringify({
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}),
|
|
52
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
53
|
-
...(input.VpcConfig != null && { VpcConfig: se_VpcConfigInput(input.VpcConfig, context) }),
|
|
54
|
-
});
|
|
37
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
|
+
ArtifactConfig: (_) => (0, smithy_client_1._json)(_),
|
|
39
|
+
ArtifactS3Location: [],
|
|
40
|
+
Code: (_) => se_CanaryCodeInput(_, context),
|
|
41
|
+
ExecutionRoleArn: [],
|
|
42
|
+
FailureRetentionPeriodInDays: [],
|
|
43
|
+
Name: [],
|
|
44
|
+
RunConfig: (_) => (0, smithy_client_1._json)(_),
|
|
45
|
+
RuntimeVersion: [],
|
|
46
|
+
Schedule: (_) => (0, smithy_client_1._json)(_),
|
|
47
|
+
SuccessRetentionPeriodInDays: [],
|
|
48
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
49
|
+
VpcConfig: (_) => (0, smithy_client_1._json)(_),
|
|
50
|
+
}));
|
|
55
51
|
return new protocol_http_1.HttpRequest({
|
|
56
52
|
protocol,
|
|
57
53
|
hostname,
|
|
@@ -70,10 +66,10 @@ const se_CreateGroupCommand = async (input, context) => {
|
|
|
70
66
|
};
|
|
71
67
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group";
|
|
72
68
|
let body;
|
|
73
|
-
body = JSON.stringify({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
});
|
|
69
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
70
|
+
Name: [],
|
|
71
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
72
|
+
}));
|
|
77
73
|
return new protocol_http_1.HttpRequest({
|
|
78
74
|
protocol,
|
|
79
75
|
hostname,
|
|
@@ -90,7 +86,7 @@ const se_DeleteCanaryCommand = async (input, context) => {
|
|
|
90
86
|
const headers = {};
|
|
91
87
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary/{Name}";
|
|
92
88
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
93
|
-
const query = map({
|
|
89
|
+
const query = (0, smithy_client_1.map)({
|
|
94
90
|
deleteLambda: [() => input.DeleteLambda !== void 0, () => input.DeleteLambda.toString()],
|
|
95
91
|
});
|
|
96
92
|
let body;
|
|
@@ -130,11 +126,11 @@ const se_DescribeCanariesCommand = async (input, context) => {
|
|
|
130
126
|
};
|
|
131
127
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canaries";
|
|
132
128
|
let body;
|
|
133
|
-
body = JSON.stringify({
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
});
|
|
129
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
130
|
+
MaxResults: [],
|
|
131
|
+
Names: (_) => (0, smithy_client_1._json)(_),
|
|
132
|
+
NextToken: [],
|
|
133
|
+
}));
|
|
138
134
|
return new protocol_http_1.HttpRequest({
|
|
139
135
|
protocol,
|
|
140
136
|
hostname,
|
|
@@ -153,11 +149,11 @@ const se_DescribeCanariesLastRunCommand = async (input, context) => {
|
|
|
153
149
|
};
|
|
154
150
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canaries/last-run";
|
|
155
151
|
let body;
|
|
156
|
-
body = JSON.stringify({
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
});
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
153
|
+
MaxResults: [],
|
|
154
|
+
Names: (_) => (0, smithy_client_1._json)(_),
|
|
155
|
+
NextToken: [],
|
|
156
|
+
}));
|
|
161
157
|
return new protocol_http_1.HttpRequest({
|
|
162
158
|
protocol,
|
|
163
159
|
hostname,
|
|
@@ -176,10 +172,10 @@ const se_DescribeRuntimeVersionsCommand = async (input, context) => {
|
|
|
176
172
|
};
|
|
177
173
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runtime-versions";
|
|
178
174
|
let body;
|
|
179
|
-
body = JSON.stringify({
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
});
|
|
175
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
176
|
+
MaxResults: [],
|
|
177
|
+
NextToken: [],
|
|
178
|
+
}));
|
|
183
179
|
return new protocol_http_1.HttpRequest({
|
|
184
180
|
protocol,
|
|
185
181
|
hostname,
|
|
@@ -199,9 +195,9 @@ const se_DisassociateResourceCommand = async (input, context) => {
|
|
|
199
195
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/disassociate";
|
|
200
196
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
201
197
|
let body;
|
|
202
|
-
body = JSON.stringify({
|
|
203
|
-
|
|
204
|
-
});
|
|
198
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
199
|
+
ResourceArn: [],
|
|
200
|
+
}));
|
|
205
201
|
return new protocol_http_1.HttpRequest({
|
|
206
202
|
protocol,
|
|
207
203
|
hostname,
|
|
@@ -238,10 +234,10 @@ const se_GetCanaryRunsCommand = async (input, context) => {
|
|
|
238
234
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary/{Name}/runs";
|
|
239
235
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
240
236
|
let body;
|
|
241
|
-
body = JSON.stringify({
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
});
|
|
237
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
238
|
+
MaxResults: [],
|
|
239
|
+
NextToken: [],
|
|
240
|
+
}));
|
|
245
241
|
return new protocol_http_1.HttpRequest({
|
|
246
242
|
protocol,
|
|
247
243
|
hostname,
|
|
@@ -278,10 +274,10 @@ const se_ListAssociatedGroupsCommand = async (input, context) => {
|
|
|
278
274
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource/{ResourceArn}/groups";
|
|
279
275
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
280
276
|
let body;
|
|
281
|
-
body = JSON.stringify({
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
});
|
|
277
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
278
|
+
MaxResults: [],
|
|
279
|
+
NextToken: [],
|
|
280
|
+
}));
|
|
285
281
|
return new protocol_http_1.HttpRequest({
|
|
286
282
|
protocol,
|
|
287
283
|
hostname,
|
|
@@ -301,10 +297,10 @@ const se_ListGroupResourcesCommand = async (input, context) => {
|
|
|
301
297
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/resources";
|
|
302
298
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
303
299
|
let body;
|
|
304
|
-
body = JSON.stringify({
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
});
|
|
300
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
301
|
+
MaxResults: [],
|
|
302
|
+
NextToken: [],
|
|
303
|
+
}));
|
|
308
304
|
return new protocol_http_1.HttpRequest({
|
|
309
305
|
protocol,
|
|
310
306
|
hostname,
|
|
@@ -323,10 +319,10 @@ const se_ListGroupsCommand = async (input, context) => {
|
|
|
323
319
|
};
|
|
324
320
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/groups";
|
|
325
321
|
let body;
|
|
326
|
-
body = JSON.stringify({
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
});
|
|
322
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
323
|
+
MaxResults: [],
|
|
324
|
+
NextToken: [],
|
|
325
|
+
}));
|
|
330
326
|
return new protocol_http_1.HttpRequest({
|
|
331
327
|
protocol,
|
|
332
328
|
hostname,
|
|
@@ -397,9 +393,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
397
393
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
398
394
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
399
395
|
let body;
|
|
400
|
-
body = JSON.stringify({
|
|
401
|
-
|
|
402
|
-
});
|
|
396
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
397
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
398
|
+
}));
|
|
403
399
|
return new protocol_http_1.HttpRequest({
|
|
404
400
|
protocol,
|
|
405
401
|
hostname,
|
|
@@ -416,7 +412,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
416
412
|
const headers = {};
|
|
417
413
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
418
414
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
419
|
-
const query = map({
|
|
415
|
+
const query = (0, smithy_client_1.map)({
|
|
420
416
|
tagKeys: [
|
|
421
417
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
422
418
|
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
@@ -443,23 +439,19 @@ const se_UpdateCanaryCommand = async (input, context) => {
|
|
|
443
439
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary/{Name}";
|
|
444
440
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
445
441
|
let body;
|
|
446
|
-
body = JSON.stringify({
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
}),
|
|
460
|
-
...(input.VisualReference != null && { VisualReference: se_VisualReferenceInput(input.VisualReference, context) }),
|
|
461
|
-
...(input.VpcConfig != null && { VpcConfig: se_VpcConfigInput(input.VpcConfig, context) }),
|
|
462
|
-
});
|
|
442
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
443
|
+
ArtifactConfig: (_) => (0, smithy_client_1._json)(_),
|
|
444
|
+
ArtifactS3Location: [],
|
|
445
|
+
Code: (_) => se_CanaryCodeInput(_, context),
|
|
446
|
+
ExecutionRoleArn: [],
|
|
447
|
+
FailureRetentionPeriodInDays: [],
|
|
448
|
+
RunConfig: (_) => (0, smithy_client_1._json)(_),
|
|
449
|
+
RuntimeVersion: [],
|
|
450
|
+
Schedule: (_) => (0, smithy_client_1._json)(_),
|
|
451
|
+
SuccessRetentionPeriodInDays: [],
|
|
452
|
+
VisualReference: (_) => (0, smithy_client_1._json)(_),
|
|
453
|
+
VpcConfig: (_) => (0, smithy_client_1._json)(_),
|
|
454
|
+
}));
|
|
463
455
|
return new protocol_http_1.HttpRequest({
|
|
464
456
|
protocol,
|
|
465
457
|
hostname,
|
|
@@ -475,7 +467,7 @@ const de_AssociateResourceCommand = async (output, context) => {
|
|
|
475
467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
476
468
|
return de_AssociateResourceCommandError(output, context);
|
|
477
469
|
}
|
|
478
|
-
const contents = map({
|
|
470
|
+
const contents = (0, smithy_client_1.map)({
|
|
479
471
|
$metadata: deserializeMetadata(output),
|
|
480
472
|
});
|
|
481
473
|
await collectBody(output.body, context);
|
|
@@ -506,10 +498,9 @@ const de_AssociateResourceCommandError = async (output, context) => {
|
|
|
506
498
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
507
499
|
default:
|
|
508
500
|
const parsedBody = parsedOutput.body;
|
|
509
|
-
|
|
501
|
+
return throwDefaultError({
|
|
510
502
|
output,
|
|
511
503
|
parsedBody,
|
|
512
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
513
504
|
errorCode,
|
|
514
505
|
});
|
|
515
506
|
}
|
|
@@ -518,13 +509,14 @@ const de_CreateCanaryCommand = async (output, context) => {
|
|
|
518
509
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
519
510
|
return de_CreateCanaryCommandError(output, context);
|
|
520
511
|
}
|
|
521
|
-
const contents = map({
|
|
512
|
+
const contents = (0, smithy_client_1.map)({
|
|
522
513
|
$metadata: deserializeMetadata(output),
|
|
523
514
|
});
|
|
524
515
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}
|
|
516
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
517
|
+
Canary: (_) => de_Canary(_, context),
|
|
518
|
+
});
|
|
519
|
+
Object.assign(contents, doc);
|
|
528
520
|
return contents;
|
|
529
521
|
};
|
|
530
522
|
exports.de_CreateCanaryCommand = de_CreateCanaryCommand;
|
|
@@ -546,10 +538,9 @@ const de_CreateCanaryCommandError = async (output, context) => {
|
|
|
546
538
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
547
539
|
default:
|
|
548
540
|
const parsedBody = parsedOutput.body;
|
|
549
|
-
|
|
541
|
+
return throwDefaultError({
|
|
550
542
|
output,
|
|
551
543
|
parsedBody,
|
|
552
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
553
544
|
errorCode,
|
|
554
545
|
});
|
|
555
546
|
}
|
|
@@ -558,13 +549,14 @@ const de_CreateGroupCommand = async (output, context) => {
|
|
|
558
549
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
550
|
return de_CreateGroupCommandError(output, context);
|
|
560
551
|
}
|
|
561
|
-
const contents = map({
|
|
552
|
+
const contents = (0, smithy_client_1.map)({
|
|
562
553
|
$metadata: deserializeMetadata(output),
|
|
563
554
|
});
|
|
564
555
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
556
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
557
|
+
Group: (_) => de_Group(_, context),
|
|
558
|
+
});
|
|
559
|
+
Object.assign(contents, doc);
|
|
568
560
|
return contents;
|
|
569
561
|
};
|
|
570
562
|
exports.de_CreateGroupCommand = de_CreateGroupCommand;
|
|
@@ -589,10 +581,9 @@ const de_CreateGroupCommandError = async (output, context) => {
|
|
|
589
581
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
590
582
|
default:
|
|
591
583
|
const parsedBody = parsedOutput.body;
|
|
592
|
-
|
|
584
|
+
return throwDefaultError({
|
|
593
585
|
output,
|
|
594
586
|
parsedBody,
|
|
595
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
596
587
|
errorCode,
|
|
597
588
|
});
|
|
598
589
|
}
|
|
@@ -601,7 +592,7 @@ const de_DeleteCanaryCommand = async (output, context) => {
|
|
|
601
592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
602
593
|
return de_DeleteCanaryCommandError(output, context);
|
|
603
594
|
}
|
|
604
|
-
const contents = map({
|
|
595
|
+
const contents = (0, smithy_client_1.map)({
|
|
605
596
|
$metadata: deserializeMetadata(output),
|
|
606
597
|
});
|
|
607
598
|
await collectBody(output.body, context);
|
|
@@ -629,10 +620,9 @@ const de_DeleteCanaryCommandError = async (output, context) => {
|
|
|
629
620
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
630
621
|
default:
|
|
631
622
|
const parsedBody = parsedOutput.body;
|
|
632
|
-
|
|
623
|
+
return throwDefaultError({
|
|
633
624
|
output,
|
|
634
625
|
parsedBody,
|
|
635
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
636
626
|
errorCode,
|
|
637
627
|
});
|
|
638
628
|
}
|
|
@@ -641,7 +631,7 @@ const de_DeleteGroupCommand = async (output, context) => {
|
|
|
641
631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
632
|
return de_DeleteGroupCommandError(output, context);
|
|
643
633
|
}
|
|
644
|
-
const contents = map({
|
|
634
|
+
const contents = (0, smithy_client_1.map)({
|
|
645
635
|
$metadata: deserializeMetadata(output),
|
|
646
636
|
});
|
|
647
637
|
await collectBody(output.body, context);
|
|
@@ -669,10 +659,9 @@ const de_DeleteGroupCommandError = async (output, context) => {
|
|
|
669
659
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
670
660
|
default:
|
|
671
661
|
const parsedBody = parsedOutput.body;
|
|
672
|
-
|
|
662
|
+
return throwDefaultError({
|
|
673
663
|
output,
|
|
674
664
|
parsedBody,
|
|
675
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
676
665
|
errorCode,
|
|
677
666
|
});
|
|
678
667
|
}
|
|
@@ -681,16 +670,15 @@ const de_DescribeCanariesCommand = async (output, context) => {
|
|
|
681
670
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
671
|
return de_DescribeCanariesCommandError(output, context);
|
|
683
672
|
}
|
|
684
|
-
const contents = map({
|
|
673
|
+
const contents = (0, smithy_client_1.map)({
|
|
685
674
|
$metadata: deserializeMetadata(output),
|
|
686
675
|
});
|
|
687
676
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
}
|
|
677
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
678
|
+
Canaries: (_) => de_Canaries(_, context),
|
|
679
|
+
NextToken: smithy_client_1.expectString,
|
|
680
|
+
});
|
|
681
|
+
Object.assign(contents, doc);
|
|
694
682
|
return contents;
|
|
695
683
|
};
|
|
696
684
|
exports.de_DescribeCanariesCommand = de_DescribeCanariesCommand;
|
|
@@ -709,10 +697,9 @@ const de_DescribeCanariesCommandError = async (output, context) => {
|
|
|
709
697
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
710
698
|
default:
|
|
711
699
|
const parsedBody = parsedOutput.body;
|
|
712
|
-
|
|
700
|
+
return throwDefaultError({
|
|
713
701
|
output,
|
|
714
702
|
parsedBody,
|
|
715
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
716
703
|
errorCode,
|
|
717
704
|
});
|
|
718
705
|
}
|
|
@@ -721,16 +708,15 @@ const de_DescribeCanariesLastRunCommand = async (output, context) => {
|
|
|
721
708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
722
709
|
return de_DescribeCanariesLastRunCommandError(output, context);
|
|
723
710
|
}
|
|
724
|
-
const contents = map({
|
|
711
|
+
const contents = (0, smithy_client_1.map)({
|
|
725
712
|
$metadata: deserializeMetadata(output),
|
|
726
713
|
});
|
|
727
714
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
}
|
|
715
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
716
|
+
CanariesLastRun: (_) => de_CanariesLastRun(_, context),
|
|
717
|
+
NextToken: smithy_client_1.expectString,
|
|
718
|
+
});
|
|
719
|
+
Object.assign(contents, doc);
|
|
734
720
|
return contents;
|
|
735
721
|
};
|
|
736
722
|
exports.de_DescribeCanariesLastRunCommand = de_DescribeCanariesLastRunCommand;
|
|
@@ -749,10 +735,9 @@ const de_DescribeCanariesLastRunCommandError = async (output, context) => {
|
|
|
749
735
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
750
736
|
default:
|
|
751
737
|
const parsedBody = parsedOutput.body;
|
|
752
|
-
|
|
738
|
+
return throwDefaultError({
|
|
753
739
|
output,
|
|
754
740
|
parsedBody,
|
|
755
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
756
741
|
errorCode,
|
|
757
742
|
});
|
|
758
743
|
}
|
|
@@ -761,16 +746,15 @@ const de_DescribeRuntimeVersionsCommand = async (output, context) => {
|
|
|
761
746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
762
747
|
return de_DescribeRuntimeVersionsCommandError(output, context);
|
|
763
748
|
}
|
|
764
|
-
const contents = map({
|
|
749
|
+
const contents = (0, smithy_client_1.map)({
|
|
765
750
|
$metadata: deserializeMetadata(output),
|
|
766
751
|
});
|
|
767
752
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
}
|
|
753
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
754
|
+
NextToken: smithy_client_1.expectString,
|
|
755
|
+
RuntimeVersions: (_) => de_RuntimeVersionList(_, context),
|
|
756
|
+
});
|
|
757
|
+
Object.assign(contents, doc);
|
|
774
758
|
return contents;
|
|
775
759
|
};
|
|
776
760
|
exports.de_DescribeRuntimeVersionsCommand = de_DescribeRuntimeVersionsCommand;
|
|
@@ -789,10 +773,9 @@ const de_DescribeRuntimeVersionsCommandError = async (output, context) => {
|
|
|
789
773
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
790
774
|
default:
|
|
791
775
|
const parsedBody = parsedOutput.body;
|
|
792
|
-
|
|
776
|
+
return throwDefaultError({
|
|
793
777
|
output,
|
|
794
778
|
parsedBody,
|
|
795
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
796
779
|
errorCode,
|
|
797
780
|
});
|
|
798
781
|
}
|
|
@@ -801,7 +784,7 @@ const de_DisassociateResourceCommand = async (output, context) => {
|
|
|
801
784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
802
785
|
return de_DisassociateResourceCommandError(output, context);
|
|
803
786
|
}
|
|
804
|
-
const contents = map({
|
|
787
|
+
const contents = (0, smithy_client_1.map)({
|
|
805
788
|
$metadata: deserializeMetadata(output),
|
|
806
789
|
});
|
|
807
790
|
await collectBody(output.body, context);
|
|
@@ -829,10 +812,9 @@ const de_DisassociateResourceCommandError = async (output, context) => {
|
|
|
829
812
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
830
813
|
default:
|
|
831
814
|
const parsedBody = parsedOutput.body;
|
|
832
|
-
|
|
815
|
+
return throwDefaultError({
|
|
833
816
|
output,
|
|
834
817
|
parsedBody,
|
|
835
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
836
818
|
errorCode,
|
|
837
819
|
});
|
|
838
820
|
}
|
|
@@ -841,13 +823,14 @@ const de_GetCanaryCommand = async (output, context) => {
|
|
|
841
823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
842
824
|
return de_GetCanaryCommandError(output, context);
|
|
843
825
|
}
|
|
844
|
-
const contents = map({
|
|
826
|
+
const contents = (0, smithy_client_1.map)({
|
|
845
827
|
$metadata: deserializeMetadata(output),
|
|
846
828
|
});
|
|
847
829
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
}
|
|
830
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
831
|
+
Canary: (_) => de_Canary(_, context),
|
|
832
|
+
});
|
|
833
|
+
Object.assign(contents, doc);
|
|
851
834
|
return contents;
|
|
852
835
|
};
|
|
853
836
|
exports.de_GetCanaryCommand = de_GetCanaryCommand;
|
|
@@ -866,10 +849,9 @@ const de_GetCanaryCommandError = async (output, context) => {
|
|
|
866
849
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
867
850
|
default:
|
|
868
851
|
const parsedBody = parsedOutput.body;
|
|
869
|
-
|
|
852
|
+
return throwDefaultError({
|
|
870
853
|
output,
|
|
871
854
|
parsedBody,
|
|
872
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
873
855
|
errorCode,
|
|
874
856
|
});
|
|
875
857
|
}
|
|
@@ -878,16 +860,15 @@ const de_GetCanaryRunsCommand = async (output, context) => {
|
|
|
878
860
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
879
861
|
return de_GetCanaryRunsCommandError(output, context);
|
|
880
862
|
}
|
|
881
|
-
const contents = map({
|
|
863
|
+
const contents = (0, smithy_client_1.map)({
|
|
882
864
|
$metadata: deserializeMetadata(output),
|
|
883
865
|
});
|
|
884
866
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
}
|
|
867
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
868
|
+
CanaryRuns: (_) => de_CanaryRuns(_, context),
|
|
869
|
+
NextToken: smithy_client_1.expectString,
|
|
870
|
+
});
|
|
871
|
+
Object.assign(contents, doc);
|
|
891
872
|
return contents;
|
|
892
873
|
};
|
|
893
874
|
exports.de_GetCanaryRunsCommand = de_GetCanaryRunsCommand;
|
|
@@ -909,10 +890,9 @@ const de_GetCanaryRunsCommandError = async (output, context) => {
|
|
|
909
890
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
910
891
|
default:
|
|
911
892
|
const parsedBody = parsedOutput.body;
|
|
912
|
-
|
|
893
|
+
return throwDefaultError({
|
|
913
894
|
output,
|
|
914
895
|
parsedBody,
|
|
915
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
916
896
|
errorCode,
|
|
917
897
|
});
|
|
918
898
|
}
|
|
@@ -921,13 +901,14 @@ const de_GetGroupCommand = async (output, context) => {
|
|
|
921
901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
922
902
|
return de_GetGroupCommandError(output, context);
|
|
923
903
|
}
|
|
924
|
-
const contents = map({
|
|
904
|
+
const contents = (0, smithy_client_1.map)({
|
|
925
905
|
$metadata: deserializeMetadata(output),
|
|
926
906
|
});
|
|
927
907
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
}
|
|
908
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
909
|
+
Group: (_) => de_Group(_, context),
|
|
910
|
+
});
|
|
911
|
+
Object.assign(contents, doc);
|
|
931
912
|
return contents;
|
|
932
913
|
};
|
|
933
914
|
exports.de_GetGroupCommand = de_GetGroupCommand;
|
|
@@ -952,10 +933,9 @@ const de_GetGroupCommandError = async (output, context) => {
|
|
|
952
933
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
953
934
|
default:
|
|
954
935
|
const parsedBody = parsedOutput.body;
|
|
955
|
-
|
|
936
|
+
return throwDefaultError({
|
|
956
937
|
output,
|
|
957
938
|
parsedBody,
|
|
958
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
959
939
|
errorCode,
|
|
960
940
|
});
|
|
961
941
|
}
|
|
@@ -964,16 +944,15 @@ const de_ListAssociatedGroupsCommand = async (output, context) => {
|
|
|
964
944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
965
945
|
return de_ListAssociatedGroupsCommandError(output, context);
|
|
966
946
|
}
|
|
967
|
-
const contents = map({
|
|
947
|
+
const contents = (0, smithy_client_1.map)({
|
|
968
948
|
$metadata: deserializeMetadata(output),
|
|
969
949
|
});
|
|
970
950
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
}
|
|
951
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
952
|
+
Groups: smithy_client_1._json,
|
|
953
|
+
NextToken: smithy_client_1.expectString,
|
|
954
|
+
});
|
|
955
|
+
Object.assign(contents, doc);
|
|
977
956
|
return contents;
|
|
978
957
|
};
|
|
979
958
|
exports.de_ListAssociatedGroupsCommand = de_ListAssociatedGroupsCommand;
|
|
@@ -995,10 +974,9 @@ const de_ListAssociatedGroupsCommandError = async (output, context) => {
|
|
|
995
974
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
996
975
|
default:
|
|
997
976
|
const parsedBody = parsedOutput.body;
|
|
998
|
-
|
|
977
|
+
return throwDefaultError({
|
|
999
978
|
output,
|
|
1000
979
|
parsedBody,
|
|
1001
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
1002
980
|
errorCode,
|
|
1003
981
|
});
|
|
1004
982
|
}
|
|
@@ -1007,16 +985,15 @@ const de_ListGroupResourcesCommand = async (output, context) => {
|
|
|
1007
985
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1008
986
|
return de_ListGroupResourcesCommandError(output, context);
|
|
1009
987
|
}
|
|
1010
|
-
const contents = map({
|
|
988
|
+
const contents = (0, smithy_client_1.map)({
|
|
1011
989
|
$metadata: deserializeMetadata(output),
|
|
1012
990
|
});
|
|
1013
991
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
}
|
|
992
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
993
|
+
NextToken: smithy_client_1.expectString,
|
|
994
|
+
Resources: smithy_client_1._json,
|
|
995
|
+
});
|
|
996
|
+
Object.assign(contents, doc);
|
|
1020
997
|
return contents;
|
|
1021
998
|
};
|
|
1022
999
|
exports.de_ListGroupResourcesCommand = de_ListGroupResourcesCommand;
|
|
@@ -1041,10 +1018,9 @@ const de_ListGroupResourcesCommandError = async (output, context) => {
|
|
|
1041
1018
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1042
1019
|
default:
|
|
1043
1020
|
const parsedBody = parsedOutput.body;
|
|
1044
|
-
|
|
1021
|
+
return throwDefaultError({
|
|
1045
1022
|
output,
|
|
1046
1023
|
parsedBody,
|
|
1047
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
1048
1024
|
errorCode,
|
|
1049
1025
|
});
|
|
1050
1026
|
}
|
|
@@ -1053,16 +1029,15 @@ const de_ListGroupsCommand = async (output, context) => {
|
|
|
1053
1029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1054
1030
|
return de_ListGroupsCommandError(output, context);
|
|
1055
1031
|
}
|
|
1056
|
-
const contents = map({
|
|
1032
|
+
const contents = (0, smithy_client_1.map)({
|
|
1057
1033
|
$metadata: deserializeMetadata(output),
|
|
1058
1034
|
});
|
|
1059
1035
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
}
|
|
1036
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1037
|
+
Groups: smithy_client_1._json,
|
|
1038
|
+
NextToken: smithy_client_1.expectString,
|
|
1039
|
+
});
|
|
1040
|
+
Object.assign(contents, doc);
|
|
1066
1041
|
return contents;
|
|
1067
1042
|
};
|
|
1068
1043
|
exports.de_ListGroupsCommand = de_ListGroupsCommand;
|
|
@@ -1081,10 +1056,9 @@ const de_ListGroupsCommandError = async (output, context) => {
|
|
|
1081
1056
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1082
1057
|
default:
|
|
1083
1058
|
const parsedBody = parsedOutput.body;
|
|
1084
|
-
|
|
1059
|
+
return throwDefaultError({
|
|
1085
1060
|
output,
|
|
1086
1061
|
parsedBody,
|
|
1087
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
1088
1062
|
errorCode,
|
|
1089
1063
|
});
|
|
1090
1064
|
}
|
|
@@ -1093,13 +1067,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1093
1067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1094
1068
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1095
1069
|
}
|
|
1096
|
-
const contents = map({
|
|
1070
|
+
const contents = (0, smithy_client_1.map)({
|
|
1097
1071
|
$metadata: deserializeMetadata(output),
|
|
1098
1072
|
});
|
|
1099
1073
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
}
|
|
1074
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1075
|
+
Tags: smithy_client_1._json,
|
|
1076
|
+
});
|
|
1077
|
+
Object.assign(contents, doc);
|
|
1103
1078
|
return contents;
|
|
1104
1079
|
};
|
|
1105
1080
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1127,10 +1102,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1127
1102
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1128
1103
|
default:
|
|
1129
1104
|
const parsedBody = parsedOutput.body;
|
|
1130
|
-
|
|
1105
|
+
return throwDefaultError({
|
|
1131
1106
|
output,
|
|
1132
1107
|
parsedBody,
|
|
1133
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
1134
1108
|
errorCode,
|
|
1135
1109
|
});
|
|
1136
1110
|
}
|
|
@@ -1139,7 +1113,7 @@ const de_StartCanaryCommand = async (output, context) => {
|
|
|
1139
1113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1140
1114
|
return de_StartCanaryCommandError(output, context);
|
|
1141
1115
|
}
|
|
1142
|
-
const contents = map({
|
|
1116
|
+
const contents = (0, smithy_client_1.map)({
|
|
1143
1117
|
$metadata: deserializeMetadata(output),
|
|
1144
1118
|
});
|
|
1145
1119
|
await collectBody(output.body, context);
|
|
@@ -1167,10 +1141,9 @@ const de_StartCanaryCommandError = async (output, context) => {
|
|
|
1167
1141
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1168
1142
|
default:
|
|
1169
1143
|
const parsedBody = parsedOutput.body;
|
|
1170
|
-
|
|
1144
|
+
return throwDefaultError({
|
|
1171
1145
|
output,
|
|
1172
1146
|
parsedBody,
|
|
1173
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
1174
1147
|
errorCode,
|
|
1175
1148
|
});
|
|
1176
1149
|
}
|
|
@@ -1179,7 +1152,7 @@ const de_StopCanaryCommand = async (output, context) => {
|
|
|
1179
1152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1180
1153
|
return de_StopCanaryCommandError(output, context);
|
|
1181
1154
|
}
|
|
1182
|
-
const contents = map({
|
|
1155
|
+
const contents = (0, smithy_client_1.map)({
|
|
1183
1156
|
$metadata: deserializeMetadata(output),
|
|
1184
1157
|
});
|
|
1185
1158
|
await collectBody(output.body, context);
|
|
@@ -1207,10 +1180,9 @@ const de_StopCanaryCommandError = async (output, context) => {
|
|
|
1207
1180
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1208
1181
|
default:
|
|
1209
1182
|
const parsedBody = parsedOutput.body;
|
|
1210
|
-
|
|
1183
|
+
return throwDefaultError({
|
|
1211
1184
|
output,
|
|
1212
1185
|
parsedBody,
|
|
1213
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
1214
1186
|
errorCode,
|
|
1215
1187
|
});
|
|
1216
1188
|
}
|
|
@@ -1219,7 +1191,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1219
1191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1220
1192
|
return de_TagResourceCommandError(output, context);
|
|
1221
1193
|
}
|
|
1222
|
-
const contents = map({
|
|
1194
|
+
const contents = (0, smithy_client_1.map)({
|
|
1223
1195
|
$metadata: deserializeMetadata(output),
|
|
1224
1196
|
});
|
|
1225
1197
|
await collectBody(output.body, context);
|
|
@@ -1250,10 +1222,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1250
1222
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1251
1223
|
default:
|
|
1252
1224
|
const parsedBody = parsedOutput.body;
|
|
1253
|
-
|
|
1225
|
+
return throwDefaultError({
|
|
1254
1226
|
output,
|
|
1255
1227
|
parsedBody,
|
|
1256
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
1257
1228
|
errorCode,
|
|
1258
1229
|
});
|
|
1259
1230
|
}
|
|
@@ -1262,7 +1233,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1262
1233
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1263
1234
|
return de_UntagResourceCommandError(output, context);
|
|
1264
1235
|
}
|
|
1265
|
-
const contents = map({
|
|
1236
|
+
const contents = (0, smithy_client_1.map)({
|
|
1266
1237
|
$metadata: deserializeMetadata(output),
|
|
1267
1238
|
});
|
|
1268
1239
|
await collectBody(output.body, context);
|
|
@@ -1293,10 +1264,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1293
1264
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1294
1265
|
default:
|
|
1295
1266
|
const parsedBody = parsedOutput.body;
|
|
1296
|
-
|
|
1267
|
+
return throwDefaultError({
|
|
1297
1268
|
output,
|
|
1298
1269
|
parsedBody,
|
|
1299
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
1300
1270
|
errorCode,
|
|
1301
1271
|
});
|
|
1302
1272
|
}
|
|
@@ -1305,7 +1275,7 @@ const de_UpdateCanaryCommand = async (output, context) => {
|
|
|
1305
1275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1306
1276
|
return de_UpdateCanaryCommandError(output, context);
|
|
1307
1277
|
}
|
|
1308
|
-
const contents = map({
|
|
1278
|
+
const contents = (0, smithy_client_1.map)({
|
|
1309
1279
|
$metadata: deserializeMetadata(output),
|
|
1310
1280
|
});
|
|
1311
1281
|
await collectBody(output.body, context);
|
|
@@ -1336,21 +1306,21 @@ const de_UpdateCanaryCommandError = async (output, context) => {
|
|
|
1336
1306
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1337
1307
|
default:
|
|
1338
1308
|
const parsedBody = parsedOutput.body;
|
|
1339
|
-
|
|
1309
|
+
return throwDefaultError({
|
|
1340
1310
|
output,
|
|
1341
1311
|
parsedBody,
|
|
1342
|
-
exceptionCtor: SyntheticsServiceException_1.SyntheticsServiceException,
|
|
1343
1312
|
errorCode,
|
|
1344
1313
|
});
|
|
1345
1314
|
}
|
|
1346
1315
|
};
|
|
1347
|
-
const
|
|
1316
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SyntheticsServiceException_1.SyntheticsServiceException);
|
|
1348
1317
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1349
|
-
const contents = map({});
|
|
1318
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1350
1319
|
const data = parsedOutput.body;
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
}
|
|
1320
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1321
|
+
Message: smithy_client_1.expectString,
|
|
1322
|
+
});
|
|
1323
|
+
Object.assign(contents, doc);
|
|
1354
1324
|
const exception = new models_0_1.BadRequestException({
|
|
1355
1325
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1356
1326
|
...contents,
|
|
@@ -1358,11 +1328,12 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1358
1328
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1359
1329
|
};
|
|
1360
1330
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1361
|
-
const contents = map({});
|
|
1331
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1362
1332
|
const data = parsedOutput.body;
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
}
|
|
1333
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1334
|
+
Message: smithy_client_1.expectString,
|
|
1335
|
+
});
|
|
1336
|
+
Object.assign(contents, doc);
|
|
1366
1337
|
const exception = new models_0_1.ConflictException({
|
|
1367
1338
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1368
1339
|
...contents,
|
|
@@ -1370,11 +1341,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1370
1341
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1371
1342
|
};
|
|
1372
1343
|
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
1373
|
-
const contents = map({});
|
|
1344
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1374
1345
|
const data = parsedOutput.body;
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
}
|
|
1346
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1347
|
+
Message: smithy_client_1.expectString,
|
|
1348
|
+
});
|
|
1349
|
+
Object.assign(contents, doc);
|
|
1378
1350
|
const exception = new models_0_1.InternalFailureException({
|
|
1379
1351
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1380
1352
|
...contents,
|
|
@@ -1382,11 +1354,12 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
1382
1354
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1383
1355
|
};
|
|
1384
1356
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1385
|
-
const contents = map({});
|
|
1357
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1386
1358
|
const data = parsedOutput.body;
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
}
|
|
1359
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1360
|
+
Message: smithy_client_1.expectString,
|
|
1361
|
+
});
|
|
1362
|
+
Object.assign(contents, doc);
|
|
1390
1363
|
const exception = new models_0_1.InternalServerException({
|
|
1391
1364
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1392
1365
|
...contents,
|
|
@@ -1394,11 +1367,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1394
1367
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1395
1368
|
};
|
|
1396
1369
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1397
|
-
const contents = map({});
|
|
1370
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1398
1371
|
const data = parsedOutput.body;
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
}
|
|
1372
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1373
|
+
Message: smithy_client_1.expectString,
|
|
1374
|
+
});
|
|
1375
|
+
Object.assign(contents, doc);
|
|
1402
1376
|
const exception = new models_0_1.NotFoundException({
|
|
1403
1377
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1404
1378
|
...contents,
|
|
@@ -1406,11 +1380,12 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1406
1380
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1407
1381
|
};
|
|
1408
1382
|
const de_RequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
1409
|
-
const contents = map({});
|
|
1383
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1410
1384
|
const data = parsedOutput.body;
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
}
|
|
1385
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1386
|
+
Message: smithy_client_1.expectString,
|
|
1387
|
+
});
|
|
1388
|
+
Object.assign(contents, doc);
|
|
1414
1389
|
const exception = new models_0_1.RequestEntityTooLargeException({
|
|
1415
1390
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1416
1391
|
...contents,
|
|
@@ -1418,11 +1393,12 @@ const de_RequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
|
1418
1393
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1419
1394
|
};
|
|
1420
1395
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1421
|
-
const contents = map({});
|
|
1396
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1422
1397
|
const data = parsedOutput.body;
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
}
|
|
1398
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1399
|
+
Message: smithy_client_1.expectString,
|
|
1400
|
+
});
|
|
1401
|
+
Object.assign(contents, doc);
|
|
1426
1402
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1427
1403
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1428
1404
|
...contents,
|
|
@@ -1430,11 +1406,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1430
1406
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1431
1407
|
};
|
|
1432
1408
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1433
|
-
const contents = map({});
|
|
1409
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1434
1410
|
const data = parsedOutput.body;
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
}
|
|
1411
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1412
|
+
Message: smithy_client_1.expectString,
|
|
1413
|
+
});
|
|
1414
|
+
Object.assign(contents, doc);
|
|
1438
1415
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1439
1416
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1440
1417
|
...contents,
|
|
@@ -1442,11 +1419,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1442
1419
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1443
1420
|
};
|
|
1444
1421
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1445
|
-
const contents = map({});
|
|
1422
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1446
1423
|
const data = parsedOutput.body;
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
}
|
|
1424
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1425
|
+
Message: smithy_client_1.expectString,
|
|
1426
|
+
});
|
|
1427
|
+
Object.assign(contents, doc);
|
|
1450
1428
|
const exception = new models_0_1.TooManyRequestsException({
|
|
1451
1429
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1452
1430
|
...contents,
|
|
@@ -1454,175 +1432,31 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
1454
1432
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1455
1433
|
};
|
|
1456
1434
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1457
|
-
const contents = map({});
|
|
1435
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1458
1436
|
const data = parsedOutput.body;
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
}
|
|
1437
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1438
|
+
Message: smithy_client_1.expectString,
|
|
1439
|
+
});
|
|
1440
|
+
Object.assign(contents, doc);
|
|
1462
1441
|
const exception = new models_0_1.ValidationException({
|
|
1463
1442
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1464
1443
|
...contents,
|
|
1465
1444
|
});
|
|
1466
1445
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1467
1446
|
};
|
|
1468
|
-
const se_ArtifactConfigInput = (input, context) => {
|
|
1469
|
-
return {
|
|
1470
|
-
...(input.S3Encryption != null && { S3Encryption: se_S3EncryptionConfig(input.S3Encryption, context) }),
|
|
1471
|
-
};
|
|
1472
|
-
};
|
|
1473
|
-
const se_BaseScreenshot = (input, context) => {
|
|
1474
|
-
return {
|
|
1475
|
-
...(input.IgnoreCoordinates != null && {
|
|
1476
|
-
IgnoreCoordinates: se_BaseScreenshotIgnoreCoordinates(input.IgnoreCoordinates, context),
|
|
1477
|
-
}),
|
|
1478
|
-
...(input.ScreenshotName != null && { ScreenshotName: input.ScreenshotName }),
|
|
1479
|
-
};
|
|
1480
|
-
};
|
|
1481
|
-
const se_BaseScreenshotIgnoreCoordinates = (input, context) => {
|
|
1482
|
-
return input
|
|
1483
|
-
.filter((e) => e != null)
|
|
1484
|
-
.map((entry) => {
|
|
1485
|
-
return entry;
|
|
1486
|
-
});
|
|
1487
|
-
};
|
|
1488
|
-
const se_BaseScreenshots = (input, context) => {
|
|
1489
|
-
return input
|
|
1490
|
-
.filter((e) => e != null)
|
|
1491
|
-
.map((entry) => {
|
|
1492
|
-
return se_BaseScreenshot(entry, context);
|
|
1493
|
-
});
|
|
1494
|
-
};
|
|
1495
1447
|
const se_CanaryCodeInput = (input, context) => {
|
|
1496
|
-
return {
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
};
|
|
1503
|
-
};
|
|
1504
|
-
const se_CanaryRunConfigInput = (input, context) => {
|
|
1505
|
-
return {
|
|
1506
|
-
...(input.ActiveTracing != null && { ActiveTracing: input.ActiveTracing }),
|
|
1507
|
-
...(input.EnvironmentVariables != null && {
|
|
1508
|
-
EnvironmentVariables: se_EnvironmentVariablesMap(input.EnvironmentVariables, context),
|
|
1509
|
-
}),
|
|
1510
|
-
...(input.MemoryInMB != null && { MemoryInMB: input.MemoryInMB }),
|
|
1511
|
-
...(input.TimeoutInSeconds != null && { TimeoutInSeconds: input.TimeoutInSeconds }),
|
|
1512
|
-
};
|
|
1513
|
-
};
|
|
1514
|
-
const se_CanaryScheduleInput = (input, context) => {
|
|
1515
|
-
return {
|
|
1516
|
-
...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
|
|
1517
|
-
...(input.Expression != null && { Expression: input.Expression }),
|
|
1518
|
-
};
|
|
1519
|
-
};
|
|
1520
|
-
const se_DescribeCanariesLastRunNameFilter = (input, context) => {
|
|
1521
|
-
return input
|
|
1522
|
-
.filter((e) => e != null)
|
|
1523
|
-
.map((entry) => {
|
|
1524
|
-
return entry;
|
|
1525
|
-
});
|
|
1526
|
-
};
|
|
1527
|
-
const se_DescribeCanariesNameFilter = (input, context) => {
|
|
1528
|
-
return input
|
|
1529
|
-
.filter((e) => e != null)
|
|
1530
|
-
.map((entry) => {
|
|
1531
|
-
return entry;
|
|
1448
|
+
return (0, smithy_client_1.take)(input, {
|
|
1449
|
+
Handler: [],
|
|
1450
|
+
S3Bucket: [],
|
|
1451
|
+
S3Key: [],
|
|
1452
|
+
S3Version: [],
|
|
1453
|
+
ZipFile: context.base64Encoder,
|
|
1532
1454
|
});
|
|
1533
1455
|
};
|
|
1534
|
-
const se_EnvironmentVariablesMap = (input, context) => {
|
|
1535
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1536
|
-
if (value === null) {
|
|
1537
|
-
return acc;
|
|
1538
|
-
}
|
|
1539
|
-
acc[key] = value;
|
|
1540
|
-
return acc;
|
|
1541
|
-
}, {});
|
|
1542
|
-
};
|
|
1543
|
-
const se_S3EncryptionConfig = (input, context) => {
|
|
1544
|
-
return {
|
|
1545
|
-
...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
|
|
1546
|
-
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
1547
|
-
};
|
|
1548
|
-
};
|
|
1549
|
-
const se_SecurityGroupIds = (input, context) => {
|
|
1550
|
-
return input
|
|
1551
|
-
.filter((e) => e != null)
|
|
1552
|
-
.map((entry) => {
|
|
1553
|
-
return entry;
|
|
1554
|
-
});
|
|
1555
|
-
};
|
|
1556
|
-
const se_SubnetIds = (input, context) => {
|
|
1557
|
-
return input
|
|
1558
|
-
.filter((e) => e != null)
|
|
1559
|
-
.map((entry) => {
|
|
1560
|
-
return entry;
|
|
1561
|
-
});
|
|
1562
|
-
};
|
|
1563
|
-
const se_TagMap = (input, context) => {
|
|
1564
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1565
|
-
if (value === null) {
|
|
1566
|
-
return acc;
|
|
1567
|
-
}
|
|
1568
|
-
acc[key] = value;
|
|
1569
|
-
return acc;
|
|
1570
|
-
}, {});
|
|
1571
|
-
};
|
|
1572
|
-
const se_VisualReferenceInput = (input, context) => {
|
|
1573
|
-
return {
|
|
1574
|
-
...(input.BaseCanaryRunId != null && { BaseCanaryRunId: input.BaseCanaryRunId }),
|
|
1575
|
-
...(input.BaseScreenshots != null && { BaseScreenshots: se_BaseScreenshots(input.BaseScreenshots, context) }),
|
|
1576
|
-
};
|
|
1577
|
-
};
|
|
1578
|
-
const se_VpcConfigInput = (input, context) => {
|
|
1579
|
-
return {
|
|
1580
|
-
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
|
|
1581
|
-
...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
|
|
1582
|
-
};
|
|
1583
|
-
};
|
|
1584
|
-
const de_ArtifactConfigOutput = (output, context) => {
|
|
1585
|
-
return {
|
|
1586
|
-
S3Encryption: output.S3Encryption != null ? de_S3EncryptionConfig(output.S3Encryption, context) : undefined,
|
|
1587
|
-
};
|
|
1588
|
-
};
|
|
1589
|
-
const de_BaseScreenshot = (output, context) => {
|
|
1590
|
-
return {
|
|
1591
|
-
IgnoreCoordinates: output.IgnoreCoordinates != null
|
|
1592
|
-
? de_BaseScreenshotIgnoreCoordinates(output.IgnoreCoordinates, context)
|
|
1593
|
-
: undefined,
|
|
1594
|
-
ScreenshotName: (0, smithy_client_1.expectString)(output.ScreenshotName),
|
|
1595
|
-
};
|
|
1596
|
-
};
|
|
1597
|
-
const de_BaseScreenshotIgnoreCoordinates = (output, context) => {
|
|
1598
|
-
const retVal = (output || [])
|
|
1599
|
-
.filter((e) => e != null)
|
|
1600
|
-
.map((entry) => {
|
|
1601
|
-
if (entry === null) {
|
|
1602
|
-
return null;
|
|
1603
|
-
}
|
|
1604
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1605
|
-
});
|
|
1606
|
-
return retVal;
|
|
1607
|
-
};
|
|
1608
|
-
const de_BaseScreenshots = (output, context) => {
|
|
1609
|
-
const retVal = (output || [])
|
|
1610
|
-
.filter((e) => e != null)
|
|
1611
|
-
.map((entry) => {
|
|
1612
|
-
if (entry === null) {
|
|
1613
|
-
return null;
|
|
1614
|
-
}
|
|
1615
|
-
return de_BaseScreenshot(entry, context);
|
|
1616
|
-
});
|
|
1617
|
-
return retVal;
|
|
1618
|
-
};
|
|
1619
1456
|
const de_Canaries = (output, context) => {
|
|
1620
1457
|
const retVal = (output || [])
|
|
1621
1458
|
.filter((e) => e != null)
|
|
1622
1459
|
.map((entry) => {
|
|
1623
|
-
if (entry === null) {
|
|
1624
|
-
return null;
|
|
1625
|
-
}
|
|
1626
1460
|
return de_Canary(entry, context);
|
|
1627
1461
|
});
|
|
1628
1462
|
return retVal;
|
|
@@ -1631,229 +1465,94 @@ const de_CanariesLastRun = (output, context) => {
|
|
|
1631
1465
|
const retVal = (output || [])
|
|
1632
1466
|
.filter((e) => e != null)
|
|
1633
1467
|
.map((entry) => {
|
|
1634
|
-
if (entry === null) {
|
|
1635
|
-
return null;
|
|
1636
|
-
}
|
|
1637
1468
|
return de_CanaryLastRun(entry, context);
|
|
1638
1469
|
});
|
|
1639
1470
|
return retVal;
|
|
1640
1471
|
};
|
|
1641
1472
|
const de_Canary = (output, context) => {
|
|
1642
|
-
return {
|
|
1643
|
-
ArtifactConfig:
|
|
1644
|
-
ArtifactS3Location:
|
|
1645
|
-
Code:
|
|
1646
|
-
EngineArn:
|
|
1647
|
-
ExecutionRoleArn:
|
|
1648
|
-
FailureRetentionPeriodInDays:
|
|
1649
|
-
Id:
|
|
1650
|
-
Name:
|
|
1651
|
-
RunConfig:
|
|
1652
|
-
RuntimeVersion:
|
|
1653
|
-
Schedule:
|
|
1654
|
-
Status:
|
|
1655
|
-
SuccessRetentionPeriodInDays:
|
|
1656
|
-
Tags:
|
|
1657
|
-
Timeline:
|
|
1658
|
-
VisualReference:
|
|
1659
|
-
VpcConfig:
|
|
1660
|
-
};
|
|
1661
|
-
};
|
|
1662
|
-
const de_CanaryCodeOutput = (output, context) => {
|
|
1663
|
-
return {
|
|
1664
|
-
Handler: (0, smithy_client_1.expectString)(output.Handler),
|
|
1665
|
-
SourceLocationArn: (0, smithy_client_1.expectString)(output.SourceLocationArn),
|
|
1666
|
-
};
|
|
1473
|
+
return (0, smithy_client_1.take)(output, {
|
|
1474
|
+
ArtifactConfig: smithy_client_1._json,
|
|
1475
|
+
ArtifactS3Location: smithy_client_1.expectString,
|
|
1476
|
+
Code: smithy_client_1._json,
|
|
1477
|
+
EngineArn: smithy_client_1.expectString,
|
|
1478
|
+
ExecutionRoleArn: smithy_client_1.expectString,
|
|
1479
|
+
FailureRetentionPeriodInDays: smithy_client_1.expectInt32,
|
|
1480
|
+
Id: smithy_client_1.expectString,
|
|
1481
|
+
Name: smithy_client_1.expectString,
|
|
1482
|
+
RunConfig: smithy_client_1._json,
|
|
1483
|
+
RuntimeVersion: smithy_client_1.expectString,
|
|
1484
|
+
Schedule: smithy_client_1._json,
|
|
1485
|
+
Status: smithy_client_1._json,
|
|
1486
|
+
SuccessRetentionPeriodInDays: smithy_client_1.expectInt32,
|
|
1487
|
+
Tags: smithy_client_1._json,
|
|
1488
|
+
Timeline: (_) => de_CanaryTimeline(_, context),
|
|
1489
|
+
VisualReference: smithy_client_1._json,
|
|
1490
|
+
VpcConfig: smithy_client_1._json,
|
|
1491
|
+
});
|
|
1667
1492
|
};
|
|
1668
1493
|
const de_CanaryLastRun = (output, context) => {
|
|
1669
|
-
return {
|
|
1670
|
-
CanaryName:
|
|
1671
|
-
LastRun:
|
|
1672
|
-
};
|
|
1494
|
+
return (0, smithy_client_1.take)(output, {
|
|
1495
|
+
CanaryName: smithy_client_1.expectString,
|
|
1496
|
+
LastRun: (_) => de_CanaryRun(_, context),
|
|
1497
|
+
});
|
|
1673
1498
|
};
|
|
1674
1499
|
const de_CanaryRun = (output, context) => {
|
|
1675
|
-
return {
|
|
1676
|
-
ArtifactS3Location:
|
|
1677
|
-
Id:
|
|
1678
|
-
Name:
|
|
1679
|
-
Status:
|
|
1680
|
-
Timeline:
|
|
1681
|
-
};
|
|
1682
|
-
};
|
|
1683
|
-
const de_CanaryRunConfigOutput = (output, context) => {
|
|
1684
|
-
return {
|
|
1685
|
-
ActiveTracing: (0, smithy_client_1.expectBoolean)(output.ActiveTracing),
|
|
1686
|
-
MemoryInMB: (0, smithy_client_1.expectInt32)(output.MemoryInMB),
|
|
1687
|
-
TimeoutInSeconds: (0, smithy_client_1.expectInt32)(output.TimeoutInSeconds),
|
|
1688
|
-
};
|
|
1500
|
+
return (0, smithy_client_1.take)(output, {
|
|
1501
|
+
ArtifactS3Location: smithy_client_1.expectString,
|
|
1502
|
+
Id: smithy_client_1.expectString,
|
|
1503
|
+
Name: smithy_client_1.expectString,
|
|
1504
|
+
Status: smithy_client_1._json,
|
|
1505
|
+
Timeline: (_) => de_CanaryRunTimeline(_, context),
|
|
1506
|
+
});
|
|
1689
1507
|
};
|
|
1690
1508
|
const de_CanaryRuns = (output, context) => {
|
|
1691
1509
|
const retVal = (output || [])
|
|
1692
1510
|
.filter((e) => e != null)
|
|
1693
1511
|
.map((entry) => {
|
|
1694
|
-
if (entry === null) {
|
|
1695
|
-
return null;
|
|
1696
|
-
}
|
|
1697
1512
|
return de_CanaryRun(entry, context);
|
|
1698
1513
|
});
|
|
1699
1514
|
return retVal;
|
|
1700
1515
|
};
|
|
1701
|
-
const de_CanaryRunStatus = (output, context) => {
|
|
1702
|
-
return {
|
|
1703
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1704
|
-
StateReason: (0, smithy_client_1.expectString)(output.StateReason),
|
|
1705
|
-
StateReasonCode: (0, smithy_client_1.expectString)(output.StateReasonCode),
|
|
1706
|
-
};
|
|
1707
|
-
};
|
|
1708
1516
|
const de_CanaryRunTimeline = (output, context) => {
|
|
1709
|
-
return {
|
|
1710
|
-
Completed:
|
|
1711
|
-
Started:
|
|
1712
|
-
};
|
|
1713
|
-
};
|
|
1714
|
-
const de_CanaryScheduleOutput = (output, context) => {
|
|
1715
|
-
return {
|
|
1716
|
-
DurationInSeconds: (0, smithy_client_1.expectLong)(output.DurationInSeconds),
|
|
1717
|
-
Expression: (0, smithy_client_1.expectString)(output.Expression),
|
|
1718
|
-
};
|
|
1719
|
-
};
|
|
1720
|
-
const de_CanaryStatus = (output, context) => {
|
|
1721
|
-
return {
|
|
1722
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1723
|
-
StateReason: (0, smithy_client_1.expectString)(output.StateReason),
|
|
1724
|
-
StateReasonCode: (0, smithy_client_1.expectString)(output.StateReasonCode),
|
|
1725
|
-
};
|
|
1517
|
+
return (0, smithy_client_1.take)(output, {
|
|
1518
|
+
Completed: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1519
|
+
Started: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1520
|
+
});
|
|
1726
1521
|
};
|
|
1727
1522
|
const de_CanaryTimeline = (output, context) => {
|
|
1728
|
-
return {
|
|
1729
|
-
Created:
|
|
1730
|
-
LastModified:
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastStarted)))
|
|
1735
|
-
: undefined,
|
|
1736
|
-
LastStopped: output.LastStopped != null
|
|
1737
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastStopped)))
|
|
1738
|
-
: undefined,
|
|
1739
|
-
};
|
|
1523
|
+
return (0, smithy_client_1.take)(output, {
|
|
1524
|
+
Created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1525
|
+
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1526
|
+
LastStarted: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1527
|
+
LastStopped: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1528
|
+
});
|
|
1740
1529
|
};
|
|
1741
1530
|
const de_Group = (output, context) => {
|
|
1742
|
-
return {
|
|
1743
|
-
Arn:
|
|
1744
|
-
CreatedTime:
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
1750
|
-
: undefined,
|
|
1751
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1752
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1753
|
-
};
|
|
1754
|
-
};
|
|
1755
|
-
const de_GroupSummary = (output, context) => {
|
|
1756
|
-
return {
|
|
1757
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1758
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1759
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1760
|
-
};
|
|
1761
|
-
};
|
|
1762
|
-
const de_GroupSummaryList = (output, context) => {
|
|
1763
|
-
const retVal = (output || [])
|
|
1764
|
-
.filter((e) => e != null)
|
|
1765
|
-
.map((entry) => {
|
|
1766
|
-
if (entry === null) {
|
|
1767
|
-
return null;
|
|
1768
|
-
}
|
|
1769
|
-
return de_GroupSummary(entry, context);
|
|
1531
|
+
return (0, smithy_client_1.take)(output, {
|
|
1532
|
+
Arn: smithy_client_1.expectString,
|
|
1533
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1534
|
+
Id: smithy_client_1.expectString,
|
|
1535
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1536
|
+
Name: smithy_client_1.expectString,
|
|
1537
|
+
Tags: smithy_client_1._json,
|
|
1770
1538
|
});
|
|
1771
|
-
return retVal;
|
|
1772
1539
|
};
|
|
1773
1540
|
const de_RuntimeVersion = (output, context) => {
|
|
1774
|
-
return {
|
|
1775
|
-
DeprecationDate:
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReleaseDate)))
|
|
1781
|
-
: undefined,
|
|
1782
|
-
VersionName: (0, smithy_client_1.expectString)(output.VersionName),
|
|
1783
|
-
};
|
|
1541
|
+
return (0, smithy_client_1.take)(output, {
|
|
1542
|
+
DeprecationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1543
|
+
Description: smithy_client_1.expectString,
|
|
1544
|
+
ReleaseDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1545
|
+
VersionName: smithy_client_1.expectString,
|
|
1546
|
+
});
|
|
1784
1547
|
};
|
|
1785
1548
|
const de_RuntimeVersionList = (output, context) => {
|
|
1786
1549
|
const retVal = (output || [])
|
|
1787
1550
|
.filter((e) => e != null)
|
|
1788
1551
|
.map((entry) => {
|
|
1789
|
-
if (entry === null) {
|
|
1790
|
-
return null;
|
|
1791
|
-
}
|
|
1792
1552
|
return de_RuntimeVersion(entry, context);
|
|
1793
1553
|
});
|
|
1794
1554
|
return retVal;
|
|
1795
1555
|
};
|
|
1796
|
-
const de_S3EncryptionConfig = (output, context) => {
|
|
1797
|
-
return {
|
|
1798
|
-
EncryptionMode: (0, smithy_client_1.expectString)(output.EncryptionMode),
|
|
1799
|
-
KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
|
|
1800
|
-
};
|
|
1801
|
-
};
|
|
1802
|
-
const de_SecurityGroupIds = (output, context) => {
|
|
1803
|
-
const retVal = (output || [])
|
|
1804
|
-
.filter((e) => e != null)
|
|
1805
|
-
.map((entry) => {
|
|
1806
|
-
if (entry === null) {
|
|
1807
|
-
return null;
|
|
1808
|
-
}
|
|
1809
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1810
|
-
});
|
|
1811
|
-
return retVal;
|
|
1812
|
-
};
|
|
1813
|
-
const de_StringList = (output, context) => {
|
|
1814
|
-
const retVal = (output || [])
|
|
1815
|
-
.filter((e) => e != null)
|
|
1816
|
-
.map((entry) => {
|
|
1817
|
-
if (entry === null) {
|
|
1818
|
-
return null;
|
|
1819
|
-
}
|
|
1820
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1821
|
-
});
|
|
1822
|
-
return retVal;
|
|
1823
|
-
};
|
|
1824
|
-
const de_SubnetIds = (output, context) => {
|
|
1825
|
-
const retVal = (output || [])
|
|
1826
|
-
.filter((e) => e != null)
|
|
1827
|
-
.map((entry) => {
|
|
1828
|
-
if (entry === null) {
|
|
1829
|
-
return null;
|
|
1830
|
-
}
|
|
1831
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1832
|
-
});
|
|
1833
|
-
return retVal;
|
|
1834
|
-
};
|
|
1835
|
-
const de_TagMap = (output, context) => {
|
|
1836
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1837
|
-
if (value === null) {
|
|
1838
|
-
return acc;
|
|
1839
|
-
}
|
|
1840
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1841
|
-
return acc;
|
|
1842
|
-
}, {});
|
|
1843
|
-
};
|
|
1844
|
-
const de_VisualReferenceOutput = (output, context) => {
|
|
1845
|
-
return {
|
|
1846
|
-
BaseCanaryRunId: (0, smithy_client_1.expectString)(output.BaseCanaryRunId),
|
|
1847
|
-
BaseScreenshots: output.BaseScreenshots != null ? de_BaseScreenshots(output.BaseScreenshots, context) : undefined,
|
|
1848
|
-
};
|
|
1849
|
-
};
|
|
1850
|
-
const de_VpcConfigOutput = (output, context) => {
|
|
1851
|
-
return {
|
|
1852
|
-
SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupIds(output.SecurityGroupIds, context) : undefined,
|
|
1853
|
-
SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
|
|
1854
|
-
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
1855
|
-
};
|
|
1856
|
-
};
|
|
1857
1556
|
const deserializeMetadata = (output) => ({
|
|
1858
1557
|
httpStatusCode: output.statusCode,
|
|
1859
1558
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|