@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { BadRequestException, ConflictException, InternalFailureException, InternalServerException, NotFoundException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { SyntheticsServiceException as __BaseException } from "../models/SyntheticsServiceException";
|
|
5
5
|
export const se_AssociateResourceCommand = async (input, context) => {
|
|
@@ -10,9 +10,9 @@ export const se_AssociateResourceCommand = async (input, context) => {
|
|
|
10
10
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/associate";
|
|
11
11
|
resolvedPath = __resolvedPath(resolvedPath, input, "GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
|
|
15
|
-
});
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
ResourceArn: [],
|
|
15
|
+
}));
|
|
16
16
|
return new __HttpRequest({
|
|
17
17
|
protocol,
|
|
18
18
|
hostname,
|
|
@@ -30,24 +30,20 @@ export const se_CreateCanaryCommand = async (input, context) => {
|
|
|
30
30
|
};
|
|
31
31
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary";
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify({
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}),
|
|
48
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
49
|
-
...(input.VpcConfig != null && { VpcConfig: se_VpcConfigInput(input.VpcConfig, context) }),
|
|
50
|
-
});
|
|
33
|
+
body = JSON.stringify(take(input, {
|
|
34
|
+
ArtifactConfig: (_) => _json(_),
|
|
35
|
+
ArtifactS3Location: [],
|
|
36
|
+
Code: (_) => se_CanaryCodeInput(_, context),
|
|
37
|
+
ExecutionRoleArn: [],
|
|
38
|
+
FailureRetentionPeriodInDays: [],
|
|
39
|
+
Name: [],
|
|
40
|
+
RunConfig: (_) => _json(_),
|
|
41
|
+
RuntimeVersion: [],
|
|
42
|
+
Schedule: (_) => _json(_),
|
|
43
|
+
SuccessRetentionPeriodInDays: [],
|
|
44
|
+
Tags: (_) => _json(_),
|
|
45
|
+
VpcConfig: (_) => _json(_),
|
|
46
|
+
}));
|
|
51
47
|
return new __HttpRequest({
|
|
52
48
|
protocol,
|
|
53
49
|
hostname,
|
|
@@ -65,10 +61,10 @@ export const se_CreateGroupCommand = async (input, context) => {
|
|
|
65
61
|
};
|
|
66
62
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group";
|
|
67
63
|
let body;
|
|
68
|
-
body = JSON.stringify({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
});
|
|
64
|
+
body = JSON.stringify(take(input, {
|
|
65
|
+
Name: [],
|
|
66
|
+
Tags: (_) => _json(_),
|
|
67
|
+
}));
|
|
72
68
|
return new __HttpRequest({
|
|
73
69
|
protocol,
|
|
74
70
|
hostname,
|
|
@@ -122,11 +118,11 @@ export const se_DescribeCanariesCommand = async (input, context) => {
|
|
|
122
118
|
};
|
|
123
119
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canaries";
|
|
124
120
|
let body;
|
|
125
|
-
body = JSON.stringify({
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
});
|
|
121
|
+
body = JSON.stringify(take(input, {
|
|
122
|
+
MaxResults: [],
|
|
123
|
+
Names: (_) => _json(_),
|
|
124
|
+
NextToken: [],
|
|
125
|
+
}));
|
|
130
126
|
return new __HttpRequest({
|
|
131
127
|
protocol,
|
|
132
128
|
hostname,
|
|
@@ -144,11 +140,11 @@ export const se_DescribeCanariesLastRunCommand = async (input, context) => {
|
|
|
144
140
|
};
|
|
145
141
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canaries/last-run";
|
|
146
142
|
let body;
|
|
147
|
-
body = JSON.stringify({
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
});
|
|
143
|
+
body = JSON.stringify(take(input, {
|
|
144
|
+
MaxResults: [],
|
|
145
|
+
Names: (_) => _json(_),
|
|
146
|
+
NextToken: [],
|
|
147
|
+
}));
|
|
152
148
|
return new __HttpRequest({
|
|
153
149
|
protocol,
|
|
154
150
|
hostname,
|
|
@@ -166,10 +162,10 @@ export const se_DescribeRuntimeVersionsCommand = async (input, context) => {
|
|
|
166
162
|
};
|
|
167
163
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runtime-versions";
|
|
168
164
|
let body;
|
|
169
|
-
body = JSON.stringify({
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
});
|
|
165
|
+
body = JSON.stringify(take(input, {
|
|
166
|
+
MaxResults: [],
|
|
167
|
+
NextToken: [],
|
|
168
|
+
}));
|
|
173
169
|
return new __HttpRequest({
|
|
174
170
|
protocol,
|
|
175
171
|
hostname,
|
|
@@ -188,9 +184,9 @@ export const se_DisassociateResourceCommand = async (input, context) => {
|
|
|
188
184
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/disassociate";
|
|
189
185
|
resolvedPath = __resolvedPath(resolvedPath, input, "GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
190
186
|
let body;
|
|
191
|
-
body = JSON.stringify({
|
|
192
|
-
|
|
193
|
-
});
|
|
187
|
+
body = JSON.stringify(take(input, {
|
|
188
|
+
ResourceArn: [],
|
|
189
|
+
}));
|
|
194
190
|
return new __HttpRequest({
|
|
195
191
|
protocol,
|
|
196
192
|
hostname,
|
|
@@ -225,10 +221,10 @@ export const se_GetCanaryRunsCommand = async (input, context) => {
|
|
|
225
221
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary/{Name}/runs";
|
|
226
222
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
227
223
|
let body;
|
|
228
|
-
body = JSON.stringify({
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
});
|
|
224
|
+
body = JSON.stringify(take(input, {
|
|
225
|
+
MaxResults: [],
|
|
226
|
+
NextToken: [],
|
|
227
|
+
}));
|
|
232
228
|
return new __HttpRequest({
|
|
233
229
|
protocol,
|
|
234
230
|
hostname,
|
|
@@ -263,10 +259,10 @@ export const se_ListAssociatedGroupsCommand = async (input, context) => {
|
|
|
263
259
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource/{ResourceArn}/groups";
|
|
264
260
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
265
261
|
let body;
|
|
266
|
-
body = JSON.stringify({
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
});
|
|
262
|
+
body = JSON.stringify(take(input, {
|
|
263
|
+
MaxResults: [],
|
|
264
|
+
NextToken: [],
|
|
265
|
+
}));
|
|
270
266
|
return new __HttpRequest({
|
|
271
267
|
protocol,
|
|
272
268
|
hostname,
|
|
@@ -285,10 +281,10 @@ export const se_ListGroupResourcesCommand = async (input, context) => {
|
|
|
285
281
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/resources";
|
|
286
282
|
resolvedPath = __resolvedPath(resolvedPath, input, "GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
287
283
|
let body;
|
|
288
|
-
body = JSON.stringify({
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
});
|
|
284
|
+
body = JSON.stringify(take(input, {
|
|
285
|
+
MaxResults: [],
|
|
286
|
+
NextToken: [],
|
|
287
|
+
}));
|
|
292
288
|
return new __HttpRequest({
|
|
293
289
|
protocol,
|
|
294
290
|
hostname,
|
|
@@ -306,10 +302,10 @@ export const se_ListGroupsCommand = async (input, context) => {
|
|
|
306
302
|
};
|
|
307
303
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/groups";
|
|
308
304
|
let body;
|
|
309
|
-
body = JSON.stringify({
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
});
|
|
305
|
+
body = JSON.stringify(take(input, {
|
|
306
|
+
MaxResults: [],
|
|
307
|
+
NextToken: [],
|
|
308
|
+
}));
|
|
313
309
|
return new __HttpRequest({
|
|
314
310
|
protocol,
|
|
315
311
|
hostname,
|
|
@@ -376,9 +372,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
376
372
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
377
373
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
378
374
|
let body;
|
|
379
|
-
body = JSON.stringify({
|
|
380
|
-
|
|
381
|
-
});
|
|
375
|
+
body = JSON.stringify(take(input, {
|
|
376
|
+
Tags: (_) => _json(_),
|
|
377
|
+
}));
|
|
382
378
|
return new __HttpRequest({
|
|
383
379
|
protocol,
|
|
384
380
|
hostname,
|
|
@@ -420,23 +416,19 @@ export const se_UpdateCanaryCommand = async (input, context) => {
|
|
|
420
416
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary/{Name}";
|
|
421
417
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
422
418
|
let body;
|
|
423
|
-
body = JSON.stringify({
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}),
|
|
437
|
-
...(input.VisualReference != null && { VisualReference: se_VisualReferenceInput(input.VisualReference, context) }),
|
|
438
|
-
...(input.VpcConfig != null && { VpcConfig: se_VpcConfigInput(input.VpcConfig, context) }),
|
|
439
|
-
});
|
|
419
|
+
body = JSON.stringify(take(input, {
|
|
420
|
+
ArtifactConfig: (_) => _json(_),
|
|
421
|
+
ArtifactS3Location: [],
|
|
422
|
+
Code: (_) => se_CanaryCodeInput(_, context),
|
|
423
|
+
ExecutionRoleArn: [],
|
|
424
|
+
FailureRetentionPeriodInDays: [],
|
|
425
|
+
RunConfig: (_) => _json(_),
|
|
426
|
+
RuntimeVersion: [],
|
|
427
|
+
Schedule: (_) => _json(_),
|
|
428
|
+
SuccessRetentionPeriodInDays: [],
|
|
429
|
+
VisualReference: (_) => _json(_),
|
|
430
|
+
VpcConfig: (_) => _json(_),
|
|
431
|
+
}));
|
|
440
432
|
return new __HttpRequest({
|
|
441
433
|
protocol,
|
|
442
434
|
hostname,
|
|
@@ -481,10 +473,9 @@ const de_AssociateResourceCommandError = async (output, context) => {
|
|
|
481
473
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
482
474
|
default:
|
|
483
475
|
const parsedBody = parsedOutput.body;
|
|
484
|
-
throwDefaultError({
|
|
476
|
+
return throwDefaultError({
|
|
485
477
|
output,
|
|
486
478
|
parsedBody,
|
|
487
|
-
exceptionCtor: __BaseException,
|
|
488
479
|
errorCode,
|
|
489
480
|
});
|
|
490
481
|
}
|
|
@@ -497,9 +488,10 @@ export const de_CreateCanaryCommand = async (output, context) => {
|
|
|
497
488
|
$metadata: deserializeMetadata(output),
|
|
498
489
|
});
|
|
499
490
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}
|
|
491
|
+
const doc = take(data, {
|
|
492
|
+
Canary: (_) => de_Canary(_, context),
|
|
493
|
+
});
|
|
494
|
+
Object.assign(contents, doc);
|
|
503
495
|
return contents;
|
|
504
496
|
};
|
|
505
497
|
const de_CreateCanaryCommandError = async (output, context) => {
|
|
@@ -520,10 +512,9 @@ const de_CreateCanaryCommandError = async (output, context) => {
|
|
|
520
512
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
521
513
|
default:
|
|
522
514
|
const parsedBody = parsedOutput.body;
|
|
523
|
-
throwDefaultError({
|
|
515
|
+
return throwDefaultError({
|
|
524
516
|
output,
|
|
525
517
|
parsedBody,
|
|
526
|
-
exceptionCtor: __BaseException,
|
|
527
518
|
errorCode,
|
|
528
519
|
});
|
|
529
520
|
}
|
|
@@ -536,9 +527,10 @@ export const de_CreateGroupCommand = async (output, context) => {
|
|
|
536
527
|
$metadata: deserializeMetadata(output),
|
|
537
528
|
});
|
|
538
529
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
}
|
|
530
|
+
const doc = take(data, {
|
|
531
|
+
Group: (_) => de_Group(_, context),
|
|
532
|
+
});
|
|
533
|
+
Object.assign(contents, doc);
|
|
542
534
|
return contents;
|
|
543
535
|
};
|
|
544
536
|
const de_CreateGroupCommandError = async (output, context) => {
|
|
@@ -562,10 +554,9 @@ const de_CreateGroupCommandError = async (output, context) => {
|
|
|
562
554
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
563
555
|
default:
|
|
564
556
|
const parsedBody = parsedOutput.body;
|
|
565
|
-
throwDefaultError({
|
|
557
|
+
return throwDefaultError({
|
|
566
558
|
output,
|
|
567
559
|
parsedBody,
|
|
568
|
-
exceptionCtor: __BaseException,
|
|
569
560
|
errorCode,
|
|
570
561
|
});
|
|
571
562
|
}
|
|
@@ -601,10 +592,9 @@ const de_DeleteCanaryCommandError = async (output, context) => {
|
|
|
601
592
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
602
593
|
default:
|
|
603
594
|
const parsedBody = parsedOutput.body;
|
|
604
|
-
throwDefaultError({
|
|
595
|
+
return throwDefaultError({
|
|
605
596
|
output,
|
|
606
597
|
parsedBody,
|
|
607
|
-
exceptionCtor: __BaseException,
|
|
608
598
|
errorCode,
|
|
609
599
|
});
|
|
610
600
|
}
|
|
@@ -640,10 +630,9 @@ const de_DeleteGroupCommandError = async (output, context) => {
|
|
|
640
630
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
641
631
|
default:
|
|
642
632
|
const parsedBody = parsedOutput.body;
|
|
643
|
-
throwDefaultError({
|
|
633
|
+
return throwDefaultError({
|
|
644
634
|
output,
|
|
645
635
|
parsedBody,
|
|
646
|
-
exceptionCtor: __BaseException,
|
|
647
636
|
errorCode,
|
|
648
637
|
});
|
|
649
638
|
}
|
|
@@ -656,12 +645,11 @@ export const de_DescribeCanariesCommand = async (output, context) => {
|
|
|
656
645
|
$metadata: deserializeMetadata(output),
|
|
657
646
|
});
|
|
658
647
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
}
|
|
648
|
+
const doc = take(data, {
|
|
649
|
+
Canaries: (_) => de_Canaries(_, context),
|
|
650
|
+
NextToken: __expectString,
|
|
651
|
+
});
|
|
652
|
+
Object.assign(contents, doc);
|
|
665
653
|
return contents;
|
|
666
654
|
};
|
|
667
655
|
const de_DescribeCanariesCommandError = async (output, context) => {
|
|
@@ -679,10 +667,9 @@ const de_DescribeCanariesCommandError = async (output, context) => {
|
|
|
679
667
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
680
668
|
default:
|
|
681
669
|
const parsedBody = parsedOutput.body;
|
|
682
|
-
throwDefaultError({
|
|
670
|
+
return throwDefaultError({
|
|
683
671
|
output,
|
|
684
672
|
parsedBody,
|
|
685
|
-
exceptionCtor: __BaseException,
|
|
686
673
|
errorCode,
|
|
687
674
|
});
|
|
688
675
|
}
|
|
@@ -695,12 +682,11 @@ export const de_DescribeCanariesLastRunCommand = async (output, context) => {
|
|
|
695
682
|
$metadata: deserializeMetadata(output),
|
|
696
683
|
});
|
|
697
684
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}
|
|
685
|
+
const doc = take(data, {
|
|
686
|
+
CanariesLastRun: (_) => de_CanariesLastRun(_, context),
|
|
687
|
+
NextToken: __expectString,
|
|
688
|
+
});
|
|
689
|
+
Object.assign(contents, doc);
|
|
704
690
|
return contents;
|
|
705
691
|
};
|
|
706
692
|
const de_DescribeCanariesLastRunCommandError = async (output, context) => {
|
|
@@ -718,10 +704,9 @@ const de_DescribeCanariesLastRunCommandError = async (output, context) => {
|
|
|
718
704
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
719
705
|
default:
|
|
720
706
|
const parsedBody = parsedOutput.body;
|
|
721
|
-
throwDefaultError({
|
|
707
|
+
return throwDefaultError({
|
|
722
708
|
output,
|
|
723
709
|
parsedBody,
|
|
724
|
-
exceptionCtor: __BaseException,
|
|
725
710
|
errorCode,
|
|
726
711
|
});
|
|
727
712
|
}
|
|
@@ -734,12 +719,11 @@ export const de_DescribeRuntimeVersionsCommand = async (output, context) => {
|
|
|
734
719
|
$metadata: deserializeMetadata(output),
|
|
735
720
|
});
|
|
736
721
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
}
|
|
722
|
+
const doc = take(data, {
|
|
723
|
+
NextToken: __expectString,
|
|
724
|
+
RuntimeVersions: (_) => de_RuntimeVersionList(_, context),
|
|
725
|
+
});
|
|
726
|
+
Object.assign(contents, doc);
|
|
743
727
|
return contents;
|
|
744
728
|
};
|
|
745
729
|
const de_DescribeRuntimeVersionsCommandError = async (output, context) => {
|
|
@@ -757,10 +741,9 @@ const de_DescribeRuntimeVersionsCommandError = async (output, context) => {
|
|
|
757
741
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
758
742
|
default:
|
|
759
743
|
const parsedBody = parsedOutput.body;
|
|
760
|
-
throwDefaultError({
|
|
744
|
+
return throwDefaultError({
|
|
761
745
|
output,
|
|
762
746
|
parsedBody,
|
|
763
|
-
exceptionCtor: __BaseException,
|
|
764
747
|
errorCode,
|
|
765
748
|
});
|
|
766
749
|
}
|
|
@@ -796,10 +779,9 @@ const de_DisassociateResourceCommandError = async (output, context) => {
|
|
|
796
779
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
797
780
|
default:
|
|
798
781
|
const parsedBody = parsedOutput.body;
|
|
799
|
-
throwDefaultError({
|
|
782
|
+
return throwDefaultError({
|
|
800
783
|
output,
|
|
801
784
|
parsedBody,
|
|
802
|
-
exceptionCtor: __BaseException,
|
|
803
785
|
errorCode,
|
|
804
786
|
});
|
|
805
787
|
}
|
|
@@ -812,9 +794,10 @@ export const de_GetCanaryCommand = async (output, context) => {
|
|
|
812
794
|
$metadata: deserializeMetadata(output),
|
|
813
795
|
});
|
|
814
796
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
}
|
|
797
|
+
const doc = take(data, {
|
|
798
|
+
Canary: (_) => de_Canary(_, context),
|
|
799
|
+
});
|
|
800
|
+
Object.assign(contents, doc);
|
|
818
801
|
return contents;
|
|
819
802
|
};
|
|
820
803
|
const de_GetCanaryCommandError = async (output, context) => {
|
|
@@ -832,10 +815,9 @@ const de_GetCanaryCommandError = async (output, context) => {
|
|
|
832
815
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
833
816
|
default:
|
|
834
817
|
const parsedBody = parsedOutput.body;
|
|
835
|
-
throwDefaultError({
|
|
818
|
+
return throwDefaultError({
|
|
836
819
|
output,
|
|
837
820
|
parsedBody,
|
|
838
|
-
exceptionCtor: __BaseException,
|
|
839
821
|
errorCode,
|
|
840
822
|
});
|
|
841
823
|
}
|
|
@@ -848,12 +830,11 @@ export const de_GetCanaryRunsCommand = async (output, context) => {
|
|
|
848
830
|
$metadata: deserializeMetadata(output),
|
|
849
831
|
});
|
|
850
832
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
}
|
|
833
|
+
const doc = take(data, {
|
|
834
|
+
CanaryRuns: (_) => de_CanaryRuns(_, context),
|
|
835
|
+
NextToken: __expectString,
|
|
836
|
+
});
|
|
837
|
+
Object.assign(contents, doc);
|
|
857
838
|
return contents;
|
|
858
839
|
};
|
|
859
840
|
const de_GetCanaryRunsCommandError = async (output, context) => {
|
|
@@ -874,10 +855,9 @@ const de_GetCanaryRunsCommandError = async (output, context) => {
|
|
|
874
855
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
875
856
|
default:
|
|
876
857
|
const parsedBody = parsedOutput.body;
|
|
877
|
-
throwDefaultError({
|
|
858
|
+
return throwDefaultError({
|
|
878
859
|
output,
|
|
879
860
|
parsedBody,
|
|
880
|
-
exceptionCtor: __BaseException,
|
|
881
861
|
errorCode,
|
|
882
862
|
});
|
|
883
863
|
}
|
|
@@ -890,9 +870,10 @@ export const de_GetGroupCommand = async (output, context) => {
|
|
|
890
870
|
$metadata: deserializeMetadata(output),
|
|
891
871
|
});
|
|
892
872
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
}
|
|
873
|
+
const doc = take(data, {
|
|
874
|
+
Group: (_) => de_Group(_, context),
|
|
875
|
+
});
|
|
876
|
+
Object.assign(contents, doc);
|
|
896
877
|
return contents;
|
|
897
878
|
};
|
|
898
879
|
const de_GetGroupCommandError = async (output, context) => {
|
|
@@ -916,10 +897,9 @@ const de_GetGroupCommandError = async (output, context) => {
|
|
|
916
897
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
917
898
|
default:
|
|
918
899
|
const parsedBody = parsedOutput.body;
|
|
919
|
-
throwDefaultError({
|
|
900
|
+
return throwDefaultError({
|
|
920
901
|
output,
|
|
921
902
|
parsedBody,
|
|
922
|
-
exceptionCtor: __BaseException,
|
|
923
903
|
errorCode,
|
|
924
904
|
});
|
|
925
905
|
}
|
|
@@ -932,12 +912,11 @@ export const de_ListAssociatedGroupsCommand = async (output, context) => {
|
|
|
932
912
|
$metadata: deserializeMetadata(output),
|
|
933
913
|
});
|
|
934
914
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
}
|
|
915
|
+
const doc = take(data, {
|
|
916
|
+
Groups: _json,
|
|
917
|
+
NextToken: __expectString,
|
|
918
|
+
});
|
|
919
|
+
Object.assign(contents, doc);
|
|
941
920
|
return contents;
|
|
942
921
|
};
|
|
943
922
|
const de_ListAssociatedGroupsCommandError = async (output, context) => {
|
|
@@ -958,10 +937,9 @@ const de_ListAssociatedGroupsCommandError = async (output, context) => {
|
|
|
958
937
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
959
938
|
default:
|
|
960
939
|
const parsedBody = parsedOutput.body;
|
|
961
|
-
throwDefaultError({
|
|
940
|
+
return throwDefaultError({
|
|
962
941
|
output,
|
|
963
942
|
parsedBody,
|
|
964
|
-
exceptionCtor: __BaseException,
|
|
965
943
|
errorCode,
|
|
966
944
|
});
|
|
967
945
|
}
|
|
@@ -974,12 +952,11 @@ export const de_ListGroupResourcesCommand = async (output, context) => {
|
|
|
974
952
|
$metadata: deserializeMetadata(output),
|
|
975
953
|
});
|
|
976
954
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
}
|
|
955
|
+
const doc = take(data, {
|
|
956
|
+
NextToken: __expectString,
|
|
957
|
+
Resources: _json,
|
|
958
|
+
});
|
|
959
|
+
Object.assign(contents, doc);
|
|
983
960
|
return contents;
|
|
984
961
|
};
|
|
985
962
|
const de_ListGroupResourcesCommandError = async (output, context) => {
|
|
@@ -1003,10 +980,9 @@ const de_ListGroupResourcesCommandError = async (output, context) => {
|
|
|
1003
980
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1004
981
|
default:
|
|
1005
982
|
const parsedBody = parsedOutput.body;
|
|
1006
|
-
throwDefaultError({
|
|
983
|
+
return throwDefaultError({
|
|
1007
984
|
output,
|
|
1008
985
|
parsedBody,
|
|
1009
|
-
exceptionCtor: __BaseException,
|
|
1010
986
|
errorCode,
|
|
1011
987
|
});
|
|
1012
988
|
}
|
|
@@ -1019,12 +995,11 @@ export const de_ListGroupsCommand = async (output, context) => {
|
|
|
1019
995
|
$metadata: deserializeMetadata(output),
|
|
1020
996
|
});
|
|
1021
997
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}
|
|
998
|
+
const doc = take(data, {
|
|
999
|
+
Groups: _json,
|
|
1000
|
+
NextToken: __expectString,
|
|
1001
|
+
});
|
|
1002
|
+
Object.assign(contents, doc);
|
|
1028
1003
|
return contents;
|
|
1029
1004
|
};
|
|
1030
1005
|
const de_ListGroupsCommandError = async (output, context) => {
|
|
@@ -1042,10 +1017,9 @@ const de_ListGroupsCommandError = async (output, context) => {
|
|
|
1042
1017
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1043
1018
|
default:
|
|
1044
1019
|
const parsedBody = parsedOutput.body;
|
|
1045
|
-
throwDefaultError({
|
|
1020
|
+
return throwDefaultError({
|
|
1046
1021
|
output,
|
|
1047
1022
|
parsedBody,
|
|
1048
|
-
exceptionCtor: __BaseException,
|
|
1049
1023
|
errorCode,
|
|
1050
1024
|
});
|
|
1051
1025
|
}
|
|
@@ -1058,9 +1032,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1058
1032
|
$metadata: deserializeMetadata(output),
|
|
1059
1033
|
});
|
|
1060
1034
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
}
|
|
1035
|
+
const doc = take(data, {
|
|
1036
|
+
Tags: _json,
|
|
1037
|
+
});
|
|
1038
|
+
Object.assign(contents, doc);
|
|
1064
1039
|
return contents;
|
|
1065
1040
|
};
|
|
1066
1041
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1087,10 +1062,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1087
1062
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1088
1063
|
default:
|
|
1089
1064
|
const parsedBody = parsedOutput.body;
|
|
1090
|
-
throwDefaultError({
|
|
1065
|
+
return throwDefaultError({
|
|
1091
1066
|
output,
|
|
1092
1067
|
parsedBody,
|
|
1093
|
-
exceptionCtor: __BaseException,
|
|
1094
1068
|
errorCode,
|
|
1095
1069
|
});
|
|
1096
1070
|
}
|
|
@@ -1126,10 +1100,9 @@ const de_StartCanaryCommandError = async (output, context) => {
|
|
|
1126
1100
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1127
1101
|
default:
|
|
1128
1102
|
const parsedBody = parsedOutput.body;
|
|
1129
|
-
throwDefaultError({
|
|
1103
|
+
return throwDefaultError({
|
|
1130
1104
|
output,
|
|
1131
1105
|
parsedBody,
|
|
1132
|
-
exceptionCtor: __BaseException,
|
|
1133
1106
|
errorCode,
|
|
1134
1107
|
});
|
|
1135
1108
|
}
|
|
@@ -1165,10 +1138,9 @@ const de_StopCanaryCommandError = async (output, context) => {
|
|
|
1165
1138
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1166
1139
|
default:
|
|
1167
1140
|
const parsedBody = parsedOutput.body;
|
|
1168
|
-
throwDefaultError({
|
|
1141
|
+
return throwDefaultError({
|
|
1169
1142
|
output,
|
|
1170
1143
|
parsedBody,
|
|
1171
|
-
exceptionCtor: __BaseException,
|
|
1172
1144
|
errorCode,
|
|
1173
1145
|
});
|
|
1174
1146
|
}
|
|
@@ -1207,10 +1179,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1207
1179
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1208
1180
|
default:
|
|
1209
1181
|
const parsedBody = parsedOutput.body;
|
|
1210
|
-
throwDefaultError({
|
|
1182
|
+
return throwDefaultError({
|
|
1211
1183
|
output,
|
|
1212
1184
|
parsedBody,
|
|
1213
|
-
exceptionCtor: __BaseException,
|
|
1214
1185
|
errorCode,
|
|
1215
1186
|
});
|
|
1216
1187
|
}
|
|
@@ -1249,10 +1220,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1249
1220
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1250
1221
|
default:
|
|
1251
1222
|
const parsedBody = parsedOutput.body;
|
|
1252
|
-
throwDefaultError({
|
|
1223
|
+
return throwDefaultError({
|
|
1253
1224
|
output,
|
|
1254
1225
|
parsedBody,
|
|
1255
|
-
exceptionCtor: __BaseException,
|
|
1256
1226
|
errorCode,
|
|
1257
1227
|
});
|
|
1258
1228
|
}
|
|
@@ -1291,21 +1261,21 @@ const de_UpdateCanaryCommandError = async (output, context) => {
|
|
|
1291
1261
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1292
1262
|
default:
|
|
1293
1263
|
const parsedBody = parsedOutput.body;
|
|
1294
|
-
throwDefaultError({
|
|
1264
|
+
return throwDefaultError({
|
|
1295
1265
|
output,
|
|
1296
1266
|
parsedBody,
|
|
1297
|
-
exceptionCtor: __BaseException,
|
|
1298
1267
|
errorCode,
|
|
1299
1268
|
});
|
|
1300
1269
|
}
|
|
1301
1270
|
};
|
|
1302
|
-
const
|
|
1271
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1303
1272
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1304
1273
|
const contents = map({});
|
|
1305
1274
|
const data = parsedOutput.body;
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
}
|
|
1275
|
+
const doc = take(data, {
|
|
1276
|
+
Message: __expectString,
|
|
1277
|
+
});
|
|
1278
|
+
Object.assign(contents, doc);
|
|
1309
1279
|
const exception = new BadRequestException({
|
|
1310
1280
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1311
1281
|
...contents,
|
|
@@ -1315,9 +1285,10 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1315
1285
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1316
1286
|
const contents = map({});
|
|
1317
1287
|
const data = parsedOutput.body;
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
}
|
|
1288
|
+
const doc = take(data, {
|
|
1289
|
+
Message: __expectString,
|
|
1290
|
+
});
|
|
1291
|
+
Object.assign(contents, doc);
|
|
1321
1292
|
const exception = new ConflictException({
|
|
1322
1293
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1323
1294
|
...contents,
|
|
@@ -1327,9 +1298,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1327
1298
|
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
1328
1299
|
const contents = map({});
|
|
1329
1300
|
const data = parsedOutput.body;
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
}
|
|
1301
|
+
const doc = take(data, {
|
|
1302
|
+
Message: __expectString,
|
|
1303
|
+
});
|
|
1304
|
+
Object.assign(contents, doc);
|
|
1333
1305
|
const exception = new InternalFailureException({
|
|
1334
1306
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1335
1307
|
...contents,
|
|
@@ -1339,9 +1311,10 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
1339
1311
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1340
1312
|
const contents = map({});
|
|
1341
1313
|
const data = parsedOutput.body;
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
}
|
|
1314
|
+
const doc = take(data, {
|
|
1315
|
+
Message: __expectString,
|
|
1316
|
+
});
|
|
1317
|
+
Object.assign(contents, doc);
|
|
1345
1318
|
const exception = new InternalServerException({
|
|
1346
1319
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1347
1320
|
...contents,
|
|
@@ -1351,9 +1324,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1351
1324
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1352
1325
|
const contents = map({});
|
|
1353
1326
|
const data = parsedOutput.body;
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
}
|
|
1327
|
+
const doc = take(data, {
|
|
1328
|
+
Message: __expectString,
|
|
1329
|
+
});
|
|
1330
|
+
Object.assign(contents, doc);
|
|
1357
1331
|
const exception = new NotFoundException({
|
|
1358
1332
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1359
1333
|
...contents,
|
|
@@ -1363,9 +1337,10 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1363
1337
|
const de_RequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
1364
1338
|
const contents = map({});
|
|
1365
1339
|
const data = parsedOutput.body;
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
}
|
|
1340
|
+
const doc = take(data, {
|
|
1341
|
+
Message: __expectString,
|
|
1342
|
+
});
|
|
1343
|
+
Object.assign(contents, doc);
|
|
1369
1344
|
const exception = new RequestEntityTooLargeException({
|
|
1370
1345
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1371
1346
|
...contents,
|
|
@@ -1375,9 +1350,10 @@ const de_RequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
|
1375
1350
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1376
1351
|
const contents = map({});
|
|
1377
1352
|
const data = parsedOutput.body;
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
}
|
|
1353
|
+
const doc = take(data, {
|
|
1354
|
+
Message: __expectString,
|
|
1355
|
+
});
|
|
1356
|
+
Object.assign(contents, doc);
|
|
1381
1357
|
const exception = new ResourceNotFoundException({
|
|
1382
1358
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1383
1359
|
...contents,
|
|
@@ -1387,9 +1363,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1387
1363
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1388
1364
|
const contents = map({});
|
|
1389
1365
|
const data = parsedOutput.body;
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
}
|
|
1366
|
+
const doc = take(data, {
|
|
1367
|
+
Message: __expectString,
|
|
1368
|
+
});
|
|
1369
|
+
Object.assign(contents, doc);
|
|
1393
1370
|
const exception = new ServiceQuotaExceededException({
|
|
1394
1371
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1395
1372
|
...contents,
|
|
@@ -1399,9 +1376,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1399
1376
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1400
1377
|
const contents = map({});
|
|
1401
1378
|
const data = parsedOutput.body;
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
}
|
|
1379
|
+
const doc = take(data, {
|
|
1380
|
+
Message: __expectString,
|
|
1381
|
+
});
|
|
1382
|
+
Object.assign(contents, doc);
|
|
1405
1383
|
const exception = new TooManyRequestsException({
|
|
1406
1384
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1407
1385
|
...contents,
|
|
@@ -1411,173 +1389,29 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
1411
1389
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1412
1390
|
const contents = map({});
|
|
1413
1391
|
const data = parsedOutput.body;
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
}
|
|
1392
|
+
const doc = take(data, {
|
|
1393
|
+
Message: __expectString,
|
|
1394
|
+
});
|
|
1395
|
+
Object.assign(contents, doc);
|
|
1417
1396
|
const exception = new ValidationException({
|
|
1418
1397
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1419
1398
|
...contents,
|
|
1420
1399
|
});
|
|
1421
1400
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1422
1401
|
};
|
|
1423
|
-
const se_ArtifactConfigInput = (input, context) => {
|
|
1424
|
-
return {
|
|
1425
|
-
...(input.S3Encryption != null && { S3Encryption: se_S3EncryptionConfig(input.S3Encryption, context) }),
|
|
1426
|
-
};
|
|
1427
|
-
};
|
|
1428
|
-
const se_BaseScreenshot = (input, context) => {
|
|
1429
|
-
return {
|
|
1430
|
-
...(input.IgnoreCoordinates != null && {
|
|
1431
|
-
IgnoreCoordinates: se_BaseScreenshotIgnoreCoordinates(input.IgnoreCoordinates, context),
|
|
1432
|
-
}),
|
|
1433
|
-
...(input.ScreenshotName != null && { ScreenshotName: input.ScreenshotName }),
|
|
1434
|
-
};
|
|
1435
|
-
};
|
|
1436
|
-
const se_BaseScreenshotIgnoreCoordinates = (input, context) => {
|
|
1437
|
-
return input
|
|
1438
|
-
.filter((e) => e != null)
|
|
1439
|
-
.map((entry) => {
|
|
1440
|
-
return entry;
|
|
1441
|
-
});
|
|
1442
|
-
};
|
|
1443
|
-
const se_BaseScreenshots = (input, context) => {
|
|
1444
|
-
return input
|
|
1445
|
-
.filter((e) => e != null)
|
|
1446
|
-
.map((entry) => {
|
|
1447
|
-
return se_BaseScreenshot(entry, context);
|
|
1448
|
-
});
|
|
1449
|
-
};
|
|
1450
1402
|
const se_CanaryCodeInput = (input, context) => {
|
|
1451
|
-
return {
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
};
|
|
1458
|
-
};
|
|
1459
|
-
const se_CanaryRunConfigInput = (input, context) => {
|
|
1460
|
-
return {
|
|
1461
|
-
...(input.ActiveTracing != null && { ActiveTracing: input.ActiveTracing }),
|
|
1462
|
-
...(input.EnvironmentVariables != null && {
|
|
1463
|
-
EnvironmentVariables: se_EnvironmentVariablesMap(input.EnvironmentVariables, context),
|
|
1464
|
-
}),
|
|
1465
|
-
...(input.MemoryInMB != null && { MemoryInMB: input.MemoryInMB }),
|
|
1466
|
-
...(input.TimeoutInSeconds != null && { TimeoutInSeconds: input.TimeoutInSeconds }),
|
|
1467
|
-
};
|
|
1468
|
-
};
|
|
1469
|
-
const se_CanaryScheduleInput = (input, context) => {
|
|
1470
|
-
return {
|
|
1471
|
-
...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
|
|
1472
|
-
...(input.Expression != null && { Expression: input.Expression }),
|
|
1473
|
-
};
|
|
1474
|
-
};
|
|
1475
|
-
const se_DescribeCanariesLastRunNameFilter = (input, context) => {
|
|
1476
|
-
return input
|
|
1477
|
-
.filter((e) => e != null)
|
|
1478
|
-
.map((entry) => {
|
|
1479
|
-
return entry;
|
|
1480
|
-
});
|
|
1481
|
-
};
|
|
1482
|
-
const se_DescribeCanariesNameFilter = (input, context) => {
|
|
1483
|
-
return input
|
|
1484
|
-
.filter((e) => e != null)
|
|
1485
|
-
.map((entry) => {
|
|
1486
|
-
return entry;
|
|
1403
|
+
return take(input, {
|
|
1404
|
+
Handler: [],
|
|
1405
|
+
S3Bucket: [],
|
|
1406
|
+
S3Key: [],
|
|
1407
|
+
S3Version: [],
|
|
1408
|
+
ZipFile: context.base64Encoder,
|
|
1487
1409
|
});
|
|
1488
1410
|
};
|
|
1489
|
-
const se_EnvironmentVariablesMap = (input, context) => {
|
|
1490
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1491
|
-
if (value === null) {
|
|
1492
|
-
return acc;
|
|
1493
|
-
}
|
|
1494
|
-
acc[key] = value;
|
|
1495
|
-
return acc;
|
|
1496
|
-
}, {});
|
|
1497
|
-
};
|
|
1498
|
-
const se_S3EncryptionConfig = (input, context) => {
|
|
1499
|
-
return {
|
|
1500
|
-
...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
|
|
1501
|
-
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
1502
|
-
};
|
|
1503
|
-
};
|
|
1504
|
-
const se_SecurityGroupIds = (input, context) => {
|
|
1505
|
-
return input
|
|
1506
|
-
.filter((e) => e != null)
|
|
1507
|
-
.map((entry) => {
|
|
1508
|
-
return entry;
|
|
1509
|
-
});
|
|
1510
|
-
};
|
|
1511
|
-
const se_SubnetIds = (input, context) => {
|
|
1512
|
-
return input
|
|
1513
|
-
.filter((e) => e != null)
|
|
1514
|
-
.map((entry) => {
|
|
1515
|
-
return entry;
|
|
1516
|
-
});
|
|
1517
|
-
};
|
|
1518
|
-
const se_TagMap = (input, context) => {
|
|
1519
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1520
|
-
if (value === null) {
|
|
1521
|
-
return acc;
|
|
1522
|
-
}
|
|
1523
|
-
acc[key] = value;
|
|
1524
|
-
return acc;
|
|
1525
|
-
}, {});
|
|
1526
|
-
};
|
|
1527
|
-
const se_VisualReferenceInput = (input, context) => {
|
|
1528
|
-
return {
|
|
1529
|
-
...(input.BaseCanaryRunId != null && { BaseCanaryRunId: input.BaseCanaryRunId }),
|
|
1530
|
-
...(input.BaseScreenshots != null && { BaseScreenshots: se_BaseScreenshots(input.BaseScreenshots, context) }),
|
|
1531
|
-
};
|
|
1532
|
-
};
|
|
1533
|
-
const se_VpcConfigInput = (input, context) => {
|
|
1534
|
-
return {
|
|
1535
|
-
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
|
|
1536
|
-
...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
|
|
1537
|
-
};
|
|
1538
|
-
};
|
|
1539
|
-
const de_ArtifactConfigOutput = (output, context) => {
|
|
1540
|
-
return {
|
|
1541
|
-
S3Encryption: output.S3Encryption != null ? de_S3EncryptionConfig(output.S3Encryption, context) : undefined,
|
|
1542
|
-
};
|
|
1543
|
-
};
|
|
1544
|
-
const de_BaseScreenshot = (output, context) => {
|
|
1545
|
-
return {
|
|
1546
|
-
IgnoreCoordinates: output.IgnoreCoordinates != null
|
|
1547
|
-
? de_BaseScreenshotIgnoreCoordinates(output.IgnoreCoordinates, context)
|
|
1548
|
-
: undefined,
|
|
1549
|
-
ScreenshotName: __expectString(output.ScreenshotName),
|
|
1550
|
-
};
|
|
1551
|
-
};
|
|
1552
|
-
const de_BaseScreenshotIgnoreCoordinates = (output, context) => {
|
|
1553
|
-
const retVal = (output || [])
|
|
1554
|
-
.filter((e) => e != null)
|
|
1555
|
-
.map((entry) => {
|
|
1556
|
-
if (entry === null) {
|
|
1557
|
-
return null;
|
|
1558
|
-
}
|
|
1559
|
-
return __expectString(entry);
|
|
1560
|
-
});
|
|
1561
|
-
return retVal;
|
|
1562
|
-
};
|
|
1563
|
-
const de_BaseScreenshots = (output, context) => {
|
|
1564
|
-
const retVal = (output || [])
|
|
1565
|
-
.filter((e) => e != null)
|
|
1566
|
-
.map((entry) => {
|
|
1567
|
-
if (entry === null) {
|
|
1568
|
-
return null;
|
|
1569
|
-
}
|
|
1570
|
-
return de_BaseScreenshot(entry, context);
|
|
1571
|
-
});
|
|
1572
|
-
return retVal;
|
|
1573
|
-
};
|
|
1574
1411
|
const de_Canaries = (output, context) => {
|
|
1575
1412
|
const retVal = (output || [])
|
|
1576
1413
|
.filter((e) => e != null)
|
|
1577
1414
|
.map((entry) => {
|
|
1578
|
-
if (entry === null) {
|
|
1579
|
-
return null;
|
|
1580
|
-
}
|
|
1581
1415
|
return de_Canary(entry, context);
|
|
1582
1416
|
});
|
|
1583
1417
|
return retVal;
|
|
@@ -1586,229 +1420,94 @@ const de_CanariesLastRun = (output, context) => {
|
|
|
1586
1420
|
const retVal = (output || [])
|
|
1587
1421
|
.filter((e) => e != null)
|
|
1588
1422
|
.map((entry) => {
|
|
1589
|
-
if (entry === null) {
|
|
1590
|
-
return null;
|
|
1591
|
-
}
|
|
1592
1423
|
return de_CanaryLastRun(entry, context);
|
|
1593
1424
|
});
|
|
1594
1425
|
return retVal;
|
|
1595
1426
|
};
|
|
1596
1427
|
const de_Canary = (output, context) => {
|
|
1597
|
-
return {
|
|
1598
|
-
ArtifactConfig:
|
|
1599
|
-
ArtifactS3Location: __expectString
|
|
1600
|
-
Code:
|
|
1601
|
-
EngineArn: __expectString
|
|
1602
|
-
ExecutionRoleArn: __expectString
|
|
1603
|
-
FailureRetentionPeriodInDays: __expectInt32
|
|
1604
|
-
Id: __expectString
|
|
1605
|
-
Name: __expectString
|
|
1606
|
-
RunConfig:
|
|
1607
|
-
RuntimeVersion: __expectString
|
|
1608
|
-
Schedule:
|
|
1609
|
-
Status:
|
|
1610
|
-
SuccessRetentionPeriodInDays: __expectInt32
|
|
1611
|
-
Tags:
|
|
1612
|
-
Timeline:
|
|
1613
|
-
VisualReference:
|
|
1614
|
-
VpcConfig:
|
|
1615
|
-
};
|
|
1616
|
-
};
|
|
1617
|
-
const de_CanaryCodeOutput = (output, context) => {
|
|
1618
|
-
return {
|
|
1619
|
-
Handler: __expectString(output.Handler),
|
|
1620
|
-
SourceLocationArn: __expectString(output.SourceLocationArn),
|
|
1621
|
-
};
|
|
1428
|
+
return take(output, {
|
|
1429
|
+
ArtifactConfig: _json,
|
|
1430
|
+
ArtifactS3Location: __expectString,
|
|
1431
|
+
Code: _json,
|
|
1432
|
+
EngineArn: __expectString,
|
|
1433
|
+
ExecutionRoleArn: __expectString,
|
|
1434
|
+
FailureRetentionPeriodInDays: __expectInt32,
|
|
1435
|
+
Id: __expectString,
|
|
1436
|
+
Name: __expectString,
|
|
1437
|
+
RunConfig: _json,
|
|
1438
|
+
RuntimeVersion: __expectString,
|
|
1439
|
+
Schedule: _json,
|
|
1440
|
+
Status: _json,
|
|
1441
|
+
SuccessRetentionPeriodInDays: __expectInt32,
|
|
1442
|
+
Tags: _json,
|
|
1443
|
+
Timeline: (_) => de_CanaryTimeline(_, context),
|
|
1444
|
+
VisualReference: _json,
|
|
1445
|
+
VpcConfig: _json,
|
|
1446
|
+
});
|
|
1622
1447
|
};
|
|
1623
1448
|
const de_CanaryLastRun = (output, context) => {
|
|
1624
|
-
return {
|
|
1625
|
-
CanaryName: __expectString
|
|
1626
|
-
LastRun:
|
|
1627
|
-
};
|
|
1449
|
+
return take(output, {
|
|
1450
|
+
CanaryName: __expectString,
|
|
1451
|
+
LastRun: (_) => de_CanaryRun(_, context),
|
|
1452
|
+
});
|
|
1628
1453
|
};
|
|
1629
1454
|
const de_CanaryRun = (output, context) => {
|
|
1630
|
-
return {
|
|
1631
|
-
ArtifactS3Location: __expectString
|
|
1632
|
-
Id: __expectString
|
|
1633
|
-
Name: __expectString
|
|
1634
|
-
Status:
|
|
1635
|
-
Timeline:
|
|
1636
|
-
};
|
|
1637
|
-
};
|
|
1638
|
-
const de_CanaryRunConfigOutput = (output, context) => {
|
|
1639
|
-
return {
|
|
1640
|
-
ActiveTracing: __expectBoolean(output.ActiveTracing),
|
|
1641
|
-
MemoryInMB: __expectInt32(output.MemoryInMB),
|
|
1642
|
-
TimeoutInSeconds: __expectInt32(output.TimeoutInSeconds),
|
|
1643
|
-
};
|
|
1455
|
+
return take(output, {
|
|
1456
|
+
ArtifactS3Location: __expectString,
|
|
1457
|
+
Id: __expectString,
|
|
1458
|
+
Name: __expectString,
|
|
1459
|
+
Status: _json,
|
|
1460
|
+
Timeline: (_) => de_CanaryRunTimeline(_, context),
|
|
1461
|
+
});
|
|
1644
1462
|
};
|
|
1645
1463
|
const de_CanaryRuns = (output, context) => {
|
|
1646
1464
|
const retVal = (output || [])
|
|
1647
1465
|
.filter((e) => e != null)
|
|
1648
1466
|
.map((entry) => {
|
|
1649
|
-
if (entry === null) {
|
|
1650
|
-
return null;
|
|
1651
|
-
}
|
|
1652
1467
|
return de_CanaryRun(entry, context);
|
|
1653
1468
|
});
|
|
1654
1469
|
return retVal;
|
|
1655
1470
|
};
|
|
1656
|
-
const de_CanaryRunStatus = (output, context) => {
|
|
1657
|
-
return {
|
|
1658
|
-
State: __expectString(output.State),
|
|
1659
|
-
StateReason: __expectString(output.StateReason),
|
|
1660
|
-
StateReasonCode: __expectString(output.StateReasonCode),
|
|
1661
|
-
};
|
|
1662
|
-
};
|
|
1663
1471
|
const de_CanaryRunTimeline = (output, context) => {
|
|
1664
|
-
return {
|
|
1665
|
-
Completed:
|
|
1666
|
-
Started:
|
|
1667
|
-
};
|
|
1668
|
-
};
|
|
1669
|
-
const de_CanaryScheduleOutput = (output, context) => {
|
|
1670
|
-
return {
|
|
1671
|
-
DurationInSeconds: __expectLong(output.DurationInSeconds),
|
|
1672
|
-
Expression: __expectString(output.Expression),
|
|
1673
|
-
};
|
|
1674
|
-
};
|
|
1675
|
-
const de_CanaryStatus = (output, context) => {
|
|
1676
|
-
return {
|
|
1677
|
-
State: __expectString(output.State),
|
|
1678
|
-
StateReason: __expectString(output.StateReason),
|
|
1679
|
-
StateReasonCode: __expectString(output.StateReasonCode),
|
|
1680
|
-
};
|
|
1472
|
+
return take(output, {
|
|
1473
|
+
Completed: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1474
|
+
Started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1475
|
+
});
|
|
1681
1476
|
};
|
|
1682
1477
|
const de_CanaryTimeline = (output, context) => {
|
|
1683
|
-
return {
|
|
1684
|
-
Created:
|
|
1685
|
-
LastModified:
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastStarted)))
|
|
1690
|
-
: undefined,
|
|
1691
|
-
LastStopped: output.LastStopped != null
|
|
1692
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastStopped)))
|
|
1693
|
-
: undefined,
|
|
1694
|
-
};
|
|
1478
|
+
return take(output, {
|
|
1479
|
+
Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1480
|
+
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1481
|
+
LastStarted: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1482
|
+
LastStopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1483
|
+
});
|
|
1695
1484
|
};
|
|
1696
1485
|
const de_Group = (output, context) => {
|
|
1697
|
-
return {
|
|
1698
|
-
Arn: __expectString
|
|
1699
|
-
CreatedTime:
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
1705
|
-
: undefined,
|
|
1706
|
-
Name: __expectString(output.Name),
|
|
1707
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1708
|
-
};
|
|
1709
|
-
};
|
|
1710
|
-
const de_GroupSummary = (output, context) => {
|
|
1711
|
-
return {
|
|
1712
|
-
Arn: __expectString(output.Arn),
|
|
1713
|
-
Id: __expectString(output.Id),
|
|
1714
|
-
Name: __expectString(output.Name),
|
|
1715
|
-
};
|
|
1716
|
-
};
|
|
1717
|
-
const de_GroupSummaryList = (output, context) => {
|
|
1718
|
-
const retVal = (output || [])
|
|
1719
|
-
.filter((e) => e != null)
|
|
1720
|
-
.map((entry) => {
|
|
1721
|
-
if (entry === null) {
|
|
1722
|
-
return null;
|
|
1723
|
-
}
|
|
1724
|
-
return de_GroupSummary(entry, context);
|
|
1486
|
+
return take(output, {
|
|
1487
|
+
Arn: __expectString,
|
|
1488
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1489
|
+
Id: __expectString,
|
|
1490
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1491
|
+
Name: __expectString,
|
|
1492
|
+
Tags: _json,
|
|
1725
1493
|
});
|
|
1726
|
-
return retVal;
|
|
1727
1494
|
};
|
|
1728
1495
|
const de_RuntimeVersion = (output, context) => {
|
|
1729
|
-
return {
|
|
1730
|
-
DeprecationDate:
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReleaseDate)))
|
|
1736
|
-
: undefined,
|
|
1737
|
-
VersionName: __expectString(output.VersionName),
|
|
1738
|
-
};
|
|
1496
|
+
return take(output, {
|
|
1497
|
+
DeprecationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1498
|
+
Description: __expectString,
|
|
1499
|
+
ReleaseDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1500
|
+
VersionName: __expectString,
|
|
1501
|
+
});
|
|
1739
1502
|
};
|
|
1740
1503
|
const de_RuntimeVersionList = (output, context) => {
|
|
1741
1504
|
const retVal = (output || [])
|
|
1742
1505
|
.filter((e) => e != null)
|
|
1743
1506
|
.map((entry) => {
|
|
1744
|
-
if (entry === null) {
|
|
1745
|
-
return null;
|
|
1746
|
-
}
|
|
1747
1507
|
return de_RuntimeVersion(entry, context);
|
|
1748
1508
|
});
|
|
1749
1509
|
return retVal;
|
|
1750
1510
|
};
|
|
1751
|
-
const de_S3EncryptionConfig = (output, context) => {
|
|
1752
|
-
return {
|
|
1753
|
-
EncryptionMode: __expectString(output.EncryptionMode),
|
|
1754
|
-
KmsKeyArn: __expectString(output.KmsKeyArn),
|
|
1755
|
-
};
|
|
1756
|
-
};
|
|
1757
|
-
const de_SecurityGroupIds = (output, context) => {
|
|
1758
|
-
const retVal = (output || [])
|
|
1759
|
-
.filter((e) => e != null)
|
|
1760
|
-
.map((entry) => {
|
|
1761
|
-
if (entry === null) {
|
|
1762
|
-
return null;
|
|
1763
|
-
}
|
|
1764
|
-
return __expectString(entry);
|
|
1765
|
-
});
|
|
1766
|
-
return retVal;
|
|
1767
|
-
};
|
|
1768
|
-
const de_StringList = (output, context) => {
|
|
1769
|
-
const retVal = (output || [])
|
|
1770
|
-
.filter((e) => e != null)
|
|
1771
|
-
.map((entry) => {
|
|
1772
|
-
if (entry === null) {
|
|
1773
|
-
return null;
|
|
1774
|
-
}
|
|
1775
|
-
return __expectString(entry);
|
|
1776
|
-
});
|
|
1777
|
-
return retVal;
|
|
1778
|
-
};
|
|
1779
|
-
const de_SubnetIds = (output, context) => {
|
|
1780
|
-
const retVal = (output || [])
|
|
1781
|
-
.filter((e) => e != null)
|
|
1782
|
-
.map((entry) => {
|
|
1783
|
-
if (entry === null) {
|
|
1784
|
-
return null;
|
|
1785
|
-
}
|
|
1786
|
-
return __expectString(entry);
|
|
1787
|
-
});
|
|
1788
|
-
return retVal;
|
|
1789
|
-
};
|
|
1790
|
-
const de_TagMap = (output, context) => {
|
|
1791
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1792
|
-
if (value === null) {
|
|
1793
|
-
return acc;
|
|
1794
|
-
}
|
|
1795
|
-
acc[key] = __expectString(value);
|
|
1796
|
-
return acc;
|
|
1797
|
-
}, {});
|
|
1798
|
-
};
|
|
1799
|
-
const de_VisualReferenceOutput = (output, context) => {
|
|
1800
|
-
return {
|
|
1801
|
-
BaseCanaryRunId: __expectString(output.BaseCanaryRunId),
|
|
1802
|
-
BaseScreenshots: output.BaseScreenshots != null ? de_BaseScreenshots(output.BaseScreenshots, context) : undefined,
|
|
1803
|
-
};
|
|
1804
|
-
};
|
|
1805
|
-
const de_VpcConfigOutput = (output, context) => {
|
|
1806
|
-
return {
|
|
1807
|
-
SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupIds(output.SecurityGroupIds, context) : undefined,
|
|
1808
|
-
SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
|
|
1809
|
-
VpcId: __expectString(output.VpcId),
|
|
1810
|
-
};
|
|
1811
|
-
};
|
|
1812
1511
|
const deserializeMetadata = (output) => ({
|
|
1813
1512
|
httpStatusCode: output.statusCode,
|
|
1814
1513
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|