@aws-sdk/client-scheduler 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +160 -633
- package/dist-es/protocols/Aws_restJson1.js +137 -610
- 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, 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 { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { SchedulerServiceException as __BaseException } from "../models/SchedulerServiceException";
|
|
@@ -11,21 +11,19 @@ export const se_CreateScheduleCommand = async (input, context) => {
|
|
|
11
11
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
|
|
12
12
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify({
|
|
15
|
-
ClientToken:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
...(input.Target != null && { Target: se_Target(input.Target, context) }),
|
|
28
|
-
});
|
|
14
|
+
body = JSON.stringify(take(input, {
|
|
15
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
16
|
+
Description: [],
|
|
17
|
+
EndDate: (_) => Math.round(_.getTime() / 1000),
|
|
18
|
+
FlexibleTimeWindow: (_) => _json(_),
|
|
19
|
+
GroupName: [],
|
|
20
|
+
KmsKeyArn: [],
|
|
21
|
+
ScheduleExpression: [],
|
|
22
|
+
ScheduleExpressionTimezone: [],
|
|
23
|
+
StartDate: (_) => Math.round(_.getTime() / 1000),
|
|
24
|
+
State: [],
|
|
25
|
+
Target: (_) => _json(_),
|
|
26
|
+
}));
|
|
29
27
|
return new __HttpRequest({
|
|
30
28
|
protocol,
|
|
31
29
|
hostname,
|
|
@@ -44,10 +42,10 @@ export const se_CreateScheduleGroupCommand = async (input, context) => {
|
|
|
44
42
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedule-groups/{Name}";
|
|
45
43
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
46
44
|
let body;
|
|
47
|
-
body = JSON.stringify({
|
|
48
|
-
ClientToken:
|
|
49
|
-
|
|
50
|
-
});
|
|
45
|
+
body = JSON.stringify(take(input, {
|
|
46
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
47
|
+
Tags: (_) => _json(_),
|
|
48
|
+
}));
|
|
51
49
|
return new __HttpRequest({
|
|
52
50
|
protocol,
|
|
53
51
|
hostname,
|
|
@@ -203,9 +201,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
203
201
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
204
202
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
205
203
|
let body;
|
|
206
|
-
body = JSON.stringify({
|
|
207
|
-
|
|
208
|
-
});
|
|
204
|
+
body = JSON.stringify(take(input, {
|
|
205
|
+
Tags: (_) => _json(_),
|
|
206
|
+
}));
|
|
209
207
|
return new __HttpRequest({
|
|
210
208
|
protocol,
|
|
211
209
|
hostname,
|
|
@@ -247,21 +245,19 @@ export const se_UpdateScheduleCommand = async (input, context) => {
|
|
|
247
245
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
|
|
248
246
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
249
247
|
let body;
|
|
250
|
-
body = JSON.stringify({
|
|
251
|
-
ClientToken:
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
...(input.Target != null && { Target: se_Target(input.Target, context) }),
|
|
264
|
-
});
|
|
248
|
+
body = JSON.stringify(take(input, {
|
|
249
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
250
|
+
Description: [],
|
|
251
|
+
EndDate: (_) => Math.round(_.getTime() / 1000),
|
|
252
|
+
FlexibleTimeWindow: (_) => _json(_),
|
|
253
|
+
GroupName: [],
|
|
254
|
+
KmsKeyArn: [],
|
|
255
|
+
ScheduleExpression: [],
|
|
256
|
+
ScheduleExpressionTimezone: [],
|
|
257
|
+
StartDate: (_) => Math.round(_.getTime() / 1000),
|
|
258
|
+
State: [],
|
|
259
|
+
Target: (_) => _json(_),
|
|
260
|
+
}));
|
|
265
261
|
return new __HttpRequest({
|
|
266
262
|
protocol,
|
|
267
263
|
hostname,
|
|
@@ -280,9 +276,10 @@ export const de_CreateScheduleCommand = async (output, context) => {
|
|
|
280
276
|
$metadata: deserializeMetadata(output),
|
|
281
277
|
});
|
|
282
278
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}
|
|
279
|
+
const doc = take(data, {
|
|
280
|
+
ScheduleArn: __expectString,
|
|
281
|
+
});
|
|
282
|
+
Object.assign(contents, doc);
|
|
286
283
|
return contents;
|
|
287
284
|
};
|
|
288
285
|
const de_CreateScheduleCommandError = async (output, context) => {
|
|
@@ -312,10 +309,9 @@ const de_CreateScheduleCommandError = async (output, context) => {
|
|
|
312
309
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
313
310
|
default:
|
|
314
311
|
const parsedBody = parsedOutput.body;
|
|
315
|
-
throwDefaultError({
|
|
312
|
+
return throwDefaultError({
|
|
316
313
|
output,
|
|
317
314
|
parsedBody,
|
|
318
|
-
exceptionCtor: __BaseException,
|
|
319
315
|
errorCode,
|
|
320
316
|
});
|
|
321
317
|
}
|
|
@@ -328,9 +324,10 @@ export const de_CreateScheduleGroupCommand = async (output, context) => {
|
|
|
328
324
|
$metadata: deserializeMetadata(output),
|
|
329
325
|
});
|
|
330
326
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
327
|
+
const doc = take(data, {
|
|
328
|
+
ScheduleGroupArn: __expectString,
|
|
329
|
+
});
|
|
330
|
+
Object.assign(contents, doc);
|
|
334
331
|
return contents;
|
|
335
332
|
};
|
|
336
333
|
const de_CreateScheduleGroupCommandError = async (output, context) => {
|
|
@@ -357,10 +354,9 @@ const de_CreateScheduleGroupCommandError = async (output, context) => {
|
|
|
357
354
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
358
355
|
default:
|
|
359
356
|
const parsedBody = parsedOutput.body;
|
|
360
|
-
throwDefaultError({
|
|
357
|
+
return throwDefaultError({
|
|
361
358
|
output,
|
|
362
359
|
parsedBody,
|
|
363
|
-
exceptionCtor: __BaseException,
|
|
364
360
|
errorCode,
|
|
365
361
|
});
|
|
366
362
|
}
|
|
@@ -399,10 +395,9 @@ const de_DeleteScheduleCommandError = async (output, context) => {
|
|
|
399
395
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
400
396
|
default:
|
|
401
397
|
const parsedBody = parsedOutput.body;
|
|
402
|
-
throwDefaultError({
|
|
398
|
+
return throwDefaultError({
|
|
403
399
|
output,
|
|
404
400
|
parsedBody,
|
|
405
|
-
exceptionCtor: __BaseException,
|
|
406
401
|
errorCode,
|
|
407
402
|
});
|
|
408
403
|
}
|
|
@@ -441,10 +436,9 @@ const de_DeleteScheduleGroupCommandError = async (output, context) => {
|
|
|
441
436
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
442
437
|
default:
|
|
443
438
|
const parsedBody = parsedOutput.body;
|
|
444
|
-
throwDefaultError({
|
|
439
|
+
return throwDefaultError({
|
|
445
440
|
output,
|
|
446
441
|
parsedBody,
|
|
447
|
-
exceptionCtor: __BaseException,
|
|
448
442
|
errorCode,
|
|
449
443
|
});
|
|
450
444
|
}
|
|
@@ -457,48 +451,23 @@ export const de_GetScheduleCommand = async (output, context) => {
|
|
|
457
451
|
$metadata: deserializeMetadata(output),
|
|
458
452
|
});
|
|
459
453
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}
|
|
478
|
-
if (data.KmsKeyArn != null) {
|
|
479
|
-
contents.KmsKeyArn = __expectString(data.KmsKeyArn);
|
|
480
|
-
}
|
|
481
|
-
if (data.LastModificationDate != null) {
|
|
482
|
-
contents.LastModificationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModificationDate)));
|
|
483
|
-
}
|
|
484
|
-
if (data.Name != null) {
|
|
485
|
-
contents.Name = __expectString(data.Name);
|
|
486
|
-
}
|
|
487
|
-
if (data.ScheduleExpression != null) {
|
|
488
|
-
contents.ScheduleExpression = __expectString(data.ScheduleExpression);
|
|
489
|
-
}
|
|
490
|
-
if (data.ScheduleExpressionTimezone != null) {
|
|
491
|
-
contents.ScheduleExpressionTimezone = __expectString(data.ScheduleExpressionTimezone);
|
|
492
|
-
}
|
|
493
|
-
if (data.StartDate != null) {
|
|
494
|
-
contents.StartDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.StartDate)));
|
|
495
|
-
}
|
|
496
|
-
if (data.State != null) {
|
|
497
|
-
contents.State = __expectString(data.State);
|
|
498
|
-
}
|
|
499
|
-
if (data.Target != null) {
|
|
500
|
-
contents.Target = de_Target(data.Target, context);
|
|
501
|
-
}
|
|
454
|
+
const doc = take(data, {
|
|
455
|
+
Arn: __expectString,
|
|
456
|
+
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
457
|
+
Description: __expectString,
|
|
458
|
+
EndDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
459
|
+
FlexibleTimeWindow: _json,
|
|
460
|
+
GroupName: __expectString,
|
|
461
|
+
KmsKeyArn: __expectString,
|
|
462
|
+
LastModificationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
463
|
+
Name: __expectString,
|
|
464
|
+
ScheduleExpression: __expectString,
|
|
465
|
+
ScheduleExpressionTimezone: __expectString,
|
|
466
|
+
StartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
467
|
+
State: __expectString,
|
|
468
|
+
Target: _json,
|
|
469
|
+
});
|
|
470
|
+
Object.assign(contents, doc);
|
|
502
471
|
return contents;
|
|
503
472
|
};
|
|
504
473
|
const de_GetScheduleCommandError = async (output, context) => {
|
|
@@ -522,10 +491,9 @@ const de_GetScheduleCommandError = async (output, context) => {
|
|
|
522
491
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
523
492
|
default:
|
|
524
493
|
const parsedBody = parsedOutput.body;
|
|
525
|
-
throwDefaultError({
|
|
494
|
+
return throwDefaultError({
|
|
526
495
|
output,
|
|
527
496
|
parsedBody,
|
|
528
|
-
exceptionCtor: __BaseException,
|
|
529
497
|
errorCode,
|
|
530
498
|
});
|
|
531
499
|
}
|
|
@@ -538,21 +506,14 @@ export const de_GetScheduleGroupCommand = async (output, context) => {
|
|
|
538
506
|
$metadata: deserializeMetadata(output),
|
|
539
507
|
});
|
|
540
508
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
}
|
|
550
|
-
if (data.Name != null) {
|
|
551
|
-
contents.Name = __expectString(data.Name);
|
|
552
|
-
}
|
|
553
|
-
if (data.State != null) {
|
|
554
|
-
contents.State = __expectString(data.State);
|
|
555
|
-
}
|
|
509
|
+
const doc = take(data, {
|
|
510
|
+
Arn: __expectString,
|
|
511
|
+
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
512
|
+
LastModificationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
513
|
+
Name: __expectString,
|
|
514
|
+
State: __expectString,
|
|
515
|
+
});
|
|
516
|
+
Object.assign(contents, doc);
|
|
556
517
|
return contents;
|
|
557
518
|
};
|
|
558
519
|
const de_GetScheduleGroupCommandError = async (output, context) => {
|
|
@@ -576,10 +537,9 @@ const de_GetScheduleGroupCommandError = async (output, context) => {
|
|
|
576
537
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
577
538
|
default:
|
|
578
539
|
const parsedBody = parsedOutput.body;
|
|
579
|
-
throwDefaultError({
|
|
540
|
+
return throwDefaultError({
|
|
580
541
|
output,
|
|
581
542
|
parsedBody,
|
|
582
|
-
exceptionCtor: __BaseException,
|
|
583
543
|
errorCode,
|
|
584
544
|
});
|
|
585
545
|
}
|
|
@@ -592,12 +552,11 @@ export const de_ListScheduleGroupsCommand = async (output, context) => {
|
|
|
592
552
|
$metadata: deserializeMetadata(output),
|
|
593
553
|
});
|
|
594
554
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
}
|
|
555
|
+
const doc = take(data, {
|
|
556
|
+
NextToken: __expectString,
|
|
557
|
+
ScheduleGroups: (_) => de_ScheduleGroupList(_, context),
|
|
558
|
+
});
|
|
559
|
+
Object.assign(contents, doc);
|
|
601
560
|
return contents;
|
|
602
561
|
};
|
|
603
562
|
const de_ListScheduleGroupsCommandError = async (output, context) => {
|
|
@@ -618,10 +577,9 @@ const de_ListScheduleGroupsCommandError = async (output, context) => {
|
|
|
618
577
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
619
578
|
default:
|
|
620
579
|
const parsedBody = parsedOutput.body;
|
|
621
|
-
throwDefaultError({
|
|
580
|
+
return throwDefaultError({
|
|
622
581
|
output,
|
|
623
582
|
parsedBody,
|
|
624
|
-
exceptionCtor: __BaseException,
|
|
625
583
|
errorCode,
|
|
626
584
|
});
|
|
627
585
|
}
|
|
@@ -634,12 +592,11 @@ export const de_ListSchedulesCommand = async (output, context) => {
|
|
|
634
592
|
$metadata: deserializeMetadata(output),
|
|
635
593
|
});
|
|
636
594
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
}
|
|
595
|
+
const doc = take(data, {
|
|
596
|
+
NextToken: __expectString,
|
|
597
|
+
Schedules: (_) => de_ScheduleList(_, context),
|
|
598
|
+
});
|
|
599
|
+
Object.assign(contents, doc);
|
|
643
600
|
return contents;
|
|
644
601
|
};
|
|
645
602
|
const de_ListSchedulesCommandError = async (output, context) => {
|
|
@@ -663,10 +620,9 @@ const de_ListSchedulesCommandError = async (output, context) => {
|
|
|
663
620
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
664
621
|
default:
|
|
665
622
|
const parsedBody = parsedOutput.body;
|
|
666
|
-
throwDefaultError({
|
|
623
|
+
return throwDefaultError({
|
|
667
624
|
output,
|
|
668
625
|
parsedBody,
|
|
669
|
-
exceptionCtor: __BaseException,
|
|
670
626
|
errorCode,
|
|
671
627
|
});
|
|
672
628
|
}
|
|
@@ -679,9 +635,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
679
635
|
$metadata: deserializeMetadata(output),
|
|
680
636
|
});
|
|
681
637
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
638
|
+
const doc = take(data, {
|
|
639
|
+
Tags: _json,
|
|
640
|
+
});
|
|
641
|
+
Object.assign(contents, doc);
|
|
685
642
|
return contents;
|
|
686
643
|
};
|
|
687
644
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -705,10 +662,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
705
662
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
706
663
|
default:
|
|
707
664
|
const parsedBody = parsedOutput.body;
|
|
708
|
-
throwDefaultError({
|
|
665
|
+
return throwDefaultError({
|
|
709
666
|
output,
|
|
710
667
|
parsedBody,
|
|
711
|
-
exceptionCtor: __BaseException,
|
|
712
668
|
errorCode,
|
|
713
669
|
});
|
|
714
670
|
}
|
|
@@ -747,10 +703,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
747
703
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
748
704
|
default:
|
|
749
705
|
const parsedBody = parsedOutput.body;
|
|
750
|
-
throwDefaultError({
|
|
706
|
+
return throwDefaultError({
|
|
751
707
|
output,
|
|
752
708
|
parsedBody,
|
|
753
|
-
exceptionCtor: __BaseException,
|
|
754
709
|
errorCode,
|
|
755
710
|
});
|
|
756
711
|
}
|
|
@@ -789,10 +744,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
789
744
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
790
745
|
default:
|
|
791
746
|
const parsedBody = parsedOutput.body;
|
|
792
|
-
throwDefaultError({
|
|
747
|
+
return throwDefaultError({
|
|
793
748
|
output,
|
|
794
749
|
parsedBody,
|
|
795
|
-
exceptionCtor: __BaseException,
|
|
796
750
|
errorCode,
|
|
797
751
|
});
|
|
798
752
|
}
|
|
@@ -805,9 +759,10 @@ export const de_UpdateScheduleCommand = async (output, context) => {
|
|
|
805
759
|
$metadata: deserializeMetadata(output),
|
|
806
760
|
});
|
|
807
761
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
}
|
|
762
|
+
const doc = take(data, {
|
|
763
|
+
ScheduleArn: __expectString,
|
|
764
|
+
});
|
|
765
|
+
Object.assign(contents, doc);
|
|
811
766
|
return contents;
|
|
812
767
|
};
|
|
813
768
|
const de_UpdateScheduleCommandError = async (output, context) => {
|
|
@@ -834,21 +789,21 @@ const de_UpdateScheduleCommandError = async (output, context) => {
|
|
|
834
789
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
835
790
|
default:
|
|
836
791
|
const parsedBody = parsedOutput.body;
|
|
837
|
-
throwDefaultError({
|
|
792
|
+
return throwDefaultError({
|
|
838
793
|
output,
|
|
839
794
|
parsedBody,
|
|
840
|
-
exceptionCtor: __BaseException,
|
|
841
795
|
errorCode,
|
|
842
796
|
});
|
|
843
797
|
}
|
|
844
798
|
};
|
|
845
|
-
const
|
|
799
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
846
800
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
847
801
|
const contents = map({});
|
|
848
802
|
const data = parsedOutput.body;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
}
|
|
803
|
+
const doc = take(data, {
|
|
804
|
+
Message: __expectString,
|
|
805
|
+
});
|
|
806
|
+
Object.assign(contents, doc);
|
|
852
807
|
const exception = new ConflictException({
|
|
853
808
|
$metadata: deserializeMetadata(parsedOutput),
|
|
854
809
|
...contents,
|
|
@@ -858,9 +813,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
858
813
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
859
814
|
const contents = map({});
|
|
860
815
|
const data = parsedOutput.body;
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}
|
|
816
|
+
const doc = take(data, {
|
|
817
|
+
Message: __expectString,
|
|
818
|
+
});
|
|
819
|
+
Object.assign(contents, doc);
|
|
864
820
|
const exception = new InternalServerException({
|
|
865
821
|
$metadata: deserializeMetadata(parsedOutput),
|
|
866
822
|
...contents,
|
|
@@ -870,9 +826,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
870
826
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
871
827
|
const contents = map({});
|
|
872
828
|
const data = parsedOutput.body;
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
}
|
|
829
|
+
const doc = take(data, {
|
|
830
|
+
Message: __expectString,
|
|
831
|
+
});
|
|
832
|
+
Object.assign(contents, doc);
|
|
876
833
|
const exception = new ResourceNotFoundException({
|
|
877
834
|
$metadata: deserializeMetadata(parsedOutput),
|
|
878
835
|
...contents,
|
|
@@ -882,9 +839,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
882
839
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
883
840
|
const contents = map({});
|
|
884
841
|
const data = parsedOutput.body;
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
}
|
|
842
|
+
const doc = take(data, {
|
|
843
|
+
Message: __expectString,
|
|
844
|
+
});
|
|
845
|
+
Object.assign(contents, doc);
|
|
888
846
|
const exception = new ServiceQuotaExceededException({
|
|
889
847
|
$metadata: deserializeMetadata(parsedOutput),
|
|
890
848
|
...contents,
|
|
@@ -894,9 +852,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
894
852
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
895
853
|
const contents = map({});
|
|
896
854
|
const data = parsedOutput.body;
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
}
|
|
855
|
+
const doc = take(data, {
|
|
856
|
+
Message: __expectString,
|
|
857
|
+
});
|
|
858
|
+
Object.assign(contents, doc);
|
|
900
859
|
const exception = new ThrottlingException({
|
|
901
860
|
$metadata: deserializeMetadata(parsedOutput),
|
|
902
861
|
...contents,
|
|
@@ -906,483 +865,51 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
906
865
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
907
866
|
const contents = map({});
|
|
908
867
|
const data = parsedOutput.body;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
}
|
|
868
|
+
const doc = take(data, {
|
|
869
|
+
Message: __expectString,
|
|
870
|
+
});
|
|
871
|
+
Object.assign(contents, doc);
|
|
912
872
|
const exception = new ValidationException({
|
|
913
873
|
$metadata: deserializeMetadata(parsedOutput),
|
|
914
874
|
...contents,
|
|
915
875
|
});
|
|
916
876
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
917
877
|
};
|
|
918
|
-
const se_AwsVpcConfiguration = (input, context) => {
|
|
919
|
-
return {
|
|
920
|
-
...(input.AssignPublicIp != null && { AssignPublicIp: input.AssignPublicIp }),
|
|
921
|
-
...(input.SecurityGroups != null && { SecurityGroups: se_SecurityGroups(input.SecurityGroups, context) }),
|
|
922
|
-
...(input.Subnets != null && { Subnets: se_Subnets(input.Subnets, context) }),
|
|
923
|
-
};
|
|
924
|
-
};
|
|
925
|
-
const se_CapacityProviderStrategy = (input, context) => {
|
|
926
|
-
return input
|
|
927
|
-
.filter((e) => e != null)
|
|
928
|
-
.map((entry) => {
|
|
929
|
-
return se_CapacityProviderStrategyItem(entry, context);
|
|
930
|
-
});
|
|
931
|
-
};
|
|
932
|
-
const se_CapacityProviderStrategyItem = (input, context) => {
|
|
933
|
-
return {
|
|
934
|
-
...(input.base != null && { base: input.base }),
|
|
935
|
-
...(input.capacityProvider != null && { capacityProvider: input.capacityProvider }),
|
|
936
|
-
...(input.weight != null && { weight: input.weight }),
|
|
937
|
-
};
|
|
938
|
-
};
|
|
939
|
-
const se_DeadLetterConfig = (input, context) => {
|
|
940
|
-
return {
|
|
941
|
-
...(input.Arn != null && { Arn: input.Arn }),
|
|
942
|
-
};
|
|
943
|
-
};
|
|
944
|
-
const se_EcsParameters = (input, context) => {
|
|
945
|
-
return {
|
|
946
|
-
...(input.CapacityProviderStrategy != null && {
|
|
947
|
-
CapacityProviderStrategy: se_CapacityProviderStrategy(input.CapacityProviderStrategy, context),
|
|
948
|
-
}),
|
|
949
|
-
...(input.EnableECSManagedTags != null && { EnableECSManagedTags: input.EnableECSManagedTags }),
|
|
950
|
-
...(input.EnableExecuteCommand != null && { EnableExecuteCommand: input.EnableExecuteCommand }),
|
|
951
|
-
...(input.Group != null && { Group: input.Group }),
|
|
952
|
-
...(input.LaunchType != null && { LaunchType: input.LaunchType }),
|
|
953
|
-
...(input.NetworkConfiguration != null && {
|
|
954
|
-
NetworkConfiguration: se_NetworkConfiguration(input.NetworkConfiguration, context),
|
|
955
|
-
}),
|
|
956
|
-
...(input.PlacementConstraints != null && {
|
|
957
|
-
PlacementConstraints: se_PlacementConstraints(input.PlacementConstraints, context),
|
|
958
|
-
}),
|
|
959
|
-
...(input.PlacementStrategy != null && {
|
|
960
|
-
PlacementStrategy: se_PlacementStrategies(input.PlacementStrategy, context),
|
|
961
|
-
}),
|
|
962
|
-
...(input.PlatformVersion != null && { PlatformVersion: input.PlatformVersion }),
|
|
963
|
-
...(input.PropagateTags != null && { PropagateTags: input.PropagateTags }),
|
|
964
|
-
...(input.ReferenceId != null && { ReferenceId: input.ReferenceId }),
|
|
965
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
966
|
-
...(input.TaskCount != null && { TaskCount: input.TaskCount }),
|
|
967
|
-
...(input.TaskDefinitionArn != null && { TaskDefinitionArn: input.TaskDefinitionArn }),
|
|
968
|
-
};
|
|
969
|
-
};
|
|
970
|
-
const se_EventBridgeParameters = (input, context) => {
|
|
971
|
-
return {
|
|
972
|
-
...(input.DetailType != null && { DetailType: input.DetailType }),
|
|
973
|
-
...(input.Source != null && { Source: input.Source }),
|
|
974
|
-
};
|
|
975
|
-
};
|
|
976
|
-
const se_FlexibleTimeWindow = (input, context) => {
|
|
977
|
-
return {
|
|
978
|
-
...(input.MaximumWindowInMinutes != null && { MaximumWindowInMinutes: input.MaximumWindowInMinutes }),
|
|
979
|
-
...(input.Mode != null && { Mode: input.Mode }),
|
|
980
|
-
};
|
|
981
|
-
};
|
|
982
|
-
const se_KinesisParameters = (input, context) => {
|
|
983
|
-
return {
|
|
984
|
-
...(input.PartitionKey != null && { PartitionKey: input.PartitionKey }),
|
|
985
|
-
};
|
|
986
|
-
};
|
|
987
|
-
const se_NetworkConfiguration = (input, context) => {
|
|
988
|
-
return {
|
|
989
|
-
...(input.awsvpcConfiguration != null && {
|
|
990
|
-
awsvpcConfiguration: se_AwsVpcConfiguration(input.awsvpcConfiguration, context),
|
|
991
|
-
}),
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
|
-
const se_PlacementConstraint = (input, context) => {
|
|
995
|
-
return {
|
|
996
|
-
...(input.expression != null && { expression: input.expression }),
|
|
997
|
-
...(input.type != null && { type: input.type }),
|
|
998
|
-
};
|
|
999
|
-
};
|
|
1000
|
-
const se_PlacementConstraints = (input, context) => {
|
|
1001
|
-
return input
|
|
1002
|
-
.filter((e) => e != null)
|
|
1003
|
-
.map((entry) => {
|
|
1004
|
-
return se_PlacementConstraint(entry, context);
|
|
1005
|
-
});
|
|
1006
|
-
};
|
|
1007
|
-
const se_PlacementStrategies = (input, context) => {
|
|
1008
|
-
return input
|
|
1009
|
-
.filter((e) => e != null)
|
|
1010
|
-
.map((entry) => {
|
|
1011
|
-
return se_PlacementStrategy(entry, context);
|
|
1012
|
-
});
|
|
1013
|
-
};
|
|
1014
|
-
const se_PlacementStrategy = (input, context) => {
|
|
1015
|
-
return {
|
|
1016
|
-
...(input.field != null && { field: input.field }),
|
|
1017
|
-
...(input.type != null && { type: input.type }),
|
|
1018
|
-
};
|
|
1019
|
-
};
|
|
1020
|
-
const se_RetryPolicy = (input, context) => {
|
|
1021
|
-
return {
|
|
1022
|
-
...(input.MaximumEventAgeInSeconds != null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds }),
|
|
1023
|
-
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1024
|
-
};
|
|
1025
|
-
};
|
|
1026
|
-
const se_SageMakerPipelineParameter = (input, context) => {
|
|
1027
|
-
return {
|
|
1028
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1029
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1030
|
-
};
|
|
1031
|
-
};
|
|
1032
|
-
const se_SageMakerPipelineParameterList = (input, context) => {
|
|
1033
|
-
return input
|
|
1034
|
-
.filter((e) => e != null)
|
|
1035
|
-
.map((entry) => {
|
|
1036
|
-
return se_SageMakerPipelineParameter(entry, context);
|
|
1037
|
-
});
|
|
1038
|
-
};
|
|
1039
|
-
const se_SageMakerPipelineParameters = (input, context) => {
|
|
1040
|
-
return {
|
|
1041
|
-
...(input.PipelineParameterList != null && {
|
|
1042
|
-
PipelineParameterList: se_SageMakerPipelineParameterList(input.PipelineParameterList, context),
|
|
1043
|
-
}),
|
|
1044
|
-
};
|
|
1045
|
-
};
|
|
1046
|
-
const se_SecurityGroups = (input, context) => {
|
|
1047
|
-
return input
|
|
1048
|
-
.filter((e) => e != null)
|
|
1049
|
-
.map((entry) => {
|
|
1050
|
-
return entry;
|
|
1051
|
-
});
|
|
1052
|
-
};
|
|
1053
|
-
const se_SqsParameters = (input, context) => {
|
|
1054
|
-
return {
|
|
1055
|
-
...(input.MessageGroupId != null && { MessageGroupId: input.MessageGroupId }),
|
|
1056
|
-
};
|
|
1057
|
-
};
|
|
1058
|
-
const se_Subnets = (input, context) => {
|
|
1059
|
-
return input
|
|
1060
|
-
.filter((e) => e != null)
|
|
1061
|
-
.map((entry) => {
|
|
1062
|
-
return entry;
|
|
1063
|
-
});
|
|
1064
|
-
};
|
|
1065
|
-
const se_Tag = (input, context) => {
|
|
1066
|
-
return {
|
|
1067
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1068
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1069
|
-
};
|
|
1070
|
-
};
|
|
1071
|
-
const se_TagList = (input, context) => {
|
|
1072
|
-
return input
|
|
1073
|
-
.filter((e) => e != null)
|
|
1074
|
-
.map((entry) => {
|
|
1075
|
-
return se_Tag(entry, context);
|
|
1076
|
-
});
|
|
1077
|
-
};
|
|
1078
|
-
const se_TagMap = (input, context) => {
|
|
1079
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1080
|
-
if (value === null) {
|
|
1081
|
-
return acc;
|
|
1082
|
-
}
|
|
1083
|
-
acc[key] = value;
|
|
1084
|
-
return acc;
|
|
1085
|
-
}, {});
|
|
1086
|
-
};
|
|
1087
|
-
const se_Tags = (input, context) => {
|
|
1088
|
-
return input
|
|
1089
|
-
.filter((e) => e != null)
|
|
1090
|
-
.map((entry) => {
|
|
1091
|
-
return se_TagMap(entry, context);
|
|
1092
|
-
});
|
|
1093
|
-
};
|
|
1094
|
-
const se_Target = (input, context) => {
|
|
1095
|
-
return {
|
|
1096
|
-
...(input.Arn != null && { Arn: input.Arn }),
|
|
1097
|
-
...(input.DeadLetterConfig != null && { DeadLetterConfig: se_DeadLetterConfig(input.DeadLetterConfig, context) }),
|
|
1098
|
-
...(input.EcsParameters != null && { EcsParameters: se_EcsParameters(input.EcsParameters, context) }),
|
|
1099
|
-
...(input.EventBridgeParameters != null && {
|
|
1100
|
-
EventBridgeParameters: se_EventBridgeParameters(input.EventBridgeParameters, context),
|
|
1101
|
-
}),
|
|
1102
|
-
...(input.Input != null && { Input: input.Input }),
|
|
1103
|
-
...(input.KinesisParameters != null && {
|
|
1104
|
-
KinesisParameters: se_KinesisParameters(input.KinesisParameters, context),
|
|
1105
|
-
}),
|
|
1106
|
-
...(input.RetryPolicy != null && { RetryPolicy: se_RetryPolicy(input.RetryPolicy, context) }),
|
|
1107
|
-
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
1108
|
-
...(input.SageMakerPipelineParameters != null && {
|
|
1109
|
-
SageMakerPipelineParameters: se_SageMakerPipelineParameters(input.SageMakerPipelineParameters, context),
|
|
1110
|
-
}),
|
|
1111
|
-
...(input.SqsParameters != null && { SqsParameters: se_SqsParameters(input.SqsParameters, context) }),
|
|
1112
|
-
};
|
|
1113
|
-
};
|
|
1114
|
-
const de_AwsVpcConfiguration = (output, context) => {
|
|
1115
|
-
return {
|
|
1116
|
-
AssignPublicIp: __expectString(output.AssignPublicIp),
|
|
1117
|
-
SecurityGroups: output.SecurityGroups != null ? de_SecurityGroups(output.SecurityGroups, context) : undefined,
|
|
1118
|
-
Subnets: output.Subnets != null ? de_Subnets(output.Subnets, context) : undefined,
|
|
1119
|
-
};
|
|
1120
|
-
};
|
|
1121
|
-
const de_CapacityProviderStrategy = (output, context) => {
|
|
1122
|
-
const retVal = (output || [])
|
|
1123
|
-
.filter((e) => e != null)
|
|
1124
|
-
.map((entry) => {
|
|
1125
|
-
if (entry === null) {
|
|
1126
|
-
return null;
|
|
1127
|
-
}
|
|
1128
|
-
return de_CapacityProviderStrategyItem(entry, context);
|
|
1129
|
-
});
|
|
1130
|
-
return retVal;
|
|
1131
|
-
};
|
|
1132
|
-
const de_CapacityProviderStrategyItem = (output, context) => {
|
|
1133
|
-
return {
|
|
1134
|
-
base: __expectInt32(output.base),
|
|
1135
|
-
capacityProvider: __expectString(output.capacityProvider),
|
|
1136
|
-
weight: __expectInt32(output.weight),
|
|
1137
|
-
};
|
|
1138
|
-
};
|
|
1139
|
-
const de_DeadLetterConfig = (output, context) => {
|
|
1140
|
-
return {
|
|
1141
|
-
Arn: __expectString(output.Arn),
|
|
1142
|
-
};
|
|
1143
|
-
};
|
|
1144
|
-
const de_EcsParameters = (output, context) => {
|
|
1145
|
-
return {
|
|
1146
|
-
CapacityProviderStrategy: output.CapacityProviderStrategy != null
|
|
1147
|
-
? de_CapacityProviderStrategy(output.CapacityProviderStrategy, context)
|
|
1148
|
-
: undefined,
|
|
1149
|
-
EnableECSManagedTags: __expectBoolean(output.EnableECSManagedTags),
|
|
1150
|
-
EnableExecuteCommand: __expectBoolean(output.EnableExecuteCommand),
|
|
1151
|
-
Group: __expectString(output.Group),
|
|
1152
|
-
LaunchType: __expectString(output.LaunchType),
|
|
1153
|
-
NetworkConfiguration: output.NetworkConfiguration != null ? de_NetworkConfiguration(output.NetworkConfiguration, context) : undefined,
|
|
1154
|
-
PlacementConstraints: output.PlacementConstraints != null ? de_PlacementConstraints(output.PlacementConstraints, context) : undefined,
|
|
1155
|
-
PlacementStrategy: output.PlacementStrategy != null ? de_PlacementStrategies(output.PlacementStrategy, context) : undefined,
|
|
1156
|
-
PlatformVersion: __expectString(output.PlatformVersion),
|
|
1157
|
-
PropagateTags: __expectString(output.PropagateTags),
|
|
1158
|
-
ReferenceId: __expectString(output.ReferenceId),
|
|
1159
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
1160
|
-
TaskCount: __expectInt32(output.TaskCount),
|
|
1161
|
-
TaskDefinitionArn: __expectString(output.TaskDefinitionArn),
|
|
1162
|
-
};
|
|
1163
|
-
};
|
|
1164
|
-
const de_EventBridgeParameters = (output, context) => {
|
|
1165
|
-
return {
|
|
1166
|
-
DetailType: __expectString(output.DetailType),
|
|
1167
|
-
Source: __expectString(output.Source),
|
|
1168
|
-
};
|
|
1169
|
-
};
|
|
1170
|
-
const de_FlexibleTimeWindow = (output, context) => {
|
|
1171
|
-
return {
|
|
1172
|
-
MaximumWindowInMinutes: __expectInt32(output.MaximumWindowInMinutes),
|
|
1173
|
-
Mode: __expectString(output.Mode),
|
|
1174
|
-
};
|
|
1175
|
-
};
|
|
1176
|
-
const de_KinesisParameters = (output, context) => {
|
|
1177
|
-
return {
|
|
1178
|
-
PartitionKey: __expectString(output.PartitionKey),
|
|
1179
|
-
};
|
|
1180
|
-
};
|
|
1181
|
-
const de_NetworkConfiguration = (output, context) => {
|
|
1182
|
-
return {
|
|
1183
|
-
awsvpcConfiguration: output.awsvpcConfiguration != null ? de_AwsVpcConfiguration(output.awsvpcConfiguration, context) : undefined,
|
|
1184
|
-
};
|
|
1185
|
-
};
|
|
1186
|
-
const de_PlacementConstraint = (output, context) => {
|
|
1187
|
-
return {
|
|
1188
|
-
expression: __expectString(output.expression),
|
|
1189
|
-
type: __expectString(output.type),
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
|
-
const de_PlacementConstraints = (output, context) => {
|
|
1193
|
-
const retVal = (output || [])
|
|
1194
|
-
.filter((e) => e != null)
|
|
1195
|
-
.map((entry) => {
|
|
1196
|
-
if (entry === null) {
|
|
1197
|
-
return null;
|
|
1198
|
-
}
|
|
1199
|
-
return de_PlacementConstraint(entry, context);
|
|
1200
|
-
});
|
|
1201
|
-
return retVal;
|
|
1202
|
-
};
|
|
1203
|
-
const de_PlacementStrategies = (output, context) => {
|
|
1204
|
-
const retVal = (output || [])
|
|
1205
|
-
.filter((e) => e != null)
|
|
1206
|
-
.map((entry) => {
|
|
1207
|
-
if (entry === null) {
|
|
1208
|
-
return null;
|
|
1209
|
-
}
|
|
1210
|
-
return de_PlacementStrategy(entry, context);
|
|
1211
|
-
});
|
|
1212
|
-
return retVal;
|
|
1213
|
-
};
|
|
1214
|
-
const de_PlacementStrategy = (output, context) => {
|
|
1215
|
-
return {
|
|
1216
|
-
field: __expectString(output.field),
|
|
1217
|
-
type: __expectString(output.type),
|
|
1218
|
-
};
|
|
1219
|
-
};
|
|
1220
|
-
const de_RetryPolicy = (output, context) => {
|
|
1221
|
-
return {
|
|
1222
|
-
MaximumEventAgeInSeconds: __expectInt32(output.MaximumEventAgeInSeconds),
|
|
1223
|
-
MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts),
|
|
1224
|
-
};
|
|
1225
|
-
};
|
|
1226
|
-
const de_SageMakerPipelineParameter = (output, context) => {
|
|
1227
|
-
return {
|
|
1228
|
-
Name: __expectString(output.Name),
|
|
1229
|
-
Value: __expectString(output.Value),
|
|
1230
|
-
};
|
|
1231
|
-
};
|
|
1232
|
-
const de_SageMakerPipelineParameterList = (output, context) => {
|
|
1233
|
-
const retVal = (output || [])
|
|
1234
|
-
.filter((e) => e != null)
|
|
1235
|
-
.map((entry) => {
|
|
1236
|
-
if (entry === null) {
|
|
1237
|
-
return null;
|
|
1238
|
-
}
|
|
1239
|
-
return de_SageMakerPipelineParameter(entry, context);
|
|
1240
|
-
});
|
|
1241
|
-
return retVal;
|
|
1242
|
-
};
|
|
1243
|
-
const de_SageMakerPipelineParameters = (output, context) => {
|
|
1244
|
-
return {
|
|
1245
|
-
PipelineParameterList: output.PipelineParameterList != null
|
|
1246
|
-
? de_SageMakerPipelineParameterList(output.PipelineParameterList, context)
|
|
1247
|
-
: undefined,
|
|
1248
|
-
};
|
|
1249
|
-
};
|
|
1250
878
|
const de_ScheduleGroupList = (output, context) => {
|
|
1251
879
|
const retVal = (output || [])
|
|
1252
880
|
.filter((e) => e != null)
|
|
1253
881
|
.map((entry) => {
|
|
1254
|
-
if (entry === null) {
|
|
1255
|
-
return null;
|
|
1256
|
-
}
|
|
1257
882
|
return de_ScheduleGroupSummary(entry, context);
|
|
1258
883
|
});
|
|
1259
884
|
return retVal;
|
|
1260
885
|
};
|
|
1261
886
|
const de_ScheduleGroupSummary = (output, context) => {
|
|
1262
|
-
return {
|
|
1263
|
-
Arn: __expectString
|
|
1264
|
-
CreationDate:
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
: undefined,
|
|
1270
|
-
Name: __expectString(output.Name),
|
|
1271
|
-
State: __expectString(output.State),
|
|
1272
|
-
};
|
|
887
|
+
return take(output, {
|
|
888
|
+
Arn: __expectString,
|
|
889
|
+
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
890
|
+
LastModificationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
891
|
+
Name: __expectString,
|
|
892
|
+
State: __expectString,
|
|
893
|
+
});
|
|
1273
894
|
};
|
|
1274
895
|
const de_ScheduleList = (output, context) => {
|
|
1275
896
|
const retVal = (output || [])
|
|
1276
897
|
.filter((e) => e != null)
|
|
1277
898
|
.map((entry) => {
|
|
1278
|
-
if (entry === null) {
|
|
1279
|
-
return null;
|
|
1280
|
-
}
|
|
1281
899
|
return de_ScheduleSummary(entry, context);
|
|
1282
900
|
});
|
|
1283
901
|
return retVal;
|
|
1284
902
|
};
|
|
1285
903
|
const de_ScheduleSummary = (output, context) => {
|
|
1286
|
-
return {
|
|
1287
|
-
Arn: __expectString
|
|
1288
|
-
CreationDate:
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
: undefined,
|
|
1295
|
-
Name: __expectString(output.Name),
|
|
1296
|
-
State: __expectString(output.State),
|
|
1297
|
-
Target: output.Target != null ? de_TargetSummary(output.Target, context) : undefined,
|
|
1298
|
-
};
|
|
1299
|
-
};
|
|
1300
|
-
const de_SecurityGroups = (output, context) => {
|
|
1301
|
-
const retVal = (output || [])
|
|
1302
|
-
.filter((e) => e != null)
|
|
1303
|
-
.map((entry) => {
|
|
1304
|
-
if (entry === null) {
|
|
1305
|
-
return null;
|
|
1306
|
-
}
|
|
1307
|
-
return __expectString(entry);
|
|
1308
|
-
});
|
|
1309
|
-
return retVal;
|
|
1310
|
-
};
|
|
1311
|
-
const de_SqsParameters = (output, context) => {
|
|
1312
|
-
return {
|
|
1313
|
-
MessageGroupId: __expectString(output.MessageGroupId),
|
|
1314
|
-
};
|
|
1315
|
-
};
|
|
1316
|
-
const de_Subnets = (output, context) => {
|
|
1317
|
-
const retVal = (output || [])
|
|
1318
|
-
.filter((e) => e != null)
|
|
1319
|
-
.map((entry) => {
|
|
1320
|
-
if (entry === null) {
|
|
1321
|
-
return null;
|
|
1322
|
-
}
|
|
1323
|
-
return __expectString(entry);
|
|
1324
|
-
});
|
|
1325
|
-
return retVal;
|
|
1326
|
-
};
|
|
1327
|
-
const de_Tag = (output, context) => {
|
|
1328
|
-
return {
|
|
1329
|
-
Key: __expectString(output.Key),
|
|
1330
|
-
Value: __expectString(output.Value),
|
|
1331
|
-
};
|
|
1332
|
-
};
|
|
1333
|
-
const de_TagList = (output, context) => {
|
|
1334
|
-
const retVal = (output || [])
|
|
1335
|
-
.filter((e) => e != null)
|
|
1336
|
-
.map((entry) => {
|
|
1337
|
-
if (entry === null) {
|
|
1338
|
-
return null;
|
|
1339
|
-
}
|
|
1340
|
-
return de_Tag(entry, context);
|
|
1341
|
-
});
|
|
1342
|
-
return retVal;
|
|
1343
|
-
};
|
|
1344
|
-
const de_TagMap = (output, context) => {
|
|
1345
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1346
|
-
if (value === null) {
|
|
1347
|
-
return acc;
|
|
1348
|
-
}
|
|
1349
|
-
acc[key] = __expectString(value);
|
|
1350
|
-
return acc;
|
|
1351
|
-
}, {});
|
|
1352
|
-
};
|
|
1353
|
-
const de_Tags = (output, context) => {
|
|
1354
|
-
const retVal = (output || [])
|
|
1355
|
-
.filter((e) => e != null)
|
|
1356
|
-
.map((entry) => {
|
|
1357
|
-
if (entry === null) {
|
|
1358
|
-
return null;
|
|
1359
|
-
}
|
|
1360
|
-
return de_TagMap(entry, context);
|
|
904
|
+
return take(output, {
|
|
905
|
+
Arn: __expectString,
|
|
906
|
+
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
907
|
+
GroupName: __expectString,
|
|
908
|
+
LastModificationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
909
|
+
Name: __expectString,
|
|
910
|
+
State: __expectString,
|
|
911
|
+
Target: _json,
|
|
1361
912
|
});
|
|
1362
|
-
return retVal;
|
|
1363
|
-
};
|
|
1364
|
-
const de_Target = (output, context) => {
|
|
1365
|
-
return {
|
|
1366
|
-
Arn: __expectString(output.Arn),
|
|
1367
|
-
DeadLetterConfig: output.DeadLetterConfig != null ? de_DeadLetterConfig(output.DeadLetterConfig, context) : undefined,
|
|
1368
|
-
EcsParameters: output.EcsParameters != null ? de_EcsParameters(output.EcsParameters, context) : undefined,
|
|
1369
|
-
EventBridgeParameters: output.EventBridgeParameters != null
|
|
1370
|
-
? de_EventBridgeParameters(output.EventBridgeParameters, context)
|
|
1371
|
-
: undefined,
|
|
1372
|
-
Input: __expectString(output.Input),
|
|
1373
|
-
KinesisParameters: output.KinesisParameters != null ? de_KinesisParameters(output.KinesisParameters, context) : undefined,
|
|
1374
|
-
RetryPolicy: output.RetryPolicy != null ? de_RetryPolicy(output.RetryPolicy, context) : undefined,
|
|
1375
|
-
RoleArn: __expectString(output.RoleArn),
|
|
1376
|
-
SageMakerPipelineParameters: output.SageMakerPipelineParameters != null
|
|
1377
|
-
? de_SageMakerPipelineParameters(output.SageMakerPipelineParameters, context)
|
|
1378
|
-
: undefined,
|
|
1379
|
-
SqsParameters: output.SqsParameters != null ? de_SqsParameters(output.SqsParameters, context) : undefined,
|
|
1380
|
-
};
|
|
1381
|
-
};
|
|
1382
|
-
const de_TargetSummary = (output, context) => {
|
|
1383
|
-
return {
|
|
1384
|
-
Arn: __expectString(output.Arn),
|
|
1385
|
-
};
|
|
1386
913
|
};
|
|
1387
914
|
const deserializeMetadata = (output) => ({
|
|
1388
915
|
httpStatusCode: output.statusCode,
|