@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
|
@@ -14,11 +14,11 @@ const se_CreateReplicationSetCommand = async (input, context) => {
|
|
|
14
14
|
};
|
|
15
15
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createReplicationSet";
|
|
16
16
|
let body;
|
|
17
|
-
body = JSON.stringify({
|
|
18
|
-
clientToken:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
17
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
19
|
+
regions: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
+
}));
|
|
22
22
|
return new protocol_http_1.HttpRequest({
|
|
23
23
|
protocol,
|
|
24
24
|
hostname,
|
|
@@ -37,17 +37,17 @@ const se_CreateResponsePlanCommand = async (input, context) => {
|
|
|
37
37
|
};
|
|
38
38
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createResponsePlan";
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
clientToken:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
});
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
+
actions: (_) => (0, smithy_client_1._json)(_),
|
|
42
|
+
chatChannel: (_) => (0, smithy_client_1._json)(_),
|
|
43
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
44
|
+
displayName: [],
|
|
45
|
+
engagements: (_) => (0, smithy_client_1._json)(_),
|
|
46
|
+
incidentTemplate: (_) => (0, smithy_client_1._json)(_),
|
|
47
|
+
integrations: (_) => (0, smithy_client_1._json)(_),
|
|
48
|
+
name: [],
|
|
49
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
50
|
+
}));
|
|
51
51
|
return new protocol_http_1.HttpRequest({
|
|
52
52
|
protocol,
|
|
53
53
|
hostname,
|
|
@@ -66,14 +66,14 @@ const se_CreateTimelineEventCommand = async (input, context) => {
|
|
|
66
66
|
};
|
|
67
67
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createTimelineEvent";
|
|
68
68
|
let body;
|
|
69
|
-
body = JSON.stringify({
|
|
70
|
-
clientToken:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
});
|
|
69
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
70
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
71
|
+
eventData: [],
|
|
72
|
+
eventReferences: (_) => (0, smithy_client_1._json)(_),
|
|
73
|
+
eventTime: (_) => Math.round(_.getTime() / 1000),
|
|
74
|
+
eventType: [],
|
|
75
|
+
incidentRecordArn: [],
|
|
76
|
+
}));
|
|
77
77
|
return new protocol_http_1.HttpRequest({
|
|
78
78
|
protocol,
|
|
79
79
|
hostname,
|
|
@@ -92,9 +92,9 @@ const se_DeleteIncidentRecordCommand = async (input, context) => {
|
|
|
92
92
|
};
|
|
93
93
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteIncidentRecord";
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify({
|
|
96
|
-
|
|
97
|
-
});
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
96
|
+
arn: [],
|
|
97
|
+
}));
|
|
98
98
|
return new protocol_http_1.HttpRequest({
|
|
99
99
|
protocol,
|
|
100
100
|
hostname,
|
|
@@ -110,7 +110,7 @@ const se_DeleteReplicationSetCommand = async (input, context) => {
|
|
|
110
110
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
111
111
|
const headers = {};
|
|
112
112
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteReplicationSet";
|
|
113
|
-
const query = map({
|
|
113
|
+
const query = (0, smithy_client_1.map)({
|
|
114
114
|
arn: [, (0, smithy_client_1.expectNonNull)(input.arn, `arn`)],
|
|
115
115
|
});
|
|
116
116
|
let body;
|
|
@@ -133,10 +133,10 @@ const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
|
133
133
|
};
|
|
134
134
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResourcePolicy";
|
|
135
135
|
let body;
|
|
136
|
-
body = JSON.stringify({
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
});
|
|
136
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
137
|
+
policyId: [],
|
|
138
|
+
resourceArn: [],
|
|
139
|
+
}));
|
|
140
140
|
return new protocol_http_1.HttpRequest({
|
|
141
141
|
protocol,
|
|
142
142
|
hostname,
|
|
@@ -155,9 +155,9 @@ const se_DeleteResponsePlanCommand = async (input, context) => {
|
|
|
155
155
|
};
|
|
156
156
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResponsePlan";
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify({
|
|
159
|
-
|
|
160
|
-
});
|
|
158
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
159
|
+
arn: [],
|
|
160
|
+
}));
|
|
161
161
|
return new protocol_http_1.HttpRequest({
|
|
162
162
|
protocol,
|
|
163
163
|
hostname,
|
|
@@ -176,10 +176,10 @@ const se_DeleteTimelineEventCommand = async (input, context) => {
|
|
|
176
176
|
};
|
|
177
177
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteTimelineEvent";
|
|
178
178
|
let body;
|
|
179
|
-
body = JSON.stringify({
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
});
|
|
179
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
180
|
+
eventId: [],
|
|
181
|
+
incidentRecordArn: [],
|
|
182
|
+
}));
|
|
183
183
|
return new protocol_http_1.HttpRequest({
|
|
184
184
|
protocol,
|
|
185
185
|
hostname,
|
|
@@ -195,7 +195,7 @@ const se_GetIncidentRecordCommand = async (input, context) => {
|
|
|
195
195
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
196
196
|
const headers = {};
|
|
197
197
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getIncidentRecord";
|
|
198
|
-
const query = map({
|
|
198
|
+
const query = (0, smithy_client_1.map)({
|
|
199
199
|
arn: [, (0, smithy_client_1.expectNonNull)(input.arn, `arn`)],
|
|
200
200
|
});
|
|
201
201
|
let body;
|
|
@@ -215,7 +215,7 @@ const se_GetReplicationSetCommand = async (input, context) => {
|
|
|
215
215
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
216
216
|
const headers = {};
|
|
217
217
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getReplicationSet";
|
|
218
|
-
const query = map({
|
|
218
|
+
const query = (0, smithy_client_1.map)({
|
|
219
219
|
arn: [, (0, smithy_client_1.expectNonNull)(input.arn, `arn`)],
|
|
220
220
|
});
|
|
221
221
|
let body;
|
|
@@ -237,14 +237,14 @@ const se_GetResourcePoliciesCommand = async (input, context) => {
|
|
|
237
237
|
"content-type": "application/json",
|
|
238
238
|
};
|
|
239
239
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getResourcePolicies";
|
|
240
|
-
const query = map({
|
|
240
|
+
const query = (0, smithy_client_1.map)({
|
|
241
241
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
242
242
|
});
|
|
243
243
|
let body;
|
|
244
|
-
body = JSON.stringify({
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
});
|
|
244
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
245
|
+
maxResults: [],
|
|
246
|
+
nextToken: [],
|
|
247
|
+
}));
|
|
248
248
|
return new protocol_http_1.HttpRequest({
|
|
249
249
|
protocol,
|
|
250
250
|
hostname,
|
|
@@ -261,7 +261,7 @@ const se_GetResponsePlanCommand = async (input, context) => {
|
|
|
261
261
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
262
262
|
const headers = {};
|
|
263
263
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getResponsePlan";
|
|
264
|
-
const query = map({
|
|
264
|
+
const query = (0, smithy_client_1.map)({
|
|
265
265
|
arn: [, (0, smithy_client_1.expectNonNull)(input.arn, `arn`)],
|
|
266
266
|
});
|
|
267
267
|
let body;
|
|
@@ -281,7 +281,7 @@ const se_GetTimelineEventCommand = async (input, context) => {
|
|
|
281
281
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
282
282
|
const headers = {};
|
|
283
283
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getTimelineEvent";
|
|
284
|
-
const query = map({
|
|
284
|
+
const query = (0, smithy_client_1.map)({
|
|
285
285
|
incidentRecordArn: [, (0, smithy_client_1.expectNonNull)(input.incidentRecordArn, `incidentRecordArn`)],
|
|
286
286
|
eventId: [, (0, smithy_client_1.expectNonNull)(input.eventId, `eventId`)],
|
|
287
287
|
});
|
|
@@ -305,11 +305,11 @@ const se_ListIncidentRecordsCommand = async (input, context) => {
|
|
|
305
305
|
};
|
|
306
306
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listIncidentRecords";
|
|
307
307
|
let body;
|
|
308
|
-
body = JSON.stringify({
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
});
|
|
308
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
309
|
+
filters: (_) => se_FilterList(_, context),
|
|
310
|
+
maxResults: [],
|
|
311
|
+
nextToken: [],
|
|
312
|
+
}));
|
|
313
313
|
return new protocol_http_1.HttpRequest({
|
|
314
314
|
protocol,
|
|
315
315
|
hostname,
|
|
@@ -328,11 +328,11 @@ const se_ListRelatedItemsCommand = async (input, context) => {
|
|
|
328
328
|
};
|
|
329
329
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listRelatedItems";
|
|
330
330
|
let body;
|
|
331
|
-
body = JSON.stringify({
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
});
|
|
331
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
332
|
+
incidentRecordArn: [],
|
|
333
|
+
maxResults: [],
|
|
334
|
+
nextToken: [],
|
|
335
|
+
}));
|
|
336
336
|
return new protocol_http_1.HttpRequest({
|
|
337
337
|
protocol,
|
|
338
338
|
hostname,
|
|
@@ -351,10 +351,10 @@ const se_ListReplicationSetsCommand = async (input, context) => {
|
|
|
351
351
|
};
|
|
352
352
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listReplicationSets";
|
|
353
353
|
let body;
|
|
354
|
-
body = JSON.stringify({
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
});
|
|
354
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
355
|
+
maxResults: [],
|
|
356
|
+
nextToken: [],
|
|
357
|
+
}));
|
|
358
358
|
return new protocol_http_1.HttpRequest({
|
|
359
359
|
protocol,
|
|
360
360
|
hostname,
|
|
@@ -373,10 +373,10 @@ const se_ListResponsePlansCommand = async (input, context) => {
|
|
|
373
373
|
};
|
|
374
374
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listResponsePlans";
|
|
375
375
|
let body;
|
|
376
|
-
body = JSON.stringify({
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
});
|
|
376
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
377
|
+
maxResults: [],
|
|
378
|
+
nextToken: [],
|
|
379
|
+
}));
|
|
380
380
|
return new protocol_http_1.HttpRequest({
|
|
381
381
|
protocol,
|
|
382
382
|
hostname,
|
|
@@ -412,14 +412,14 @@ const se_ListTimelineEventsCommand = async (input, context) => {
|
|
|
412
412
|
};
|
|
413
413
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listTimelineEvents";
|
|
414
414
|
let body;
|
|
415
|
-
body = JSON.stringify({
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
});
|
|
415
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
416
|
+
filters: (_) => se_FilterList(_, context),
|
|
417
|
+
incidentRecordArn: [],
|
|
418
|
+
maxResults: [],
|
|
419
|
+
nextToken: [],
|
|
420
|
+
sortBy: [],
|
|
421
|
+
sortOrder: [],
|
|
422
|
+
}));
|
|
423
423
|
return new protocol_http_1.HttpRequest({
|
|
424
424
|
protocol,
|
|
425
425
|
hostname,
|
|
@@ -438,10 +438,10 @@ const se_PutResourcePolicyCommand = async (input, context) => {
|
|
|
438
438
|
};
|
|
439
439
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/putResourcePolicy";
|
|
440
440
|
let body;
|
|
441
|
-
body = JSON.stringify({
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
});
|
|
441
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
442
|
+
policy: [],
|
|
443
|
+
resourceArn: [],
|
|
444
|
+
}));
|
|
445
445
|
return new protocol_http_1.HttpRequest({
|
|
446
446
|
protocol,
|
|
447
447
|
hostname,
|
|
@@ -460,14 +460,14 @@ const se_StartIncidentCommand = async (input, context) => {
|
|
|
460
460
|
};
|
|
461
461
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startIncident";
|
|
462
462
|
let body;
|
|
463
|
-
body = JSON.stringify({
|
|
464
|
-
clientToken:
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
});
|
|
463
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
464
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
465
|
+
impact: [],
|
|
466
|
+
relatedItems: (_) => (0, smithy_client_1._json)(_),
|
|
467
|
+
responsePlanArn: [],
|
|
468
|
+
title: [],
|
|
469
|
+
triggerDetails: (_) => se_TriggerDetails(_, context),
|
|
470
|
+
}));
|
|
471
471
|
return new protocol_http_1.HttpRequest({
|
|
472
472
|
protocol,
|
|
473
473
|
hostname,
|
|
@@ -487,9 +487,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
487
487
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
488
488
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
489
489
|
let body;
|
|
490
|
-
body = JSON.stringify({
|
|
491
|
-
|
|
492
|
-
});
|
|
490
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
491
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
492
|
+
}));
|
|
493
493
|
return new protocol_http_1.HttpRequest({
|
|
494
494
|
protocol,
|
|
495
495
|
hostname,
|
|
@@ -506,7 +506,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
506
506
|
const headers = {};
|
|
507
507
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
508
508
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
509
|
-
const query = map({
|
|
509
|
+
const query = (0, smithy_client_1.map)({
|
|
510
510
|
tagKeys: [
|
|
511
511
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
512
512
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -532,11 +532,11 @@ const se_UpdateDeletionProtectionCommand = async (input, context) => {
|
|
|
532
532
|
};
|
|
533
533
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateDeletionProtection";
|
|
534
534
|
let body;
|
|
535
|
-
body = JSON.stringify({
|
|
536
|
-
|
|
537
|
-
clientToken:
|
|
538
|
-
|
|
539
|
-
});
|
|
535
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
536
|
+
arn: [],
|
|
537
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
538
|
+
deletionProtected: [],
|
|
539
|
+
}));
|
|
540
540
|
return new protocol_http_1.HttpRequest({
|
|
541
541
|
protocol,
|
|
542
542
|
hostname,
|
|
@@ -555,18 +555,16 @@ const se_UpdateIncidentRecordCommand = async (input, context) => {
|
|
|
555
555
|
};
|
|
556
556
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateIncidentRecord";
|
|
557
557
|
let body;
|
|
558
|
-
body = JSON.stringify({
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
clientToken:
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
...(input.title != null && { title: input.title }),
|
|
569
|
-
});
|
|
558
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
559
|
+
arn: [],
|
|
560
|
+
chatChannel: (_) => (0, smithy_client_1._json)(_),
|
|
561
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
562
|
+
impact: [],
|
|
563
|
+
notificationTargets: (_) => (0, smithy_client_1._json)(_),
|
|
564
|
+
status: [],
|
|
565
|
+
summary: [],
|
|
566
|
+
title: [],
|
|
567
|
+
}));
|
|
570
568
|
return new protocol_http_1.HttpRequest({
|
|
571
569
|
protocol,
|
|
572
570
|
hostname,
|
|
@@ -585,13 +583,11 @@ const se_UpdateRelatedItemsCommand = async (input, context) => {
|
|
|
585
583
|
};
|
|
586
584
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateRelatedItems";
|
|
587
585
|
let body;
|
|
588
|
-
body = JSON.stringify({
|
|
589
|
-
clientToken:
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
}),
|
|
594
|
-
});
|
|
586
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
587
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
588
|
+
incidentRecordArn: [],
|
|
589
|
+
relatedItemsUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
590
|
+
}));
|
|
595
591
|
return new protocol_http_1.HttpRequest({
|
|
596
592
|
protocol,
|
|
597
593
|
hostname,
|
|
@@ -610,11 +606,11 @@ const se_UpdateReplicationSetCommand = async (input, context) => {
|
|
|
610
606
|
};
|
|
611
607
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateReplicationSet";
|
|
612
608
|
let body;
|
|
613
|
-
body = JSON.stringify({
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
clientToken:
|
|
617
|
-
});
|
|
609
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
610
|
+
actions: (_) => (0, smithy_client_1._json)(_),
|
|
611
|
+
arn: [],
|
|
612
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
613
|
+
}));
|
|
618
614
|
return new protocol_http_1.HttpRequest({
|
|
619
615
|
protocol,
|
|
620
616
|
hostname,
|
|
@@ -633,27 +629,21 @@ const se_UpdateResponsePlanCommand = async (input, context) => {
|
|
|
633
629
|
};
|
|
634
630
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateResponsePlan";
|
|
635
631
|
let body;
|
|
636
|
-
body = JSON.stringify({
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
clientToken:
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
...(input.incidentTemplateTags != null && {
|
|
652
|
-
incidentTemplateTags: se_TagMapUpdate(input.incidentTemplateTags, context),
|
|
653
|
-
}),
|
|
654
|
-
...(input.incidentTemplateTitle != null && { incidentTemplateTitle: input.incidentTemplateTitle }),
|
|
655
|
-
...(input.integrations != null && { integrations: se_Integrations(input.integrations, context) }),
|
|
656
|
-
});
|
|
632
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
633
|
+
actions: (_) => (0, smithy_client_1._json)(_),
|
|
634
|
+
arn: [],
|
|
635
|
+
chatChannel: (_) => (0, smithy_client_1._json)(_),
|
|
636
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
637
|
+
displayName: [],
|
|
638
|
+
engagements: (_) => (0, smithy_client_1._json)(_),
|
|
639
|
+
incidentTemplateDedupeString: [],
|
|
640
|
+
incidentTemplateImpact: [],
|
|
641
|
+
incidentTemplateNotificationTargets: (_) => (0, smithy_client_1._json)(_),
|
|
642
|
+
incidentTemplateSummary: [],
|
|
643
|
+
incidentTemplateTags: (_) => (0, smithy_client_1._json)(_),
|
|
644
|
+
incidentTemplateTitle: [],
|
|
645
|
+
integrations: (_) => (0, smithy_client_1._json)(_),
|
|
646
|
+
}));
|
|
657
647
|
return new protocol_http_1.HttpRequest({
|
|
658
648
|
protocol,
|
|
659
649
|
hostname,
|
|
@@ -672,15 +662,15 @@ const se_UpdateTimelineEventCommand = async (input, context) => {
|
|
|
672
662
|
};
|
|
673
663
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateTimelineEvent";
|
|
674
664
|
let body;
|
|
675
|
-
body = JSON.stringify({
|
|
676
|
-
clientToken:
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
});
|
|
665
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
666
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
667
|
+
eventData: [],
|
|
668
|
+
eventId: [],
|
|
669
|
+
eventReferences: (_) => (0, smithy_client_1._json)(_),
|
|
670
|
+
eventTime: (_) => Math.round(_.getTime() / 1000),
|
|
671
|
+
eventType: [],
|
|
672
|
+
incidentRecordArn: [],
|
|
673
|
+
}));
|
|
684
674
|
return new protocol_http_1.HttpRequest({
|
|
685
675
|
protocol,
|
|
686
676
|
hostname,
|
|
@@ -696,13 +686,14 @@ const de_CreateReplicationSetCommand = async (output, context) => {
|
|
|
696
686
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
697
687
|
return de_CreateReplicationSetCommandError(output, context);
|
|
698
688
|
}
|
|
699
|
-
const contents = map({
|
|
689
|
+
const contents = (0, smithy_client_1.map)({
|
|
700
690
|
$metadata: deserializeMetadata(output),
|
|
701
691
|
});
|
|
702
692
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
}
|
|
693
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
694
|
+
arn: smithy_client_1.expectString,
|
|
695
|
+
});
|
|
696
|
+
Object.assign(contents, doc);
|
|
706
697
|
return contents;
|
|
707
698
|
};
|
|
708
699
|
exports.de_CreateReplicationSetCommand = de_CreateReplicationSetCommand;
|
|
@@ -733,10 +724,9 @@ const de_CreateReplicationSetCommandError = async (output, context) => {
|
|
|
733
724
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
734
725
|
default:
|
|
735
726
|
const parsedBody = parsedOutput.body;
|
|
736
|
-
|
|
727
|
+
return throwDefaultError({
|
|
737
728
|
output,
|
|
738
729
|
parsedBody,
|
|
739
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
740
730
|
errorCode,
|
|
741
731
|
});
|
|
742
732
|
}
|
|
@@ -745,13 +735,14 @@ const de_CreateResponsePlanCommand = async (output, context) => {
|
|
|
745
735
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
746
736
|
return de_CreateResponsePlanCommandError(output, context);
|
|
747
737
|
}
|
|
748
|
-
const contents = map({
|
|
738
|
+
const contents = (0, smithy_client_1.map)({
|
|
749
739
|
$metadata: deserializeMetadata(output),
|
|
750
740
|
});
|
|
751
741
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}
|
|
742
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
743
|
+
arn: smithy_client_1.expectString,
|
|
744
|
+
});
|
|
745
|
+
Object.assign(contents, doc);
|
|
755
746
|
return contents;
|
|
756
747
|
};
|
|
757
748
|
exports.de_CreateResponsePlanCommand = de_CreateResponsePlanCommand;
|
|
@@ -782,10 +773,9 @@ const de_CreateResponsePlanCommandError = async (output, context) => {
|
|
|
782
773
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
783
774
|
default:
|
|
784
775
|
const parsedBody = parsedOutput.body;
|
|
785
|
-
|
|
776
|
+
return throwDefaultError({
|
|
786
777
|
output,
|
|
787
778
|
parsedBody,
|
|
788
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
789
779
|
errorCode,
|
|
790
780
|
});
|
|
791
781
|
}
|
|
@@ -794,16 +784,15 @@ const de_CreateTimelineEventCommand = async (output, context) => {
|
|
|
794
784
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
795
785
|
return de_CreateTimelineEventCommandError(output, context);
|
|
796
786
|
}
|
|
797
|
-
const contents = map({
|
|
787
|
+
const contents = (0, smithy_client_1.map)({
|
|
798
788
|
$metadata: deserializeMetadata(output),
|
|
799
789
|
});
|
|
800
790
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
}
|
|
791
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
792
|
+
eventId: smithy_client_1.expectString,
|
|
793
|
+
incidentRecordArn: smithy_client_1.expectString,
|
|
794
|
+
});
|
|
795
|
+
Object.assign(contents, doc);
|
|
807
796
|
return contents;
|
|
808
797
|
};
|
|
809
798
|
exports.de_CreateTimelineEventCommand = de_CreateTimelineEventCommand;
|
|
@@ -834,10 +823,9 @@ const de_CreateTimelineEventCommandError = async (output, context) => {
|
|
|
834
823
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
835
824
|
default:
|
|
836
825
|
const parsedBody = parsedOutput.body;
|
|
837
|
-
|
|
826
|
+
return throwDefaultError({
|
|
838
827
|
output,
|
|
839
828
|
parsedBody,
|
|
840
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
841
829
|
errorCode,
|
|
842
830
|
});
|
|
843
831
|
}
|
|
@@ -846,7 +834,7 @@ const de_DeleteIncidentRecordCommand = async (output, context) => {
|
|
|
846
834
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
847
835
|
return de_DeleteIncidentRecordCommandError(output, context);
|
|
848
836
|
}
|
|
849
|
-
const contents = map({
|
|
837
|
+
const contents = (0, smithy_client_1.map)({
|
|
850
838
|
$metadata: deserializeMetadata(output),
|
|
851
839
|
});
|
|
852
840
|
await collectBody(output.body, context);
|
|
@@ -874,10 +862,9 @@ const de_DeleteIncidentRecordCommandError = async (output, context) => {
|
|
|
874
862
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
875
863
|
default:
|
|
876
864
|
const parsedBody = parsedOutput.body;
|
|
877
|
-
|
|
865
|
+
return throwDefaultError({
|
|
878
866
|
output,
|
|
879
867
|
parsedBody,
|
|
880
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
881
868
|
errorCode,
|
|
882
869
|
});
|
|
883
870
|
}
|
|
@@ -886,7 +873,7 @@ const de_DeleteReplicationSetCommand = async (output, context) => {
|
|
|
886
873
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
887
874
|
return de_DeleteReplicationSetCommandError(output, context);
|
|
888
875
|
}
|
|
889
|
-
const contents = map({
|
|
876
|
+
const contents = (0, smithy_client_1.map)({
|
|
890
877
|
$metadata: deserializeMetadata(output),
|
|
891
878
|
});
|
|
892
879
|
await collectBody(output.body, context);
|
|
@@ -917,10 +904,9 @@ const de_DeleteReplicationSetCommandError = async (output, context) => {
|
|
|
917
904
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
918
905
|
default:
|
|
919
906
|
const parsedBody = parsedOutput.body;
|
|
920
|
-
|
|
907
|
+
return throwDefaultError({
|
|
921
908
|
output,
|
|
922
909
|
parsedBody,
|
|
923
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
924
910
|
errorCode,
|
|
925
911
|
});
|
|
926
912
|
}
|
|
@@ -929,7 +915,7 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
929
915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
930
916
|
return de_DeleteResourcePolicyCommandError(output, context);
|
|
931
917
|
}
|
|
932
|
-
const contents = map({
|
|
918
|
+
const contents = (0, smithy_client_1.map)({
|
|
933
919
|
$metadata: deserializeMetadata(output),
|
|
934
920
|
});
|
|
935
921
|
await collectBody(output.body, context);
|
|
@@ -960,10 +946,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
960
946
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
961
947
|
default:
|
|
962
948
|
const parsedBody = parsedOutput.body;
|
|
963
|
-
|
|
949
|
+
return throwDefaultError({
|
|
964
950
|
output,
|
|
965
951
|
parsedBody,
|
|
966
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
967
952
|
errorCode,
|
|
968
953
|
});
|
|
969
954
|
}
|
|
@@ -972,7 +957,7 @@ const de_DeleteResponsePlanCommand = async (output, context) => {
|
|
|
972
957
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
973
958
|
return de_DeleteResponsePlanCommandError(output, context);
|
|
974
959
|
}
|
|
975
|
-
const contents = map({
|
|
960
|
+
const contents = (0, smithy_client_1.map)({
|
|
976
961
|
$metadata: deserializeMetadata(output),
|
|
977
962
|
});
|
|
978
963
|
await collectBody(output.body, context);
|
|
@@ -1000,10 +985,9 @@ const de_DeleteResponsePlanCommandError = async (output, context) => {
|
|
|
1000
985
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1001
986
|
default:
|
|
1002
987
|
const parsedBody = parsedOutput.body;
|
|
1003
|
-
|
|
988
|
+
return throwDefaultError({
|
|
1004
989
|
output,
|
|
1005
990
|
parsedBody,
|
|
1006
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1007
991
|
errorCode,
|
|
1008
992
|
});
|
|
1009
993
|
}
|
|
@@ -1012,7 +996,7 @@ const de_DeleteTimelineEventCommand = async (output, context) => {
|
|
|
1012
996
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1013
997
|
return de_DeleteTimelineEventCommandError(output, context);
|
|
1014
998
|
}
|
|
1015
|
-
const contents = map({
|
|
999
|
+
const contents = (0, smithy_client_1.map)({
|
|
1016
1000
|
$metadata: deserializeMetadata(output),
|
|
1017
1001
|
});
|
|
1018
1002
|
await collectBody(output.body, context);
|
|
@@ -1040,10 +1024,9 @@ const de_DeleteTimelineEventCommandError = async (output, context) => {
|
|
|
1040
1024
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1041
1025
|
default:
|
|
1042
1026
|
const parsedBody = parsedOutput.body;
|
|
1043
|
-
|
|
1027
|
+
return throwDefaultError({
|
|
1044
1028
|
output,
|
|
1045
1029
|
parsedBody,
|
|
1046
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1047
1030
|
errorCode,
|
|
1048
1031
|
});
|
|
1049
1032
|
}
|
|
@@ -1052,13 +1035,14 @@ const de_GetIncidentRecordCommand = async (output, context) => {
|
|
|
1052
1035
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1053
1036
|
return de_GetIncidentRecordCommandError(output, context);
|
|
1054
1037
|
}
|
|
1055
|
-
const contents = map({
|
|
1038
|
+
const contents = (0, smithy_client_1.map)({
|
|
1056
1039
|
$metadata: deserializeMetadata(output),
|
|
1057
1040
|
});
|
|
1058
1041
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
}
|
|
1042
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1043
|
+
incidentRecord: (_) => de_IncidentRecord(_, context),
|
|
1044
|
+
});
|
|
1045
|
+
Object.assign(contents, doc);
|
|
1062
1046
|
return contents;
|
|
1063
1047
|
};
|
|
1064
1048
|
exports.de_GetIncidentRecordCommand = de_GetIncidentRecordCommand;
|
|
@@ -1086,10 +1070,9 @@ const de_GetIncidentRecordCommandError = async (output, context) => {
|
|
|
1086
1070
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1087
1071
|
default:
|
|
1088
1072
|
const parsedBody = parsedOutput.body;
|
|
1089
|
-
|
|
1073
|
+
return throwDefaultError({
|
|
1090
1074
|
output,
|
|
1091
1075
|
parsedBody,
|
|
1092
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1093
1076
|
errorCode,
|
|
1094
1077
|
});
|
|
1095
1078
|
}
|
|
@@ -1098,13 +1081,14 @@ const de_GetReplicationSetCommand = async (output, context) => {
|
|
|
1098
1081
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
1082
|
return de_GetReplicationSetCommandError(output, context);
|
|
1100
1083
|
}
|
|
1101
|
-
const contents = map({
|
|
1084
|
+
const contents = (0, smithy_client_1.map)({
|
|
1102
1085
|
$metadata: deserializeMetadata(output),
|
|
1103
1086
|
});
|
|
1104
1087
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
}
|
|
1088
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1089
|
+
replicationSet: (_) => de_ReplicationSet(_, context),
|
|
1090
|
+
});
|
|
1091
|
+
Object.assign(contents, doc);
|
|
1108
1092
|
return contents;
|
|
1109
1093
|
};
|
|
1110
1094
|
exports.de_GetReplicationSetCommand = de_GetReplicationSetCommand;
|
|
@@ -1132,10 +1116,9 @@ const de_GetReplicationSetCommandError = async (output, context) => {
|
|
|
1132
1116
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1133
1117
|
default:
|
|
1134
1118
|
const parsedBody = parsedOutput.body;
|
|
1135
|
-
|
|
1119
|
+
return throwDefaultError({
|
|
1136
1120
|
output,
|
|
1137
1121
|
parsedBody,
|
|
1138
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1139
1122
|
errorCode,
|
|
1140
1123
|
});
|
|
1141
1124
|
}
|
|
@@ -1144,16 +1127,15 @@ const de_GetResourcePoliciesCommand = async (output, context) => {
|
|
|
1144
1127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1145
1128
|
return de_GetResourcePoliciesCommandError(output, context);
|
|
1146
1129
|
}
|
|
1147
|
-
const contents = map({
|
|
1130
|
+
const contents = (0, smithy_client_1.map)({
|
|
1148
1131
|
$metadata: deserializeMetadata(output),
|
|
1149
1132
|
});
|
|
1150
1133
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
}
|
|
1134
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1135
|
+
nextToken: smithy_client_1.expectString,
|
|
1136
|
+
resourcePolicies: smithy_client_1._json,
|
|
1137
|
+
});
|
|
1138
|
+
Object.assign(contents, doc);
|
|
1157
1139
|
return contents;
|
|
1158
1140
|
};
|
|
1159
1141
|
exports.de_GetResourcePoliciesCommand = de_GetResourcePoliciesCommand;
|
|
@@ -1181,10 +1163,9 @@ const de_GetResourcePoliciesCommandError = async (output, context) => {
|
|
|
1181
1163
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1182
1164
|
default:
|
|
1183
1165
|
const parsedBody = parsedOutput.body;
|
|
1184
|
-
|
|
1166
|
+
return throwDefaultError({
|
|
1185
1167
|
output,
|
|
1186
1168
|
parsedBody,
|
|
1187
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1188
1169
|
errorCode,
|
|
1189
1170
|
});
|
|
1190
1171
|
}
|
|
@@ -1193,34 +1174,21 @@ const de_GetResponsePlanCommand = async (output, context) => {
|
|
|
1193
1174
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1194
1175
|
return de_GetResponsePlanCommandError(output, context);
|
|
1195
1176
|
}
|
|
1196
|
-
const contents = map({
|
|
1177
|
+
const contents = (0, smithy_client_1.map)({
|
|
1197
1178
|
$metadata: deserializeMetadata(output),
|
|
1198
1179
|
});
|
|
1199
1180
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
}
|
|
1212
|
-
if (data.engagements != null) {
|
|
1213
|
-
contents.engagements = de_EngagementSet(data.engagements, context);
|
|
1214
|
-
}
|
|
1215
|
-
if (data.incidentTemplate != null) {
|
|
1216
|
-
contents.incidentTemplate = de_IncidentTemplate(data.incidentTemplate, context);
|
|
1217
|
-
}
|
|
1218
|
-
if (data.integrations != null) {
|
|
1219
|
-
contents.integrations = de_Integrations(data.integrations, context);
|
|
1220
|
-
}
|
|
1221
|
-
if (data.name != null) {
|
|
1222
|
-
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1223
|
-
}
|
|
1181
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1182
|
+
actions: smithy_client_1._json,
|
|
1183
|
+
arn: smithy_client_1.expectString,
|
|
1184
|
+
chatChannel: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
1185
|
+
displayName: smithy_client_1.expectString,
|
|
1186
|
+
engagements: smithy_client_1._json,
|
|
1187
|
+
incidentTemplate: smithy_client_1._json,
|
|
1188
|
+
integrations: smithy_client_1._json,
|
|
1189
|
+
name: smithy_client_1.expectString,
|
|
1190
|
+
});
|
|
1191
|
+
Object.assign(contents, doc);
|
|
1224
1192
|
return contents;
|
|
1225
1193
|
};
|
|
1226
1194
|
exports.de_GetResponsePlanCommand = de_GetResponsePlanCommand;
|
|
@@ -1248,10 +1216,9 @@ const de_GetResponsePlanCommandError = async (output, context) => {
|
|
|
1248
1216
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1249
1217
|
default:
|
|
1250
1218
|
const parsedBody = parsedOutput.body;
|
|
1251
|
-
|
|
1219
|
+
return throwDefaultError({
|
|
1252
1220
|
output,
|
|
1253
1221
|
parsedBody,
|
|
1254
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1255
1222
|
errorCode,
|
|
1256
1223
|
});
|
|
1257
1224
|
}
|
|
@@ -1260,13 +1227,14 @@ const de_GetTimelineEventCommand = async (output, context) => {
|
|
|
1260
1227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1261
1228
|
return de_GetTimelineEventCommandError(output, context);
|
|
1262
1229
|
}
|
|
1263
|
-
const contents = map({
|
|
1230
|
+
const contents = (0, smithy_client_1.map)({
|
|
1264
1231
|
$metadata: deserializeMetadata(output),
|
|
1265
1232
|
});
|
|
1266
1233
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
}
|
|
1234
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1235
|
+
event: (_) => de_TimelineEvent(_, context),
|
|
1236
|
+
});
|
|
1237
|
+
Object.assign(contents, doc);
|
|
1270
1238
|
return contents;
|
|
1271
1239
|
};
|
|
1272
1240
|
exports.de_GetTimelineEventCommand = de_GetTimelineEventCommand;
|
|
@@ -1294,10 +1262,9 @@ const de_GetTimelineEventCommandError = async (output, context) => {
|
|
|
1294
1262
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1295
1263
|
default:
|
|
1296
1264
|
const parsedBody = parsedOutput.body;
|
|
1297
|
-
|
|
1265
|
+
return throwDefaultError({
|
|
1298
1266
|
output,
|
|
1299
1267
|
parsedBody,
|
|
1300
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1301
1268
|
errorCode,
|
|
1302
1269
|
});
|
|
1303
1270
|
}
|
|
@@ -1306,16 +1273,15 @@ const de_ListIncidentRecordsCommand = async (output, context) => {
|
|
|
1306
1273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1307
1274
|
return de_ListIncidentRecordsCommandError(output, context);
|
|
1308
1275
|
}
|
|
1309
|
-
const contents = map({
|
|
1276
|
+
const contents = (0, smithy_client_1.map)({
|
|
1310
1277
|
$metadata: deserializeMetadata(output),
|
|
1311
1278
|
});
|
|
1312
1279
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
}
|
|
1280
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1281
|
+
incidentRecordSummaries: (_) => de_IncidentRecordSummaryList(_, context),
|
|
1282
|
+
nextToken: smithy_client_1.expectString,
|
|
1283
|
+
});
|
|
1284
|
+
Object.assign(contents, doc);
|
|
1319
1285
|
return contents;
|
|
1320
1286
|
};
|
|
1321
1287
|
exports.de_ListIncidentRecordsCommand = de_ListIncidentRecordsCommand;
|
|
@@ -1340,10 +1306,9 @@ const de_ListIncidentRecordsCommandError = async (output, context) => {
|
|
|
1340
1306
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1341
1307
|
default:
|
|
1342
1308
|
const parsedBody = parsedOutput.body;
|
|
1343
|
-
|
|
1309
|
+
return throwDefaultError({
|
|
1344
1310
|
output,
|
|
1345
1311
|
parsedBody,
|
|
1346
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1347
1312
|
errorCode,
|
|
1348
1313
|
});
|
|
1349
1314
|
}
|
|
@@ -1352,16 +1317,15 @@ const de_ListRelatedItemsCommand = async (output, context) => {
|
|
|
1352
1317
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
1318
|
return de_ListRelatedItemsCommandError(output, context);
|
|
1354
1319
|
}
|
|
1355
|
-
const contents = map({
|
|
1320
|
+
const contents = (0, smithy_client_1.map)({
|
|
1356
1321
|
$metadata: deserializeMetadata(output),
|
|
1357
1322
|
});
|
|
1358
1323
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
}
|
|
1324
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1325
|
+
nextToken: smithy_client_1.expectString,
|
|
1326
|
+
relatedItems: smithy_client_1._json,
|
|
1327
|
+
});
|
|
1328
|
+
Object.assign(contents, doc);
|
|
1365
1329
|
return contents;
|
|
1366
1330
|
};
|
|
1367
1331
|
exports.de_ListRelatedItemsCommand = de_ListRelatedItemsCommand;
|
|
@@ -1386,10 +1350,9 @@ const de_ListRelatedItemsCommandError = async (output, context) => {
|
|
|
1386
1350
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1387
1351
|
default:
|
|
1388
1352
|
const parsedBody = parsedOutput.body;
|
|
1389
|
-
|
|
1353
|
+
return throwDefaultError({
|
|
1390
1354
|
output,
|
|
1391
1355
|
parsedBody,
|
|
1392
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1393
1356
|
errorCode,
|
|
1394
1357
|
});
|
|
1395
1358
|
}
|
|
@@ -1398,16 +1361,15 @@ const de_ListReplicationSetsCommand = async (output, context) => {
|
|
|
1398
1361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1399
1362
|
return de_ListReplicationSetsCommandError(output, context);
|
|
1400
1363
|
}
|
|
1401
|
-
const contents = map({
|
|
1364
|
+
const contents = (0, smithy_client_1.map)({
|
|
1402
1365
|
$metadata: deserializeMetadata(output),
|
|
1403
1366
|
});
|
|
1404
1367
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
}
|
|
1368
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1369
|
+
nextToken: smithy_client_1.expectString,
|
|
1370
|
+
replicationSetArns: smithy_client_1._json,
|
|
1371
|
+
});
|
|
1372
|
+
Object.assign(contents, doc);
|
|
1411
1373
|
return contents;
|
|
1412
1374
|
};
|
|
1413
1375
|
exports.de_ListReplicationSetsCommand = de_ListReplicationSetsCommand;
|
|
@@ -1432,10 +1394,9 @@ const de_ListReplicationSetsCommandError = async (output, context) => {
|
|
|
1432
1394
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1433
1395
|
default:
|
|
1434
1396
|
const parsedBody = parsedOutput.body;
|
|
1435
|
-
|
|
1397
|
+
return throwDefaultError({
|
|
1436
1398
|
output,
|
|
1437
1399
|
parsedBody,
|
|
1438
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1439
1400
|
errorCode,
|
|
1440
1401
|
});
|
|
1441
1402
|
}
|
|
@@ -1444,16 +1405,15 @@ const de_ListResponsePlansCommand = async (output, context) => {
|
|
|
1444
1405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1445
1406
|
return de_ListResponsePlansCommandError(output, context);
|
|
1446
1407
|
}
|
|
1447
|
-
const contents = map({
|
|
1408
|
+
const contents = (0, smithy_client_1.map)({
|
|
1448
1409
|
$metadata: deserializeMetadata(output),
|
|
1449
1410
|
});
|
|
1450
1411
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
}
|
|
1412
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1413
|
+
nextToken: smithy_client_1.expectString,
|
|
1414
|
+
responsePlanSummaries: smithy_client_1._json,
|
|
1415
|
+
});
|
|
1416
|
+
Object.assign(contents, doc);
|
|
1457
1417
|
return contents;
|
|
1458
1418
|
};
|
|
1459
1419
|
exports.de_ListResponsePlansCommand = de_ListResponsePlansCommand;
|
|
@@ -1478,10 +1438,9 @@ const de_ListResponsePlansCommandError = async (output, context) => {
|
|
|
1478
1438
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1479
1439
|
default:
|
|
1480
1440
|
const parsedBody = parsedOutput.body;
|
|
1481
|
-
|
|
1441
|
+
return throwDefaultError({
|
|
1482
1442
|
output,
|
|
1483
1443
|
parsedBody,
|
|
1484
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1485
1444
|
errorCode,
|
|
1486
1445
|
});
|
|
1487
1446
|
}
|
|
@@ -1490,13 +1449,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1490
1449
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1491
1450
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1492
1451
|
}
|
|
1493
|
-
const contents = map({
|
|
1452
|
+
const contents = (0, smithy_client_1.map)({
|
|
1494
1453
|
$metadata: deserializeMetadata(output),
|
|
1495
1454
|
});
|
|
1496
1455
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
}
|
|
1456
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1457
|
+
tags: smithy_client_1._json,
|
|
1458
|
+
});
|
|
1459
|
+
Object.assign(contents, doc);
|
|
1500
1460
|
return contents;
|
|
1501
1461
|
};
|
|
1502
1462
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1524,10 +1484,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1524
1484
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1525
1485
|
default:
|
|
1526
1486
|
const parsedBody = parsedOutput.body;
|
|
1527
|
-
|
|
1487
|
+
return throwDefaultError({
|
|
1528
1488
|
output,
|
|
1529
1489
|
parsedBody,
|
|
1530
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1531
1490
|
errorCode,
|
|
1532
1491
|
});
|
|
1533
1492
|
}
|
|
@@ -1536,16 +1495,15 @@ const de_ListTimelineEventsCommand = async (output, context) => {
|
|
|
1536
1495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1537
1496
|
return de_ListTimelineEventsCommandError(output, context);
|
|
1538
1497
|
}
|
|
1539
|
-
const contents = map({
|
|
1498
|
+
const contents = (0, smithy_client_1.map)({
|
|
1540
1499
|
$metadata: deserializeMetadata(output),
|
|
1541
1500
|
});
|
|
1542
1501
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
}
|
|
1502
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1503
|
+
eventSummaries: (_) => de_EventSummaryList(_, context),
|
|
1504
|
+
nextToken: smithy_client_1.expectString,
|
|
1505
|
+
});
|
|
1506
|
+
Object.assign(contents, doc);
|
|
1549
1507
|
return contents;
|
|
1550
1508
|
};
|
|
1551
1509
|
exports.de_ListTimelineEventsCommand = de_ListTimelineEventsCommand;
|
|
@@ -1570,10 +1528,9 @@ const de_ListTimelineEventsCommandError = async (output, context) => {
|
|
|
1570
1528
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1571
1529
|
default:
|
|
1572
1530
|
const parsedBody = parsedOutput.body;
|
|
1573
|
-
|
|
1531
|
+
return throwDefaultError({
|
|
1574
1532
|
output,
|
|
1575
1533
|
parsedBody,
|
|
1576
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1577
1534
|
errorCode,
|
|
1578
1535
|
});
|
|
1579
1536
|
}
|
|
@@ -1582,13 +1539,14 @@ const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
1582
1539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1583
1540
|
return de_PutResourcePolicyCommandError(output, context);
|
|
1584
1541
|
}
|
|
1585
|
-
const contents = map({
|
|
1542
|
+
const contents = (0, smithy_client_1.map)({
|
|
1586
1543
|
$metadata: deserializeMetadata(output),
|
|
1587
1544
|
});
|
|
1588
1545
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
}
|
|
1546
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1547
|
+
policyId: smithy_client_1.expectString,
|
|
1548
|
+
});
|
|
1549
|
+
Object.assign(contents, doc);
|
|
1592
1550
|
return contents;
|
|
1593
1551
|
};
|
|
1594
1552
|
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
@@ -1616,10 +1574,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
1616
1574
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1617
1575
|
default:
|
|
1618
1576
|
const parsedBody = parsedOutput.body;
|
|
1619
|
-
|
|
1577
|
+
return throwDefaultError({
|
|
1620
1578
|
output,
|
|
1621
1579
|
parsedBody,
|
|
1622
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1623
1580
|
errorCode,
|
|
1624
1581
|
});
|
|
1625
1582
|
}
|
|
@@ -1628,13 +1585,14 @@ const de_StartIncidentCommand = async (output, context) => {
|
|
|
1628
1585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1629
1586
|
return de_StartIncidentCommandError(output, context);
|
|
1630
1587
|
}
|
|
1631
|
-
const contents = map({
|
|
1588
|
+
const contents = (0, smithy_client_1.map)({
|
|
1632
1589
|
$metadata: deserializeMetadata(output),
|
|
1633
1590
|
});
|
|
1634
1591
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
}
|
|
1592
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1593
|
+
incidentRecordArn: smithy_client_1.expectString,
|
|
1594
|
+
});
|
|
1595
|
+
Object.assign(contents, doc);
|
|
1638
1596
|
return contents;
|
|
1639
1597
|
};
|
|
1640
1598
|
exports.de_StartIncidentCommand = de_StartIncidentCommand;
|
|
@@ -1665,10 +1623,9 @@ const de_StartIncidentCommandError = async (output, context) => {
|
|
|
1665
1623
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1666
1624
|
default:
|
|
1667
1625
|
const parsedBody = parsedOutput.body;
|
|
1668
|
-
|
|
1626
|
+
return throwDefaultError({
|
|
1669
1627
|
output,
|
|
1670
1628
|
parsedBody,
|
|
1671
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1672
1629
|
errorCode,
|
|
1673
1630
|
});
|
|
1674
1631
|
}
|
|
@@ -1677,7 +1634,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1677
1634
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1678
1635
|
return de_TagResourceCommandError(output, context);
|
|
1679
1636
|
}
|
|
1680
|
-
const contents = map({
|
|
1637
|
+
const contents = (0, smithy_client_1.map)({
|
|
1681
1638
|
$metadata: deserializeMetadata(output),
|
|
1682
1639
|
});
|
|
1683
1640
|
await collectBody(output.body, context);
|
|
@@ -1714,10 +1671,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1714
1671
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1715
1672
|
default:
|
|
1716
1673
|
const parsedBody = parsedOutput.body;
|
|
1717
|
-
|
|
1674
|
+
return throwDefaultError({
|
|
1718
1675
|
output,
|
|
1719
1676
|
parsedBody,
|
|
1720
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1721
1677
|
errorCode,
|
|
1722
1678
|
});
|
|
1723
1679
|
}
|
|
@@ -1726,7 +1682,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1726
1682
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1727
1683
|
return de_UntagResourceCommandError(output, context);
|
|
1728
1684
|
}
|
|
1729
|
-
const contents = map({
|
|
1685
|
+
const contents = (0, smithy_client_1.map)({
|
|
1730
1686
|
$metadata: deserializeMetadata(output),
|
|
1731
1687
|
});
|
|
1732
1688
|
await collectBody(output.body, context);
|
|
@@ -1760,10 +1716,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1760
1716
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1761
1717
|
default:
|
|
1762
1718
|
const parsedBody = parsedOutput.body;
|
|
1763
|
-
|
|
1719
|
+
return throwDefaultError({
|
|
1764
1720
|
output,
|
|
1765
1721
|
parsedBody,
|
|
1766
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1767
1722
|
errorCode,
|
|
1768
1723
|
});
|
|
1769
1724
|
}
|
|
@@ -1772,7 +1727,7 @@ const de_UpdateDeletionProtectionCommand = async (output, context) => {
|
|
|
1772
1727
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1773
1728
|
return de_UpdateDeletionProtectionCommandError(output, context);
|
|
1774
1729
|
}
|
|
1775
|
-
const contents = map({
|
|
1730
|
+
const contents = (0, smithy_client_1.map)({
|
|
1776
1731
|
$metadata: deserializeMetadata(output),
|
|
1777
1732
|
});
|
|
1778
1733
|
await collectBody(output.body, context);
|
|
@@ -1803,10 +1758,9 @@ const de_UpdateDeletionProtectionCommandError = async (output, context) => {
|
|
|
1803
1758
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1804
1759
|
default:
|
|
1805
1760
|
const parsedBody = parsedOutput.body;
|
|
1806
|
-
|
|
1761
|
+
return throwDefaultError({
|
|
1807
1762
|
output,
|
|
1808
1763
|
parsedBody,
|
|
1809
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1810
1764
|
errorCode,
|
|
1811
1765
|
});
|
|
1812
1766
|
}
|
|
@@ -1815,7 +1769,7 @@ const de_UpdateIncidentRecordCommand = async (output, context) => {
|
|
|
1815
1769
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1816
1770
|
return de_UpdateIncidentRecordCommandError(output, context);
|
|
1817
1771
|
}
|
|
1818
|
-
const contents = map({
|
|
1772
|
+
const contents = (0, smithy_client_1.map)({
|
|
1819
1773
|
$metadata: deserializeMetadata(output),
|
|
1820
1774
|
});
|
|
1821
1775
|
await collectBody(output.body, context);
|
|
@@ -1849,10 +1803,9 @@ const de_UpdateIncidentRecordCommandError = async (output, context) => {
|
|
|
1849
1803
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1850
1804
|
default:
|
|
1851
1805
|
const parsedBody = parsedOutput.body;
|
|
1852
|
-
|
|
1806
|
+
return throwDefaultError({
|
|
1853
1807
|
output,
|
|
1854
1808
|
parsedBody,
|
|
1855
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1856
1809
|
errorCode,
|
|
1857
1810
|
});
|
|
1858
1811
|
}
|
|
@@ -1861,7 +1814,7 @@ const de_UpdateRelatedItemsCommand = async (output, context) => {
|
|
|
1861
1814
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1862
1815
|
return de_UpdateRelatedItemsCommandError(output, context);
|
|
1863
1816
|
}
|
|
1864
|
-
const contents = map({
|
|
1817
|
+
const contents = (0, smithy_client_1.map)({
|
|
1865
1818
|
$metadata: deserializeMetadata(output),
|
|
1866
1819
|
});
|
|
1867
1820
|
await collectBody(output.body, context);
|
|
@@ -1895,10 +1848,9 @@ const de_UpdateRelatedItemsCommandError = async (output, context) => {
|
|
|
1895
1848
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1896
1849
|
default:
|
|
1897
1850
|
const parsedBody = parsedOutput.body;
|
|
1898
|
-
|
|
1851
|
+
return throwDefaultError({
|
|
1899
1852
|
output,
|
|
1900
1853
|
parsedBody,
|
|
1901
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1902
1854
|
errorCode,
|
|
1903
1855
|
});
|
|
1904
1856
|
}
|
|
@@ -1907,7 +1859,7 @@ const de_UpdateReplicationSetCommand = async (output, context) => {
|
|
|
1907
1859
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1908
1860
|
return de_UpdateReplicationSetCommandError(output, context);
|
|
1909
1861
|
}
|
|
1910
|
-
const contents = map({
|
|
1862
|
+
const contents = (0, smithy_client_1.map)({
|
|
1911
1863
|
$metadata: deserializeMetadata(output),
|
|
1912
1864
|
});
|
|
1913
1865
|
await collectBody(output.body, context);
|
|
@@ -1941,10 +1893,9 @@ const de_UpdateReplicationSetCommandError = async (output, context) => {
|
|
|
1941
1893
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1942
1894
|
default:
|
|
1943
1895
|
const parsedBody = parsedOutput.body;
|
|
1944
|
-
|
|
1896
|
+
return throwDefaultError({
|
|
1945
1897
|
output,
|
|
1946
1898
|
parsedBody,
|
|
1947
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1948
1899
|
errorCode,
|
|
1949
1900
|
});
|
|
1950
1901
|
}
|
|
@@ -1953,7 +1904,7 @@ const de_UpdateResponsePlanCommand = async (output, context) => {
|
|
|
1953
1904
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1954
1905
|
return de_UpdateResponsePlanCommandError(output, context);
|
|
1955
1906
|
}
|
|
1956
|
-
const contents = map({
|
|
1907
|
+
const contents = (0, smithy_client_1.map)({
|
|
1957
1908
|
$metadata: deserializeMetadata(output),
|
|
1958
1909
|
});
|
|
1959
1910
|
await collectBody(output.body, context);
|
|
@@ -1987,10 +1938,9 @@ const de_UpdateResponsePlanCommandError = async (output, context) => {
|
|
|
1987
1938
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1988
1939
|
default:
|
|
1989
1940
|
const parsedBody = parsedOutput.body;
|
|
1990
|
-
|
|
1941
|
+
return throwDefaultError({
|
|
1991
1942
|
output,
|
|
1992
1943
|
parsedBody,
|
|
1993
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
1994
1944
|
errorCode,
|
|
1995
1945
|
});
|
|
1996
1946
|
}
|
|
@@ -1999,7 +1949,7 @@ const de_UpdateTimelineEventCommand = async (output, context) => {
|
|
|
1999
1949
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2000
1950
|
return de_UpdateTimelineEventCommandError(output, context);
|
|
2001
1951
|
}
|
|
2002
|
-
const contents = map({
|
|
1952
|
+
const contents = (0, smithy_client_1.map)({
|
|
2003
1953
|
$metadata: deserializeMetadata(output),
|
|
2004
1954
|
});
|
|
2005
1955
|
await collectBody(output.body, context);
|
|
@@ -2033,21 +1983,21 @@ const de_UpdateTimelineEventCommandError = async (output, context) => {
|
|
|
2033
1983
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2034
1984
|
default:
|
|
2035
1985
|
const parsedBody = parsedOutput.body;
|
|
2036
|
-
|
|
1986
|
+
return throwDefaultError({
|
|
2037
1987
|
output,
|
|
2038
1988
|
parsedBody,
|
|
2039
|
-
exceptionCtor: SSMIncidentsServiceException_1.SSMIncidentsServiceException,
|
|
2040
1989
|
errorCode,
|
|
2041
1990
|
});
|
|
2042
1991
|
}
|
|
2043
1992
|
};
|
|
2044
|
-
const
|
|
1993
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SSMIncidentsServiceException_1.SSMIncidentsServiceException);
|
|
2045
1994
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2046
|
-
const contents = map({});
|
|
1995
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2047
1996
|
const data = parsedOutput.body;
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
}
|
|
1997
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1998
|
+
message: smithy_client_1.expectString,
|
|
1999
|
+
});
|
|
2000
|
+
Object.assign(contents, doc);
|
|
2051
2001
|
const exception = new models_0_1.AccessDeniedException({
|
|
2052
2002
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2053
2003
|
...contents,
|
|
@@ -2055,20 +2005,15 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2055
2005
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2056
2006
|
};
|
|
2057
2007
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2058
|
-
const contents = map({});
|
|
2008
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2059
2009
|
const data = parsedOutput.body;
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2068
|
-
}
|
|
2069
|
-
if (data.retryAfter != null) {
|
|
2070
|
-
contents.retryAfter = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.retryAfter)));
|
|
2071
|
-
}
|
|
2010
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2011
|
+
message: smithy_client_1.expectString,
|
|
2012
|
+
resourceIdentifier: smithy_client_1.expectString,
|
|
2013
|
+
resourceType: smithy_client_1.expectString,
|
|
2014
|
+
retryAfter: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2015
|
+
});
|
|
2016
|
+
Object.assign(contents, doc);
|
|
2072
2017
|
const exception = new models_0_1.ConflictException({
|
|
2073
2018
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2074
2019
|
...contents,
|
|
@@ -2076,11 +2021,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2076
2021
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2077
2022
|
};
|
|
2078
2023
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2079
|
-
const contents = map({});
|
|
2024
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2080
2025
|
const data = parsedOutput.body;
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
}
|
|
2026
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2027
|
+
message: smithy_client_1.expectString,
|
|
2028
|
+
});
|
|
2029
|
+
Object.assign(contents, doc);
|
|
2084
2030
|
const exception = new models_0_1.InternalServerException({
|
|
2085
2031
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2086
2032
|
...contents,
|
|
@@ -2088,17 +2034,14 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2088
2034
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2089
2035
|
};
|
|
2090
2036
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2091
|
-
const contents = map({});
|
|
2037
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2092
2038
|
const data = parsedOutput.body;
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
if (data.resourceType != null) {
|
|
2100
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2101
|
-
}
|
|
2039
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2040
|
+
message: smithy_client_1.expectString,
|
|
2041
|
+
resourceIdentifier: smithy_client_1.expectString,
|
|
2042
|
+
resourceType: smithy_client_1.expectString,
|
|
2043
|
+
});
|
|
2044
|
+
Object.assign(contents, doc);
|
|
2102
2045
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2103
2046
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2104
2047
|
...contents,
|
|
@@ -2106,23 +2049,16 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2106
2049
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2107
2050
|
};
|
|
2108
2051
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2109
|
-
const contents = map({});
|
|
2052
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2110
2053
|
const data = parsedOutput.body;
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
}
|
|
2120
|
-
if (data.resourceType != null) {
|
|
2121
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2122
|
-
}
|
|
2123
|
-
if (data.serviceCode != null) {
|
|
2124
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2125
|
-
}
|
|
2054
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2055
|
+
message: smithy_client_1.expectString,
|
|
2056
|
+
quotaCode: smithy_client_1.expectString,
|
|
2057
|
+
resourceIdentifier: smithy_client_1.expectString,
|
|
2058
|
+
resourceType: smithy_client_1.expectString,
|
|
2059
|
+
serviceCode: smithy_client_1.expectString,
|
|
2060
|
+
});
|
|
2061
|
+
Object.assign(contents, doc);
|
|
2126
2062
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2127
2063
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2128
2064
|
...contents,
|
|
@@ -2130,17 +2066,14 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2130
2066
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2131
2067
|
};
|
|
2132
2068
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2133
|
-
const contents = map({});
|
|
2069
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2134
2070
|
const data = parsedOutput.body;
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
if (data.serviceCode != null) {
|
|
2142
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2143
|
-
}
|
|
2071
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2072
|
+
message: smithy_client_1.expectString,
|
|
2073
|
+
quotaCode: smithy_client_1.expectString,
|
|
2074
|
+
serviceCode: smithy_client_1.expectString,
|
|
2075
|
+
});
|
|
2076
|
+
Object.assign(contents, doc);
|
|
2144
2077
|
const exception = new models_0_1.ThrottlingException({
|
|
2145
2078
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2146
2079
|
...contents,
|
|
@@ -2148,114 +2081,31 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2148
2081
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2149
2082
|
};
|
|
2150
2083
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2151
|
-
const contents = map({});
|
|
2084
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2152
2085
|
const data = parsedOutput.body;
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
}
|
|
2086
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2087
|
+
message: smithy_client_1.expectString,
|
|
2088
|
+
});
|
|
2089
|
+
Object.assign(contents, doc);
|
|
2156
2090
|
const exception = new models_0_1.ValidationException({
|
|
2157
2091
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2158
2092
|
...contents,
|
|
2159
2093
|
});
|
|
2160
2094
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2161
2095
|
};
|
|
2162
|
-
const se_Action = (input, context) => {
|
|
2163
|
-
return models_0_1.Action.visit(input, {
|
|
2164
|
-
ssmAutomation: (value) => ({ ssmAutomation: se_SsmAutomation(value, context) }),
|
|
2165
|
-
_: (name, value) => ({ name: value }),
|
|
2166
|
-
});
|
|
2167
|
-
};
|
|
2168
|
-
const se_ActionsList = (input, context) => {
|
|
2169
|
-
return input
|
|
2170
|
-
.filter((e) => e != null)
|
|
2171
|
-
.map((entry) => {
|
|
2172
|
-
return se_Action(entry, context);
|
|
2173
|
-
});
|
|
2174
|
-
};
|
|
2175
|
-
const se_AddRegionAction = (input, context) => {
|
|
2176
|
-
return {
|
|
2177
|
-
...(input.regionName != null && { regionName: input.regionName }),
|
|
2178
|
-
...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
|
|
2179
|
-
};
|
|
2180
|
-
};
|
|
2181
|
-
const se_AttributeValueList = (input, context) => {
|
|
2182
|
-
return models_0_1.AttributeValueList.visit(input, {
|
|
2183
|
-
integerValues: (value) => ({ integerValues: se_IntegerList(value, context) }),
|
|
2184
|
-
stringValues: (value) => ({ stringValues: se_StringList(value, context) }),
|
|
2185
|
-
_: (name, value) => ({ name: value }),
|
|
2186
|
-
});
|
|
2187
|
-
};
|
|
2188
|
-
const se_ChatbotSnsConfigurationSet = (input, context) => {
|
|
2189
|
-
return input
|
|
2190
|
-
.filter((e) => e != null)
|
|
2191
|
-
.map((entry) => {
|
|
2192
|
-
return entry;
|
|
2193
|
-
});
|
|
2194
|
-
};
|
|
2195
|
-
const se_ChatChannel = (input, context) => {
|
|
2196
|
-
return models_0_1.ChatChannel.visit(input, {
|
|
2197
|
-
chatbotSns: (value) => ({ chatbotSns: se_ChatbotSnsConfigurationSet(value, context) }),
|
|
2198
|
-
empty: (value) => ({ empty: se_EmptyChatChannel(value, context) }),
|
|
2199
|
-
_: (name, value) => ({ name: value }),
|
|
2200
|
-
});
|
|
2201
|
-
};
|
|
2202
2096
|
const se_Condition = (input, context) => {
|
|
2203
2097
|
return models_0_1.Condition.visit(input, {
|
|
2204
2098
|
after: (value) => ({ after: Math.round(value.getTime() / 1000) }),
|
|
2205
2099
|
before: (value) => ({ before: Math.round(value.getTime() / 1000) }),
|
|
2206
|
-
equals: (value) => ({ equals:
|
|
2207
|
-
_: (name, value) => ({ name: value }),
|
|
2208
|
-
});
|
|
2209
|
-
};
|
|
2210
|
-
const se_DeleteRegionAction = (input, context) => {
|
|
2211
|
-
return {
|
|
2212
|
-
...(input.regionName != null && { regionName: input.regionName }),
|
|
2213
|
-
};
|
|
2214
|
-
};
|
|
2215
|
-
const se_DynamicSsmParameters = (input, context) => {
|
|
2216
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2217
|
-
if (value === null) {
|
|
2218
|
-
return acc;
|
|
2219
|
-
}
|
|
2220
|
-
acc[key] = se_DynamicSsmParameterValue(value, context);
|
|
2221
|
-
return acc;
|
|
2222
|
-
}, {});
|
|
2223
|
-
};
|
|
2224
|
-
const se_DynamicSsmParameterValue = (input, context) => {
|
|
2225
|
-
return models_0_1.DynamicSsmParameterValue.visit(input, {
|
|
2226
|
-
variable: (value) => ({ variable: value }),
|
|
2100
|
+
equals: (value) => ({ equals: (0, smithy_client_1._json)(value) }),
|
|
2227
2101
|
_: (name, value) => ({ name: value }),
|
|
2228
2102
|
});
|
|
2229
2103
|
};
|
|
2230
|
-
const se_EmptyChatChannel = (input, context) => {
|
|
2231
|
-
return {};
|
|
2232
|
-
};
|
|
2233
|
-
const se_EngagementSet = (input, context) => {
|
|
2234
|
-
return input
|
|
2235
|
-
.filter((e) => e != null)
|
|
2236
|
-
.map((entry) => {
|
|
2237
|
-
return entry;
|
|
2238
|
-
});
|
|
2239
|
-
};
|
|
2240
|
-
const se_EventReference = (input, context) => {
|
|
2241
|
-
return models_0_1.EventReference.visit(input, {
|
|
2242
|
-
relatedItemId: (value) => ({ relatedItemId: value }),
|
|
2243
|
-
resource: (value) => ({ resource: value }),
|
|
2244
|
-
_: (name, value) => ({ name: value }),
|
|
2245
|
-
});
|
|
2246
|
-
};
|
|
2247
|
-
const se_EventReferenceList = (input, context) => {
|
|
2248
|
-
return input
|
|
2249
|
-
.filter((e) => e != null)
|
|
2250
|
-
.map((entry) => {
|
|
2251
|
-
return se_EventReference(entry, context);
|
|
2252
|
-
});
|
|
2253
|
-
};
|
|
2254
2104
|
const se_Filter = (input, context) => {
|
|
2255
|
-
return {
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
};
|
|
2105
|
+
return (0, smithy_client_1.take)(input, {
|
|
2106
|
+
condition: (_) => se_Condition(_, context),
|
|
2107
|
+
key: [],
|
|
2108
|
+
});
|
|
2259
2109
|
};
|
|
2260
2110
|
const se_FilterList = (input, context) => {
|
|
2261
2111
|
return input
|
|
@@ -2264,486 +2114,76 @@ const se_FilterList = (input, context) => {
|
|
|
2264
2114
|
return se_Filter(entry, context);
|
|
2265
2115
|
});
|
|
2266
2116
|
};
|
|
2267
|
-
const se_IncidentTemplate = (input, context) => {
|
|
2268
|
-
return {
|
|
2269
|
-
...(input.dedupeString != null && { dedupeString: input.dedupeString }),
|
|
2270
|
-
...(input.impact != null && { impact: input.impact }),
|
|
2271
|
-
...(input.incidentTags != null && { incidentTags: se_TagMap(input.incidentTags, context) }),
|
|
2272
|
-
...(input.notificationTargets != null && {
|
|
2273
|
-
notificationTargets: se_NotificationTargetSet(input.notificationTargets, context),
|
|
2274
|
-
}),
|
|
2275
|
-
...(input.summary != null && { summary: input.summary }),
|
|
2276
|
-
...(input.title != null && { title: input.title }),
|
|
2277
|
-
};
|
|
2278
|
-
};
|
|
2279
|
-
const se_IntegerList = (input, context) => {
|
|
2280
|
-
return input
|
|
2281
|
-
.filter((e) => e != null)
|
|
2282
|
-
.map((entry) => {
|
|
2283
|
-
return entry;
|
|
2284
|
-
});
|
|
2285
|
-
};
|
|
2286
|
-
const se_Integration = (input, context) => {
|
|
2287
|
-
return models_0_1.Integration.visit(input, {
|
|
2288
|
-
pagerDutyConfiguration: (value) => ({ pagerDutyConfiguration: se_PagerDutyConfiguration(value, context) }),
|
|
2289
|
-
_: (name, value) => ({ name: value }),
|
|
2290
|
-
});
|
|
2291
|
-
};
|
|
2292
|
-
const se_Integrations = (input, context) => {
|
|
2293
|
-
return input
|
|
2294
|
-
.filter((e) => e != null)
|
|
2295
|
-
.map((entry) => {
|
|
2296
|
-
return se_Integration(entry, context);
|
|
2297
|
-
});
|
|
2298
|
-
};
|
|
2299
|
-
const se_ItemIdentifier = (input, context) => {
|
|
2300
|
-
return {
|
|
2301
|
-
...(input.type != null && { type: input.type }),
|
|
2302
|
-
...(input.value != null && { value: se_ItemValue(input.value, context) }),
|
|
2303
|
-
};
|
|
2304
|
-
};
|
|
2305
|
-
const se_ItemValue = (input, context) => {
|
|
2306
|
-
return models_0_1.ItemValue.visit(input, {
|
|
2307
|
-
arn: (value) => ({ arn: value }),
|
|
2308
|
-
metricDefinition: (value) => ({ metricDefinition: value }),
|
|
2309
|
-
pagerDutyIncidentDetail: (value) => ({ pagerDutyIncidentDetail: se_PagerDutyIncidentDetail(value, context) }),
|
|
2310
|
-
url: (value) => ({ url: value }),
|
|
2311
|
-
_: (name, value) => ({ name: value }),
|
|
2312
|
-
});
|
|
2313
|
-
};
|
|
2314
|
-
const se_NotificationTargetItem = (input, context) => {
|
|
2315
|
-
return models_0_1.NotificationTargetItem.visit(input, {
|
|
2316
|
-
snsTopicArn: (value) => ({ snsTopicArn: value }),
|
|
2317
|
-
_: (name, value) => ({ name: value }),
|
|
2318
|
-
});
|
|
2319
|
-
};
|
|
2320
|
-
const se_NotificationTargetSet = (input, context) => {
|
|
2321
|
-
return input
|
|
2322
|
-
.filter((e) => e != null)
|
|
2323
|
-
.map((entry) => {
|
|
2324
|
-
return se_NotificationTargetItem(entry, context);
|
|
2325
|
-
});
|
|
2326
|
-
};
|
|
2327
|
-
const se_PagerDutyConfiguration = (input, context) => {
|
|
2328
|
-
return {
|
|
2329
|
-
...(input.name != null && { name: input.name }),
|
|
2330
|
-
...(input.pagerDutyIncidentConfiguration != null && {
|
|
2331
|
-
pagerDutyIncidentConfiguration: se_PagerDutyIncidentConfiguration(input.pagerDutyIncidentConfiguration, context),
|
|
2332
|
-
}),
|
|
2333
|
-
...(input.secretId != null && { secretId: input.secretId }),
|
|
2334
|
-
};
|
|
2335
|
-
};
|
|
2336
|
-
const se_PagerDutyIncidentConfiguration = (input, context) => {
|
|
2337
|
-
return {
|
|
2338
|
-
...(input.serviceId != null && { serviceId: input.serviceId }),
|
|
2339
|
-
};
|
|
2340
|
-
};
|
|
2341
|
-
const se_PagerDutyIncidentDetail = (input, context) => {
|
|
2342
|
-
return {
|
|
2343
|
-
...(input.autoResolve != null && { autoResolve: input.autoResolve }),
|
|
2344
|
-
...(input.id != null && { id: input.id }),
|
|
2345
|
-
...(input.secretId != null && { secretId: input.secretId }),
|
|
2346
|
-
};
|
|
2347
|
-
};
|
|
2348
|
-
const se_RegionMapInput = (input, context) => {
|
|
2349
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2350
|
-
if (value === null) {
|
|
2351
|
-
return acc;
|
|
2352
|
-
}
|
|
2353
|
-
acc[key] = se_RegionMapInputValue(value, context);
|
|
2354
|
-
return acc;
|
|
2355
|
-
}, {});
|
|
2356
|
-
};
|
|
2357
|
-
const se_RegionMapInputValue = (input, context) => {
|
|
2358
|
-
return {
|
|
2359
|
-
...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
|
|
2360
|
-
};
|
|
2361
|
-
};
|
|
2362
|
-
const se_RelatedItem = (input, context) => {
|
|
2363
|
-
return {
|
|
2364
|
-
...(input.generatedId != null && { generatedId: input.generatedId }),
|
|
2365
|
-
...(input.identifier != null && { identifier: se_ItemIdentifier(input.identifier, context) }),
|
|
2366
|
-
...(input.title != null && { title: input.title }),
|
|
2367
|
-
};
|
|
2368
|
-
};
|
|
2369
|
-
const se_RelatedItemList = (input, context) => {
|
|
2370
|
-
return input
|
|
2371
|
-
.filter((e) => e != null)
|
|
2372
|
-
.map((entry) => {
|
|
2373
|
-
return se_RelatedItem(entry, context);
|
|
2374
|
-
});
|
|
2375
|
-
};
|
|
2376
|
-
const se_RelatedItemsUpdate = (input, context) => {
|
|
2377
|
-
return models_0_1.RelatedItemsUpdate.visit(input, {
|
|
2378
|
-
itemToAdd: (value) => ({ itemToAdd: se_RelatedItem(value, context) }),
|
|
2379
|
-
itemToRemove: (value) => ({ itemToRemove: se_ItemIdentifier(value, context) }),
|
|
2380
|
-
_: (name, value) => ({ name: value }),
|
|
2381
|
-
});
|
|
2382
|
-
};
|
|
2383
|
-
const se_SsmAutomation = (input, context) => {
|
|
2384
|
-
return {
|
|
2385
|
-
...(input.documentName != null && { documentName: input.documentName }),
|
|
2386
|
-
...(input.documentVersion != null && { documentVersion: input.documentVersion }),
|
|
2387
|
-
...(input.dynamicParameters != null && {
|
|
2388
|
-
dynamicParameters: se_DynamicSsmParameters(input.dynamicParameters, context),
|
|
2389
|
-
}),
|
|
2390
|
-
...(input.parameters != null && { parameters: se_SsmParameters(input.parameters, context) }),
|
|
2391
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2392
|
-
...(input.targetAccount != null && { targetAccount: input.targetAccount }),
|
|
2393
|
-
};
|
|
2394
|
-
};
|
|
2395
|
-
const se_SsmParameters = (input, context) => {
|
|
2396
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2397
|
-
if (value === null) {
|
|
2398
|
-
return acc;
|
|
2399
|
-
}
|
|
2400
|
-
acc[key] = se_SsmParameterValues(value, context);
|
|
2401
|
-
return acc;
|
|
2402
|
-
}, {});
|
|
2403
|
-
};
|
|
2404
|
-
const se_SsmParameterValues = (input, context) => {
|
|
2405
|
-
return input
|
|
2406
|
-
.filter((e) => e != null)
|
|
2407
|
-
.map((entry) => {
|
|
2408
|
-
return entry;
|
|
2409
|
-
});
|
|
2410
|
-
};
|
|
2411
|
-
const se_StringList = (input, context) => {
|
|
2412
|
-
return input
|
|
2413
|
-
.filter((e) => e != null)
|
|
2414
|
-
.map((entry) => {
|
|
2415
|
-
return entry;
|
|
2416
|
-
});
|
|
2417
|
-
};
|
|
2418
|
-
const se_TagMap = (input, context) => {
|
|
2419
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2420
|
-
if (value === null) {
|
|
2421
|
-
return acc;
|
|
2422
|
-
}
|
|
2423
|
-
acc[key] = value;
|
|
2424
|
-
return acc;
|
|
2425
|
-
}, {});
|
|
2426
|
-
};
|
|
2427
|
-
const se_TagMapUpdate = (input, context) => {
|
|
2428
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2429
|
-
if (value === null) {
|
|
2430
|
-
return acc;
|
|
2431
|
-
}
|
|
2432
|
-
acc[key] = value;
|
|
2433
|
-
return acc;
|
|
2434
|
-
}, {});
|
|
2435
|
-
};
|
|
2436
2117
|
const se_TriggerDetails = (input, context) => {
|
|
2437
|
-
return {
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
};
|
|
2443
|
-
};
|
|
2444
|
-
const se_UpdateActionList = (input, context) => {
|
|
2445
|
-
return input
|
|
2446
|
-
.filter((e) => e != null)
|
|
2447
|
-
.map((entry) => {
|
|
2448
|
-
return se_UpdateReplicationSetAction(entry, context);
|
|
2449
|
-
});
|
|
2450
|
-
};
|
|
2451
|
-
const se_UpdateReplicationSetAction = (input, context) => {
|
|
2452
|
-
return models_0_1.UpdateReplicationSetAction.visit(input, {
|
|
2453
|
-
addRegionAction: (value) => ({ addRegionAction: se_AddRegionAction(value, context) }),
|
|
2454
|
-
deleteRegionAction: (value) => ({ deleteRegionAction: se_DeleteRegionAction(value, context) }),
|
|
2455
|
-
_: (name, value) => ({ name: value }),
|
|
2456
|
-
});
|
|
2457
|
-
};
|
|
2458
|
-
const de_Action = (output, context) => {
|
|
2459
|
-
if (output.ssmAutomation != null) {
|
|
2460
|
-
return {
|
|
2461
|
-
ssmAutomation: de_SsmAutomation(output.ssmAutomation, context),
|
|
2462
|
-
};
|
|
2463
|
-
}
|
|
2464
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2465
|
-
};
|
|
2466
|
-
const de_ActionsList = (output, context) => {
|
|
2467
|
-
const retVal = (output || [])
|
|
2468
|
-
.filter((e) => e != null)
|
|
2469
|
-
.map((entry) => {
|
|
2470
|
-
if (entry === null) {
|
|
2471
|
-
return null;
|
|
2472
|
-
}
|
|
2473
|
-
return de_Action((0, smithy_client_1.expectUnion)(entry), context);
|
|
2474
|
-
});
|
|
2475
|
-
return retVal;
|
|
2476
|
-
};
|
|
2477
|
-
const de_AutomationExecution = (output, context) => {
|
|
2478
|
-
if ((0, smithy_client_1.expectString)(output.ssmExecutionArn) !== undefined) {
|
|
2479
|
-
return { ssmExecutionArn: (0, smithy_client_1.expectString)(output.ssmExecutionArn) };
|
|
2480
|
-
}
|
|
2481
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2482
|
-
};
|
|
2483
|
-
const de_AutomationExecutionSet = (output, context) => {
|
|
2484
|
-
const retVal = (output || [])
|
|
2485
|
-
.filter((e) => e != null)
|
|
2486
|
-
.map((entry) => {
|
|
2487
|
-
if (entry === null) {
|
|
2488
|
-
return null;
|
|
2489
|
-
}
|
|
2490
|
-
return de_AutomationExecution((0, smithy_client_1.expectUnion)(entry), context);
|
|
2118
|
+
return (0, smithy_client_1.take)(input, {
|
|
2119
|
+
rawData: [],
|
|
2120
|
+
source: [],
|
|
2121
|
+
timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
2122
|
+
triggerArn: [],
|
|
2491
2123
|
});
|
|
2492
|
-
return retVal;
|
|
2493
|
-
};
|
|
2494
|
-
const de_ChatbotSnsConfigurationSet = (output, context) => {
|
|
2495
|
-
const retVal = (output || [])
|
|
2496
|
-
.filter((e) => e != null)
|
|
2497
|
-
.map((entry) => {
|
|
2498
|
-
if (entry === null) {
|
|
2499
|
-
return null;
|
|
2500
|
-
}
|
|
2501
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2502
|
-
});
|
|
2503
|
-
return retVal;
|
|
2504
|
-
};
|
|
2505
|
-
const de_ChatChannel = (output, context) => {
|
|
2506
|
-
if (output.chatbotSns != null) {
|
|
2507
|
-
return {
|
|
2508
|
-
chatbotSns: de_ChatbotSnsConfigurationSet(output.chatbotSns, context),
|
|
2509
|
-
};
|
|
2510
|
-
}
|
|
2511
|
-
if (output.empty != null) {
|
|
2512
|
-
return {
|
|
2513
|
-
empty: de_EmptyChatChannel(output.empty, context),
|
|
2514
|
-
};
|
|
2515
|
-
}
|
|
2516
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2517
|
-
};
|
|
2518
|
-
const de_DynamicSsmParameters = (output, context) => {
|
|
2519
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2520
|
-
if (value === null) {
|
|
2521
|
-
return acc;
|
|
2522
|
-
}
|
|
2523
|
-
acc[key] = de_DynamicSsmParameterValue((0, smithy_client_1.expectUnion)(value), context);
|
|
2524
|
-
return acc;
|
|
2525
|
-
}, {});
|
|
2526
|
-
};
|
|
2527
|
-
const de_DynamicSsmParameterValue = (output, context) => {
|
|
2528
|
-
if ((0, smithy_client_1.expectString)(output.variable) !== undefined) {
|
|
2529
|
-
return { variable: (0, smithy_client_1.expectString)(output.variable) };
|
|
2530
|
-
}
|
|
2531
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2532
|
-
};
|
|
2533
|
-
const de_EmptyChatChannel = (output, context) => {
|
|
2534
|
-
return {};
|
|
2535
|
-
};
|
|
2536
|
-
const de_EngagementSet = (output, context) => {
|
|
2537
|
-
const retVal = (output || [])
|
|
2538
|
-
.filter((e) => e != null)
|
|
2539
|
-
.map((entry) => {
|
|
2540
|
-
if (entry === null) {
|
|
2541
|
-
return null;
|
|
2542
|
-
}
|
|
2543
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2544
|
-
});
|
|
2545
|
-
return retVal;
|
|
2546
|
-
};
|
|
2547
|
-
const de_EventReference = (output, context) => {
|
|
2548
|
-
if ((0, smithy_client_1.expectString)(output.relatedItemId) !== undefined) {
|
|
2549
|
-
return { relatedItemId: (0, smithy_client_1.expectString)(output.relatedItemId) };
|
|
2550
|
-
}
|
|
2551
|
-
if ((0, smithy_client_1.expectString)(output.resource) !== undefined) {
|
|
2552
|
-
return { resource: (0, smithy_client_1.expectString)(output.resource) };
|
|
2553
|
-
}
|
|
2554
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2555
|
-
};
|
|
2556
|
-
const de_EventReferenceList = (output, context) => {
|
|
2557
|
-
const retVal = (output || [])
|
|
2558
|
-
.filter((e) => e != null)
|
|
2559
|
-
.map((entry) => {
|
|
2560
|
-
if (entry === null) {
|
|
2561
|
-
return null;
|
|
2562
|
-
}
|
|
2563
|
-
return de_EventReference((0, smithy_client_1.expectUnion)(entry), context);
|
|
2564
|
-
});
|
|
2565
|
-
return retVal;
|
|
2566
2124
|
};
|
|
2567
2125
|
const de_EventSummary = (output, context) => {
|
|
2568
|
-
return {
|
|
2569
|
-
eventId:
|
|
2570
|
-
eventReferences:
|
|
2571
|
-
eventTime:
|
|
2572
|
-
eventType:
|
|
2573
|
-
eventUpdatedTime:
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
incidentRecordArn: (0, smithy_client_1.expectString)(output.incidentRecordArn),
|
|
2577
|
-
};
|
|
2126
|
+
return (0, smithy_client_1.take)(output, {
|
|
2127
|
+
eventId: smithy_client_1.expectString,
|
|
2128
|
+
eventReferences: smithy_client_1._json,
|
|
2129
|
+
eventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2130
|
+
eventType: smithy_client_1.expectString,
|
|
2131
|
+
eventUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2132
|
+
incidentRecordArn: smithy_client_1.expectString,
|
|
2133
|
+
});
|
|
2578
2134
|
};
|
|
2579
2135
|
const de_EventSummaryList = (output, context) => {
|
|
2580
2136
|
const retVal = (output || [])
|
|
2581
2137
|
.filter((e) => e != null)
|
|
2582
2138
|
.map((entry) => {
|
|
2583
|
-
if (entry === null) {
|
|
2584
|
-
return null;
|
|
2585
|
-
}
|
|
2586
2139
|
return de_EventSummary(entry, context);
|
|
2587
2140
|
});
|
|
2588
2141
|
return retVal;
|
|
2589
2142
|
};
|
|
2590
2143
|
const de_IncidentRecord = (output, context) => {
|
|
2591
|
-
return {
|
|
2592
|
-
arn:
|
|
2593
|
-
automationExecutions:
|
|
2594
|
-
chatChannel:
|
|
2595
|
-
creationTime:
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.resolvedTime)))
|
|
2608
|
-
: undefined,
|
|
2609
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2610
|
-
summary: (0, smithy_client_1.expectString)(output.summary),
|
|
2611
|
-
title: (0, smithy_client_1.expectString)(output.title),
|
|
2612
|
-
};
|
|
2613
|
-
};
|
|
2614
|
-
const de_IncidentRecordSource = (output, context) => {
|
|
2615
|
-
return {
|
|
2616
|
-
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
2617
|
-
invokedBy: (0, smithy_client_1.expectString)(output.invokedBy),
|
|
2618
|
-
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
2619
|
-
source: (0, smithy_client_1.expectString)(output.source),
|
|
2620
|
-
};
|
|
2144
|
+
return (0, smithy_client_1.take)(output, {
|
|
2145
|
+
arn: smithy_client_1.expectString,
|
|
2146
|
+
automationExecutions: smithy_client_1._json,
|
|
2147
|
+
chatChannel: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
2148
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2149
|
+
dedupeString: smithy_client_1.expectString,
|
|
2150
|
+
impact: smithy_client_1.expectInt32,
|
|
2151
|
+
incidentRecordSource: smithy_client_1._json,
|
|
2152
|
+
lastModifiedBy: smithy_client_1.expectString,
|
|
2153
|
+
lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2154
|
+
notificationTargets: smithy_client_1._json,
|
|
2155
|
+
resolvedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2156
|
+
status: smithy_client_1.expectString,
|
|
2157
|
+
summary: smithy_client_1.expectString,
|
|
2158
|
+
title: smithy_client_1.expectString,
|
|
2159
|
+
});
|
|
2621
2160
|
};
|
|
2622
2161
|
const de_IncidentRecordSummary = (output, context) => {
|
|
2623
|
-
return {
|
|
2624
|
-
arn:
|
|
2625
|
-
creationTime:
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
: undefined,
|
|
2633
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2634
|
-
title: (0, smithy_client_1.expectString)(output.title),
|
|
2635
|
-
};
|
|
2162
|
+
return (0, smithy_client_1.take)(output, {
|
|
2163
|
+
arn: smithy_client_1.expectString,
|
|
2164
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2165
|
+
impact: smithy_client_1.expectInt32,
|
|
2166
|
+
incidentRecordSource: smithy_client_1._json,
|
|
2167
|
+
resolvedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2168
|
+
status: smithy_client_1.expectString,
|
|
2169
|
+
title: smithy_client_1.expectString,
|
|
2170
|
+
});
|
|
2636
2171
|
};
|
|
2637
2172
|
const de_IncidentRecordSummaryList = (output, context) => {
|
|
2638
2173
|
const retVal = (output || [])
|
|
2639
2174
|
.filter((e) => e != null)
|
|
2640
2175
|
.map((entry) => {
|
|
2641
|
-
if (entry === null) {
|
|
2642
|
-
return null;
|
|
2643
|
-
}
|
|
2644
2176
|
return de_IncidentRecordSummary(entry, context);
|
|
2645
2177
|
});
|
|
2646
2178
|
return retVal;
|
|
2647
2179
|
};
|
|
2648
|
-
const de_IncidentTemplate = (output, context) => {
|
|
2649
|
-
return {
|
|
2650
|
-
dedupeString: (0, smithy_client_1.expectString)(output.dedupeString),
|
|
2651
|
-
impact: (0, smithy_client_1.expectInt32)(output.impact),
|
|
2652
|
-
incidentTags: output.incidentTags != null ? de_TagMap(output.incidentTags, context) : undefined,
|
|
2653
|
-
notificationTargets: output.notificationTargets != null ? de_NotificationTargetSet(output.notificationTargets, context) : undefined,
|
|
2654
|
-
summary: (0, smithy_client_1.expectString)(output.summary),
|
|
2655
|
-
title: (0, smithy_client_1.expectString)(output.title),
|
|
2656
|
-
};
|
|
2657
|
-
};
|
|
2658
|
-
const de_Integration = (output, context) => {
|
|
2659
|
-
if (output.pagerDutyConfiguration != null) {
|
|
2660
|
-
return {
|
|
2661
|
-
pagerDutyConfiguration: de_PagerDutyConfiguration(output.pagerDutyConfiguration, context),
|
|
2662
|
-
};
|
|
2663
|
-
}
|
|
2664
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2665
|
-
};
|
|
2666
|
-
const de_Integrations = (output, context) => {
|
|
2667
|
-
const retVal = (output || [])
|
|
2668
|
-
.filter((e) => e != null)
|
|
2669
|
-
.map((entry) => {
|
|
2670
|
-
if (entry === null) {
|
|
2671
|
-
return null;
|
|
2672
|
-
}
|
|
2673
|
-
return de_Integration((0, smithy_client_1.expectUnion)(entry), context);
|
|
2674
|
-
});
|
|
2675
|
-
return retVal;
|
|
2676
|
-
};
|
|
2677
|
-
const de_ItemIdentifier = (output, context) => {
|
|
2678
|
-
return {
|
|
2679
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2680
|
-
value: output.value != null ? de_ItemValue((0, smithy_client_1.expectUnion)(output.value), context) : undefined,
|
|
2681
|
-
};
|
|
2682
|
-
};
|
|
2683
|
-
const de_ItemValue = (output, context) => {
|
|
2684
|
-
if ((0, smithy_client_1.expectString)(output.arn) !== undefined) {
|
|
2685
|
-
return { arn: (0, smithy_client_1.expectString)(output.arn) };
|
|
2686
|
-
}
|
|
2687
|
-
if ((0, smithy_client_1.expectString)(output.metricDefinition) !== undefined) {
|
|
2688
|
-
return { metricDefinition: (0, smithy_client_1.expectString)(output.metricDefinition) };
|
|
2689
|
-
}
|
|
2690
|
-
if (output.pagerDutyIncidentDetail != null) {
|
|
2691
|
-
return {
|
|
2692
|
-
pagerDutyIncidentDetail: de_PagerDutyIncidentDetail(output.pagerDutyIncidentDetail, context),
|
|
2693
|
-
};
|
|
2694
|
-
}
|
|
2695
|
-
if ((0, smithy_client_1.expectString)(output.url) !== undefined) {
|
|
2696
|
-
return { url: (0, smithy_client_1.expectString)(output.url) };
|
|
2697
|
-
}
|
|
2698
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2699
|
-
};
|
|
2700
|
-
const de_NotificationTargetItem = (output, context) => {
|
|
2701
|
-
if ((0, smithy_client_1.expectString)(output.snsTopicArn) !== undefined) {
|
|
2702
|
-
return { snsTopicArn: (0, smithy_client_1.expectString)(output.snsTopicArn) };
|
|
2703
|
-
}
|
|
2704
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2705
|
-
};
|
|
2706
|
-
const de_NotificationTargetSet = (output, context) => {
|
|
2707
|
-
const retVal = (output || [])
|
|
2708
|
-
.filter((e) => e != null)
|
|
2709
|
-
.map((entry) => {
|
|
2710
|
-
if (entry === null) {
|
|
2711
|
-
return null;
|
|
2712
|
-
}
|
|
2713
|
-
return de_NotificationTargetItem((0, smithy_client_1.expectUnion)(entry), context);
|
|
2714
|
-
});
|
|
2715
|
-
return retVal;
|
|
2716
|
-
};
|
|
2717
|
-
const de_PagerDutyConfiguration = (output, context) => {
|
|
2718
|
-
return {
|
|
2719
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2720
|
-
pagerDutyIncidentConfiguration: output.pagerDutyIncidentConfiguration != null
|
|
2721
|
-
? de_PagerDutyIncidentConfiguration(output.pagerDutyIncidentConfiguration, context)
|
|
2722
|
-
: undefined,
|
|
2723
|
-
secretId: (0, smithy_client_1.expectString)(output.secretId),
|
|
2724
|
-
};
|
|
2725
|
-
};
|
|
2726
|
-
const de_PagerDutyIncidentConfiguration = (output, context) => {
|
|
2727
|
-
return {
|
|
2728
|
-
serviceId: (0, smithy_client_1.expectString)(output.serviceId),
|
|
2729
|
-
};
|
|
2730
|
-
};
|
|
2731
|
-
const de_PagerDutyIncidentDetail = (output, context) => {
|
|
2732
|
-
return {
|
|
2733
|
-
autoResolve: (0, smithy_client_1.expectBoolean)(output.autoResolve),
|
|
2734
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2735
|
-
secretId: (0, smithy_client_1.expectString)(output.secretId),
|
|
2736
|
-
};
|
|
2737
|
-
};
|
|
2738
2180
|
const de_RegionInfo = (output, context) => {
|
|
2739
|
-
return {
|
|
2740
|
-
sseKmsKeyId:
|
|
2741
|
-
status:
|
|
2742
|
-
statusMessage:
|
|
2743
|
-
statusUpdateDateTime:
|
|
2744
|
-
|
|
2745
|
-
: undefined,
|
|
2746
|
-
};
|
|
2181
|
+
return (0, smithy_client_1.take)(output, {
|
|
2182
|
+
sseKmsKeyId: smithy_client_1.expectString,
|
|
2183
|
+
status: smithy_client_1.expectString,
|
|
2184
|
+
statusMessage: smithy_client_1.expectString,
|
|
2185
|
+
statusUpdateDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2186
|
+
});
|
|
2747
2187
|
};
|
|
2748
2188
|
const de_RegionInfoMap = (output, context) => {
|
|
2749
2189
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -2754,138 +2194,28 @@ const de_RegionInfoMap = (output, context) => {
|
|
|
2754
2194
|
return acc;
|
|
2755
2195
|
}, {});
|
|
2756
2196
|
};
|
|
2757
|
-
const de_RelatedItem = (output, context) => {
|
|
2758
|
-
return {
|
|
2759
|
-
generatedId: (0, smithy_client_1.expectString)(output.generatedId),
|
|
2760
|
-
identifier: output.identifier != null ? de_ItemIdentifier(output.identifier, context) : undefined,
|
|
2761
|
-
title: (0, smithy_client_1.expectString)(output.title),
|
|
2762
|
-
};
|
|
2763
|
-
};
|
|
2764
|
-
const de_RelatedItemList = (output, context) => {
|
|
2765
|
-
const retVal = (output || [])
|
|
2766
|
-
.filter((e) => e != null)
|
|
2767
|
-
.map((entry) => {
|
|
2768
|
-
if (entry === null) {
|
|
2769
|
-
return null;
|
|
2770
|
-
}
|
|
2771
|
-
return de_RelatedItem(entry, context);
|
|
2772
|
-
});
|
|
2773
|
-
return retVal;
|
|
2774
|
-
};
|
|
2775
2197
|
const de_ReplicationSet = (output, context) => {
|
|
2776
|
-
return {
|
|
2777
|
-
arn:
|
|
2778
|
-
createdBy:
|
|
2779
|
-
createdTime:
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedTime)))
|
|
2786
|
-
: undefined,
|
|
2787
|
-
regionMap: output.regionMap != null ? de_RegionInfoMap(output.regionMap, context) : undefined,
|
|
2788
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2789
|
-
};
|
|
2790
|
-
};
|
|
2791
|
-
const de_ReplicationSetArnList = (output, context) => {
|
|
2792
|
-
const retVal = (output || [])
|
|
2793
|
-
.filter((e) => e != null)
|
|
2794
|
-
.map((entry) => {
|
|
2795
|
-
if (entry === null) {
|
|
2796
|
-
return null;
|
|
2797
|
-
}
|
|
2798
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2799
|
-
});
|
|
2800
|
-
return retVal;
|
|
2801
|
-
};
|
|
2802
|
-
const de_ResourcePolicy = (output, context) => {
|
|
2803
|
-
return {
|
|
2804
|
-
policyDocument: (0, smithy_client_1.expectString)(output.policyDocument),
|
|
2805
|
-
policyId: (0, smithy_client_1.expectString)(output.policyId),
|
|
2806
|
-
ramResourceShareRegion: (0, smithy_client_1.expectString)(output.ramResourceShareRegion),
|
|
2807
|
-
};
|
|
2808
|
-
};
|
|
2809
|
-
const de_ResourcePolicyList = (output, context) => {
|
|
2810
|
-
const retVal = (output || [])
|
|
2811
|
-
.filter((e) => e != null)
|
|
2812
|
-
.map((entry) => {
|
|
2813
|
-
if (entry === null) {
|
|
2814
|
-
return null;
|
|
2815
|
-
}
|
|
2816
|
-
return de_ResourcePolicy(entry, context);
|
|
2817
|
-
});
|
|
2818
|
-
return retVal;
|
|
2819
|
-
};
|
|
2820
|
-
const de_ResponsePlanSummary = (output, context) => {
|
|
2821
|
-
return {
|
|
2822
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2823
|
-
displayName: (0, smithy_client_1.expectString)(output.displayName),
|
|
2824
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2825
|
-
};
|
|
2826
|
-
};
|
|
2827
|
-
const de_ResponsePlanSummaryList = (output, context) => {
|
|
2828
|
-
const retVal = (output || [])
|
|
2829
|
-
.filter((e) => e != null)
|
|
2830
|
-
.map((entry) => {
|
|
2831
|
-
if (entry === null) {
|
|
2832
|
-
return null;
|
|
2833
|
-
}
|
|
2834
|
-
return de_ResponsePlanSummary(entry, context);
|
|
2835
|
-
});
|
|
2836
|
-
return retVal;
|
|
2837
|
-
};
|
|
2838
|
-
const de_SsmAutomation = (output, context) => {
|
|
2839
|
-
return {
|
|
2840
|
-
documentName: (0, smithy_client_1.expectString)(output.documentName),
|
|
2841
|
-
documentVersion: (0, smithy_client_1.expectString)(output.documentVersion),
|
|
2842
|
-
dynamicParameters: output.dynamicParameters != null ? de_DynamicSsmParameters(output.dynamicParameters, context) : undefined,
|
|
2843
|
-
parameters: output.parameters != null ? de_SsmParameters(output.parameters, context) : undefined,
|
|
2844
|
-
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2845
|
-
targetAccount: (0, smithy_client_1.expectString)(output.targetAccount),
|
|
2846
|
-
};
|
|
2847
|
-
};
|
|
2848
|
-
const de_SsmParameters = (output, context) => {
|
|
2849
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2850
|
-
if (value === null) {
|
|
2851
|
-
return acc;
|
|
2852
|
-
}
|
|
2853
|
-
acc[key] = de_SsmParameterValues(value, context);
|
|
2854
|
-
return acc;
|
|
2855
|
-
}, {});
|
|
2856
|
-
};
|
|
2857
|
-
const de_SsmParameterValues = (output, context) => {
|
|
2858
|
-
const retVal = (output || [])
|
|
2859
|
-
.filter((e) => e != null)
|
|
2860
|
-
.map((entry) => {
|
|
2861
|
-
if (entry === null) {
|
|
2862
|
-
return null;
|
|
2863
|
-
}
|
|
2864
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2198
|
+
return (0, smithy_client_1.take)(output, {
|
|
2199
|
+
arn: smithy_client_1.expectString,
|
|
2200
|
+
createdBy: smithy_client_1.expectString,
|
|
2201
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2202
|
+
deletionProtected: smithy_client_1.expectBoolean,
|
|
2203
|
+
lastModifiedBy: smithy_client_1.expectString,
|
|
2204
|
+
lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2205
|
+
regionMap: (_) => de_RegionInfoMap(_, context),
|
|
2206
|
+
status: smithy_client_1.expectString,
|
|
2865
2207
|
});
|
|
2866
|
-
return retVal;
|
|
2867
|
-
};
|
|
2868
|
-
const de_TagMap = (output, context) => {
|
|
2869
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2870
|
-
if (value === null) {
|
|
2871
|
-
return acc;
|
|
2872
|
-
}
|
|
2873
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2874
|
-
return acc;
|
|
2875
|
-
}, {});
|
|
2876
2208
|
};
|
|
2877
2209
|
const de_TimelineEvent = (output, context) => {
|
|
2878
|
-
return {
|
|
2879
|
-
eventData:
|
|
2880
|
-
eventId:
|
|
2881
|
-
eventReferences:
|
|
2882
|
-
eventTime:
|
|
2883
|
-
eventType:
|
|
2884
|
-
eventUpdatedTime:
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
incidentRecordArn: (0, smithy_client_1.expectString)(output.incidentRecordArn),
|
|
2888
|
-
};
|
|
2210
|
+
return (0, smithy_client_1.take)(output, {
|
|
2211
|
+
eventData: smithy_client_1.expectString,
|
|
2212
|
+
eventId: smithy_client_1.expectString,
|
|
2213
|
+
eventReferences: smithy_client_1._json,
|
|
2214
|
+
eventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2215
|
+
eventType: smithy_client_1.expectString,
|
|
2216
|
+
eventUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2217
|
+
incidentRecordArn: smithy_client_1.expectString,
|
|
2218
|
+
});
|
|
2889
2219
|
};
|
|
2890
2220
|
const deserializeMetadata = (output) => ({
|
|
2891
2221
|
httpStatusCode: output.statusCode,
|