@aws-sdk/client-ssm-incidents 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 +389 -1059
- package/dist-es/protocols/Aws_restJson1.js +348 -1018
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
|
-
import { AccessDeniedException,
|
|
4
|
+
import { AccessDeniedException, Condition, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { SSMIncidentsServiceException as __BaseException } from "../models/SSMIncidentsServiceException";
|
|
6
6
|
export const se_CreateReplicationSetCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -10,11 +10,11 @@ export const se_CreateReplicationSetCommand = async (input, context) => {
|
|
|
10
10
|
};
|
|
11
11
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createReplicationSet";
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
clientToken:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
});
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
15
|
+
regions: (_) => _json(_),
|
|
16
|
+
tags: (_) => _json(_),
|
|
17
|
+
}));
|
|
18
18
|
return new __HttpRequest({
|
|
19
19
|
protocol,
|
|
20
20
|
hostname,
|
|
@@ -32,17 +32,17 @@ export const se_CreateResponsePlanCommand = async (input, context) => {
|
|
|
32
32
|
};
|
|
33
33
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createResponsePlan";
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
clientToken:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
});
|
|
35
|
+
body = JSON.stringify(take(input, {
|
|
36
|
+
actions: (_) => _json(_),
|
|
37
|
+
chatChannel: (_) => _json(_),
|
|
38
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
39
|
+
displayName: [],
|
|
40
|
+
engagements: (_) => _json(_),
|
|
41
|
+
incidentTemplate: (_) => _json(_),
|
|
42
|
+
integrations: (_) => _json(_),
|
|
43
|
+
name: [],
|
|
44
|
+
tags: (_) => _json(_),
|
|
45
|
+
}));
|
|
46
46
|
return new __HttpRequest({
|
|
47
47
|
protocol,
|
|
48
48
|
hostname,
|
|
@@ -60,14 +60,14 @@ export const se_CreateTimelineEventCommand = async (input, context) => {
|
|
|
60
60
|
};
|
|
61
61
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createTimelineEvent";
|
|
62
62
|
let body;
|
|
63
|
-
body = JSON.stringify({
|
|
64
|
-
clientToken:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
});
|
|
63
|
+
body = JSON.stringify(take(input, {
|
|
64
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
65
|
+
eventData: [],
|
|
66
|
+
eventReferences: (_) => _json(_),
|
|
67
|
+
eventTime: (_) => Math.round(_.getTime() / 1000),
|
|
68
|
+
eventType: [],
|
|
69
|
+
incidentRecordArn: [],
|
|
70
|
+
}));
|
|
71
71
|
return new __HttpRequest({
|
|
72
72
|
protocol,
|
|
73
73
|
hostname,
|
|
@@ -85,9 +85,9 @@ export const se_DeleteIncidentRecordCommand = async (input, context) => {
|
|
|
85
85
|
};
|
|
86
86
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteIncidentRecord";
|
|
87
87
|
let body;
|
|
88
|
-
body = JSON.stringify({
|
|
89
|
-
|
|
90
|
-
});
|
|
88
|
+
body = JSON.stringify(take(input, {
|
|
89
|
+
arn: [],
|
|
90
|
+
}));
|
|
91
91
|
return new __HttpRequest({
|
|
92
92
|
protocol,
|
|
93
93
|
hostname,
|
|
@@ -124,10 +124,10 @@ export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
|
124
124
|
};
|
|
125
125
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResourcePolicy";
|
|
126
126
|
let body;
|
|
127
|
-
body = JSON.stringify({
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
});
|
|
127
|
+
body = JSON.stringify(take(input, {
|
|
128
|
+
policyId: [],
|
|
129
|
+
resourceArn: [],
|
|
130
|
+
}));
|
|
131
131
|
return new __HttpRequest({
|
|
132
132
|
protocol,
|
|
133
133
|
hostname,
|
|
@@ -145,9 +145,9 @@ export const se_DeleteResponsePlanCommand = async (input, context) => {
|
|
|
145
145
|
};
|
|
146
146
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResponsePlan";
|
|
147
147
|
let body;
|
|
148
|
-
body = JSON.stringify({
|
|
149
|
-
|
|
150
|
-
});
|
|
148
|
+
body = JSON.stringify(take(input, {
|
|
149
|
+
arn: [],
|
|
150
|
+
}));
|
|
151
151
|
return new __HttpRequest({
|
|
152
152
|
protocol,
|
|
153
153
|
hostname,
|
|
@@ -165,10 +165,10 @@ export const se_DeleteTimelineEventCommand = async (input, context) => {
|
|
|
165
165
|
};
|
|
166
166
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteTimelineEvent";
|
|
167
167
|
let body;
|
|
168
|
-
body = JSON.stringify({
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
});
|
|
168
|
+
body = JSON.stringify(take(input, {
|
|
169
|
+
eventId: [],
|
|
170
|
+
incidentRecordArn: [],
|
|
171
|
+
}));
|
|
172
172
|
return new __HttpRequest({
|
|
173
173
|
protocol,
|
|
174
174
|
hostname,
|
|
@@ -227,10 +227,10 @@ export const se_GetResourcePoliciesCommand = async (input, context) => {
|
|
|
227
227
|
resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
|
|
228
228
|
});
|
|
229
229
|
let body;
|
|
230
|
-
body = JSON.stringify({
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
});
|
|
230
|
+
body = JSON.stringify(take(input, {
|
|
231
|
+
maxResults: [],
|
|
232
|
+
nextToken: [],
|
|
233
|
+
}));
|
|
234
234
|
return new __HttpRequest({
|
|
235
235
|
protocol,
|
|
236
236
|
hostname,
|
|
@@ -288,11 +288,11 @@ export const se_ListIncidentRecordsCommand = async (input, context) => {
|
|
|
288
288
|
};
|
|
289
289
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listIncidentRecords";
|
|
290
290
|
let body;
|
|
291
|
-
body = JSON.stringify({
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
});
|
|
291
|
+
body = JSON.stringify(take(input, {
|
|
292
|
+
filters: (_) => se_FilterList(_, context),
|
|
293
|
+
maxResults: [],
|
|
294
|
+
nextToken: [],
|
|
295
|
+
}));
|
|
296
296
|
return new __HttpRequest({
|
|
297
297
|
protocol,
|
|
298
298
|
hostname,
|
|
@@ -310,11 +310,11 @@ export const se_ListRelatedItemsCommand = async (input, context) => {
|
|
|
310
310
|
};
|
|
311
311
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listRelatedItems";
|
|
312
312
|
let body;
|
|
313
|
-
body = JSON.stringify({
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
});
|
|
313
|
+
body = JSON.stringify(take(input, {
|
|
314
|
+
incidentRecordArn: [],
|
|
315
|
+
maxResults: [],
|
|
316
|
+
nextToken: [],
|
|
317
|
+
}));
|
|
318
318
|
return new __HttpRequest({
|
|
319
319
|
protocol,
|
|
320
320
|
hostname,
|
|
@@ -332,10 +332,10 @@ export const se_ListReplicationSetsCommand = async (input, context) => {
|
|
|
332
332
|
};
|
|
333
333
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listReplicationSets";
|
|
334
334
|
let body;
|
|
335
|
-
body = JSON.stringify({
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
});
|
|
335
|
+
body = JSON.stringify(take(input, {
|
|
336
|
+
maxResults: [],
|
|
337
|
+
nextToken: [],
|
|
338
|
+
}));
|
|
339
339
|
return new __HttpRequest({
|
|
340
340
|
protocol,
|
|
341
341
|
hostname,
|
|
@@ -353,10 +353,10 @@ export const se_ListResponsePlansCommand = async (input, context) => {
|
|
|
353
353
|
};
|
|
354
354
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listResponsePlans";
|
|
355
355
|
let body;
|
|
356
|
-
body = JSON.stringify({
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
});
|
|
356
|
+
body = JSON.stringify(take(input, {
|
|
357
|
+
maxResults: [],
|
|
358
|
+
nextToken: [],
|
|
359
|
+
}));
|
|
360
360
|
return new __HttpRequest({
|
|
361
361
|
protocol,
|
|
362
362
|
hostname,
|
|
@@ -390,14 +390,14 @@ export const se_ListTimelineEventsCommand = async (input, context) => {
|
|
|
390
390
|
};
|
|
391
391
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listTimelineEvents";
|
|
392
392
|
let body;
|
|
393
|
-
body = JSON.stringify({
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
});
|
|
393
|
+
body = JSON.stringify(take(input, {
|
|
394
|
+
filters: (_) => se_FilterList(_, context),
|
|
395
|
+
incidentRecordArn: [],
|
|
396
|
+
maxResults: [],
|
|
397
|
+
nextToken: [],
|
|
398
|
+
sortBy: [],
|
|
399
|
+
sortOrder: [],
|
|
400
|
+
}));
|
|
401
401
|
return new __HttpRequest({
|
|
402
402
|
protocol,
|
|
403
403
|
hostname,
|
|
@@ -415,10 +415,10 @@ export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
|
415
415
|
};
|
|
416
416
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/putResourcePolicy";
|
|
417
417
|
let body;
|
|
418
|
-
body = JSON.stringify({
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
});
|
|
418
|
+
body = JSON.stringify(take(input, {
|
|
419
|
+
policy: [],
|
|
420
|
+
resourceArn: [],
|
|
421
|
+
}));
|
|
422
422
|
return new __HttpRequest({
|
|
423
423
|
protocol,
|
|
424
424
|
hostname,
|
|
@@ -436,14 +436,14 @@ export const se_StartIncidentCommand = async (input, context) => {
|
|
|
436
436
|
};
|
|
437
437
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startIncident";
|
|
438
438
|
let body;
|
|
439
|
-
body = JSON.stringify({
|
|
440
|
-
clientToken:
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
});
|
|
439
|
+
body = JSON.stringify(take(input, {
|
|
440
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
441
|
+
impact: [],
|
|
442
|
+
relatedItems: (_) => _json(_),
|
|
443
|
+
responsePlanArn: [],
|
|
444
|
+
title: [],
|
|
445
|
+
triggerDetails: (_) => se_TriggerDetails(_, context),
|
|
446
|
+
}));
|
|
447
447
|
return new __HttpRequest({
|
|
448
448
|
protocol,
|
|
449
449
|
hostname,
|
|
@@ -462,9 +462,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
462
462
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
463
463
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
464
464
|
let body;
|
|
465
|
-
body = JSON.stringify({
|
|
466
|
-
|
|
467
|
-
});
|
|
465
|
+
body = JSON.stringify(take(input, {
|
|
466
|
+
tags: (_) => _json(_),
|
|
467
|
+
}));
|
|
468
468
|
return new __HttpRequest({
|
|
469
469
|
protocol,
|
|
470
470
|
hostname,
|
|
@@ -505,11 +505,11 @@ export const se_UpdateDeletionProtectionCommand = async (input, context) => {
|
|
|
505
505
|
};
|
|
506
506
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateDeletionProtection";
|
|
507
507
|
let body;
|
|
508
|
-
body = JSON.stringify({
|
|
509
|
-
|
|
510
|
-
clientToken:
|
|
511
|
-
|
|
512
|
-
});
|
|
508
|
+
body = JSON.stringify(take(input, {
|
|
509
|
+
arn: [],
|
|
510
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
511
|
+
deletionProtected: [],
|
|
512
|
+
}));
|
|
513
513
|
return new __HttpRequest({
|
|
514
514
|
protocol,
|
|
515
515
|
hostname,
|
|
@@ -527,18 +527,16 @@ export const se_UpdateIncidentRecordCommand = async (input, context) => {
|
|
|
527
527
|
};
|
|
528
528
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateIncidentRecord";
|
|
529
529
|
let body;
|
|
530
|
-
body = JSON.stringify({
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
clientToken:
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
...(input.title != null && { title: input.title }),
|
|
541
|
-
});
|
|
530
|
+
body = JSON.stringify(take(input, {
|
|
531
|
+
arn: [],
|
|
532
|
+
chatChannel: (_) => _json(_),
|
|
533
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
534
|
+
impact: [],
|
|
535
|
+
notificationTargets: (_) => _json(_),
|
|
536
|
+
status: [],
|
|
537
|
+
summary: [],
|
|
538
|
+
title: [],
|
|
539
|
+
}));
|
|
542
540
|
return new __HttpRequest({
|
|
543
541
|
protocol,
|
|
544
542
|
hostname,
|
|
@@ -556,13 +554,11 @@ export const se_UpdateRelatedItemsCommand = async (input, context) => {
|
|
|
556
554
|
};
|
|
557
555
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateRelatedItems";
|
|
558
556
|
let body;
|
|
559
|
-
body = JSON.stringify({
|
|
560
|
-
clientToken:
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
}),
|
|
565
|
-
});
|
|
557
|
+
body = JSON.stringify(take(input, {
|
|
558
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
559
|
+
incidentRecordArn: [],
|
|
560
|
+
relatedItemsUpdate: (_) => _json(_),
|
|
561
|
+
}));
|
|
566
562
|
return new __HttpRequest({
|
|
567
563
|
protocol,
|
|
568
564
|
hostname,
|
|
@@ -580,11 +576,11 @@ export const se_UpdateReplicationSetCommand = async (input, context) => {
|
|
|
580
576
|
};
|
|
581
577
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateReplicationSet";
|
|
582
578
|
let body;
|
|
583
|
-
body = JSON.stringify({
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
clientToken:
|
|
587
|
-
});
|
|
579
|
+
body = JSON.stringify(take(input, {
|
|
580
|
+
actions: (_) => _json(_),
|
|
581
|
+
arn: [],
|
|
582
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
583
|
+
}));
|
|
588
584
|
return new __HttpRequest({
|
|
589
585
|
protocol,
|
|
590
586
|
hostname,
|
|
@@ -602,27 +598,21 @@ export const se_UpdateResponsePlanCommand = async (input, context) => {
|
|
|
602
598
|
};
|
|
603
599
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateResponsePlan";
|
|
604
600
|
let body;
|
|
605
|
-
body = JSON.stringify({
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
clientToken:
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
...(input.incidentTemplateTags != null && {
|
|
621
|
-
incidentTemplateTags: se_TagMapUpdate(input.incidentTemplateTags, context),
|
|
622
|
-
}),
|
|
623
|
-
...(input.incidentTemplateTitle != null && { incidentTemplateTitle: input.incidentTemplateTitle }),
|
|
624
|
-
...(input.integrations != null && { integrations: se_Integrations(input.integrations, context) }),
|
|
625
|
-
});
|
|
601
|
+
body = JSON.stringify(take(input, {
|
|
602
|
+
actions: (_) => _json(_),
|
|
603
|
+
arn: [],
|
|
604
|
+
chatChannel: (_) => _json(_),
|
|
605
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
606
|
+
displayName: [],
|
|
607
|
+
engagements: (_) => _json(_),
|
|
608
|
+
incidentTemplateDedupeString: [],
|
|
609
|
+
incidentTemplateImpact: [],
|
|
610
|
+
incidentTemplateNotificationTargets: (_) => _json(_),
|
|
611
|
+
incidentTemplateSummary: [],
|
|
612
|
+
incidentTemplateTags: (_) => _json(_),
|
|
613
|
+
incidentTemplateTitle: [],
|
|
614
|
+
integrations: (_) => _json(_),
|
|
615
|
+
}));
|
|
626
616
|
return new __HttpRequest({
|
|
627
617
|
protocol,
|
|
628
618
|
hostname,
|
|
@@ -640,15 +630,15 @@ export const se_UpdateTimelineEventCommand = async (input, context) => {
|
|
|
640
630
|
};
|
|
641
631
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateTimelineEvent";
|
|
642
632
|
let body;
|
|
643
|
-
body = JSON.stringify({
|
|
644
|
-
clientToken:
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
});
|
|
633
|
+
body = JSON.stringify(take(input, {
|
|
634
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
635
|
+
eventData: [],
|
|
636
|
+
eventId: [],
|
|
637
|
+
eventReferences: (_) => _json(_),
|
|
638
|
+
eventTime: (_) => Math.round(_.getTime() / 1000),
|
|
639
|
+
eventType: [],
|
|
640
|
+
incidentRecordArn: [],
|
|
641
|
+
}));
|
|
652
642
|
return new __HttpRequest({
|
|
653
643
|
protocol,
|
|
654
644
|
hostname,
|
|
@@ -667,9 +657,10 @@ export const de_CreateReplicationSetCommand = async (output, context) => {
|
|
|
667
657
|
$metadata: deserializeMetadata(output),
|
|
668
658
|
});
|
|
669
659
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
}
|
|
660
|
+
const doc = take(data, {
|
|
661
|
+
arn: __expectString,
|
|
662
|
+
});
|
|
663
|
+
Object.assign(contents, doc);
|
|
673
664
|
return contents;
|
|
674
665
|
};
|
|
675
666
|
const de_CreateReplicationSetCommandError = async (output, context) => {
|
|
@@ -699,10 +690,9 @@ const de_CreateReplicationSetCommandError = async (output, context) => {
|
|
|
699
690
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
700
691
|
default:
|
|
701
692
|
const parsedBody = parsedOutput.body;
|
|
702
|
-
throwDefaultError({
|
|
693
|
+
return throwDefaultError({
|
|
703
694
|
output,
|
|
704
695
|
parsedBody,
|
|
705
|
-
exceptionCtor: __BaseException,
|
|
706
696
|
errorCode,
|
|
707
697
|
});
|
|
708
698
|
}
|
|
@@ -715,9 +705,10 @@ export const de_CreateResponsePlanCommand = async (output, context) => {
|
|
|
715
705
|
$metadata: deserializeMetadata(output),
|
|
716
706
|
});
|
|
717
707
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
}
|
|
708
|
+
const doc = take(data, {
|
|
709
|
+
arn: __expectString,
|
|
710
|
+
});
|
|
711
|
+
Object.assign(contents, doc);
|
|
721
712
|
return contents;
|
|
722
713
|
};
|
|
723
714
|
const de_CreateResponsePlanCommandError = async (output, context) => {
|
|
@@ -747,10 +738,9 @@ const de_CreateResponsePlanCommandError = async (output, context) => {
|
|
|
747
738
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
748
739
|
default:
|
|
749
740
|
const parsedBody = parsedOutput.body;
|
|
750
|
-
throwDefaultError({
|
|
741
|
+
return throwDefaultError({
|
|
751
742
|
output,
|
|
752
743
|
parsedBody,
|
|
753
|
-
exceptionCtor: __BaseException,
|
|
754
744
|
errorCode,
|
|
755
745
|
});
|
|
756
746
|
}
|
|
@@ -763,12 +753,11 @@ export const de_CreateTimelineEventCommand = async (output, context) => {
|
|
|
763
753
|
$metadata: deserializeMetadata(output),
|
|
764
754
|
});
|
|
765
755
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}
|
|
756
|
+
const doc = take(data, {
|
|
757
|
+
eventId: __expectString,
|
|
758
|
+
incidentRecordArn: __expectString,
|
|
759
|
+
});
|
|
760
|
+
Object.assign(contents, doc);
|
|
772
761
|
return contents;
|
|
773
762
|
};
|
|
774
763
|
const de_CreateTimelineEventCommandError = async (output, context) => {
|
|
@@ -798,10 +787,9 @@ const de_CreateTimelineEventCommandError = async (output, context) => {
|
|
|
798
787
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
799
788
|
default:
|
|
800
789
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
throwDefaultError({
|
|
790
|
+
return throwDefaultError({
|
|
802
791
|
output,
|
|
803
792
|
parsedBody,
|
|
804
|
-
exceptionCtor: __BaseException,
|
|
805
793
|
errorCode,
|
|
806
794
|
});
|
|
807
795
|
}
|
|
@@ -837,10 +825,9 @@ const de_DeleteIncidentRecordCommandError = async (output, context) => {
|
|
|
837
825
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
838
826
|
default:
|
|
839
827
|
const parsedBody = parsedOutput.body;
|
|
840
|
-
throwDefaultError({
|
|
828
|
+
return throwDefaultError({
|
|
841
829
|
output,
|
|
842
830
|
parsedBody,
|
|
843
|
-
exceptionCtor: __BaseException,
|
|
844
831
|
errorCode,
|
|
845
832
|
});
|
|
846
833
|
}
|
|
@@ -879,10 +866,9 @@ const de_DeleteReplicationSetCommandError = async (output, context) => {
|
|
|
879
866
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
880
867
|
default:
|
|
881
868
|
const parsedBody = parsedOutput.body;
|
|
882
|
-
throwDefaultError({
|
|
869
|
+
return throwDefaultError({
|
|
883
870
|
output,
|
|
884
871
|
parsedBody,
|
|
885
|
-
exceptionCtor: __BaseException,
|
|
886
872
|
errorCode,
|
|
887
873
|
});
|
|
888
874
|
}
|
|
@@ -921,10 +907,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
921
907
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
922
908
|
default:
|
|
923
909
|
const parsedBody = parsedOutput.body;
|
|
924
|
-
throwDefaultError({
|
|
910
|
+
return throwDefaultError({
|
|
925
911
|
output,
|
|
926
912
|
parsedBody,
|
|
927
|
-
exceptionCtor: __BaseException,
|
|
928
913
|
errorCode,
|
|
929
914
|
});
|
|
930
915
|
}
|
|
@@ -960,10 +945,9 @@ const de_DeleteResponsePlanCommandError = async (output, context) => {
|
|
|
960
945
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
961
946
|
default:
|
|
962
947
|
const parsedBody = parsedOutput.body;
|
|
963
|
-
throwDefaultError({
|
|
948
|
+
return throwDefaultError({
|
|
964
949
|
output,
|
|
965
950
|
parsedBody,
|
|
966
|
-
exceptionCtor: __BaseException,
|
|
967
951
|
errorCode,
|
|
968
952
|
});
|
|
969
953
|
}
|
|
@@ -999,10 +983,9 @@ const de_DeleteTimelineEventCommandError = async (output, context) => {
|
|
|
999
983
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1000
984
|
default:
|
|
1001
985
|
const parsedBody = parsedOutput.body;
|
|
1002
|
-
throwDefaultError({
|
|
986
|
+
return throwDefaultError({
|
|
1003
987
|
output,
|
|
1004
988
|
parsedBody,
|
|
1005
|
-
exceptionCtor: __BaseException,
|
|
1006
989
|
errorCode,
|
|
1007
990
|
});
|
|
1008
991
|
}
|
|
@@ -1015,9 +998,10 @@ export const de_GetIncidentRecordCommand = async (output, context) => {
|
|
|
1015
998
|
$metadata: deserializeMetadata(output),
|
|
1016
999
|
});
|
|
1017
1000
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
}
|
|
1001
|
+
const doc = take(data, {
|
|
1002
|
+
incidentRecord: (_) => de_IncidentRecord(_, context),
|
|
1003
|
+
});
|
|
1004
|
+
Object.assign(contents, doc);
|
|
1021
1005
|
return contents;
|
|
1022
1006
|
};
|
|
1023
1007
|
const de_GetIncidentRecordCommandError = async (output, context) => {
|
|
@@ -1044,10 +1028,9 @@ const de_GetIncidentRecordCommandError = async (output, context) => {
|
|
|
1044
1028
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1045
1029
|
default:
|
|
1046
1030
|
const parsedBody = parsedOutput.body;
|
|
1047
|
-
throwDefaultError({
|
|
1031
|
+
return throwDefaultError({
|
|
1048
1032
|
output,
|
|
1049
1033
|
parsedBody,
|
|
1050
|
-
exceptionCtor: __BaseException,
|
|
1051
1034
|
errorCode,
|
|
1052
1035
|
});
|
|
1053
1036
|
}
|
|
@@ -1060,9 +1043,10 @@ export const de_GetReplicationSetCommand = async (output, context) => {
|
|
|
1060
1043
|
$metadata: deserializeMetadata(output),
|
|
1061
1044
|
});
|
|
1062
1045
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
}
|
|
1046
|
+
const doc = take(data, {
|
|
1047
|
+
replicationSet: (_) => de_ReplicationSet(_, context),
|
|
1048
|
+
});
|
|
1049
|
+
Object.assign(contents, doc);
|
|
1066
1050
|
return contents;
|
|
1067
1051
|
};
|
|
1068
1052
|
const de_GetReplicationSetCommandError = async (output, context) => {
|
|
@@ -1089,10 +1073,9 @@ const de_GetReplicationSetCommandError = async (output, context) => {
|
|
|
1089
1073
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1090
1074
|
default:
|
|
1091
1075
|
const parsedBody = parsedOutput.body;
|
|
1092
|
-
throwDefaultError({
|
|
1076
|
+
return throwDefaultError({
|
|
1093
1077
|
output,
|
|
1094
1078
|
parsedBody,
|
|
1095
|
-
exceptionCtor: __BaseException,
|
|
1096
1079
|
errorCode,
|
|
1097
1080
|
});
|
|
1098
1081
|
}
|
|
@@ -1105,12 +1088,11 @@ export const de_GetResourcePoliciesCommand = async (output, context) => {
|
|
|
1105
1088
|
$metadata: deserializeMetadata(output),
|
|
1106
1089
|
});
|
|
1107
1090
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
}
|
|
1091
|
+
const doc = take(data, {
|
|
1092
|
+
nextToken: __expectString,
|
|
1093
|
+
resourcePolicies: _json,
|
|
1094
|
+
});
|
|
1095
|
+
Object.assign(contents, doc);
|
|
1114
1096
|
return contents;
|
|
1115
1097
|
};
|
|
1116
1098
|
const de_GetResourcePoliciesCommandError = async (output, context) => {
|
|
@@ -1137,10 +1119,9 @@ const de_GetResourcePoliciesCommandError = async (output, context) => {
|
|
|
1137
1119
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1138
1120
|
default:
|
|
1139
1121
|
const parsedBody = parsedOutput.body;
|
|
1140
|
-
throwDefaultError({
|
|
1122
|
+
return throwDefaultError({
|
|
1141
1123
|
output,
|
|
1142
1124
|
parsedBody,
|
|
1143
|
-
exceptionCtor: __BaseException,
|
|
1144
1125
|
errorCode,
|
|
1145
1126
|
});
|
|
1146
1127
|
}
|
|
@@ -1153,30 +1134,17 @@ export const de_GetResponsePlanCommand = async (output, context) => {
|
|
|
1153
1134
|
$metadata: deserializeMetadata(output),
|
|
1154
1135
|
});
|
|
1155
1136
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
}
|
|
1168
|
-
if (data.engagements != null) {
|
|
1169
|
-
contents.engagements = de_EngagementSet(data.engagements, context);
|
|
1170
|
-
}
|
|
1171
|
-
if (data.incidentTemplate != null) {
|
|
1172
|
-
contents.incidentTemplate = de_IncidentTemplate(data.incidentTemplate, context);
|
|
1173
|
-
}
|
|
1174
|
-
if (data.integrations != null) {
|
|
1175
|
-
contents.integrations = de_Integrations(data.integrations, context);
|
|
1176
|
-
}
|
|
1177
|
-
if (data.name != null) {
|
|
1178
|
-
contents.name = __expectString(data.name);
|
|
1179
|
-
}
|
|
1137
|
+
const doc = take(data, {
|
|
1138
|
+
actions: _json,
|
|
1139
|
+
arn: __expectString,
|
|
1140
|
+
chatChannel: (_) => _json(__expectUnion(_)),
|
|
1141
|
+
displayName: __expectString,
|
|
1142
|
+
engagements: _json,
|
|
1143
|
+
incidentTemplate: _json,
|
|
1144
|
+
integrations: _json,
|
|
1145
|
+
name: __expectString,
|
|
1146
|
+
});
|
|
1147
|
+
Object.assign(contents, doc);
|
|
1180
1148
|
return contents;
|
|
1181
1149
|
};
|
|
1182
1150
|
const de_GetResponsePlanCommandError = async (output, context) => {
|
|
@@ -1203,10 +1171,9 @@ const de_GetResponsePlanCommandError = async (output, context) => {
|
|
|
1203
1171
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1204
1172
|
default:
|
|
1205
1173
|
const parsedBody = parsedOutput.body;
|
|
1206
|
-
throwDefaultError({
|
|
1174
|
+
return throwDefaultError({
|
|
1207
1175
|
output,
|
|
1208
1176
|
parsedBody,
|
|
1209
|
-
exceptionCtor: __BaseException,
|
|
1210
1177
|
errorCode,
|
|
1211
1178
|
});
|
|
1212
1179
|
}
|
|
@@ -1219,9 +1186,10 @@ export const de_GetTimelineEventCommand = async (output, context) => {
|
|
|
1219
1186
|
$metadata: deserializeMetadata(output),
|
|
1220
1187
|
});
|
|
1221
1188
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
}
|
|
1189
|
+
const doc = take(data, {
|
|
1190
|
+
event: (_) => de_TimelineEvent(_, context),
|
|
1191
|
+
});
|
|
1192
|
+
Object.assign(contents, doc);
|
|
1225
1193
|
return contents;
|
|
1226
1194
|
};
|
|
1227
1195
|
const de_GetTimelineEventCommandError = async (output, context) => {
|
|
@@ -1248,10 +1216,9 @@ const de_GetTimelineEventCommandError = async (output, context) => {
|
|
|
1248
1216
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1249
1217
|
default:
|
|
1250
1218
|
const parsedBody = parsedOutput.body;
|
|
1251
|
-
throwDefaultError({
|
|
1219
|
+
return throwDefaultError({
|
|
1252
1220
|
output,
|
|
1253
1221
|
parsedBody,
|
|
1254
|
-
exceptionCtor: __BaseException,
|
|
1255
1222
|
errorCode,
|
|
1256
1223
|
});
|
|
1257
1224
|
}
|
|
@@ -1264,12 +1231,11 @@ export const de_ListIncidentRecordsCommand = async (output, context) => {
|
|
|
1264
1231
|
$metadata: deserializeMetadata(output),
|
|
1265
1232
|
});
|
|
1266
1233
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
}
|
|
1234
|
+
const doc = take(data, {
|
|
1235
|
+
incidentRecordSummaries: (_) => de_IncidentRecordSummaryList(_, context),
|
|
1236
|
+
nextToken: __expectString,
|
|
1237
|
+
});
|
|
1238
|
+
Object.assign(contents, doc);
|
|
1273
1239
|
return contents;
|
|
1274
1240
|
};
|
|
1275
1241
|
const de_ListIncidentRecordsCommandError = async (output, context) => {
|
|
@@ -1293,10 +1259,9 @@ const de_ListIncidentRecordsCommandError = async (output, context) => {
|
|
|
1293
1259
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1294
1260
|
default:
|
|
1295
1261
|
const parsedBody = parsedOutput.body;
|
|
1296
|
-
throwDefaultError({
|
|
1262
|
+
return throwDefaultError({
|
|
1297
1263
|
output,
|
|
1298
1264
|
parsedBody,
|
|
1299
|
-
exceptionCtor: __BaseException,
|
|
1300
1265
|
errorCode,
|
|
1301
1266
|
});
|
|
1302
1267
|
}
|
|
@@ -1309,12 +1274,11 @@ export const de_ListRelatedItemsCommand = async (output, context) => {
|
|
|
1309
1274
|
$metadata: deserializeMetadata(output),
|
|
1310
1275
|
});
|
|
1311
1276
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
}
|
|
1277
|
+
const doc = take(data, {
|
|
1278
|
+
nextToken: __expectString,
|
|
1279
|
+
relatedItems: _json,
|
|
1280
|
+
});
|
|
1281
|
+
Object.assign(contents, doc);
|
|
1318
1282
|
return contents;
|
|
1319
1283
|
};
|
|
1320
1284
|
const de_ListRelatedItemsCommandError = async (output, context) => {
|
|
@@ -1338,10 +1302,9 @@ const de_ListRelatedItemsCommandError = async (output, context) => {
|
|
|
1338
1302
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1339
1303
|
default:
|
|
1340
1304
|
const parsedBody = parsedOutput.body;
|
|
1341
|
-
throwDefaultError({
|
|
1305
|
+
return throwDefaultError({
|
|
1342
1306
|
output,
|
|
1343
1307
|
parsedBody,
|
|
1344
|
-
exceptionCtor: __BaseException,
|
|
1345
1308
|
errorCode,
|
|
1346
1309
|
});
|
|
1347
1310
|
}
|
|
@@ -1354,12 +1317,11 @@ export const de_ListReplicationSetsCommand = async (output, context) => {
|
|
|
1354
1317
|
$metadata: deserializeMetadata(output),
|
|
1355
1318
|
});
|
|
1356
1319
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
}
|
|
1320
|
+
const doc = take(data, {
|
|
1321
|
+
nextToken: __expectString,
|
|
1322
|
+
replicationSetArns: _json,
|
|
1323
|
+
});
|
|
1324
|
+
Object.assign(contents, doc);
|
|
1363
1325
|
return contents;
|
|
1364
1326
|
};
|
|
1365
1327
|
const de_ListReplicationSetsCommandError = async (output, context) => {
|
|
@@ -1383,10 +1345,9 @@ const de_ListReplicationSetsCommandError = async (output, context) => {
|
|
|
1383
1345
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1384
1346
|
default:
|
|
1385
1347
|
const parsedBody = parsedOutput.body;
|
|
1386
|
-
throwDefaultError({
|
|
1348
|
+
return throwDefaultError({
|
|
1387
1349
|
output,
|
|
1388
1350
|
parsedBody,
|
|
1389
|
-
exceptionCtor: __BaseException,
|
|
1390
1351
|
errorCode,
|
|
1391
1352
|
});
|
|
1392
1353
|
}
|
|
@@ -1399,12 +1360,11 @@ export const de_ListResponsePlansCommand = async (output, context) => {
|
|
|
1399
1360
|
$metadata: deserializeMetadata(output),
|
|
1400
1361
|
});
|
|
1401
1362
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
}
|
|
1363
|
+
const doc = take(data, {
|
|
1364
|
+
nextToken: __expectString,
|
|
1365
|
+
responsePlanSummaries: _json,
|
|
1366
|
+
});
|
|
1367
|
+
Object.assign(contents, doc);
|
|
1408
1368
|
return contents;
|
|
1409
1369
|
};
|
|
1410
1370
|
const de_ListResponsePlansCommandError = async (output, context) => {
|
|
@@ -1428,10 +1388,9 @@ const de_ListResponsePlansCommandError = async (output, context) => {
|
|
|
1428
1388
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1429
1389
|
default:
|
|
1430
1390
|
const parsedBody = parsedOutput.body;
|
|
1431
|
-
throwDefaultError({
|
|
1391
|
+
return throwDefaultError({
|
|
1432
1392
|
output,
|
|
1433
1393
|
parsedBody,
|
|
1434
|
-
exceptionCtor: __BaseException,
|
|
1435
1394
|
errorCode,
|
|
1436
1395
|
});
|
|
1437
1396
|
}
|
|
@@ -1444,9 +1403,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1444
1403
|
$metadata: deserializeMetadata(output),
|
|
1445
1404
|
});
|
|
1446
1405
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
}
|
|
1406
|
+
const doc = take(data, {
|
|
1407
|
+
tags: _json,
|
|
1408
|
+
});
|
|
1409
|
+
Object.assign(contents, doc);
|
|
1450
1410
|
return contents;
|
|
1451
1411
|
};
|
|
1452
1412
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1473,10 +1433,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1473
1433
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1474
1434
|
default:
|
|
1475
1435
|
const parsedBody = parsedOutput.body;
|
|
1476
|
-
throwDefaultError({
|
|
1436
|
+
return throwDefaultError({
|
|
1477
1437
|
output,
|
|
1478
1438
|
parsedBody,
|
|
1479
|
-
exceptionCtor: __BaseException,
|
|
1480
1439
|
errorCode,
|
|
1481
1440
|
});
|
|
1482
1441
|
}
|
|
@@ -1489,12 +1448,11 @@ export const de_ListTimelineEventsCommand = async (output, context) => {
|
|
|
1489
1448
|
$metadata: deserializeMetadata(output),
|
|
1490
1449
|
});
|
|
1491
1450
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
}
|
|
1451
|
+
const doc = take(data, {
|
|
1452
|
+
eventSummaries: (_) => de_EventSummaryList(_, context),
|
|
1453
|
+
nextToken: __expectString,
|
|
1454
|
+
});
|
|
1455
|
+
Object.assign(contents, doc);
|
|
1498
1456
|
return contents;
|
|
1499
1457
|
};
|
|
1500
1458
|
const de_ListTimelineEventsCommandError = async (output, context) => {
|
|
@@ -1518,10 +1476,9 @@ const de_ListTimelineEventsCommandError = async (output, context) => {
|
|
|
1518
1476
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1519
1477
|
default:
|
|
1520
1478
|
const parsedBody = parsedOutput.body;
|
|
1521
|
-
throwDefaultError({
|
|
1479
|
+
return throwDefaultError({
|
|
1522
1480
|
output,
|
|
1523
1481
|
parsedBody,
|
|
1524
|
-
exceptionCtor: __BaseException,
|
|
1525
1482
|
errorCode,
|
|
1526
1483
|
});
|
|
1527
1484
|
}
|
|
@@ -1534,9 +1491,10 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
1534
1491
|
$metadata: deserializeMetadata(output),
|
|
1535
1492
|
});
|
|
1536
1493
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
}
|
|
1494
|
+
const doc = take(data, {
|
|
1495
|
+
policyId: __expectString,
|
|
1496
|
+
});
|
|
1497
|
+
Object.assign(contents, doc);
|
|
1540
1498
|
return contents;
|
|
1541
1499
|
};
|
|
1542
1500
|
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
@@ -1563,10 +1521,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
1563
1521
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1564
1522
|
default:
|
|
1565
1523
|
const parsedBody = parsedOutput.body;
|
|
1566
|
-
throwDefaultError({
|
|
1524
|
+
return throwDefaultError({
|
|
1567
1525
|
output,
|
|
1568
1526
|
parsedBody,
|
|
1569
|
-
exceptionCtor: __BaseException,
|
|
1570
1527
|
errorCode,
|
|
1571
1528
|
});
|
|
1572
1529
|
}
|
|
@@ -1579,9 +1536,10 @@ export const de_StartIncidentCommand = async (output, context) => {
|
|
|
1579
1536
|
$metadata: deserializeMetadata(output),
|
|
1580
1537
|
});
|
|
1581
1538
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
}
|
|
1539
|
+
const doc = take(data, {
|
|
1540
|
+
incidentRecordArn: __expectString,
|
|
1541
|
+
});
|
|
1542
|
+
Object.assign(contents, doc);
|
|
1585
1543
|
return contents;
|
|
1586
1544
|
};
|
|
1587
1545
|
const de_StartIncidentCommandError = async (output, context) => {
|
|
@@ -1611,10 +1569,9 @@ const de_StartIncidentCommandError = async (output, context) => {
|
|
|
1611
1569
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1612
1570
|
default:
|
|
1613
1571
|
const parsedBody = parsedOutput.body;
|
|
1614
|
-
throwDefaultError({
|
|
1572
|
+
return throwDefaultError({
|
|
1615
1573
|
output,
|
|
1616
1574
|
parsedBody,
|
|
1617
|
-
exceptionCtor: __BaseException,
|
|
1618
1575
|
errorCode,
|
|
1619
1576
|
});
|
|
1620
1577
|
}
|
|
@@ -1659,10 +1616,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1659
1616
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1660
1617
|
default:
|
|
1661
1618
|
const parsedBody = parsedOutput.body;
|
|
1662
|
-
throwDefaultError({
|
|
1619
|
+
return throwDefaultError({
|
|
1663
1620
|
output,
|
|
1664
1621
|
parsedBody,
|
|
1665
|
-
exceptionCtor: __BaseException,
|
|
1666
1622
|
errorCode,
|
|
1667
1623
|
});
|
|
1668
1624
|
}
|
|
@@ -1704,10 +1660,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1704
1660
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1705
1661
|
default:
|
|
1706
1662
|
const parsedBody = parsedOutput.body;
|
|
1707
|
-
throwDefaultError({
|
|
1663
|
+
return throwDefaultError({
|
|
1708
1664
|
output,
|
|
1709
1665
|
parsedBody,
|
|
1710
|
-
exceptionCtor: __BaseException,
|
|
1711
1666
|
errorCode,
|
|
1712
1667
|
});
|
|
1713
1668
|
}
|
|
@@ -1746,10 +1701,9 @@ const de_UpdateDeletionProtectionCommandError = async (output, context) => {
|
|
|
1746
1701
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1747
1702
|
default:
|
|
1748
1703
|
const parsedBody = parsedOutput.body;
|
|
1749
|
-
throwDefaultError({
|
|
1704
|
+
return throwDefaultError({
|
|
1750
1705
|
output,
|
|
1751
1706
|
parsedBody,
|
|
1752
|
-
exceptionCtor: __BaseException,
|
|
1753
1707
|
errorCode,
|
|
1754
1708
|
});
|
|
1755
1709
|
}
|
|
@@ -1791,10 +1745,9 @@ const de_UpdateIncidentRecordCommandError = async (output, context) => {
|
|
|
1791
1745
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1792
1746
|
default:
|
|
1793
1747
|
const parsedBody = parsedOutput.body;
|
|
1794
|
-
throwDefaultError({
|
|
1748
|
+
return throwDefaultError({
|
|
1795
1749
|
output,
|
|
1796
1750
|
parsedBody,
|
|
1797
|
-
exceptionCtor: __BaseException,
|
|
1798
1751
|
errorCode,
|
|
1799
1752
|
});
|
|
1800
1753
|
}
|
|
@@ -1836,10 +1789,9 @@ const de_UpdateRelatedItemsCommandError = async (output, context) => {
|
|
|
1836
1789
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1837
1790
|
default:
|
|
1838
1791
|
const parsedBody = parsedOutput.body;
|
|
1839
|
-
throwDefaultError({
|
|
1792
|
+
return throwDefaultError({
|
|
1840
1793
|
output,
|
|
1841
1794
|
parsedBody,
|
|
1842
|
-
exceptionCtor: __BaseException,
|
|
1843
1795
|
errorCode,
|
|
1844
1796
|
});
|
|
1845
1797
|
}
|
|
@@ -1881,10 +1833,9 @@ const de_UpdateReplicationSetCommandError = async (output, context) => {
|
|
|
1881
1833
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1882
1834
|
default:
|
|
1883
1835
|
const parsedBody = parsedOutput.body;
|
|
1884
|
-
throwDefaultError({
|
|
1836
|
+
return throwDefaultError({
|
|
1885
1837
|
output,
|
|
1886
1838
|
parsedBody,
|
|
1887
|
-
exceptionCtor: __BaseException,
|
|
1888
1839
|
errorCode,
|
|
1889
1840
|
});
|
|
1890
1841
|
}
|
|
@@ -1926,10 +1877,9 @@ const de_UpdateResponsePlanCommandError = async (output, context) => {
|
|
|
1926
1877
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1927
1878
|
default:
|
|
1928
1879
|
const parsedBody = parsedOutput.body;
|
|
1929
|
-
throwDefaultError({
|
|
1880
|
+
return throwDefaultError({
|
|
1930
1881
|
output,
|
|
1931
1882
|
parsedBody,
|
|
1932
|
-
exceptionCtor: __BaseException,
|
|
1933
1883
|
errorCode,
|
|
1934
1884
|
});
|
|
1935
1885
|
}
|
|
@@ -1971,21 +1921,21 @@ const de_UpdateTimelineEventCommandError = async (output, context) => {
|
|
|
1971
1921
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1972
1922
|
default:
|
|
1973
1923
|
const parsedBody = parsedOutput.body;
|
|
1974
|
-
throwDefaultError({
|
|
1924
|
+
return throwDefaultError({
|
|
1975
1925
|
output,
|
|
1976
1926
|
parsedBody,
|
|
1977
|
-
exceptionCtor: __BaseException,
|
|
1978
1927
|
errorCode,
|
|
1979
1928
|
});
|
|
1980
1929
|
}
|
|
1981
1930
|
};
|
|
1982
|
-
const
|
|
1931
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1983
1932
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1984
1933
|
const contents = map({});
|
|
1985
1934
|
const data = parsedOutput.body;
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
}
|
|
1935
|
+
const doc = take(data, {
|
|
1936
|
+
message: __expectString,
|
|
1937
|
+
});
|
|
1938
|
+
Object.assign(contents, doc);
|
|
1989
1939
|
const exception = new AccessDeniedException({
|
|
1990
1940
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1991
1941
|
...contents,
|
|
@@ -1995,18 +1945,13 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1995
1945
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1996
1946
|
const contents = map({});
|
|
1997
1947
|
const data = parsedOutput.body;
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
2006
|
-
}
|
|
2007
|
-
if (data.retryAfter != null) {
|
|
2008
|
-
contents.retryAfter = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.retryAfter)));
|
|
2009
|
-
}
|
|
1948
|
+
const doc = take(data, {
|
|
1949
|
+
message: __expectString,
|
|
1950
|
+
resourceIdentifier: __expectString,
|
|
1951
|
+
resourceType: __expectString,
|
|
1952
|
+
retryAfter: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1953
|
+
});
|
|
1954
|
+
Object.assign(contents, doc);
|
|
2010
1955
|
const exception = new ConflictException({
|
|
2011
1956
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2012
1957
|
...contents,
|
|
@@ -2016,9 +1961,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2016
1961
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2017
1962
|
const contents = map({});
|
|
2018
1963
|
const data = parsedOutput.body;
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
}
|
|
1964
|
+
const doc = take(data, {
|
|
1965
|
+
message: __expectString,
|
|
1966
|
+
});
|
|
1967
|
+
Object.assign(contents, doc);
|
|
2022
1968
|
const exception = new InternalServerException({
|
|
2023
1969
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2024
1970
|
...contents,
|
|
@@ -2028,15 +1974,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2028
1974
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2029
1975
|
const contents = map({});
|
|
2030
1976
|
const data = parsedOutput.body;
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
if (data.resourceType != null) {
|
|
2038
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
2039
|
-
}
|
|
1977
|
+
const doc = take(data, {
|
|
1978
|
+
message: __expectString,
|
|
1979
|
+
resourceIdentifier: __expectString,
|
|
1980
|
+
resourceType: __expectString,
|
|
1981
|
+
});
|
|
1982
|
+
Object.assign(contents, doc);
|
|
2040
1983
|
const exception = new ResourceNotFoundException({
|
|
2041
1984
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2042
1985
|
...contents,
|
|
@@ -2046,21 +1989,14 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2046
1989
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2047
1990
|
const contents = map({});
|
|
2048
1991
|
const data = parsedOutput.body;
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
}
|
|
2058
|
-
if (data.resourceType != null) {
|
|
2059
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
2060
|
-
}
|
|
2061
|
-
if (data.serviceCode != null) {
|
|
2062
|
-
contents.serviceCode = __expectString(data.serviceCode);
|
|
2063
|
-
}
|
|
1992
|
+
const doc = take(data, {
|
|
1993
|
+
message: __expectString,
|
|
1994
|
+
quotaCode: __expectString,
|
|
1995
|
+
resourceIdentifier: __expectString,
|
|
1996
|
+
resourceType: __expectString,
|
|
1997
|
+
serviceCode: __expectString,
|
|
1998
|
+
});
|
|
1999
|
+
Object.assign(contents, doc);
|
|
2064
2000
|
const exception = new ServiceQuotaExceededException({
|
|
2065
2001
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2066
2002
|
...contents,
|
|
@@ -2070,15 +2006,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2070
2006
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2071
2007
|
const contents = map({});
|
|
2072
2008
|
const data = parsedOutput.body;
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
if (data.serviceCode != null) {
|
|
2080
|
-
contents.serviceCode = __expectString(data.serviceCode);
|
|
2081
|
-
}
|
|
2009
|
+
const doc = take(data, {
|
|
2010
|
+
message: __expectString,
|
|
2011
|
+
quotaCode: __expectString,
|
|
2012
|
+
serviceCode: __expectString,
|
|
2013
|
+
});
|
|
2014
|
+
Object.assign(contents, doc);
|
|
2082
2015
|
const exception = new ThrottlingException({
|
|
2083
2016
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2084
2017
|
...contents,
|
|
@@ -2088,112 +2021,29 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2088
2021
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2089
2022
|
const contents = map({});
|
|
2090
2023
|
const data = parsedOutput.body;
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
}
|
|
2024
|
+
const doc = take(data, {
|
|
2025
|
+
message: __expectString,
|
|
2026
|
+
});
|
|
2027
|
+
Object.assign(contents, doc);
|
|
2094
2028
|
const exception = new ValidationException({
|
|
2095
2029
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2096
2030
|
...contents,
|
|
2097
2031
|
});
|
|
2098
2032
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2099
2033
|
};
|
|
2100
|
-
const se_Action = (input, context) => {
|
|
2101
|
-
return Action.visit(input, {
|
|
2102
|
-
ssmAutomation: (value) => ({ ssmAutomation: se_SsmAutomation(value, context) }),
|
|
2103
|
-
_: (name, value) => ({ name: value }),
|
|
2104
|
-
});
|
|
2105
|
-
};
|
|
2106
|
-
const se_ActionsList = (input, context) => {
|
|
2107
|
-
return input
|
|
2108
|
-
.filter((e) => e != null)
|
|
2109
|
-
.map((entry) => {
|
|
2110
|
-
return se_Action(entry, context);
|
|
2111
|
-
});
|
|
2112
|
-
};
|
|
2113
|
-
const se_AddRegionAction = (input, context) => {
|
|
2114
|
-
return {
|
|
2115
|
-
...(input.regionName != null && { regionName: input.regionName }),
|
|
2116
|
-
...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
|
|
2117
|
-
};
|
|
2118
|
-
};
|
|
2119
|
-
const se_AttributeValueList = (input, context) => {
|
|
2120
|
-
return AttributeValueList.visit(input, {
|
|
2121
|
-
integerValues: (value) => ({ integerValues: se_IntegerList(value, context) }),
|
|
2122
|
-
stringValues: (value) => ({ stringValues: se_StringList(value, context) }),
|
|
2123
|
-
_: (name, value) => ({ name: value }),
|
|
2124
|
-
});
|
|
2125
|
-
};
|
|
2126
|
-
const se_ChatbotSnsConfigurationSet = (input, context) => {
|
|
2127
|
-
return input
|
|
2128
|
-
.filter((e) => e != null)
|
|
2129
|
-
.map((entry) => {
|
|
2130
|
-
return entry;
|
|
2131
|
-
});
|
|
2132
|
-
};
|
|
2133
|
-
const se_ChatChannel = (input, context) => {
|
|
2134
|
-
return ChatChannel.visit(input, {
|
|
2135
|
-
chatbotSns: (value) => ({ chatbotSns: se_ChatbotSnsConfigurationSet(value, context) }),
|
|
2136
|
-
empty: (value) => ({ empty: se_EmptyChatChannel(value, context) }),
|
|
2137
|
-
_: (name, value) => ({ name: value }),
|
|
2138
|
-
});
|
|
2139
|
-
};
|
|
2140
2034
|
const se_Condition = (input, context) => {
|
|
2141
2035
|
return Condition.visit(input, {
|
|
2142
2036
|
after: (value) => ({ after: Math.round(value.getTime() / 1000) }),
|
|
2143
2037
|
before: (value) => ({ before: Math.round(value.getTime() / 1000) }),
|
|
2144
|
-
equals: (value) => ({ equals:
|
|
2145
|
-
_: (name, value) => ({ name: value }),
|
|
2146
|
-
});
|
|
2147
|
-
};
|
|
2148
|
-
const se_DeleteRegionAction = (input, context) => {
|
|
2149
|
-
return {
|
|
2150
|
-
...(input.regionName != null && { regionName: input.regionName }),
|
|
2151
|
-
};
|
|
2152
|
-
};
|
|
2153
|
-
const se_DynamicSsmParameters = (input, context) => {
|
|
2154
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2155
|
-
if (value === null) {
|
|
2156
|
-
return acc;
|
|
2157
|
-
}
|
|
2158
|
-
acc[key] = se_DynamicSsmParameterValue(value, context);
|
|
2159
|
-
return acc;
|
|
2160
|
-
}, {});
|
|
2161
|
-
};
|
|
2162
|
-
const se_DynamicSsmParameterValue = (input, context) => {
|
|
2163
|
-
return DynamicSsmParameterValue.visit(input, {
|
|
2164
|
-
variable: (value) => ({ variable: value }),
|
|
2038
|
+
equals: (value) => ({ equals: _json(value) }),
|
|
2165
2039
|
_: (name, value) => ({ name: value }),
|
|
2166
2040
|
});
|
|
2167
2041
|
};
|
|
2168
|
-
const se_EmptyChatChannel = (input, context) => {
|
|
2169
|
-
return {};
|
|
2170
|
-
};
|
|
2171
|
-
const se_EngagementSet = (input, context) => {
|
|
2172
|
-
return input
|
|
2173
|
-
.filter((e) => e != null)
|
|
2174
|
-
.map((entry) => {
|
|
2175
|
-
return entry;
|
|
2176
|
-
});
|
|
2177
|
-
};
|
|
2178
|
-
const se_EventReference = (input, context) => {
|
|
2179
|
-
return EventReference.visit(input, {
|
|
2180
|
-
relatedItemId: (value) => ({ relatedItemId: value }),
|
|
2181
|
-
resource: (value) => ({ resource: value }),
|
|
2182
|
-
_: (name, value) => ({ name: value }),
|
|
2183
|
-
});
|
|
2184
|
-
};
|
|
2185
|
-
const se_EventReferenceList = (input, context) => {
|
|
2186
|
-
return input
|
|
2187
|
-
.filter((e) => e != null)
|
|
2188
|
-
.map((entry) => {
|
|
2189
|
-
return se_EventReference(entry, context);
|
|
2190
|
-
});
|
|
2191
|
-
};
|
|
2192
2042
|
const se_Filter = (input, context) => {
|
|
2193
|
-
return {
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
};
|
|
2043
|
+
return take(input, {
|
|
2044
|
+
condition: (_) => se_Condition(_, context),
|
|
2045
|
+
key: [],
|
|
2046
|
+
});
|
|
2197
2047
|
};
|
|
2198
2048
|
const se_FilterList = (input, context) => {
|
|
2199
2049
|
return input
|
|
@@ -2202,486 +2052,76 @@ const se_FilterList = (input, context) => {
|
|
|
2202
2052
|
return se_Filter(entry, context);
|
|
2203
2053
|
});
|
|
2204
2054
|
};
|
|
2205
|
-
const se_IncidentTemplate = (input, context) => {
|
|
2206
|
-
return {
|
|
2207
|
-
...(input.dedupeString != null && { dedupeString: input.dedupeString }),
|
|
2208
|
-
...(input.impact != null && { impact: input.impact }),
|
|
2209
|
-
...(input.incidentTags != null && { incidentTags: se_TagMap(input.incidentTags, context) }),
|
|
2210
|
-
...(input.notificationTargets != null && {
|
|
2211
|
-
notificationTargets: se_NotificationTargetSet(input.notificationTargets, context),
|
|
2212
|
-
}),
|
|
2213
|
-
...(input.summary != null && { summary: input.summary }),
|
|
2214
|
-
...(input.title != null && { title: input.title }),
|
|
2215
|
-
};
|
|
2216
|
-
};
|
|
2217
|
-
const se_IntegerList = (input, context) => {
|
|
2218
|
-
return input
|
|
2219
|
-
.filter((e) => e != null)
|
|
2220
|
-
.map((entry) => {
|
|
2221
|
-
return entry;
|
|
2222
|
-
});
|
|
2223
|
-
};
|
|
2224
|
-
const se_Integration = (input, context) => {
|
|
2225
|
-
return Integration.visit(input, {
|
|
2226
|
-
pagerDutyConfiguration: (value) => ({ pagerDutyConfiguration: se_PagerDutyConfiguration(value, context) }),
|
|
2227
|
-
_: (name, value) => ({ name: value }),
|
|
2228
|
-
});
|
|
2229
|
-
};
|
|
2230
|
-
const se_Integrations = (input, context) => {
|
|
2231
|
-
return input
|
|
2232
|
-
.filter((e) => e != null)
|
|
2233
|
-
.map((entry) => {
|
|
2234
|
-
return se_Integration(entry, context);
|
|
2235
|
-
});
|
|
2236
|
-
};
|
|
2237
|
-
const se_ItemIdentifier = (input, context) => {
|
|
2238
|
-
return {
|
|
2239
|
-
...(input.type != null && { type: input.type }),
|
|
2240
|
-
...(input.value != null && { value: se_ItemValue(input.value, context) }),
|
|
2241
|
-
};
|
|
2242
|
-
};
|
|
2243
|
-
const se_ItemValue = (input, context) => {
|
|
2244
|
-
return ItemValue.visit(input, {
|
|
2245
|
-
arn: (value) => ({ arn: value }),
|
|
2246
|
-
metricDefinition: (value) => ({ metricDefinition: value }),
|
|
2247
|
-
pagerDutyIncidentDetail: (value) => ({ pagerDutyIncidentDetail: se_PagerDutyIncidentDetail(value, context) }),
|
|
2248
|
-
url: (value) => ({ url: value }),
|
|
2249
|
-
_: (name, value) => ({ name: value }),
|
|
2250
|
-
});
|
|
2251
|
-
};
|
|
2252
|
-
const se_NotificationTargetItem = (input, context) => {
|
|
2253
|
-
return NotificationTargetItem.visit(input, {
|
|
2254
|
-
snsTopicArn: (value) => ({ snsTopicArn: value }),
|
|
2255
|
-
_: (name, value) => ({ name: value }),
|
|
2256
|
-
});
|
|
2257
|
-
};
|
|
2258
|
-
const se_NotificationTargetSet = (input, context) => {
|
|
2259
|
-
return input
|
|
2260
|
-
.filter((e) => e != null)
|
|
2261
|
-
.map((entry) => {
|
|
2262
|
-
return se_NotificationTargetItem(entry, context);
|
|
2263
|
-
});
|
|
2264
|
-
};
|
|
2265
|
-
const se_PagerDutyConfiguration = (input, context) => {
|
|
2266
|
-
return {
|
|
2267
|
-
...(input.name != null && { name: input.name }),
|
|
2268
|
-
...(input.pagerDutyIncidentConfiguration != null && {
|
|
2269
|
-
pagerDutyIncidentConfiguration: se_PagerDutyIncidentConfiguration(input.pagerDutyIncidentConfiguration, context),
|
|
2270
|
-
}),
|
|
2271
|
-
...(input.secretId != null && { secretId: input.secretId }),
|
|
2272
|
-
};
|
|
2273
|
-
};
|
|
2274
|
-
const se_PagerDutyIncidentConfiguration = (input, context) => {
|
|
2275
|
-
return {
|
|
2276
|
-
...(input.serviceId != null && { serviceId: input.serviceId }),
|
|
2277
|
-
};
|
|
2278
|
-
};
|
|
2279
|
-
const se_PagerDutyIncidentDetail = (input, context) => {
|
|
2280
|
-
return {
|
|
2281
|
-
...(input.autoResolve != null && { autoResolve: input.autoResolve }),
|
|
2282
|
-
...(input.id != null && { id: input.id }),
|
|
2283
|
-
...(input.secretId != null && { secretId: input.secretId }),
|
|
2284
|
-
};
|
|
2285
|
-
};
|
|
2286
|
-
const se_RegionMapInput = (input, context) => {
|
|
2287
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2288
|
-
if (value === null) {
|
|
2289
|
-
return acc;
|
|
2290
|
-
}
|
|
2291
|
-
acc[key] = se_RegionMapInputValue(value, context);
|
|
2292
|
-
return acc;
|
|
2293
|
-
}, {});
|
|
2294
|
-
};
|
|
2295
|
-
const se_RegionMapInputValue = (input, context) => {
|
|
2296
|
-
return {
|
|
2297
|
-
...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
|
|
2298
|
-
};
|
|
2299
|
-
};
|
|
2300
|
-
const se_RelatedItem = (input, context) => {
|
|
2301
|
-
return {
|
|
2302
|
-
...(input.generatedId != null && { generatedId: input.generatedId }),
|
|
2303
|
-
...(input.identifier != null && { identifier: se_ItemIdentifier(input.identifier, context) }),
|
|
2304
|
-
...(input.title != null && { title: input.title }),
|
|
2305
|
-
};
|
|
2306
|
-
};
|
|
2307
|
-
const se_RelatedItemList = (input, context) => {
|
|
2308
|
-
return input
|
|
2309
|
-
.filter((e) => e != null)
|
|
2310
|
-
.map((entry) => {
|
|
2311
|
-
return se_RelatedItem(entry, context);
|
|
2312
|
-
});
|
|
2313
|
-
};
|
|
2314
|
-
const se_RelatedItemsUpdate = (input, context) => {
|
|
2315
|
-
return RelatedItemsUpdate.visit(input, {
|
|
2316
|
-
itemToAdd: (value) => ({ itemToAdd: se_RelatedItem(value, context) }),
|
|
2317
|
-
itemToRemove: (value) => ({ itemToRemove: se_ItemIdentifier(value, context) }),
|
|
2318
|
-
_: (name, value) => ({ name: value }),
|
|
2319
|
-
});
|
|
2320
|
-
};
|
|
2321
|
-
const se_SsmAutomation = (input, context) => {
|
|
2322
|
-
return {
|
|
2323
|
-
...(input.documentName != null && { documentName: input.documentName }),
|
|
2324
|
-
...(input.documentVersion != null && { documentVersion: input.documentVersion }),
|
|
2325
|
-
...(input.dynamicParameters != null && {
|
|
2326
|
-
dynamicParameters: se_DynamicSsmParameters(input.dynamicParameters, context),
|
|
2327
|
-
}),
|
|
2328
|
-
...(input.parameters != null && { parameters: se_SsmParameters(input.parameters, context) }),
|
|
2329
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2330
|
-
...(input.targetAccount != null && { targetAccount: input.targetAccount }),
|
|
2331
|
-
};
|
|
2332
|
-
};
|
|
2333
|
-
const se_SsmParameters = (input, context) => {
|
|
2334
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2335
|
-
if (value === null) {
|
|
2336
|
-
return acc;
|
|
2337
|
-
}
|
|
2338
|
-
acc[key] = se_SsmParameterValues(value, context);
|
|
2339
|
-
return acc;
|
|
2340
|
-
}, {});
|
|
2341
|
-
};
|
|
2342
|
-
const se_SsmParameterValues = (input, context) => {
|
|
2343
|
-
return input
|
|
2344
|
-
.filter((e) => e != null)
|
|
2345
|
-
.map((entry) => {
|
|
2346
|
-
return entry;
|
|
2347
|
-
});
|
|
2348
|
-
};
|
|
2349
|
-
const se_StringList = (input, context) => {
|
|
2350
|
-
return input
|
|
2351
|
-
.filter((e) => e != null)
|
|
2352
|
-
.map((entry) => {
|
|
2353
|
-
return entry;
|
|
2354
|
-
});
|
|
2355
|
-
};
|
|
2356
|
-
const se_TagMap = (input, context) => {
|
|
2357
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2358
|
-
if (value === null) {
|
|
2359
|
-
return acc;
|
|
2360
|
-
}
|
|
2361
|
-
acc[key] = value;
|
|
2362
|
-
return acc;
|
|
2363
|
-
}, {});
|
|
2364
|
-
};
|
|
2365
|
-
const se_TagMapUpdate = (input, context) => {
|
|
2366
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2367
|
-
if (value === null) {
|
|
2368
|
-
return acc;
|
|
2369
|
-
}
|
|
2370
|
-
acc[key] = value;
|
|
2371
|
-
return acc;
|
|
2372
|
-
}, {});
|
|
2373
|
-
};
|
|
2374
2055
|
const se_TriggerDetails = (input, context) => {
|
|
2375
|
-
return {
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
};
|
|
2381
|
-
};
|
|
2382
|
-
const se_UpdateActionList = (input, context) => {
|
|
2383
|
-
return input
|
|
2384
|
-
.filter((e) => e != null)
|
|
2385
|
-
.map((entry) => {
|
|
2386
|
-
return se_UpdateReplicationSetAction(entry, context);
|
|
2387
|
-
});
|
|
2388
|
-
};
|
|
2389
|
-
const se_UpdateReplicationSetAction = (input, context) => {
|
|
2390
|
-
return UpdateReplicationSetAction.visit(input, {
|
|
2391
|
-
addRegionAction: (value) => ({ addRegionAction: se_AddRegionAction(value, context) }),
|
|
2392
|
-
deleteRegionAction: (value) => ({ deleteRegionAction: se_DeleteRegionAction(value, context) }),
|
|
2393
|
-
_: (name, value) => ({ name: value }),
|
|
2394
|
-
});
|
|
2395
|
-
};
|
|
2396
|
-
const de_Action = (output, context) => {
|
|
2397
|
-
if (output.ssmAutomation != null) {
|
|
2398
|
-
return {
|
|
2399
|
-
ssmAutomation: de_SsmAutomation(output.ssmAutomation, context),
|
|
2400
|
-
};
|
|
2401
|
-
}
|
|
2402
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2403
|
-
};
|
|
2404
|
-
const de_ActionsList = (output, context) => {
|
|
2405
|
-
const retVal = (output || [])
|
|
2406
|
-
.filter((e) => e != null)
|
|
2407
|
-
.map((entry) => {
|
|
2408
|
-
if (entry === null) {
|
|
2409
|
-
return null;
|
|
2410
|
-
}
|
|
2411
|
-
return de_Action(__expectUnion(entry), context);
|
|
2412
|
-
});
|
|
2413
|
-
return retVal;
|
|
2414
|
-
};
|
|
2415
|
-
const de_AutomationExecution = (output, context) => {
|
|
2416
|
-
if (__expectString(output.ssmExecutionArn) !== undefined) {
|
|
2417
|
-
return { ssmExecutionArn: __expectString(output.ssmExecutionArn) };
|
|
2418
|
-
}
|
|
2419
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2420
|
-
};
|
|
2421
|
-
const de_AutomationExecutionSet = (output, context) => {
|
|
2422
|
-
const retVal = (output || [])
|
|
2423
|
-
.filter((e) => e != null)
|
|
2424
|
-
.map((entry) => {
|
|
2425
|
-
if (entry === null) {
|
|
2426
|
-
return null;
|
|
2427
|
-
}
|
|
2428
|
-
return de_AutomationExecution(__expectUnion(entry), context);
|
|
2056
|
+
return take(input, {
|
|
2057
|
+
rawData: [],
|
|
2058
|
+
source: [],
|
|
2059
|
+
timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
2060
|
+
triggerArn: [],
|
|
2429
2061
|
});
|
|
2430
|
-
return retVal;
|
|
2431
|
-
};
|
|
2432
|
-
const de_ChatbotSnsConfigurationSet = (output, context) => {
|
|
2433
|
-
const retVal = (output || [])
|
|
2434
|
-
.filter((e) => e != null)
|
|
2435
|
-
.map((entry) => {
|
|
2436
|
-
if (entry === null) {
|
|
2437
|
-
return null;
|
|
2438
|
-
}
|
|
2439
|
-
return __expectString(entry);
|
|
2440
|
-
});
|
|
2441
|
-
return retVal;
|
|
2442
|
-
};
|
|
2443
|
-
const de_ChatChannel = (output, context) => {
|
|
2444
|
-
if (output.chatbotSns != null) {
|
|
2445
|
-
return {
|
|
2446
|
-
chatbotSns: de_ChatbotSnsConfigurationSet(output.chatbotSns, context),
|
|
2447
|
-
};
|
|
2448
|
-
}
|
|
2449
|
-
if (output.empty != null) {
|
|
2450
|
-
return {
|
|
2451
|
-
empty: de_EmptyChatChannel(output.empty, context),
|
|
2452
|
-
};
|
|
2453
|
-
}
|
|
2454
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2455
|
-
};
|
|
2456
|
-
const de_DynamicSsmParameters = (output, context) => {
|
|
2457
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2458
|
-
if (value === null) {
|
|
2459
|
-
return acc;
|
|
2460
|
-
}
|
|
2461
|
-
acc[key] = de_DynamicSsmParameterValue(__expectUnion(value), context);
|
|
2462
|
-
return acc;
|
|
2463
|
-
}, {});
|
|
2464
|
-
};
|
|
2465
|
-
const de_DynamicSsmParameterValue = (output, context) => {
|
|
2466
|
-
if (__expectString(output.variable) !== undefined) {
|
|
2467
|
-
return { variable: __expectString(output.variable) };
|
|
2468
|
-
}
|
|
2469
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2470
|
-
};
|
|
2471
|
-
const de_EmptyChatChannel = (output, context) => {
|
|
2472
|
-
return {};
|
|
2473
|
-
};
|
|
2474
|
-
const de_EngagementSet = (output, context) => {
|
|
2475
|
-
const retVal = (output || [])
|
|
2476
|
-
.filter((e) => e != null)
|
|
2477
|
-
.map((entry) => {
|
|
2478
|
-
if (entry === null) {
|
|
2479
|
-
return null;
|
|
2480
|
-
}
|
|
2481
|
-
return __expectString(entry);
|
|
2482
|
-
});
|
|
2483
|
-
return retVal;
|
|
2484
|
-
};
|
|
2485
|
-
const de_EventReference = (output, context) => {
|
|
2486
|
-
if (__expectString(output.relatedItemId) !== undefined) {
|
|
2487
|
-
return { relatedItemId: __expectString(output.relatedItemId) };
|
|
2488
|
-
}
|
|
2489
|
-
if (__expectString(output.resource) !== undefined) {
|
|
2490
|
-
return { resource: __expectString(output.resource) };
|
|
2491
|
-
}
|
|
2492
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2493
|
-
};
|
|
2494
|
-
const de_EventReferenceList = (output, context) => {
|
|
2495
|
-
const retVal = (output || [])
|
|
2496
|
-
.filter((e) => e != null)
|
|
2497
|
-
.map((entry) => {
|
|
2498
|
-
if (entry === null) {
|
|
2499
|
-
return null;
|
|
2500
|
-
}
|
|
2501
|
-
return de_EventReference(__expectUnion(entry), context);
|
|
2502
|
-
});
|
|
2503
|
-
return retVal;
|
|
2504
2062
|
};
|
|
2505
2063
|
const de_EventSummary = (output, context) => {
|
|
2506
|
-
return {
|
|
2507
|
-
eventId: __expectString
|
|
2508
|
-
eventReferences:
|
|
2509
|
-
eventTime:
|
|
2510
|
-
eventType: __expectString
|
|
2511
|
-
eventUpdatedTime:
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
incidentRecordArn: __expectString(output.incidentRecordArn),
|
|
2515
|
-
};
|
|
2064
|
+
return take(output, {
|
|
2065
|
+
eventId: __expectString,
|
|
2066
|
+
eventReferences: _json,
|
|
2067
|
+
eventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2068
|
+
eventType: __expectString,
|
|
2069
|
+
eventUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2070
|
+
incidentRecordArn: __expectString,
|
|
2071
|
+
});
|
|
2516
2072
|
};
|
|
2517
2073
|
const de_EventSummaryList = (output, context) => {
|
|
2518
2074
|
const retVal = (output || [])
|
|
2519
2075
|
.filter((e) => e != null)
|
|
2520
2076
|
.map((entry) => {
|
|
2521
|
-
if (entry === null) {
|
|
2522
|
-
return null;
|
|
2523
|
-
}
|
|
2524
2077
|
return de_EventSummary(entry, context);
|
|
2525
2078
|
});
|
|
2526
2079
|
return retVal;
|
|
2527
2080
|
};
|
|
2528
2081
|
const de_IncidentRecord = (output, context) => {
|
|
2529
|
-
return {
|
|
2530
|
-
arn: __expectString
|
|
2531
|
-
automationExecutions:
|
|
2532
|
-
chatChannel:
|
|
2533
|
-
creationTime:
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
|
|
2546
|
-
: undefined,
|
|
2547
|
-
status: __expectString(output.status),
|
|
2548
|
-
summary: __expectString(output.summary),
|
|
2549
|
-
title: __expectString(output.title),
|
|
2550
|
-
};
|
|
2551
|
-
};
|
|
2552
|
-
const de_IncidentRecordSource = (output, context) => {
|
|
2553
|
-
return {
|
|
2554
|
-
createdBy: __expectString(output.createdBy),
|
|
2555
|
-
invokedBy: __expectString(output.invokedBy),
|
|
2556
|
-
resourceArn: __expectString(output.resourceArn),
|
|
2557
|
-
source: __expectString(output.source),
|
|
2558
|
-
};
|
|
2082
|
+
return take(output, {
|
|
2083
|
+
arn: __expectString,
|
|
2084
|
+
automationExecutions: _json,
|
|
2085
|
+
chatChannel: (_) => _json(__expectUnion(_)),
|
|
2086
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2087
|
+
dedupeString: __expectString,
|
|
2088
|
+
impact: __expectInt32,
|
|
2089
|
+
incidentRecordSource: _json,
|
|
2090
|
+
lastModifiedBy: __expectString,
|
|
2091
|
+
lastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2092
|
+
notificationTargets: _json,
|
|
2093
|
+
resolvedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2094
|
+
status: __expectString,
|
|
2095
|
+
summary: __expectString,
|
|
2096
|
+
title: __expectString,
|
|
2097
|
+
});
|
|
2559
2098
|
};
|
|
2560
2099
|
const de_IncidentRecordSummary = (output, context) => {
|
|
2561
|
-
return {
|
|
2562
|
-
arn: __expectString
|
|
2563
|
-
creationTime:
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
: undefined,
|
|
2571
|
-
status: __expectString(output.status),
|
|
2572
|
-
title: __expectString(output.title),
|
|
2573
|
-
};
|
|
2100
|
+
return take(output, {
|
|
2101
|
+
arn: __expectString,
|
|
2102
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2103
|
+
impact: __expectInt32,
|
|
2104
|
+
incidentRecordSource: _json,
|
|
2105
|
+
resolvedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2106
|
+
status: __expectString,
|
|
2107
|
+
title: __expectString,
|
|
2108
|
+
});
|
|
2574
2109
|
};
|
|
2575
2110
|
const de_IncidentRecordSummaryList = (output, context) => {
|
|
2576
2111
|
const retVal = (output || [])
|
|
2577
2112
|
.filter((e) => e != null)
|
|
2578
2113
|
.map((entry) => {
|
|
2579
|
-
if (entry === null) {
|
|
2580
|
-
return null;
|
|
2581
|
-
}
|
|
2582
2114
|
return de_IncidentRecordSummary(entry, context);
|
|
2583
2115
|
});
|
|
2584
2116
|
return retVal;
|
|
2585
2117
|
};
|
|
2586
|
-
const de_IncidentTemplate = (output, context) => {
|
|
2587
|
-
return {
|
|
2588
|
-
dedupeString: __expectString(output.dedupeString),
|
|
2589
|
-
impact: __expectInt32(output.impact),
|
|
2590
|
-
incidentTags: output.incidentTags != null ? de_TagMap(output.incidentTags, context) : undefined,
|
|
2591
|
-
notificationTargets: output.notificationTargets != null ? de_NotificationTargetSet(output.notificationTargets, context) : undefined,
|
|
2592
|
-
summary: __expectString(output.summary),
|
|
2593
|
-
title: __expectString(output.title),
|
|
2594
|
-
};
|
|
2595
|
-
};
|
|
2596
|
-
const de_Integration = (output, context) => {
|
|
2597
|
-
if (output.pagerDutyConfiguration != null) {
|
|
2598
|
-
return {
|
|
2599
|
-
pagerDutyConfiguration: de_PagerDutyConfiguration(output.pagerDutyConfiguration, context),
|
|
2600
|
-
};
|
|
2601
|
-
}
|
|
2602
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2603
|
-
};
|
|
2604
|
-
const de_Integrations = (output, context) => {
|
|
2605
|
-
const retVal = (output || [])
|
|
2606
|
-
.filter((e) => e != null)
|
|
2607
|
-
.map((entry) => {
|
|
2608
|
-
if (entry === null) {
|
|
2609
|
-
return null;
|
|
2610
|
-
}
|
|
2611
|
-
return de_Integration(__expectUnion(entry), context);
|
|
2612
|
-
});
|
|
2613
|
-
return retVal;
|
|
2614
|
-
};
|
|
2615
|
-
const de_ItemIdentifier = (output, context) => {
|
|
2616
|
-
return {
|
|
2617
|
-
type: __expectString(output.type),
|
|
2618
|
-
value: output.value != null ? de_ItemValue(__expectUnion(output.value), context) : undefined,
|
|
2619
|
-
};
|
|
2620
|
-
};
|
|
2621
|
-
const de_ItemValue = (output, context) => {
|
|
2622
|
-
if (__expectString(output.arn) !== undefined) {
|
|
2623
|
-
return { arn: __expectString(output.arn) };
|
|
2624
|
-
}
|
|
2625
|
-
if (__expectString(output.metricDefinition) !== undefined) {
|
|
2626
|
-
return { metricDefinition: __expectString(output.metricDefinition) };
|
|
2627
|
-
}
|
|
2628
|
-
if (output.pagerDutyIncidentDetail != null) {
|
|
2629
|
-
return {
|
|
2630
|
-
pagerDutyIncidentDetail: de_PagerDutyIncidentDetail(output.pagerDutyIncidentDetail, context),
|
|
2631
|
-
};
|
|
2632
|
-
}
|
|
2633
|
-
if (__expectString(output.url) !== undefined) {
|
|
2634
|
-
return { url: __expectString(output.url) };
|
|
2635
|
-
}
|
|
2636
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2637
|
-
};
|
|
2638
|
-
const de_NotificationTargetItem = (output, context) => {
|
|
2639
|
-
if (__expectString(output.snsTopicArn) !== undefined) {
|
|
2640
|
-
return { snsTopicArn: __expectString(output.snsTopicArn) };
|
|
2641
|
-
}
|
|
2642
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2643
|
-
};
|
|
2644
|
-
const de_NotificationTargetSet = (output, context) => {
|
|
2645
|
-
const retVal = (output || [])
|
|
2646
|
-
.filter((e) => e != null)
|
|
2647
|
-
.map((entry) => {
|
|
2648
|
-
if (entry === null) {
|
|
2649
|
-
return null;
|
|
2650
|
-
}
|
|
2651
|
-
return de_NotificationTargetItem(__expectUnion(entry), context);
|
|
2652
|
-
});
|
|
2653
|
-
return retVal;
|
|
2654
|
-
};
|
|
2655
|
-
const de_PagerDutyConfiguration = (output, context) => {
|
|
2656
|
-
return {
|
|
2657
|
-
name: __expectString(output.name),
|
|
2658
|
-
pagerDutyIncidentConfiguration: output.pagerDutyIncidentConfiguration != null
|
|
2659
|
-
? de_PagerDutyIncidentConfiguration(output.pagerDutyIncidentConfiguration, context)
|
|
2660
|
-
: undefined,
|
|
2661
|
-
secretId: __expectString(output.secretId),
|
|
2662
|
-
};
|
|
2663
|
-
};
|
|
2664
|
-
const de_PagerDutyIncidentConfiguration = (output, context) => {
|
|
2665
|
-
return {
|
|
2666
|
-
serviceId: __expectString(output.serviceId),
|
|
2667
|
-
};
|
|
2668
|
-
};
|
|
2669
|
-
const de_PagerDutyIncidentDetail = (output, context) => {
|
|
2670
|
-
return {
|
|
2671
|
-
autoResolve: __expectBoolean(output.autoResolve),
|
|
2672
|
-
id: __expectString(output.id),
|
|
2673
|
-
secretId: __expectString(output.secretId),
|
|
2674
|
-
};
|
|
2675
|
-
};
|
|
2676
2118
|
const de_RegionInfo = (output, context) => {
|
|
2677
|
-
return {
|
|
2678
|
-
sseKmsKeyId: __expectString
|
|
2679
|
-
status: __expectString
|
|
2680
|
-
statusMessage: __expectString
|
|
2681
|
-
statusUpdateDateTime:
|
|
2682
|
-
|
|
2683
|
-
: undefined,
|
|
2684
|
-
};
|
|
2119
|
+
return take(output, {
|
|
2120
|
+
sseKmsKeyId: __expectString,
|
|
2121
|
+
status: __expectString,
|
|
2122
|
+
statusMessage: __expectString,
|
|
2123
|
+
statusUpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2124
|
+
});
|
|
2685
2125
|
};
|
|
2686
2126
|
const de_RegionInfoMap = (output, context) => {
|
|
2687
2127
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -2692,138 +2132,28 @@ const de_RegionInfoMap = (output, context) => {
|
|
|
2692
2132
|
return acc;
|
|
2693
2133
|
}, {});
|
|
2694
2134
|
};
|
|
2695
|
-
const de_RelatedItem = (output, context) => {
|
|
2696
|
-
return {
|
|
2697
|
-
generatedId: __expectString(output.generatedId),
|
|
2698
|
-
identifier: output.identifier != null ? de_ItemIdentifier(output.identifier, context) : undefined,
|
|
2699
|
-
title: __expectString(output.title),
|
|
2700
|
-
};
|
|
2701
|
-
};
|
|
2702
|
-
const de_RelatedItemList = (output, context) => {
|
|
2703
|
-
const retVal = (output || [])
|
|
2704
|
-
.filter((e) => e != null)
|
|
2705
|
-
.map((entry) => {
|
|
2706
|
-
if (entry === null) {
|
|
2707
|
-
return null;
|
|
2708
|
-
}
|
|
2709
|
-
return de_RelatedItem(entry, context);
|
|
2710
|
-
});
|
|
2711
|
-
return retVal;
|
|
2712
|
-
};
|
|
2713
2135
|
const de_ReplicationSet = (output, context) => {
|
|
2714
|
-
return {
|
|
2715
|
-
arn: __expectString
|
|
2716
|
-
createdBy: __expectString
|
|
2717
|
-
createdTime:
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
|
|
2724
|
-
: undefined,
|
|
2725
|
-
regionMap: output.regionMap != null ? de_RegionInfoMap(output.regionMap, context) : undefined,
|
|
2726
|
-
status: __expectString(output.status),
|
|
2727
|
-
};
|
|
2728
|
-
};
|
|
2729
|
-
const de_ReplicationSetArnList = (output, context) => {
|
|
2730
|
-
const retVal = (output || [])
|
|
2731
|
-
.filter((e) => e != null)
|
|
2732
|
-
.map((entry) => {
|
|
2733
|
-
if (entry === null) {
|
|
2734
|
-
return null;
|
|
2735
|
-
}
|
|
2736
|
-
return __expectString(entry);
|
|
2737
|
-
});
|
|
2738
|
-
return retVal;
|
|
2739
|
-
};
|
|
2740
|
-
const de_ResourcePolicy = (output, context) => {
|
|
2741
|
-
return {
|
|
2742
|
-
policyDocument: __expectString(output.policyDocument),
|
|
2743
|
-
policyId: __expectString(output.policyId),
|
|
2744
|
-
ramResourceShareRegion: __expectString(output.ramResourceShareRegion),
|
|
2745
|
-
};
|
|
2746
|
-
};
|
|
2747
|
-
const de_ResourcePolicyList = (output, context) => {
|
|
2748
|
-
const retVal = (output || [])
|
|
2749
|
-
.filter((e) => e != null)
|
|
2750
|
-
.map((entry) => {
|
|
2751
|
-
if (entry === null) {
|
|
2752
|
-
return null;
|
|
2753
|
-
}
|
|
2754
|
-
return de_ResourcePolicy(entry, context);
|
|
2755
|
-
});
|
|
2756
|
-
return retVal;
|
|
2757
|
-
};
|
|
2758
|
-
const de_ResponsePlanSummary = (output, context) => {
|
|
2759
|
-
return {
|
|
2760
|
-
arn: __expectString(output.arn),
|
|
2761
|
-
displayName: __expectString(output.displayName),
|
|
2762
|
-
name: __expectString(output.name),
|
|
2763
|
-
};
|
|
2764
|
-
};
|
|
2765
|
-
const de_ResponsePlanSummaryList = (output, context) => {
|
|
2766
|
-
const retVal = (output || [])
|
|
2767
|
-
.filter((e) => e != null)
|
|
2768
|
-
.map((entry) => {
|
|
2769
|
-
if (entry === null) {
|
|
2770
|
-
return null;
|
|
2771
|
-
}
|
|
2772
|
-
return de_ResponsePlanSummary(entry, context);
|
|
2773
|
-
});
|
|
2774
|
-
return retVal;
|
|
2775
|
-
};
|
|
2776
|
-
const de_SsmAutomation = (output, context) => {
|
|
2777
|
-
return {
|
|
2778
|
-
documentName: __expectString(output.documentName),
|
|
2779
|
-
documentVersion: __expectString(output.documentVersion),
|
|
2780
|
-
dynamicParameters: output.dynamicParameters != null ? de_DynamicSsmParameters(output.dynamicParameters, context) : undefined,
|
|
2781
|
-
parameters: output.parameters != null ? de_SsmParameters(output.parameters, context) : undefined,
|
|
2782
|
-
roleArn: __expectString(output.roleArn),
|
|
2783
|
-
targetAccount: __expectString(output.targetAccount),
|
|
2784
|
-
};
|
|
2785
|
-
};
|
|
2786
|
-
const de_SsmParameters = (output, context) => {
|
|
2787
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2788
|
-
if (value === null) {
|
|
2789
|
-
return acc;
|
|
2790
|
-
}
|
|
2791
|
-
acc[key] = de_SsmParameterValues(value, context);
|
|
2792
|
-
return acc;
|
|
2793
|
-
}, {});
|
|
2794
|
-
};
|
|
2795
|
-
const de_SsmParameterValues = (output, context) => {
|
|
2796
|
-
const retVal = (output || [])
|
|
2797
|
-
.filter((e) => e != null)
|
|
2798
|
-
.map((entry) => {
|
|
2799
|
-
if (entry === null) {
|
|
2800
|
-
return null;
|
|
2801
|
-
}
|
|
2802
|
-
return __expectString(entry);
|
|
2136
|
+
return take(output, {
|
|
2137
|
+
arn: __expectString,
|
|
2138
|
+
createdBy: __expectString,
|
|
2139
|
+
createdTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2140
|
+
deletionProtected: __expectBoolean,
|
|
2141
|
+
lastModifiedBy: __expectString,
|
|
2142
|
+
lastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2143
|
+
regionMap: (_) => de_RegionInfoMap(_, context),
|
|
2144
|
+
status: __expectString,
|
|
2803
2145
|
});
|
|
2804
|
-
return retVal;
|
|
2805
|
-
};
|
|
2806
|
-
const de_TagMap = (output, context) => {
|
|
2807
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2808
|
-
if (value === null) {
|
|
2809
|
-
return acc;
|
|
2810
|
-
}
|
|
2811
|
-
acc[key] = __expectString(value);
|
|
2812
|
-
return acc;
|
|
2813
|
-
}, {});
|
|
2814
2146
|
};
|
|
2815
2147
|
const de_TimelineEvent = (output, context) => {
|
|
2816
|
-
return {
|
|
2817
|
-
eventData: __expectString
|
|
2818
|
-
eventId: __expectString
|
|
2819
|
-
eventReferences:
|
|
2820
|
-
eventTime:
|
|
2821
|
-
eventType: __expectString
|
|
2822
|
-
eventUpdatedTime:
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
incidentRecordArn: __expectString(output.incidentRecordArn),
|
|
2826
|
-
};
|
|
2148
|
+
return take(output, {
|
|
2149
|
+
eventData: __expectString,
|
|
2150
|
+
eventId: __expectString,
|
|
2151
|
+
eventReferences: _json,
|
|
2152
|
+
eventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2153
|
+
eventType: __expectString,
|
|
2154
|
+
eventUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2155
|
+
incidentRecordArn: __expectString,
|
|
2156
|
+
});
|
|
2827
2157
|
};
|
|
2828
2158
|
const deserializeMetadata = (output) => ({
|
|
2829
2159
|
httpStatusCode: output.statusCode,
|