@aws-sdk/client-ssm-incidents 3.306.0 → 3.310.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/commands/CreateReplicationSetCommand.js +2 -2
- package/dist-cjs/commands/CreateResponsePlanCommand.js +2 -2
- package/dist-cjs/commands/CreateTimelineEventCommand.js +2 -2
- package/dist-cjs/commands/DeleteIncidentRecordCommand.js +2 -2
- package/dist-cjs/commands/DeleteReplicationSetCommand.js +2 -2
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteResponsePlanCommand.js +2 -2
- package/dist-cjs/commands/DeleteTimelineEventCommand.js +2 -2
- package/dist-cjs/commands/GetIncidentRecordCommand.js +2 -2
- package/dist-cjs/commands/GetReplicationSetCommand.js +2 -2
- package/dist-cjs/commands/GetResourcePoliciesCommand.js +2 -2
- package/dist-cjs/commands/GetResponsePlanCommand.js +2 -2
- package/dist-cjs/commands/GetTimelineEventCommand.js +2 -2
- package/dist-cjs/commands/ListIncidentRecordsCommand.js +2 -2
- package/dist-cjs/commands/ListRelatedItemsCommand.js +2 -2
- package/dist-cjs/commands/ListReplicationSetsCommand.js +2 -2
- package/dist-cjs/commands/ListResponsePlansCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTimelineEventsCommand.js +2 -2
- package/dist-cjs/commands/PutResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/StartIncidentCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDeletionProtectionCommand.js +2 -2
- package/dist-cjs/commands/UpdateIncidentRecordCommand.js +2 -2
- package/dist-cjs/commands/UpdateRelatedItemsCommand.js +2 -2
- package/dist-cjs/commands/UpdateReplicationSetCommand.js +2 -2
- package/dist-cjs/commands/UpdateResponsePlanCommand.js +2 -2
- package/dist-cjs/commands/UpdateTimelineEventCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +519 -555
- package/dist-es/commands/CreateReplicationSetCommand.js +3 -3
- package/dist-es/commands/CreateResponsePlanCommand.js +3 -3
- package/dist-es/commands/CreateTimelineEventCommand.js +3 -3
- package/dist-es/commands/DeleteIncidentRecordCommand.js +3 -3
- package/dist-es/commands/DeleteReplicationSetCommand.js +3 -3
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -3
- package/dist-es/commands/DeleteResponsePlanCommand.js +3 -3
- package/dist-es/commands/DeleteTimelineEventCommand.js +3 -3
- package/dist-es/commands/GetIncidentRecordCommand.js +3 -3
- package/dist-es/commands/GetReplicationSetCommand.js +3 -3
- package/dist-es/commands/GetResourcePoliciesCommand.js +3 -3
- package/dist-es/commands/GetResponsePlanCommand.js +3 -3
- package/dist-es/commands/GetTimelineEventCommand.js +3 -3
- package/dist-es/commands/ListIncidentRecordsCommand.js +3 -3
- package/dist-es/commands/ListRelatedItemsCommand.js +3 -3
- package/dist-es/commands/ListReplicationSetsCommand.js +3 -3
- package/dist-es/commands/ListResponsePlansCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTimelineEventsCommand.js +3 -3
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -3
- package/dist-es/commands/StartIncidentCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDeletionProtectionCommand.js +3 -3
- package/dist-es/commands/UpdateIncidentRecordCommand.js +3 -3
- package/dist-es/commands/UpdateRelatedItemsCommand.js +3 -3
- package/dist-es/commands/UpdateReplicationSetCommand.js +3 -3
- package/dist-es/commands/UpdateResponsePlanCommand.js +3 -3
- package/dist-es/commands/UpdateTimelineEventCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +459 -495
- package/dist-types/protocols/Aws_restJson1.d.ts +232 -58
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +58 -58
- package/package.json +36 -36
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, Action, AttributeValueList, ChatChannel, Condition, ConflictException, DynamicSsmParameterValue, EventReference, Integration, InternalServerException, ItemValue, NotificationTargetItem, RelatedItemsUpdate, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UpdateReplicationSetAction, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { SSMIncidentsServiceException as __BaseException } from "../models/SSMIncidentsServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CreateReplicationSetCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -12,8 +12,8 @@ export const serializeAws_restJson1CreateReplicationSetCommand = async (input, c
|
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify({
|
|
14
14
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
15
|
-
...(input.regions != null && { regions:
|
|
16
|
-
...(input.tags != null && { tags:
|
|
15
|
+
...(input.regions != null && { regions: se_RegionMapInput(input.regions, context) }),
|
|
16
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
17
17
|
});
|
|
18
18
|
return new __HttpRequest({
|
|
19
19
|
protocol,
|
|
@@ -25,7 +25,7 @@ export const serializeAws_restJson1CreateReplicationSetCommand = async (input, c
|
|
|
25
25
|
body,
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
export const
|
|
28
|
+
export const se_CreateResponsePlanCommand = async (input, context) => {
|
|
29
29
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/json",
|
|
@@ -33,19 +33,15 @@ export const serializeAws_restJson1CreateResponsePlanCommand = async (input, con
|
|
|
33
33
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createResponsePlan";
|
|
34
34
|
let body;
|
|
35
35
|
body = JSON.stringify({
|
|
36
|
-
...(input.actions != null && { actions:
|
|
37
|
-
...(input.chatChannel != null && { chatChannel:
|
|
36
|
+
...(input.actions != null && { actions: se_ActionsList(input.actions, context) }),
|
|
37
|
+
...(input.chatChannel != null && { chatChannel: se_ChatChannel(input.chatChannel, context) }),
|
|
38
38
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
39
39
|
...(input.displayName != null && { displayName: input.displayName }),
|
|
40
|
-
...(input.engagements != null && { engagements:
|
|
41
|
-
...(input.incidentTemplate != null && {
|
|
42
|
-
|
|
43
|
-
}),
|
|
44
|
-
...(input.integrations != null && {
|
|
45
|
-
integrations: serializeAws_restJson1Integrations(input.integrations, context),
|
|
46
|
-
}),
|
|
40
|
+
...(input.engagements != null && { engagements: se_EngagementSet(input.engagements, context) }),
|
|
41
|
+
...(input.incidentTemplate != null && { incidentTemplate: se_IncidentTemplate(input.incidentTemplate, context) }),
|
|
42
|
+
...(input.integrations != null && { integrations: se_Integrations(input.integrations, context) }),
|
|
47
43
|
...(input.name != null && { name: input.name }),
|
|
48
|
-
...(input.tags != null && { tags:
|
|
44
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
49
45
|
});
|
|
50
46
|
return new __HttpRequest({
|
|
51
47
|
protocol,
|
|
@@ -57,7 +53,7 @@ export const serializeAws_restJson1CreateResponsePlanCommand = async (input, con
|
|
|
57
53
|
body,
|
|
58
54
|
});
|
|
59
55
|
};
|
|
60
|
-
export const
|
|
56
|
+
export const se_CreateTimelineEventCommand = async (input, context) => {
|
|
61
57
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
62
58
|
const headers = {
|
|
63
59
|
"content-type": "application/json",
|
|
@@ -67,9 +63,7 @@ export const serializeAws_restJson1CreateTimelineEventCommand = async (input, co
|
|
|
67
63
|
body = JSON.stringify({
|
|
68
64
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
69
65
|
...(input.eventData != null && { eventData: input.eventData }),
|
|
70
|
-
...(input.eventReferences != null && {
|
|
71
|
-
eventReferences: serializeAws_restJson1EventReferenceList(input.eventReferences, context),
|
|
72
|
-
}),
|
|
66
|
+
...(input.eventReferences != null && { eventReferences: se_EventReferenceList(input.eventReferences, context) }),
|
|
73
67
|
...(input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
|
|
74
68
|
...(input.eventType != null && { eventType: input.eventType }),
|
|
75
69
|
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
@@ -84,7 +78,7 @@ export const serializeAws_restJson1CreateTimelineEventCommand = async (input, co
|
|
|
84
78
|
body,
|
|
85
79
|
});
|
|
86
80
|
};
|
|
87
|
-
export const
|
|
81
|
+
export const se_DeleteIncidentRecordCommand = async (input, context) => {
|
|
88
82
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
89
83
|
const headers = {
|
|
90
84
|
"content-type": "application/json",
|
|
@@ -104,7 +98,7 @@ export const serializeAws_restJson1DeleteIncidentRecordCommand = async (input, c
|
|
|
104
98
|
body,
|
|
105
99
|
});
|
|
106
100
|
};
|
|
107
|
-
export const
|
|
101
|
+
export const se_DeleteReplicationSetCommand = async (input, context) => {
|
|
108
102
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
109
103
|
const headers = {};
|
|
110
104
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteReplicationSet";
|
|
@@ -123,7 +117,7 @@ export const serializeAws_restJson1DeleteReplicationSetCommand = async (input, c
|
|
|
123
117
|
body,
|
|
124
118
|
});
|
|
125
119
|
};
|
|
126
|
-
export const
|
|
120
|
+
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
127
121
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
128
122
|
const headers = {
|
|
129
123
|
"content-type": "application/json",
|
|
@@ -144,7 +138,7 @@ export const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, c
|
|
|
144
138
|
body,
|
|
145
139
|
});
|
|
146
140
|
};
|
|
147
|
-
export const
|
|
141
|
+
export const se_DeleteResponsePlanCommand = async (input, context) => {
|
|
148
142
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
149
143
|
const headers = {
|
|
150
144
|
"content-type": "application/json",
|
|
@@ -164,7 +158,7 @@ export const serializeAws_restJson1DeleteResponsePlanCommand = async (input, con
|
|
|
164
158
|
body,
|
|
165
159
|
});
|
|
166
160
|
};
|
|
167
|
-
export const
|
|
161
|
+
export const se_DeleteTimelineEventCommand = async (input, context) => {
|
|
168
162
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
169
163
|
const headers = {
|
|
170
164
|
"content-type": "application/json",
|
|
@@ -185,7 +179,7 @@ export const serializeAws_restJson1DeleteTimelineEventCommand = async (input, co
|
|
|
185
179
|
body,
|
|
186
180
|
});
|
|
187
181
|
};
|
|
188
|
-
export const
|
|
182
|
+
export const se_GetIncidentRecordCommand = async (input, context) => {
|
|
189
183
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
190
184
|
const headers = {};
|
|
191
185
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getIncidentRecord";
|
|
@@ -204,7 +198,7 @@ export const serializeAws_restJson1GetIncidentRecordCommand = async (input, cont
|
|
|
204
198
|
body,
|
|
205
199
|
});
|
|
206
200
|
};
|
|
207
|
-
export const
|
|
201
|
+
export const se_GetReplicationSetCommand = async (input, context) => {
|
|
208
202
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
203
|
const headers = {};
|
|
210
204
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getReplicationSet";
|
|
@@ -223,7 +217,7 @@ export const serializeAws_restJson1GetReplicationSetCommand = async (input, cont
|
|
|
223
217
|
body,
|
|
224
218
|
});
|
|
225
219
|
};
|
|
226
|
-
export const
|
|
220
|
+
export const se_GetResourcePoliciesCommand = async (input, context) => {
|
|
227
221
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
228
222
|
const headers = {
|
|
229
223
|
"content-type": "application/json",
|
|
@@ -248,7 +242,7 @@ export const serializeAws_restJson1GetResourcePoliciesCommand = async (input, co
|
|
|
248
242
|
body,
|
|
249
243
|
});
|
|
250
244
|
};
|
|
251
|
-
export const
|
|
245
|
+
export const se_GetResponsePlanCommand = async (input, context) => {
|
|
252
246
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
253
247
|
const headers = {};
|
|
254
248
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getResponsePlan";
|
|
@@ -267,7 +261,7 @@ export const serializeAws_restJson1GetResponsePlanCommand = async (input, contex
|
|
|
267
261
|
body,
|
|
268
262
|
});
|
|
269
263
|
};
|
|
270
|
-
export const
|
|
264
|
+
export const se_GetTimelineEventCommand = async (input, context) => {
|
|
271
265
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
272
266
|
const headers = {};
|
|
273
267
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getTimelineEvent";
|
|
@@ -287,7 +281,7 @@ export const serializeAws_restJson1GetTimelineEventCommand = async (input, conte
|
|
|
287
281
|
body,
|
|
288
282
|
});
|
|
289
283
|
};
|
|
290
|
-
export const
|
|
284
|
+
export const se_ListIncidentRecordsCommand = async (input, context) => {
|
|
291
285
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
292
286
|
const headers = {
|
|
293
287
|
"content-type": "application/json",
|
|
@@ -295,7 +289,7 @@ export const serializeAws_restJson1ListIncidentRecordsCommand = async (input, co
|
|
|
295
289
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listIncidentRecords";
|
|
296
290
|
let body;
|
|
297
291
|
body = JSON.stringify({
|
|
298
|
-
...(input.filters != null && { filters:
|
|
292
|
+
...(input.filters != null && { filters: se_FilterList(input.filters, context) }),
|
|
299
293
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
300
294
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
301
295
|
});
|
|
@@ -309,7 +303,7 @@ export const serializeAws_restJson1ListIncidentRecordsCommand = async (input, co
|
|
|
309
303
|
body,
|
|
310
304
|
});
|
|
311
305
|
};
|
|
312
|
-
export const
|
|
306
|
+
export const se_ListRelatedItemsCommand = async (input, context) => {
|
|
313
307
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
314
308
|
const headers = {
|
|
315
309
|
"content-type": "application/json",
|
|
@@ -331,7 +325,7 @@ export const serializeAws_restJson1ListRelatedItemsCommand = async (input, conte
|
|
|
331
325
|
body,
|
|
332
326
|
});
|
|
333
327
|
};
|
|
334
|
-
export const
|
|
328
|
+
export const se_ListReplicationSetsCommand = async (input, context) => {
|
|
335
329
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
336
330
|
const headers = {
|
|
337
331
|
"content-type": "application/json",
|
|
@@ -352,7 +346,7 @@ export const serializeAws_restJson1ListReplicationSetsCommand = async (input, co
|
|
|
352
346
|
body,
|
|
353
347
|
});
|
|
354
348
|
};
|
|
355
|
-
export const
|
|
349
|
+
export const se_ListResponsePlansCommand = async (input, context) => {
|
|
356
350
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
357
351
|
const headers = {
|
|
358
352
|
"content-type": "application/json",
|
|
@@ -373,7 +367,7 @@ export const serializeAws_restJson1ListResponsePlansCommand = async (input, cont
|
|
|
373
367
|
body,
|
|
374
368
|
});
|
|
375
369
|
};
|
|
376
|
-
export const
|
|
370
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
377
371
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
378
372
|
const headers = {};
|
|
379
373
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -389,7 +383,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
389
383
|
body,
|
|
390
384
|
});
|
|
391
385
|
};
|
|
392
|
-
export const
|
|
386
|
+
export const se_ListTimelineEventsCommand = async (input, context) => {
|
|
393
387
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
388
|
const headers = {
|
|
395
389
|
"content-type": "application/json",
|
|
@@ -397,7 +391,7 @@ export const serializeAws_restJson1ListTimelineEventsCommand = async (input, con
|
|
|
397
391
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listTimelineEvents";
|
|
398
392
|
let body;
|
|
399
393
|
body = JSON.stringify({
|
|
400
|
-
...(input.filters != null && { filters:
|
|
394
|
+
...(input.filters != null && { filters: se_FilterList(input.filters, context) }),
|
|
401
395
|
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
402
396
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
403
397
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
@@ -414,7 +408,7 @@ export const serializeAws_restJson1ListTimelineEventsCommand = async (input, con
|
|
|
414
408
|
body,
|
|
415
409
|
});
|
|
416
410
|
};
|
|
417
|
-
export const
|
|
411
|
+
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
418
412
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
419
413
|
const headers = {
|
|
420
414
|
"content-type": "application/json",
|
|
@@ -435,7 +429,7 @@ export const serializeAws_restJson1PutResourcePolicyCommand = async (input, cont
|
|
|
435
429
|
body,
|
|
436
430
|
});
|
|
437
431
|
};
|
|
438
|
-
export const
|
|
432
|
+
export const se_StartIncidentCommand = async (input, context) => {
|
|
439
433
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
440
434
|
const headers = {
|
|
441
435
|
"content-type": "application/json",
|
|
@@ -445,14 +439,10 @@ export const serializeAws_restJson1StartIncidentCommand = async (input, context)
|
|
|
445
439
|
body = JSON.stringify({
|
|
446
440
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
447
441
|
...(input.impact != null && { impact: input.impact }),
|
|
448
|
-
...(input.relatedItems != null && {
|
|
449
|
-
relatedItems: serializeAws_restJson1RelatedItemList(input.relatedItems, context),
|
|
450
|
-
}),
|
|
442
|
+
...(input.relatedItems != null && { relatedItems: se_RelatedItemList(input.relatedItems, context) }),
|
|
451
443
|
...(input.responsePlanArn != null && { responsePlanArn: input.responsePlanArn }),
|
|
452
444
|
...(input.title != null && { title: input.title }),
|
|
453
|
-
...(input.triggerDetails != null && {
|
|
454
|
-
triggerDetails: serializeAws_restJson1TriggerDetails(input.triggerDetails, context),
|
|
455
|
-
}),
|
|
445
|
+
...(input.triggerDetails != null && { triggerDetails: se_TriggerDetails(input.triggerDetails, context) }),
|
|
456
446
|
});
|
|
457
447
|
return new __HttpRequest({
|
|
458
448
|
protocol,
|
|
@@ -464,7 +454,7 @@ export const serializeAws_restJson1StartIncidentCommand = async (input, context)
|
|
|
464
454
|
body,
|
|
465
455
|
});
|
|
466
456
|
};
|
|
467
|
-
export const
|
|
457
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
468
458
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
469
459
|
const headers = {
|
|
470
460
|
"content-type": "application/json",
|
|
@@ -473,7 +463,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
473
463
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
474
464
|
let body;
|
|
475
465
|
body = JSON.stringify({
|
|
476
|
-
...(input.tags != null && { tags:
|
|
466
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
477
467
|
});
|
|
478
468
|
return new __HttpRequest({
|
|
479
469
|
protocol,
|
|
@@ -485,7 +475,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
485
475
|
body,
|
|
486
476
|
});
|
|
487
477
|
};
|
|
488
|
-
export const
|
|
478
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
489
479
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
490
480
|
const headers = {};
|
|
491
481
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -508,7 +498,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
508
498
|
body,
|
|
509
499
|
});
|
|
510
500
|
};
|
|
511
|
-
export const
|
|
501
|
+
export const se_UpdateDeletionProtectionCommand = async (input, context) => {
|
|
512
502
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
513
503
|
const headers = {
|
|
514
504
|
"content-type": "application/json",
|
|
@@ -530,7 +520,7 @@ export const serializeAws_restJson1UpdateDeletionProtectionCommand = async (inpu
|
|
|
530
520
|
body,
|
|
531
521
|
});
|
|
532
522
|
};
|
|
533
|
-
export const
|
|
523
|
+
export const se_UpdateIncidentRecordCommand = async (input, context) => {
|
|
534
524
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
535
525
|
const headers = {
|
|
536
526
|
"content-type": "application/json",
|
|
@@ -539,11 +529,11 @@ export const serializeAws_restJson1UpdateIncidentRecordCommand = async (input, c
|
|
|
539
529
|
let body;
|
|
540
530
|
body = JSON.stringify({
|
|
541
531
|
...(input.arn != null && { arn: input.arn }),
|
|
542
|
-
...(input.chatChannel != null && { chatChannel:
|
|
532
|
+
...(input.chatChannel != null && { chatChannel: se_ChatChannel(input.chatChannel, context) }),
|
|
543
533
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
544
534
|
...(input.impact != null && { impact: input.impact }),
|
|
545
535
|
...(input.notificationTargets != null && {
|
|
546
|
-
notificationTargets:
|
|
536
|
+
notificationTargets: se_NotificationTargetSet(input.notificationTargets, context),
|
|
547
537
|
}),
|
|
548
538
|
...(input.status != null && { status: input.status }),
|
|
549
539
|
...(input.summary != null && { summary: input.summary }),
|
|
@@ -559,7 +549,7 @@ export const serializeAws_restJson1UpdateIncidentRecordCommand = async (input, c
|
|
|
559
549
|
body,
|
|
560
550
|
});
|
|
561
551
|
};
|
|
562
|
-
export const
|
|
552
|
+
export const se_UpdateRelatedItemsCommand = async (input, context) => {
|
|
563
553
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
564
554
|
const headers = {
|
|
565
555
|
"content-type": "application/json",
|
|
@@ -570,7 +560,7 @@ export const serializeAws_restJson1UpdateRelatedItemsCommand = async (input, con
|
|
|
570
560
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
571
561
|
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
572
562
|
...(input.relatedItemsUpdate != null && {
|
|
573
|
-
relatedItemsUpdate:
|
|
563
|
+
relatedItemsUpdate: se_RelatedItemsUpdate(input.relatedItemsUpdate, context),
|
|
574
564
|
}),
|
|
575
565
|
});
|
|
576
566
|
return new __HttpRequest({
|
|
@@ -583,7 +573,7 @@ export const serializeAws_restJson1UpdateRelatedItemsCommand = async (input, con
|
|
|
583
573
|
body,
|
|
584
574
|
});
|
|
585
575
|
};
|
|
586
|
-
export const
|
|
576
|
+
export const se_UpdateReplicationSetCommand = async (input, context) => {
|
|
587
577
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
588
578
|
const headers = {
|
|
589
579
|
"content-type": "application/json",
|
|
@@ -591,7 +581,7 @@ export const serializeAws_restJson1UpdateReplicationSetCommand = async (input, c
|
|
|
591
581
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateReplicationSet";
|
|
592
582
|
let body;
|
|
593
583
|
body = JSON.stringify({
|
|
594
|
-
...(input.actions != null && { actions:
|
|
584
|
+
...(input.actions != null && { actions: se_UpdateActionList(input.actions, context) }),
|
|
595
585
|
...(input.arn != null && { arn: input.arn }),
|
|
596
586
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
597
587
|
});
|
|
@@ -605,7 +595,7 @@ export const serializeAws_restJson1UpdateReplicationSetCommand = async (input, c
|
|
|
605
595
|
body,
|
|
606
596
|
});
|
|
607
597
|
};
|
|
608
|
-
export const
|
|
598
|
+
export const se_UpdateResponsePlanCommand = async (input, context) => {
|
|
609
599
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
610
600
|
const headers = {
|
|
611
601
|
"content-type": "application/json",
|
|
@@ -613,27 +603,25 @@ export const serializeAws_restJson1UpdateResponsePlanCommand = async (input, con
|
|
|
613
603
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateResponsePlan";
|
|
614
604
|
let body;
|
|
615
605
|
body = JSON.stringify({
|
|
616
|
-
...(input.actions != null && { actions:
|
|
606
|
+
...(input.actions != null && { actions: se_ActionsList(input.actions, context) }),
|
|
617
607
|
...(input.arn != null && { arn: input.arn }),
|
|
618
|
-
...(input.chatChannel != null && { chatChannel:
|
|
608
|
+
...(input.chatChannel != null && { chatChannel: se_ChatChannel(input.chatChannel, context) }),
|
|
619
609
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
620
610
|
...(input.displayName != null && { displayName: input.displayName }),
|
|
621
|
-
...(input.engagements != null && { engagements:
|
|
611
|
+
...(input.engagements != null && { engagements: se_EngagementSet(input.engagements, context) }),
|
|
622
612
|
...(input.incidentTemplateDedupeString != null && {
|
|
623
613
|
incidentTemplateDedupeString: input.incidentTemplateDedupeString,
|
|
624
614
|
}),
|
|
625
615
|
...(input.incidentTemplateImpact != null && { incidentTemplateImpact: input.incidentTemplateImpact }),
|
|
626
616
|
...(input.incidentTemplateNotificationTargets != null && {
|
|
627
|
-
incidentTemplateNotificationTargets:
|
|
617
|
+
incidentTemplateNotificationTargets: se_NotificationTargetSet(input.incidentTemplateNotificationTargets, context),
|
|
628
618
|
}),
|
|
629
619
|
...(input.incidentTemplateSummary != null && { incidentTemplateSummary: input.incidentTemplateSummary }),
|
|
630
620
|
...(input.incidentTemplateTags != null && {
|
|
631
|
-
incidentTemplateTags:
|
|
621
|
+
incidentTemplateTags: se_TagMapUpdate(input.incidentTemplateTags, context),
|
|
632
622
|
}),
|
|
633
623
|
...(input.incidentTemplateTitle != null && { incidentTemplateTitle: input.incidentTemplateTitle }),
|
|
634
|
-
...(input.integrations != null && {
|
|
635
|
-
integrations: serializeAws_restJson1Integrations(input.integrations, context),
|
|
636
|
-
}),
|
|
624
|
+
...(input.integrations != null && { integrations: se_Integrations(input.integrations, context) }),
|
|
637
625
|
});
|
|
638
626
|
return new __HttpRequest({
|
|
639
627
|
protocol,
|
|
@@ -645,7 +633,7 @@ export const serializeAws_restJson1UpdateResponsePlanCommand = async (input, con
|
|
|
645
633
|
body,
|
|
646
634
|
});
|
|
647
635
|
};
|
|
648
|
-
export const
|
|
636
|
+
export const se_UpdateTimelineEventCommand = async (input, context) => {
|
|
649
637
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
650
638
|
const headers = {
|
|
651
639
|
"content-type": "application/json",
|
|
@@ -656,9 +644,7 @@ export const serializeAws_restJson1UpdateTimelineEventCommand = async (input, co
|
|
|
656
644
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
657
645
|
...(input.eventData != null && { eventData: input.eventData }),
|
|
658
646
|
...(input.eventId != null && { eventId: input.eventId }),
|
|
659
|
-
...(input.eventReferences != null && {
|
|
660
|
-
eventReferences: serializeAws_restJson1EventReferenceList(input.eventReferences, context),
|
|
661
|
-
}),
|
|
647
|
+
...(input.eventReferences != null && { eventReferences: se_EventReferenceList(input.eventReferences, context) }),
|
|
662
648
|
...(input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
|
|
663
649
|
...(input.eventType != null && { eventType: input.eventType }),
|
|
664
650
|
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
@@ -673,9 +659,9 @@ export const serializeAws_restJson1UpdateTimelineEventCommand = async (input, co
|
|
|
673
659
|
body,
|
|
674
660
|
});
|
|
675
661
|
};
|
|
676
|
-
export const
|
|
662
|
+
export const de_CreateReplicationSetCommand = async (output, context) => {
|
|
677
663
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
678
|
-
return
|
|
664
|
+
return de_CreateReplicationSetCommandError(output, context);
|
|
679
665
|
}
|
|
680
666
|
const contents = map({
|
|
681
667
|
$metadata: deserializeMetadata(output),
|
|
@@ -686,7 +672,7 @@ export const deserializeAws_restJson1CreateReplicationSetCommand = async (output
|
|
|
686
672
|
}
|
|
687
673
|
return contents;
|
|
688
674
|
};
|
|
689
|
-
const
|
|
675
|
+
const de_CreateReplicationSetCommandError = async (output, context) => {
|
|
690
676
|
const parsedOutput = {
|
|
691
677
|
...output,
|
|
692
678
|
body: await parseErrorBody(output.body, context),
|
|
@@ -695,22 +681,22 @@ const deserializeAws_restJson1CreateReplicationSetCommandError = async (output,
|
|
|
695
681
|
switch (errorCode) {
|
|
696
682
|
case "AccessDeniedException":
|
|
697
683
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
698
|
-
throw await
|
|
684
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
699
685
|
case "ConflictException":
|
|
700
686
|
case "com.amazonaws.ssmincidents#ConflictException":
|
|
701
|
-
throw await
|
|
687
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
702
688
|
case "InternalServerException":
|
|
703
689
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
704
|
-
throw await
|
|
690
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
705
691
|
case "ServiceQuotaExceededException":
|
|
706
692
|
case "com.amazonaws.ssmincidents#ServiceQuotaExceededException":
|
|
707
|
-
throw await
|
|
693
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
708
694
|
case "ThrottlingException":
|
|
709
695
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
710
|
-
throw await
|
|
696
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
711
697
|
case "ValidationException":
|
|
712
698
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
713
|
-
throw await
|
|
699
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
714
700
|
default:
|
|
715
701
|
const parsedBody = parsedOutput.body;
|
|
716
702
|
throwDefaultError({
|
|
@@ -721,9 +707,9 @@ const deserializeAws_restJson1CreateReplicationSetCommandError = async (output,
|
|
|
721
707
|
});
|
|
722
708
|
}
|
|
723
709
|
};
|
|
724
|
-
export const
|
|
710
|
+
export const de_CreateResponsePlanCommand = async (output, context) => {
|
|
725
711
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
726
|
-
return
|
|
712
|
+
return de_CreateResponsePlanCommandError(output, context);
|
|
727
713
|
}
|
|
728
714
|
const contents = map({
|
|
729
715
|
$metadata: deserializeMetadata(output),
|
|
@@ -734,7 +720,7 @@ export const deserializeAws_restJson1CreateResponsePlanCommand = async (output,
|
|
|
734
720
|
}
|
|
735
721
|
return contents;
|
|
736
722
|
};
|
|
737
|
-
const
|
|
723
|
+
const de_CreateResponsePlanCommandError = async (output, context) => {
|
|
738
724
|
const parsedOutput = {
|
|
739
725
|
...output,
|
|
740
726
|
body: await parseErrorBody(output.body, context),
|
|
@@ -743,22 +729,22 @@ const deserializeAws_restJson1CreateResponsePlanCommandError = async (output, co
|
|
|
743
729
|
switch (errorCode) {
|
|
744
730
|
case "AccessDeniedException":
|
|
745
731
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
746
|
-
throw await
|
|
732
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
747
733
|
case "ConflictException":
|
|
748
734
|
case "com.amazonaws.ssmincidents#ConflictException":
|
|
749
|
-
throw await
|
|
735
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
750
736
|
case "InternalServerException":
|
|
751
737
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
752
|
-
throw await
|
|
738
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
753
739
|
case "ResourceNotFoundException":
|
|
754
740
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
755
|
-
throw await
|
|
741
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
756
742
|
case "ThrottlingException":
|
|
757
743
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
758
|
-
throw await
|
|
744
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
759
745
|
case "ValidationException":
|
|
760
746
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
761
|
-
throw await
|
|
747
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
762
748
|
default:
|
|
763
749
|
const parsedBody = parsedOutput.body;
|
|
764
750
|
throwDefaultError({
|
|
@@ -769,9 +755,9 @@ const deserializeAws_restJson1CreateResponsePlanCommandError = async (output, co
|
|
|
769
755
|
});
|
|
770
756
|
}
|
|
771
757
|
};
|
|
772
|
-
export const
|
|
758
|
+
export const de_CreateTimelineEventCommand = async (output, context) => {
|
|
773
759
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
774
|
-
return
|
|
760
|
+
return de_CreateTimelineEventCommandError(output, context);
|
|
775
761
|
}
|
|
776
762
|
const contents = map({
|
|
777
763
|
$metadata: deserializeMetadata(output),
|
|
@@ -785,7 +771,7 @@ export const deserializeAws_restJson1CreateTimelineEventCommand = async (output,
|
|
|
785
771
|
}
|
|
786
772
|
return contents;
|
|
787
773
|
};
|
|
788
|
-
const
|
|
774
|
+
const de_CreateTimelineEventCommandError = async (output, context) => {
|
|
789
775
|
const parsedOutput = {
|
|
790
776
|
...output,
|
|
791
777
|
body: await parseErrorBody(output.body, context),
|
|
@@ -794,22 +780,22 @@ const deserializeAws_restJson1CreateTimelineEventCommandError = async (output, c
|
|
|
794
780
|
switch (errorCode) {
|
|
795
781
|
case "AccessDeniedException":
|
|
796
782
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
797
|
-
throw await
|
|
783
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
798
784
|
case "ConflictException":
|
|
799
785
|
case "com.amazonaws.ssmincidents#ConflictException":
|
|
800
|
-
throw await
|
|
786
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
801
787
|
case "InternalServerException":
|
|
802
788
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
803
|
-
throw await
|
|
789
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
804
790
|
case "ResourceNotFoundException":
|
|
805
791
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
806
|
-
throw await
|
|
792
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
807
793
|
case "ThrottlingException":
|
|
808
794
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
809
|
-
throw await
|
|
795
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
810
796
|
case "ValidationException":
|
|
811
797
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
812
|
-
throw await
|
|
798
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
813
799
|
default:
|
|
814
800
|
const parsedBody = parsedOutput.body;
|
|
815
801
|
throwDefaultError({
|
|
@@ -820,9 +806,9 @@ const deserializeAws_restJson1CreateTimelineEventCommandError = async (output, c
|
|
|
820
806
|
});
|
|
821
807
|
}
|
|
822
808
|
};
|
|
823
|
-
export const
|
|
809
|
+
export const de_DeleteIncidentRecordCommand = async (output, context) => {
|
|
824
810
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
825
|
-
return
|
|
811
|
+
return de_DeleteIncidentRecordCommandError(output, context);
|
|
826
812
|
}
|
|
827
813
|
const contents = map({
|
|
828
814
|
$metadata: deserializeMetadata(output),
|
|
@@ -830,7 +816,7 @@ export const deserializeAws_restJson1DeleteIncidentRecordCommand = async (output
|
|
|
830
816
|
await collectBody(output.body, context);
|
|
831
817
|
return contents;
|
|
832
818
|
};
|
|
833
|
-
const
|
|
819
|
+
const de_DeleteIncidentRecordCommandError = async (output, context) => {
|
|
834
820
|
const parsedOutput = {
|
|
835
821
|
...output,
|
|
836
822
|
body: await parseErrorBody(output.body, context),
|
|
@@ -839,16 +825,16 @@ const deserializeAws_restJson1DeleteIncidentRecordCommandError = async (output,
|
|
|
839
825
|
switch (errorCode) {
|
|
840
826
|
case "AccessDeniedException":
|
|
841
827
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
842
|
-
throw await
|
|
828
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
843
829
|
case "InternalServerException":
|
|
844
830
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
845
|
-
throw await
|
|
831
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
846
832
|
case "ThrottlingException":
|
|
847
833
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
848
|
-
throw await
|
|
834
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
849
835
|
case "ValidationException":
|
|
850
836
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
851
|
-
throw await
|
|
837
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
852
838
|
default:
|
|
853
839
|
const parsedBody = parsedOutput.body;
|
|
854
840
|
throwDefaultError({
|
|
@@ -859,9 +845,9 @@ const deserializeAws_restJson1DeleteIncidentRecordCommandError = async (output,
|
|
|
859
845
|
});
|
|
860
846
|
}
|
|
861
847
|
};
|
|
862
|
-
export const
|
|
848
|
+
export const de_DeleteReplicationSetCommand = async (output, context) => {
|
|
863
849
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
864
|
-
return
|
|
850
|
+
return de_DeleteReplicationSetCommandError(output, context);
|
|
865
851
|
}
|
|
866
852
|
const contents = map({
|
|
867
853
|
$metadata: deserializeMetadata(output),
|
|
@@ -869,7 +855,7 @@ export const deserializeAws_restJson1DeleteReplicationSetCommand = async (output
|
|
|
869
855
|
await collectBody(output.body, context);
|
|
870
856
|
return contents;
|
|
871
857
|
};
|
|
872
|
-
const
|
|
858
|
+
const de_DeleteReplicationSetCommandError = async (output, context) => {
|
|
873
859
|
const parsedOutput = {
|
|
874
860
|
...output,
|
|
875
861
|
body: await parseErrorBody(output.body, context),
|
|
@@ -878,19 +864,19 @@ const deserializeAws_restJson1DeleteReplicationSetCommandError = async (output,
|
|
|
878
864
|
switch (errorCode) {
|
|
879
865
|
case "AccessDeniedException":
|
|
880
866
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
881
|
-
throw await
|
|
867
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
882
868
|
case "InternalServerException":
|
|
883
869
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
884
|
-
throw await
|
|
870
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
885
871
|
case "ResourceNotFoundException":
|
|
886
872
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
887
|
-
throw await
|
|
873
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
888
874
|
case "ThrottlingException":
|
|
889
875
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
890
|
-
throw await
|
|
876
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
891
877
|
case "ValidationException":
|
|
892
878
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
893
|
-
throw await
|
|
879
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
894
880
|
default:
|
|
895
881
|
const parsedBody = parsedOutput.body;
|
|
896
882
|
throwDefaultError({
|
|
@@ -901,9 +887,9 @@ const deserializeAws_restJson1DeleteReplicationSetCommandError = async (output,
|
|
|
901
887
|
});
|
|
902
888
|
}
|
|
903
889
|
};
|
|
904
|
-
export const
|
|
890
|
+
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
905
891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
906
|
-
return
|
|
892
|
+
return de_DeleteResourcePolicyCommandError(output, context);
|
|
907
893
|
}
|
|
908
894
|
const contents = map({
|
|
909
895
|
$metadata: deserializeMetadata(output),
|
|
@@ -911,7 +897,7 @@ export const deserializeAws_restJson1DeleteResourcePolicyCommand = async (output
|
|
|
911
897
|
await collectBody(output.body, context);
|
|
912
898
|
return contents;
|
|
913
899
|
};
|
|
914
|
-
const
|
|
900
|
+
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
915
901
|
const parsedOutput = {
|
|
916
902
|
...output,
|
|
917
903
|
body: await parseErrorBody(output.body, context),
|
|
@@ -920,19 +906,19 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
920
906
|
switch (errorCode) {
|
|
921
907
|
case "AccessDeniedException":
|
|
922
908
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
923
|
-
throw await
|
|
909
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
924
910
|
case "InternalServerException":
|
|
925
911
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
926
|
-
throw await
|
|
912
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
927
913
|
case "ResourceNotFoundException":
|
|
928
914
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
929
|
-
throw await
|
|
915
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
930
916
|
case "ThrottlingException":
|
|
931
917
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
932
|
-
throw await
|
|
918
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
933
919
|
case "ValidationException":
|
|
934
920
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
935
|
-
throw await
|
|
921
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
936
922
|
default:
|
|
937
923
|
const parsedBody = parsedOutput.body;
|
|
938
924
|
throwDefaultError({
|
|
@@ -943,9 +929,9 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
943
929
|
});
|
|
944
930
|
}
|
|
945
931
|
};
|
|
946
|
-
export const
|
|
932
|
+
export const de_DeleteResponsePlanCommand = async (output, context) => {
|
|
947
933
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
948
|
-
return
|
|
934
|
+
return de_DeleteResponsePlanCommandError(output, context);
|
|
949
935
|
}
|
|
950
936
|
const contents = map({
|
|
951
937
|
$metadata: deserializeMetadata(output),
|
|
@@ -953,7 +939,7 @@ export const deserializeAws_restJson1DeleteResponsePlanCommand = async (output,
|
|
|
953
939
|
await collectBody(output.body, context);
|
|
954
940
|
return contents;
|
|
955
941
|
};
|
|
956
|
-
const
|
|
942
|
+
const de_DeleteResponsePlanCommandError = async (output, context) => {
|
|
957
943
|
const parsedOutput = {
|
|
958
944
|
...output,
|
|
959
945
|
body: await parseErrorBody(output.body, context),
|
|
@@ -962,16 +948,16 @@ const deserializeAws_restJson1DeleteResponsePlanCommandError = async (output, co
|
|
|
962
948
|
switch (errorCode) {
|
|
963
949
|
case "AccessDeniedException":
|
|
964
950
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
965
|
-
throw await
|
|
951
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
966
952
|
case "InternalServerException":
|
|
967
953
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
968
|
-
throw await
|
|
954
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
969
955
|
case "ThrottlingException":
|
|
970
956
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
971
|
-
throw await
|
|
957
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
972
958
|
case "ValidationException":
|
|
973
959
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
974
|
-
throw await
|
|
960
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
975
961
|
default:
|
|
976
962
|
const parsedBody = parsedOutput.body;
|
|
977
963
|
throwDefaultError({
|
|
@@ -982,9 +968,9 @@ const deserializeAws_restJson1DeleteResponsePlanCommandError = async (output, co
|
|
|
982
968
|
});
|
|
983
969
|
}
|
|
984
970
|
};
|
|
985
|
-
export const
|
|
971
|
+
export const de_DeleteTimelineEventCommand = async (output, context) => {
|
|
986
972
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
987
|
-
return
|
|
973
|
+
return de_DeleteTimelineEventCommandError(output, context);
|
|
988
974
|
}
|
|
989
975
|
const contents = map({
|
|
990
976
|
$metadata: deserializeMetadata(output),
|
|
@@ -992,7 +978,7 @@ export const deserializeAws_restJson1DeleteTimelineEventCommand = async (output,
|
|
|
992
978
|
await collectBody(output.body, context);
|
|
993
979
|
return contents;
|
|
994
980
|
};
|
|
995
|
-
const
|
|
981
|
+
const de_DeleteTimelineEventCommandError = async (output, context) => {
|
|
996
982
|
const parsedOutput = {
|
|
997
983
|
...output,
|
|
998
984
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1001,16 +987,16 @@ const deserializeAws_restJson1DeleteTimelineEventCommandError = async (output, c
|
|
|
1001
987
|
switch (errorCode) {
|
|
1002
988
|
case "AccessDeniedException":
|
|
1003
989
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1004
|
-
throw await
|
|
990
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1005
991
|
case "InternalServerException":
|
|
1006
992
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1007
|
-
throw await
|
|
993
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1008
994
|
case "ThrottlingException":
|
|
1009
995
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1010
|
-
throw await
|
|
996
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1011
997
|
case "ValidationException":
|
|
1012
998
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1013
|
-
throw await
|
|
999
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1014
1000
|
default:
|
|
1015
1001
|
const parsedBody = parsedOutput.body;
|
|
1016
1002
|
throwDefaultError({
|
|
@@ -1021,20 +1007,20 @@ const deserializeAws_restJson1DeleteTimelineEventCommandError = async (output, c
|
|
|
1021
1007
|
});
|
|
1022
1008
|
}
|
|
1023
1009
|
};
|
|
1024
|
-
export const
|
|
1010
|
+
export const de_GetIncidentRecordCommand = async (output, context) => {
|
|
1025
1011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1026
|
-
return
|
|
1012
|
+
return de_GetIncidentRecordCommandError(output, context);
|
|
1027
1013
|
}
|
|
1028
1014
|
const contents = map({
|
|
1029
1015
|
$metadata: deserializeMetadata(output),
|
|
1030
1016
|
});
|
|
1031
1017
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1032
1018
|
if (data.incidentRecord != null) {
|
|
1033
|
-
contents.incidentRecord =
|
|
1019
|
+
contents.incidentRecord = de_IncidentRecord(data.incidentRecord, context);
|
|
1034
1020
|
}
|
|
1035
1021
|
return contents;
|
|
1036
1022
|
};
|
|
1037
|
-
const
|
|
1023
|
+
const de_GetIncidentRecordCommandError = async (output, context) => {
|
|
1038
1024
|
const parsedOutput = {
|
|
1039
1025
|
...output,
|
|
1040
1026
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1043,19 +1029,19 @@ const deserializeAws_restJson1GetIncidentRecordCommandError = async (output, con
|
|
|
1043
1029
|
switch (errorCode) {
|
|
1044
1030
|
case "AccessDeniedException":
|
|
1045
1031
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1046
|
-
throw await
|
|
1032
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1047
1033
|
case "InternalServerException":
|
|
1048
1034
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1049
|
-
throw await
|
|
1035
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1050
1036
|
case "ResourceNotFoundException":
|
|
1051
1037
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1052
|
-
throw await
|
|
1038
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1053
1039
|
case "ThrottlingException":
|
|
1054
1040
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1055
|
-
throw await
|
|
1041
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1056
1042
|
case "ValidationException":
|
|
1057
1043
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1058
|
-
throw await
|
|
1044
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1059
1045
|
default:
|
|
1060
1046
|
const parsedBody = parsedOutput.body;
|
|
1061
1047
|
throwDefaultError({
|
|
@@ -1066,20 +1052,20 @@ const deserializeAws_restJson1GetIncidentRecordCommandError = async (output, con
|
|
|
1066
1052
|
});
|
|
1067
1053
|
}
|
|
1068
1054
|
};
|
|
1069
|
-
export const
|
|
1055
|
+
export const de_GetReplicationSetCommand = async (output, context) => {
|
|
1070
1056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1071
|
-
return
|
|
1057
|
+
return de_GetReplicationSetCommandError(output, context);
|
|
1072
1058
|
}
|
|
1073
1059
|
const contents = map({
|
|
1074
1060
|
$metadata: deserializeMetadata(output),
|
|
1075
1061
|
});
|
|
1076
1062
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1077
1063
|
if (data.replicationSet != null) {
|
|
1078
|
-
contents.replicationSet =
|
|
1064
|
+
contents.replicationSet = de_ReplicationSet(data.replicationSet, context);
|
|
1079
1065
|
}
|
|
1080
1066
|
return contents;
|
|
1081
1067
|
};
|
|
1082
|
-
const
|
|
1068
|
+
const de_GetReplicationSetCommandError = async (output, context) => {
|
|
1083
1069
|
const parsedOutput = {
|
|
1084
1070
|
...output,
|
|
1085
1071
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1088,19 +1074,19 @@ const deserializeAws_restJson1GetReplicationSetCommandError = async (output, con
|
|
|
1088
1074
|
switch (errorCode) {
|
|
1089
1075
|
case "AccessDeniedException":
|
|
1090
1076
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1091
|
-
throw await
|
|
1077
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1092
1078
|
case "InternalServerException":
|
|
1093
1079
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1094
|
-
throw await
|
|
1080
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1095
1081
|
case "ResourceNotFoundException":
|
|
1096
1082
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1097
|
-
throw await
|
|
1083
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1098
1084
|
case "ThrottlingException":
|
|
1099
1085
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1100
|
-
throw await
|
|
1086
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1101
1087
|
case "ValidationException":
|
|
1102
1088
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1103
|
-
throw await
|
|
1089
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1104
1090
|
default:
|
|
1105
1091
|
const parsedBody = parsedOutput.body;
|
|
1106
1092
|
throwDefaultError({
|
|
@@ -1111,9 +1097,9 @@ const deserializeAws_restJson1GetReplicationSetCommandError = async (output, con
|
|
|
1111
1097
|
});
|
|
1112
1098
|
}
|
|
1113
1099
|
};
|
|
1114
|
-
export const
|
|
1100
|
+
export const de_GetResourcePoliciesCommand = async (output, context) => {
|
|
1115
1101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1116
|
-
return
|
|
1102
|
+
return de_GetResourcePoliciesCommandError(output, context);
|
|
1117
1103
|
}
|
|
1118
1104
|
const contents = map({
|
|
1119
1105
|
$metadata: deserializeMetadata(output),
|
|
@@ -1123,11 +1109,11 @@ export const deserializeAws_restJson1GetResourcePoliciesCommand = async (output,
|
|
|
1123
1109
|
contents.nextToken = __expectString(data.nextToken);
|
|
1124
1110
|
}
|
|
1125
1111
|
if (data.resourcePolicies != null) {
|
|
1126
|
-
contents.resourcePolicies =
|
|
1112
|
+
contents.resourcePolicies = de_ResourcePolicyList(data.resourcePolicies, context);
|
|
1127
1113
|
}
|
|
1128
1114
|
return contents;
|
|
1129
1115
|
};
|
|
1130
|
-
const
|
|
1116
|
+
const de_GetResourcePoliciesCommandError = async (output, context) => {
|
|
1131
1117
|
const parsedOutput = {
|
|
1132
1118
|
...output,
|
|
1133
1119
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1136,19 +1122,19 @@ const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, c
|
|
|
1136
1122
|
switch (errorCode) {
|
|
1137
1123
|
case "AccessDeniedException":
|
|
1138
1124
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1139
|
-
throw await
|
|
1125
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1140
1126
|
case "InternalServerException":
|
|
1141
1127
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1142
|
-
throw await
|
|
1128
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1143
1129
|
case "ResourceNotFoundException":
|
|
1144
1130
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1145
|
-
throw await
|
|
1131
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1146
1132
|
case "ThrottlingException":
|
|
1147
1133
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1148
|
-
throw await
|
|
1134
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1149
1135
|
case "ValidationException":
|
|
1150
1136
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1151
|
-
throw await
|
|
1137
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1152
1138
|
default:
|
|
1153
1139
|
const parsedBody = parsedOutput.body;
|
|
1154
1140
|
throwDefaultError({
|
|
@@ -1159,41 +1145,41 @@ const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, c
|
|
|
1159
1145
|
});
|
|
1160
1146
|
}
|
|
1161
1147
|
};
|
|
1162
|
-
export const
|
|
1148
|
+
export const de_GetResponsePlanCommand = async (output, context) => {
|
|
1163
1149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1164
|
-
return
|
|
1150
|
+
return de_GetResponsePlanCommandError(output, context);
|
|
1165
1151
|
}
|
|
1166
1152
|
const contents = map({
|
|
1167
1153
|
$metadata: deserializeMetadata(output),
|
|
1168
1154
|
});
|
|
1169
1155
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1170
1156
|
if (data.actions != null) {
|
|
1171
|
-
contents.actions =
|
|
1157
|
+
contents.actions = de_ActionsList(data.actions, context);
|
|
1172
1158
|
}
|
|
1173
1159
|
if (data.arn != null) {
|
|
1174
1160
|
contents.arn = __expectString(data.arn);
|
|
1175
1161
|
}
|
|
1176
1162
|
if (data.chatChannel != null) {
|
|
1177
|
-
contents.chatChannel =
|
|
1163
|
+
contents.chatChannel = de_ChatChannel(__expectUnion(data.chatChannel), context);
|
|
1178
1164
|
}
|
|
1179
1165
|
if (data.displayName != null) {
|
|
1180
1166
|
contents.displayName = __expectString(data.displayName);
|
|
1181
1167
|
}
|
|
1182
1168
|
if (data.engagements != null) {
|
|
1183
|
-
contents.engagements =
|
|
1169
|
+
contents.engagements = de_EngagementSet(data.engagements, context);
|
|
1184
1170
|
}
|
|
1185
1171
|
if (data.incidentTemplate != null) {
|
|
1186
|
-
contents.incidentTemplate =
|
|
1172
|
+
contents.incidentTemplate = de_IncidentTemplate(data.incidentTemplate, context);
|
|
1187
1173
|
}
|
|
1188
1174
|
if (data.integrations != null) {
|
|
1189
|
-
contents.integrations =
|
|
1175
|
+
contents.integrations = de_Integrations(data.integrations, context);
|
|
1190
1176
|
}
|
|
1191
1177
|
if (data.name != null) {
|
|
1192
1178
|
contents.name = __expectString(data.name);
|
|
1193
1179
|
}
|
|
1194
1180
|
return contents;
|
|
1195
1181
|
};
|
|
1196
|
-
const
|
|
1182
|
+
const de_GetResponsePlanCommandError = async (output, context) => {
|
|
1197
1183
|
const parsedOutput = {
|
|
1198
1184
|
...output,
|
|
1199
1185
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1202,19 +1188,19 @@ const deserializeAws_restJson1GetResponsePlanCommandError = async (output, conte
|
|
|
1202
1188
|
switch (errorCode) {
|
|
1203
1189
|
case "AccessDeniedException":
|
|
1204
1190
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1205
|
-
throw await
|
|
1191
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1206
1192
|
case "InternalServerException":
|
|
1207
1193
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1208
|
-
throw await
|
|
1194
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1209
1195
|
case "ResourceNotFoundException":
|
|
1210
1196
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1211
|
-
throw await
|
|
1197
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1212
1198
|
case "ThrottlingException":
|
|
1213
1199
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1214
|
-
throw await
|
|
1200
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1215
1201
|
case "ValidationException":
|
|
1216
1202
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1217
|
-
throw await
|
|
1203
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1218
1204
|
default:
|
|
1219
1205
|
const parsedBody = parsedOutput.body;
|
|
1220
1206
|
throwDefaultError({
|
|
@@ -1225,20 +1211,20 @@ const deserializeAws_restJson1GetResponsePlanCommandError = async (output, conte
|
|
|
1225
1211
|
});
|
|
1226
1212
|
}
|
|
1227
1213
|
};
|
|
1228
|
-
export const
|
|
1214
|
+
export const de_GetTimelineEventCommand = async (output, context) => {
|
|
1229
1215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1230
|
-
return
|
|
1216
|
+
return de_GetTimelineEventCommandError(output, context);
|
|
1231
1217
|
}
|
|
1232
1218
|
const contents = map({
|
|
1233
1219
|
$metadata: deserializeMetadata(output),
|
|
1234
1220
|
});
|
|
1235
1221
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1236
1222
|
if (data.event != null) {
|
|
1237
|
-
contents.event =
|
|
1223
|
+
contents.event = de_TimelineEvent(data.event, context);
|
|
1238
1224
|
}
|
|
1239
1225
|
return contents;
|
|
1240
1226
|
};
|
|
1241
|
-
const
|
|
1227
|
+
const de_GetTimelineEventCommandError = async (output, context) => {
|
|
1242
1228
|
const parsedOutput = {
|
|
1243
1229
|
...output,
|
|
1244
1230
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1247,19 +1233,19 @@ const deserializeAws_restJson1GetTimelineEventCommandError = async (output, cont
|
|
|
1247
1233
|
switch (errorCode) {
|
|
1248
1234
|
case "AccessDeniedException":
|
|
1249
1235
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1250
|
-
throw await
|
|
1236
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1251
1237
|
case "InternalServerException":
|
|
1252
1238
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1253
|
-
throw await
|
|
1239
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1254
1240
|
case "ResourceNotFoundException":
|
|
1255
1241
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1256
|
-
throw await
|
|
1242
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1257
1243
|
case "ThrottlingException":
|
|
1258
1244
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1259
|
-
throw await
|
|
1245
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1260
1246
|
case "ValidationException":
|
|
1261
1247
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1262
|
-
throw await
|
|
1248
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1263
1249
|
default:
|
|
1264
1250
|
const parsedBody = parsedOutput.body;
|
|
1265
1251
|
throwDefaultError({
|
|
@@ -1270,23 +1256,23 @@ const deserializeAws_restJson1GetTimelineEventCommandError = async (output, cont
|
|
|
1270
1256
|
});
|
|
1271
1257
|
}
|
|
1272
1258
|
};
|
|
1273
|
-
export const
|
|
1259
|
+
export const de_ListIncidentRecordsCommand = async (output, context) => {
|
|
1274
1260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1275
|
-
return
|
|
1261
|
+
return de_ListIncidentRecordsCommandError(output, context);
|
|
1276
1262
|
}
|
|
1277
1263
|
const contents = map({
|
|
1278
1264
|
$metadata: deserializeMetadata(output),
|
|
1279
1265
|
});
|
|
1280
1266
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1281
1267
|
if (data.incidentRecordSummaries != null) {
|
|
1282
|
-
contents.incidentRecordSummaries =
|
|
1268
|
+
contents.incidentRecordSummaries = de_IncidentRecordSummaryList(data.incidentRecordSummaries, context);
|
|
1283
1269
|
}
|
|
1284
1270
|
if (data.nextToken != null) {
|
|
1285
1271
|
contents.nextToken = __expectString(data.nextToken);
|
|
1286
1272
|
}
|
|
1287
1273
|
return contents;
|
|
1288
1274
|
};
|
|
1289
|
-
const
|
|
1275
|
+
const de_ListIncidentRecordsCommandError = async (output, context) => {
|
|
1290
1276
|
const parsedOutput = {
|
|
1291
1277
|
...output,
|
|
1292
1278
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1295,16 +1281,16 @@ const deserializeAws_restJson1ListIncidentRecordsCommandError = async (output, c
|
|
|
1295
1281
|
switch (errorCode) {
|
|
1296
1282
|
case "AccessDeniedException":
|
|
1297
1283
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1298
|
-
throw await
|
|
1284
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1299
1285
|
case "InternalServerException":
|
|
1300
1286
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1301
|
-
throw await
|
|
1287
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1302
1288
|
case "ThrottlingException":
|
|
1303
1289
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1304
|
-
throw await
|
|
1290
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1305
1291
|
case "ValidationException":
|
|
1306
1292
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1307
|
-
throw await
|
|
1293
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1308
1294
|
default:
|
|
1309
1295
|
const parsedBody = parsedOutput.body;
|
|
1310
1296
|
throwDefaultError({
|
|
@@ -1315,9 +1301,9 @@ const deserializeAws_restJson1ListIncidentRecordsCommandError = async (output, c
|
|
|
1315
1301
|
});
|
|
1316
1302
|
}
|
|
1317
1303
|
};
|
|
1318
|
-
export const
|
|
1304
|
+
export const de_ListRelatedItemsCommand = async (output, context) => {
|
|
1319
1305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1320
|
-
return
|
|
1306
|
+
return de_ListRelatedItemsCommandError(output, context);
|
|
1321
1307
|
}
|
|
1322
1308
|
const contents = map({
|
|
1323
1309
|
$metadata: deserializeMetadata(output),
|
|
@@ -1327,11 +1313,11 @@ export const deserializeAws_restJson1ListRelatedItemsCommand = async (output, co
|
|
|
1327
1313
|
contents.nextToken = __expectString(data.nextToken);
|
|
1328
1314
|
}
|
|
1329
1315
|
if (data.relatedItems != null) {
|
|
1330
|
-
contents.relatedItems =
|
|
1316
|
+
contents.relatedItems = de_RelatedItemList(data.relatedItems, context);
|
|
1331
1317
|
}
|
|
1332
1318
|
return contents;
|
|
1333
1319
|
};
|
|
1334
|
-
const
|
|
1320
|
+
const de_ListRelatedItemsCommandError = async (output, context) => {
|
|
1335
1321
|
const parsedOutput = {
|
|
1336
1322
|
...output,
|
|
1337
1323
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1340,16 +1326,16 @@ const deserializeAws_restJson1ListRelatedItemsCommandError = async (output, cont
|
|
|
1340
1326
|
switch (errorCode) {
|
|
1341
1327
|
case "AccessDeniedException":
|
|
1342
1328
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1343
|
-
throw await
|
|
1329
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1344
1330
|
case "InternalServerException":
|
|
1345
1331
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1346
|
-
throw await
|
|
1332
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1347
1333
|
case "ThrottlingException":
|
|
1348
1334
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1349
|
-
throw await
|
|
1335
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1350
1336
|
case "ValidationException":
|
|
1351
1337
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1352
|
-
throw await
|
|
1338
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1353
1339
|
default:
|
|
1354
1340
|
const parsedBody = parsedOutput.body;
|
|
1355
1341
|
throwDefaultError({
|
|
@@ -1360,9 +1346,9 @@ const deserializeAws_restJson1ListRelatedItemsCommandError = async (output, cont
|
|
|
1360
1346
|
});
|
|
1361
1347
|
}
|
|
1362
1348
|
};
|
|
1363
|
-
export const
|
|
1349
|
+
export const de_ListReplicationSetsCommand = async (output, context) => {
|
|
1364
1350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1365
|
-
return
|
|
1351
|
+
return de_ListReplicationSetsCommandError(output, context);
|
|
1366
1352
|
}
|
|
1367
1353
|
const contents = map({
|
|
1368
1354
|
$metadata: deserializeMetadata(output),
|
|
@@ -1372,11 +1358,11 @@ export const deserializeAws_restJson1ListReplicationSetsCommand = async (output,
|
|
|
1372
1358
|
contents.nextToken = __expectString(data.nextToken);
|
|
1373
1359
|
}
|
|
1374
1360
|
if (data.replicationSetArns != null) {
|
|
1375
|
-
contents.replicationSetArns =
|
|
1361
|
+
contents.replicationSetArns = de_ReplicationSetArnList(data.replicationSetArns, context);
|
|
1376
1362
|
}
|
|
1377
1363
|
return contents;
|
|
1378
1364
|
};
|
|
1379
|
-
const
|
|
1365
|
+
const de_ListReplicationSetsCommandError = async (output, context) => {
|
|
1380
1366
|
const parsedOutput = {
|
|
1381
1367
|
...output,
|
|
1382
1368
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1385,16 +1371,16 @@ const deserializeAws_restJson1ListReplicationSetsCommandError = async (output, c
|
|
|
1385
1371
|
switch (errorCode) {
|
|
1386
1372
|
case "AccessDeniedException":
|
|
1387
1373
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1388
|
-
throw await
|
|
1374
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1389
1375
|
case "InternalServerException":
|
|
1390
1376
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1391
|
-
throw await
|
|
1377
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1392
1378
|
case "ThrottlingException":
|
|
1393
1379
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1394
|
-
throw await
|
|
1380
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1395
1381
|
case "ValidationException":
|
|
1396
1382
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1397
|
-
throw await
|
|
1383
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1398
1384
|
default:
|
|
1399
1385
|
const parsedBody = parsedOutput.body;
|
|
1400
1386
|
throwDefaultError({
|
|
@@ -1405,9 +1391,9 @@ const deserializeAws_restJson1ListReplicationSetsCommandError = async (output, c
|
|
|
1405
1391
|
});
|
|
1406
1392
|
}
|
|
1407
1393
|
};
|
|
1408
|
-
export const
|
|
1394
|
+
export const de_ListResponsePlansCommand = async (output, context) => {
|
|
1409
1395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1410
|
-
return
|
|
1396
|
+
return de_ListResponsePlansCommandError(output, context);
|
|
1411
1397
|
}
|
|
1412
1398
|
const contents = map({
|
|
1413
1399
|
$metadata: deserializeMetadata(output),
|
|
@@ -1417,11 +1403,11 @@ export const deserializeAws_restJson1ListResponsePlansCommand = async (output, c
|
|
|
1417
1403
|
contents.nextToken = __expectString(data.nextToken);
|
|
1418
1404
|
}
|
|
1419
1405
|
if (data.responsePlanSummaries != null) {
|
|
1420
|
-
contents.responsePlanSummaries =
|
|
1406
|
+
contents.responsePlanSummaries = de_ResponsePlanSummaryList(data.responsePlanSummaries, context);
|
|
1421
1407
|
}
|
|
1422
1408
|
return contents;
|
|
1423
1409
|
};
|
|
1424
|
-
const
|
|
1410
|
+
const de_ListResponsePlansCommandError = async (output, context) => {
|
|
1425
1411
|
const parsedOutput = {
|
|
1426
1412
|
...output,
|
|
1427
1413
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1430,16 +1416,16 @@ const deserializeAws_restJson1ListResponsePlansCommandError = async (output, con
|
|
|
1430
1416
|
switch (errorCode) {
|
|
1431
1417
|
case "AccessDeniedException":
|
|
1432
1418
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1433
|
-
throw await
|
|
1419
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1434
1420
|
case "InternalServerException":
|
|
1435
1421
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1436
|
-
throw await
|
|
1422
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1437
1423
|
case "ThrottlingException":
|
|
1438
1424
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1439
|
-
throw await
|
|
1425
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1440
1426
|
case "ValidationException":
|
|
1441
1427
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1442
|
-
throw await
|
|
1428
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1443
1429
|
default:
|
|
1444
1430
|
const parsedBody = parsedOutput.body;
|
|
1445
1431
|
throwDefaultError({
|
|
@@ -1450,20 +1436,20 @@ const deserializeAws_restJson1ListResponsePlansCommandError = async (output, con
|
|
|
1450
1436
|
});
|
|
1451
1437
|
}
|
|
1452
1438
|
};
|
|
1453
|
-
export const
|
|
1439
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1454
1440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1455
|
-
return
|
|
1441
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1456
1442
|
}
|
|
1457
1443
|
const contents = map({
|
|
1458
1444
|
$metadata: deserializeMetadata(output),
|
|
1459
1445
|
});
|
|
1460
1446
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1461
1447
|
if (data.tags != null) {
|
|
1462
|
-
contents.tags =
|
|
1448
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1463
1449
|
}
|
|
1464
1450
|
return contents;
|
|
1465
1451
|
};
|
|
1466
|
-
const
|
|
1452
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1467
1453
|
const parsedOutput = {
|
|
1468
1454
|
...output,
|
|
1469
1455
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1472,19 +1458,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1472
1458
|
switch (errorCode) {
|
|
1473
1459
|
case "AccessDeniedException":
|
|
1474
1460
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1475
|
-
throw await
|
|
1461
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1476
1462
|
case "InternalServerException":
|
|
1477
1463
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1478
|
-
throw await
|
|
1464
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1479
1465
|
case "ResourceNotFoundException":
|
|
1480
1466
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1481
|
-
throw await
|
|
1467
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1482
1468
|
case "ThrottlingException":
|
|
1483
1469
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1484
|
-
throw await
|
|
1470
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1485
1471
|
case "ValidationException":
|
|
1486
1472
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1487
|
-
throw await
|
|
1473
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1488
1474
|
default:
|
|
1489
1475
|
const parsedBody = parsedOutput.body;
|
|
1490
1476
|
throwDefaultError({
|
|
@@ -1495,23 +1481,23 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1495
1481
|
});
|
|
1496
1482
|
}
|
|
1497
1483
|
};
|
|
1498
|
-
export const
|
|
1484
|
+
export const de_ListTimelineEventsCommand = async (output, context) => {
|
|
1499
1485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1500
|
-
return
|
|
1486
|
+
return de_ListTimelineEventsCommandError(output, context);
|
|
1501
1487
|
}
|
|
1502
1488
|
const contents = map({
|
|
1503
1489
|
$metadata: deserializeMetadata(output),
|
|
1504
1490
|
});
|
|
1505
1491
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1506
1492
|
if (data.eventSummaries != null) {
|
|
1507
|
-
contents.eventSummaries =
|
|
1493
|
+
contents.eventSummaries = de_EventSummaryList(data.eventSummaries, context);
|
|
1508
1494
|
}
|
|
1509
1495
|
if (data.nextToken != null) {
|
|
1510
1496
|
contents.nextToken = __expectString(data.nextToken);
|
|
1511
1497
|
}
|
|
1512
1498
|
return contents;
|
|
1513
1499
|
};
|
|
1514
|
-
const
|
|
1500
|
+
const de_ListTimelineEventsCommandError = async (output, context) => {
|
|
1515
1501
|
const parsedOutput = {
|
|
1516
1502
|
...output,
|
|
1517
1503
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1520,16 +1506,16 @@ const deserializeAws_restJson1ListTimelineEventsCommandError = async (output, co
|
|
|
1520
1506
|
switch (errorCode) {
|
|
1521
1507
|
case "AccessDeniedException":
|
|
1522
1508
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1523
|
-
throw await
|
|
1509
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1524
1510
|
case "InternalServerException":
|
|
1525
1511
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1526
|
-
throw await
|
|
1512
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1527
1513
|
case "ThrottlingException":
|
|
1528
1514
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1529
|
-
throw await
|
|
1515
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1530
1516
|
case "ValidationException":
|
|
1531
1517
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1532
|
-
throw await
|
|
1518
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1533
1519
|
default:
|
|
1534
1520
|
const parsedBody = parsedOutput.body;
|
|
1535
1521
|
throwDefaultError({
|
|
@@ -1540,9 +1526,9 @@ const deserializeAws_restJson1ListTimelineEventsCommandError = async (output, co
|
|
|
1540
1526
|
});
|
|
1541
1527
|
}
|
|
1542
1528
|
};
|
|
1543
|
-
export const
|
|
1529
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1544
1530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1545
|
-
return
|
|
1531
|
+
return de_PutResourcePolicyCommandError(output, context);
|
|
1546
1532
|
}
|
|
1547
1533
|
const contents = map({
|
|
1548
1534
|
$metadata: deserializeMetadata(output),
|
|
@@ -1553,7 +1539,7 @@ export const deserializeAws_restJson1PutResourcePolicyCommand = async (output, c
|
|
|
1553
1539
|
}
|
|
1554
1540
|
return contents;
|
|
1555
1541
|
};
|
|
1556
|
-
const
|
|
1542
|
+
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1557
1543
|
const parsedOutput = {
|
|
1558
1544
|
...output,
|
|
1559
1545
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1562,19 +1548,19 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1562
1548
|
switch (errorCode) {
|
|
1563
1549
|
case "AccessDeniedException":
|
|
1564
1550
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1565
|
-
throw await
|
|
1551
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1566
1552
|
case "InternalServerException":
|
|
1567
1553
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1568
|
-
throw await
|
|
1554
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1569
1555
|
case "ResourceNotFoundException":
|
|
1570
1556
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1571
|
-
throw await
|
|
1557
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1572
1558
|
case "ThrottlingException":
|
|
1573
1559
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1574
|
-
throw await
|
|
1560
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1575
1561
|
case "ValidationException":
|
|
1576
1562
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1577
|
-
throw await
|
|
1563
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1578
1564
|
default:
|
|
1579
1565
|
const parsedBody = parsedOutput.body;
|
|
1580
1566
|
throwDefaultError({
|
|
@@ -1585,9 +1571,9 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1585
1571
|
});
|
|
1586
1572
|
}
|
|
1587
1573
|
};
|
|
1588
|
-
export const
|
|
1574
|
+
export const de_StartIncidentCommand = async (output, context) => {
|
|
1589
1575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1590
|
-
return
|
|
1576
|
+
return de_StartIncidentCommandError(output, context);
|
|
1591
1577
|
}
|
|
1592
1578
|
const contents = map({
|
|
1593
1579
|
$metadata: deserializeMetadata(output),
|
|
@@ -1598,7 +1584,7 @@ export const deserializeAws_restJson1StartIncidentCommand = async (output, conte
|
|
|
1598
1584
|
}
|
|
1599
1585
|
return contents;
|
|
1600
1586
|
};
|
|
1601
|
-
const
|
|
1587
|
+
const de_StartIncidentCommandError = async (output, context) => {
|
|
1602
1588
|
const parsedOutput = {
|
|
1603
1589
|
...output,
|
|
1604
1590
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1607,22 +1593,22 @@ const deserializeAws_restJson1StartIncidentCommandError = async (output, context
|
|
|
1607
1593
|
switch (errorCode) {
|
|
1608
1594
|
case "AccessDeniedException":
|
|
1609
1595
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1610
|
-
throw await
|
|
1596
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1611
1597
|
case "ConflictException":
|
|
1612
1598
|
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1613
|
-
throw await
|
|
1599
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1614
1600
|
case "InternalServerException":
|
|
1615
1601
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1616
|
-
throw await
|
|
1602
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1617
1603
|
case "ResourceNotFoundException":
|
|
1618
1604
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1619
|
-
throw await
|
|
1605
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1620
1606
|
case "ThrottlingException":
|
|
1621
1607
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1622
|
-
throw await
|
|
1608
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1623
1609
|
case "ValidationException":
|
|
1624
1610
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1625
|
-
throw await
|
|
1611
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1626
1612
|
default:
|
|
1627
1613
|
const parsedBody = parsedOutput.body;
|
|
1628
1614
|
throwDefaultError({
|
|
@@ -1633,9 +1619,9 @@ const deserializeAws_restJson1StartIncidentCommandError = async (output, context
|
|
|
1633
1619
|
});
|
|
1634
1620
|
}
|
|
1635
1621
|
};
|
|
1636
|
-
export const
|
|
1622
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1637
1623
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1638
|
-
return
|
|
1624
|
+
return de_TagResourceCommandError(output, context);
|
|
1639
1625
|
}
|
|
1640
1626
|
const contents = map({
|
|
1641
1627
|
$metadata: deserializeMetadata(output),
|
|
@@ -1643,7 +1629,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1643
1629
|
await collectBody(output.body, context);
|
|
1644
1630
|
return contents;
|
|
1645
1631
|
};
|
|
1646
|
-
const
|
|
1632
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1647
1633
|
const parsedOutput = {
|
|
1648
1634
|
...output,
|
|
1649
1635
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1652,25 +1638,25 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1652
1638
|
switch (errorCode) {
|
|
1653
1639
|
case "AccessDeniedException":
|
|
1654
1640
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1655
|
-
throw await
|
|
1641
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1656
1642
|
case "ConflictException":
|
|
1657
1643
|
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1658
|
-
throw await
|
|
1644
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1659
1645
|
case "InternalServerException":
|
|
1660
1646
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1661
|
-
throw await
|
|
1647
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1662
1648
|
case "ResourceNotFoundException":
|
|
1663
1649
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1664
|
-
throw await
|
|
1650
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1665
1651
|
case "ServiceQuotaExceededException":
|
|
1666
1652
|
case "com.amazonaws.ssmincidents#ServiceQuotaExceededException":
|
|
1667
|
-
throw await
|
|
1653
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1668
1654
|
case "ThrottlingException":
|
|
1669
1655
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1670
|
-
throw await
|
|
1656
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1671
1657
|
case "ValidationException":
|
|
1672
1658
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1673
|
-
throw await
|
|
1659
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1674
1660
|
default:
|
|
1675
1661
|
const parsedBody = parsedOutput.body;
|
|
1676
1662
|
throwDefaultError({
|
|
@@ -1681,9 +1667,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1681
1667
|
});
|
|
1682
1668
|
}
|
|
1683
1669
|
};
|
|
1684
|
-
export const
|
|
1670
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1685
1671
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1686
|
-
return
|
|
1672
|
+
return de_UntagResourceCommandError(output, context);
|
|
1687
1673
|
}
|
|
1688
1674
|
const contents = map({
|
|
1689
1675
|
$metadata: deserializeMetadata(output),
|
|
@@ -1691,7 +1677,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1691
1677
|
await collectBody(output.body, context);
|
|
1692
1678
|
return contents;
|
|
1693
1679
|
};
|
|
1694
|
-
const
|
|
1680
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1695
1681
|
const parsedOutput = {
|
|
1696
1682
|
...output,
|
|
1697
1683
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1700,22 +1686,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1700
1686
|
switch (errorCode) {
|
|
1701
1687
|
case "AccessDeniedException":
|
|
1702
1688
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1703
|
-
throw await
|
|
1689
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1704
1690
|
case "ConflictException":
|
|
1705
1691
|
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1706
|
-
throw await
|
|
1692
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1707
1693
|
case "InternalServerException":
|
|
1708
1694
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1709
|
-
throw await
|
|
1695
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1710
1696
|
case "ResourceNotFoundException":
|
|
1711
1697
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1712
|
-
throw await
|
|
1698
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1713
1699
|
case "ThrottlingException":
|
|
1714
1700
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1715
|
-
throw await
|
|
1701
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1716
1702
|
case "ValidationException":
|
|
1717
1703
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1718
|
-
throw await
|
|
1704
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1719
1705
|
default:
|
|
1720
1706
|
const parsedBody = parsedOutput.body;
|
|
1721
1707
|
throwDefaultError({
|
|
@@ -1726,9 +1712,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1726
1712
|
});
|
|
1727
1713
|
}
|
|
1728
1714
|
};
|
|
1729
|
-
export const
|
|
1715
|
+
export const de_UpdateDeletionProtectionCommand = async (output, context) => {
|
|
1730
1716
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1731
|
-
return
|
|
1717
|
+
return de_UpdateDeletionProtectionCommandError(output, context);
|
|
1732
1718
|
}
|
|
1733
1719
|
const contents = map({
|
|
1734
1720
|
$metadata: deserializeMetadata(output),
|
|
@@ -1736,7 +1722,7 @@ export const deserializeAws_restJson1UpdateDeletionProtectionCommand = async (ou
|
|
|
1736
1722
|
await collectBody(output.body, context);
|
|
1737
1723
|
return contents;
|
|
1738
1724
|
};
|
|
1739
|
-
const
|
|
1725
|
+
const de_UpdateDeletionProtectionCommandError = async (output, context) => {
|
|
1740
1726
|
const parsedOutput = {
|
|
1741
1727
|
...output,
|
|
1742
1728
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1745,19 +1731,19 @@ const deserializeAws_restJson1UpdateDeletionProtectionCommandError = async (outp
|
|
|
1745
1731
|
switch (errorCode) {
|
|
1746
1732
|
case "AccessDeniedException":
|
|
1747
1733
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1748
|
-
throw await
|
|
1734
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1749
1735
|
case "InternalServerException":
|
|
1750
1736
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1751
|
-
throw await
|
|
1737
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1752
1738
|
case "ResourceNotFoundException":
|
|
1753
1739
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1754
|
-
throw await
|
|
1740
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1755
1741
|
case "ThrottlingException":
|
|
1756
1742
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1757
|
-
throw await
|
|
1743
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1758
1744
|
case "ValidationException":
|
|
1759
1745
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1760
|
-
throw await
|
|
1746
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1761
1747
|
default:
|
|
1762
1748
|
const parsedBody = parsedOutput.body;
|
|
1763
1749
|
throwDefaultError({
|
|
@@ -1768,9 +1754,9 @@ const deserializeAws_restJson1UpdateDeletionProtectionCommandError = async (outp
|
|
|
1768
1754
|
});
|
|
1769
1755
|
}
|
|
1770
1756
|
};
|
|
1771
|
-
export const
|
|
1757
|
+
export const de_UpdateIncidentRecordCommand = async (output, context) => {
|
|
1772
1758
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1773
|
-
return
|
|
1759
|
+
return de_UpdateIncidentRecordCommandError(output, context);
|
|
1774
1760
|
}
|
|
1775
1761
|
const contents = map({
|
|
1776
1762
|
$metadata: deserializeMetadata(output),
|
|
@@ -1778,7 +1764,7 @@ export const deserializeAws_restJson1UpdateIncidentRecordCommand = async (output
|
|
|
1778
1764
|
await collectBody(output.body, context);
|
|
1779
1765
|
return contents;
|
|
1780
1766
|
};
|
|
1781
|
-
const
|
|
1767
|
+
const de_UpdateIncidentRecordCommandError = async (output, context) => {
|
|
1782
1768
|
const parsedOutput = {
|
|
1783
1769
|
...output,
|
|
1784
1770
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1787,22 +1773,22 @@ const deserializeAws_restJson1UpdateIncidentRecordCommandError = async (output,
|
|
|
1787
1773
|
switch (errorCode) {
|
|
1788
1774
|
case "AccessDeniedException":
|
|
1789
1775
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1790
|
-
throw await
|
|
1776
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1791
1777
|
case "ConflictException":
|
|
1792
1778
|
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1793
|
-
throw await
|
|
1779
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1794
1780
|
case "InternalServerException":
|
|
1795
1781
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1796
|
-
throw await
|
|
1782
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1797
1783
|
case "ResourceNotFoundException":
|
|
1798
1784
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1799
|
-
throw await
|
|
1785
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1800
1786
|
case "ThrottlingException":
|
|
1801
1787
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1802
|
-
throw await
|
|
1788
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1803
1789
|
case "ValidationException":
|
|
1804
1790
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1805
|
-
throw await
|
|
1791
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1806
1792
|
default:
|
|
1807
1793
|
const parsedBody = parsedOutput.body;
|
|
1808
1794
|
throwDefaultError({
|
|
@@ -1813,9 +1799,9 @@ const deserializeAws_restJson1UpdateIncidentRecordCommandError = async (output,
|
|
|
1813
1799
|
});
|
|
1814
1800
|
}
|
|
1815
1801
|
};
|
|
1816
|
-
export const
|
|
1802
|
+
export const de_UpdateRelatedItemsCommand = async (output, context) => {
|
|
1817
1803
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1818
|
-
return
|
|
1804
|
+
return de_UpdateRelatedItemsCommandError(output, context);
|
|
1819
1805
|
}
|
|
1820
1806
|
const contents = map({
|
|
1821
1807
|
$metadata: deserializeMetadata(output),
|
|
@@ -1823,7 +1809,7 @@ export const deserializeAws_restJson1UpdateRelatedItemsCommand = async (output,
|
|
|
1823
1809
|
await collectBody(output.body, context);
|
|
1824
1810
|
return contents;
|
|
1825
1811
|
};
|
|
1826
|
-
const
|
|
1812
|
+
const de_UpdateRelatedItemsCommandError = async (output, context) => {
|
|
1827
1813
|
const parsedOutput = {
|
|
1828
1814
|
...output,
|
|
1829
1815
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1832,22 +1818,22 @@ const deserializeAws_restJson1UpdateRelatedItemsCommandError = async (output, co
|
|
|
1832
1818
|
switch (errorCode) {
|
|
1833
1819
|
case "AccessDeniedException":
|
|
1834
1820
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1835
|
-
throw await
|
|
1821
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1836
1822
|
case "ConflictException":
|
|
1837
1823
|
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1838
|
-
throw await
|
|
1824
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1839
1825
|
case "InternalServerException":
|
|
1840
1826
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1841
|
-
throw await
|
|
1827
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1842
1828
|
case "ResourceNotFoundException":
|
|
1843
1829
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1844
|
-
throw await
|
|
1830
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1845
1831
|
case "ThrottlingException":
|
|
1846
1832
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1847
|
-
throw await
|
|
1833
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1848
1834
|
case "ValidationException":
|
|
1849
1835
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1850
|
-
throw await
|
|
1836
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1851
1837
|
default:
|
|
1852
1838
|
const parsedBody = parsedOutput.body;
|
|
1853
1839
|
throwDefaultError({
|
|
@@ -1858,9 +1844,9 @@ const deserializeAws_restJson1UpdateRelatedItemsCommandError = async (output, co
|
|
|
1858
1844
|
});
|
|
1859
1845
|
}
|
|
1860
1846
|
};
|
|
1861
|
-
export const
|
|
1847
|
+
export const de_UpdateReplicationSetCommand = async (output, context) => {
|
|
1862
1848
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1863
|
-
return
|
|
1849
|
+
return de_UpdateReplicationSetCommandError(output, context);
|
|
1864
1850
|
}
|
|
1865
1851
|
const contents = map({
|
|
1866
1852
|
$metadata: deserializeMetadata(output),
|
|
@@ -1868,7 +1854,7 @@ export const deserializeAws_restJson1UpdateReplicationSetCommand = async (output
|
|
|
1868
1854
|
await collectBody(output.body, context);
|
|
1869
1855
|
return contents;
|
|
1870
1856
|
};
|
|
1871
|
-
const
|
|
1857
|
+
const de_UpdateReplicationSetCommandError = async (output, context) => {
|
|
1872
1858
|
const parsedOutput = {
|
|
1873
1859
|
...output,
|
|
1874
1860
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1877,22 +1863,22 @@ const deserializeAws_restJson1UpdateReplicationSetCommandError = async (output,
|
|
|
1877
1863
|
switch (errorCode) {
|
|
1878
1864
|
case "AccessDeniedException":
|
|
1879
1865
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1880
|
-
throw await
|
|
1866
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1881
1867
|
case "ConflictException":
|
|
1882
1868
|
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1883
|
-
throw await
|
|
1869
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1884
1870
|
case "InternalServerException":
|
|
1885
1871
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1886
|
-
throw await
|
|
1872
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1887
1873
|
case "ResourceNotFoundException":
|
|
1888
1874
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1889
|
-
throw await
|
|
1875
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1890
1876
|
case "ThrottlingException":
|
|
1891
1877
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1892
|
-
throw await
|
|
1878
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1893
1879
|
case "ValidationException":
|
|
1894
1880
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1895
|
-
throw await
|
|
1881
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1896
1882
|
default:
|
|
1897
1883
|
const parsedBody = parsedOutput.body;
|
|
1898
1884
|
throwDefaultError({
|
|
@@ -1903,9 +1889,9 @@ const deserializeAws_restJson1UpdateReplicationSetCommandError = async (output,
|
|
|
1903
1889
|
});
|
|
1904
1890
|
}
|
|
1905
1891
|
};
|
|
1906
|
-
export const
|
|
1892
|
+
export const de_UpdateResponsePlanCommand = async (output, context) => {
|
|
1907
1893
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1908
|
-
return
|
|
1894
|
+
return de_UpdateResponsePlanCommandError(output, context);
|
|
1909
1895
|
}
|
|
1910
1896
|
const contents = map({
|
|
1911
1897
|
$metadata: deserializeMetadata(output),
|
|
@@ -1913,7 +1899,7 @@ export const deserializeAws_restJson1UpdateResponsePlanCommand = async (output,
|
|
|
1913
1899
|
await collectBody(output.body, context);
|
|
1914
1900
|
return contents;
|
|
1915
1901
|
};
|
|
1916
|
-
const
|
|
1902
|
+
const de_UpdateResponsePlanCommandError = async (output, context) => {
|
|
1917
1903
|
const parsedOutput = {
|
|
1918
1904
|
...output,
|
|
1919
1905
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1922,22 +1908,22 @@ const deserializeAws_restJson1UpdateResponsePlanCommandError = async (output, co
|
|
|
1922
1908
|
switch (errorCode) {
|
|
1923
1909
|
case "AccessDeniedException":
|
|
1924
1910
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1925
|
-
throw await
|
|
1911
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1926
1912
|
case "ConflictException":
|
|
1927
1913
|
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1928
|
-
throw await
|
|
1914
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1929
1915
|
case "InternalServerException":
|
|
1930
1916
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1931
|
-
throw await
|
|
1917
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1932
1918
|
case "ResourceNotFoundException":
|
|
1933
1919
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1934
|
-
throw await
|
|
1920
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1935
1921
|
case "ThrottlingException":
|
|
1936
1922
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1937
|
-
throw await
|
|
1923
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1938
1924
|
case "ValidationException":
|
|
1939
1925
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1940
|
-
throw await
|
|
1926
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1941
1927
|
default:
|
|
1942
1928
|
const parsedBody = parsedOutput.body;
|
|
1943
1929
|
throwDefaultError({
|
|
@@ -1948,9 +1934,9 @@ const deserializeAws_restJson1UpdateResponsePlanCommandError = async (output, co
|
|
|
1948
1934
|
});
|
|
1949
1935
|
}
|
|
1950
1936
|
};
|
|
1951
|
-
export const
|
|
1937
|
+
export const de_UpdateTimelineEventCommand = async (output, context) => {
|
|
1952
1938
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1953
|
-
return
|
|
1939
|
+
return de_UpdateTimelineEventCommandError(output, context);
|
|
1954
1940
|
}
|
|
1955
1941
|
const contents = map({
|
|
1956
1942
|
$metadata: deserializeMetadata(output),
|
|
@@ -1958,7 +1944,7 @@ export const deserializeAws_restJson1UpdateTimelineEventCommand = async (output,
|
|
|
1958
1944
|
await collectBody(output.body, context);
|
|
1959
1945
|
return contents;
|
|
1960
1946
|
};
|
|
1961
|
-
const
|
|
1947
|
+
const de_UpdateTimelineEventCommandError = async (output, context) => {
|
|
1962
1948
|
const parsedOutput = {
|
|
1963
1949
|
...output,
|
|
1964
1950
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1967,22 +1953,22 @@ const deserializeAws_restJson1UpdateTimelineEventCommandError = async (output, c
|
|
|
1967
1953
|
switch (errorCode) {
|
|
1968
1954
|
case "AccessDeniedException":
|
|
1969
1955
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
1970
|
-
throw await
|
|
1956
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1971
1957
|
case "ConflictException":
|
|
1972
1958
|
case "com.amazonaws.ssmincidents#ConflictException":
|
|
1973
|
-
throw await
|
|
1959
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1974
1960
|
case "InternalServerException":
|
|
1975
1961
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
1976
|
-
throw await
|
|
1962
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1977
1963
|
case "ResourceNotFoundException":
|
|
1978
1964
|
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
1979
|
-
throw await
|
|
1965
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1980
1966
|
case "ThrottlingException":
|
|
1981
1967
|
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
1982
|
-
throw await
|
|
1968
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1983
1969
|
case "ValidationException":
|
|
1984
1970
|
case "com.amazonaws.ssmincidents#ValidationException":
|
|
1985
|
-
throw await
|
|
1971
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1986
1972
|
default:
|
|
1987
1973
|
const parsedBody = parsedOutput.body;
|
|
1988
1974
|
throwDefaultError({
|
|
@@ -1994,7 +1980,7 @@ const deserializeAws_restJson1UpdateTimelineEventCommandError = async (output, c
|
|
|
1994
1980
|
}
|
|
1995
1981
|
};
|
|
1996
1982
|
const map = __map;
|
|
1997
|
-
const
|
|
1983
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1998
1984
|
const contents = map({});
|
|
1999
1985
|
const data = parsedOutput.body;
|
|
2000
1986
|
if (data.message != null) {
|
|
@@ -2006,7 +1992,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2006
1992
|
});
|
|
2007
1993
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2008
1994
|
};
|
|
2009
|
-
const
|
|
1995
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2010
1996
|
const contents = map({});
|
|
2011
1997
|
const data = parsedOutput.body;
|
|
2012
1998
|
if (data.message != null) {
|
|
@@ -2027,7 +2013,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2027
2013
|
});
|
|
2028
2014
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2029
2015
|
};
|
|
2030
|
-
const
|
|
2016
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2031
2017
|
const contents = map({});
|
|
2032
2018
|
const data = parsedOutput.body;
|
|
2033
2019
|
if (data.message != null) {
|
|
@@ -2039,7 +2025,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2039
2025
|
});
|
|
2040
2026
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2041
2027
|
};
|
|
2042
|
-
const
|
|
2028
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2043
2029
|
const contents = map({});
|
|
2044
2030
|
const data = parsedOutput.body;
|
|
2045
2031
|
if (data.message != null) {
|
|
@@ -2057,7 +2043,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2057
2043
|
});
|
|
2058
2044
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2059
2045
|
};
|
|
2060
|
-
const
|
|
2046
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2061
2047
|
const contents = map({});
|
|
2062
2048
|
const data = parsedOutput.body;
|
|
2063
2049
|
if (data.message != null) {
|
|
@@ -2081,7 +2067,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
2081
2067
|
});
|
|
2082
2068
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2083
2069
|
};
|
|
2084
|
-
const
|
|
2070
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2085
2071
|
const contents = map({});
|
|
2086
2072
|
const data = parsedOutput.body;
|
|
2087
2073
|
if (data.message != null) {
|
|
@@ -2099,7 +2085,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2099
2085
|
});
|
|
2100
2086
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2101
2087
|
};
|
|
2102
|
-
const
|
|
2088
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2103
2089
|
const contents = map({});
|
|
2104
2090
|
const data = parsedOutput.body;
|
|
2105
2091
|
if (data.message != null) {
|
|
@@ -2111,267 +2097,263 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2111
2097
|
});
|
|
2112
2098
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2113
2099
|
};
|
|
2114
|
-
const
|
|
2100
|
+
const se_Action = (input, context) => {
|
|
2115
2101
|
return Action.visit(input, {
|
|
2116
|
-
ssmAutomation: (value) => ({ ssmAutomation:
|
|
2102
|
+
ssmAutomation: (value) => ({ ssmAutomation: se_SsmAutomation(value, context) }),
|
|
2117
2103
|
_: (name, value) => ({ name: value }),
|
|
2118
2104
|
});
|
|
2119
2105
|
};
|
|
2120
|
-
const
|
|
2106
|
+
const se_ActionsList = (input, context) => {
|
|
2121
2107
|
return input
|
|
2122
2108
|
.filter((e) => e != null)
|
|
2123
2109
|
.map((entry) => {
|
|
2124
|
-
return
|
|
2110
|
+
return se_Action(entry, context);
|
|
2125
2111
|
});
|
|
2126
2112
|
};
|
|
2127
|
-
const
|
|
2113
|
+
const se_AddRegionAction = (input, context) => {
|
|
2128
2114
|
return {
|
|
2129
2115
|
...(input.regionName != null && { regionName: input.regionName }),
|
|
2130
2116
|
...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
|
|
2131
2117
|
};
|
|
2132
2118
|
};
|
|
2133
|
-
const
|
|
2119
|
+
const se_AttributeValueList = (input, context) => {
|
|
2134
2120
|
return AttributeValueList.visit(input, {
|
|
2135
|
-
integerValues: (value) => ({ integerValues:
|
|
2136
|
-
stringValues: (value) => ({ stringValues:
|
|
2121
|
+
integerValues: (value) => ({ integerValues: se_IntegerList(value, context) }),
|
|
2122
|
+
stringValues: (value) => ({ stringValues: se_StringList(value, context) }),
|
|
2137
2123
|
_: (name, value) => ({ name: value }),
|
|
2138
2124
|
});
|
|
2139
2125
|
};
|
|
2140
|
-
const
|
|
2126
|
+
const se_ChatbotSnsConfigurationSet = (input, context) => {
|
|
2141
2127
|
return input
|
|
2142
2128
|
.filter((e) => e != null)
|
|
2143
2129
|
.map((entry) => {
|
|
2144
2130
|
return entry;
|
|
2145
2131
|
});
|
|
2146
2132
|
};
|
|
2147
|
-
const
|
|
2133
|
+
const se_ChatChannel = (input, context) => {
|
|
2148
2134
|
return ChatChannel.visit(input, {
|
|
2149
|
-
chatbotSns: (value) => ({ chatbotSns:
|
|
2150
|
-
empty: (value) => ({ empty:
|
|
2135
|
+
chatbotSns: (value) => ({ chatbotSns: se_ChatbotSnsConfigurationSet(value, context) }),
|
|
2136
|
+
empty: (value) => ({ empty: se_EmptyChatChannel(value, context) }),
|
|
2151
2137
|
_: (name, value) => ({ name: value }),
|
|
2152
2138
|
});
|
|
2153
2139
|
};
|
|
2154
|
-
const
|
|
2140
|
+
const se_Condition = (input, context) => {
|
|
2155
2141
|
return Condition.visit(input, {
|
|
2156
2142
|
after: (value) => ({ after: Math.round(value.getTime() / 1000) }),
|
|
2157
2143
|
before: (value) => ({ before: Math.round(value.getTime() / 1000) }),
|
|
2158
|
-
equals: (value) => ({ equals:
|
|
2144
|
+
equals: (value) => ({ equals: se_AttributeValueList(value, context) }),
|
|
2159
2145
|
_: (name, value) => ({ name: value }),
|
|
2160
2146
|
});
|
|
2161
2147
|
};
|
|
2162
|
-
const
|
|
2148
|
+
const se_DeleteRegionAction = (input, context) => {
|
|
2163
2149
|
return {
|
|
2164
2150
|
...(input.regionName != null && { regionName: input.regionName }),
|
|
2165
2151
|
};
|
|
2166
2152
|
};
|
|
2167
|
-
const
|
|
2153
|
+
const se_DynamicSsmParameters = (input, context) => {
|
|
2168
2154
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2169
2155
|
if (value === null) {
|
|
2170
2156
|
return acc;
|
|
2171
2157
|
}
|
|
2172
|
-
acc[key] =
|
|
2158
|
+
acc[key] = se_DynamicSsmParameterValue(value, context);
|
|
2173
2159
|
return acc;
|
|
2174
2160
|
}, {});
|
|
2175
2161
|
};
|
|
2176
|
-
const
|
|
2162
|
+
const se_DynamicSsmParameterValue = (input, context) => {
|
|
2177
2163
|
return DynamicSsmParameterValue.visit(input, {
|
|
2178
2164
|
variable: (value) => ({ variable: value }),
|
|
2179
2165
|
_: (name, value) => ({ name: value }),
|
|
2180
2166
|
});
|
|
2181
2167
|
};
|
|
2182
|
-
const
|
|
2168
|
+
const se_EmptyChatChannel = (input, context) => {
|
|
2183
2169
|
return {};
|
|
2184
2170
|
};
|
|
2185
|
-
const
|
|
2171
|
+
const se_EngagementSet = (input, context) => {
|
|
2186
2172
|
return input
|
|
2187
2173
|
.filter((e) => e != null)
|
|
2188
2174
|
.map((entry) => {
|
|
2189
2175
|
return entry;
|
|
2190
2176
|
});
|
|
2191
2177
|
};
|
|
2192
|
-
const
|
|
2178
|
+
const se_EventReference = (input, context) => {
|
|
2193
2179
|
return EventReference.visit(input, {
|
|
2194
2180
|
relatedItemId: (value) => ({ relatedItemId: value }),
|
|
2195
2181
|
resource: (value) => ({ resource: value }),
|
|
2196
2182
|
_: (name, value) => ({ name: value }),
|
|
2197
2183
|
});
|
|
2198
2184
|
};
|
|
2199
|
-
const
|
|
2185
|
+
const se_EventReferenceList = (input, context) => {
|
|
2200
2186
|
return input
|
|
2201
2187
|
.filter((e) => e != null)
|
|
2202
2188
|
.map((entry) => {
|
|
2203
|
-
return
|
|
2189
|
+
return se_EventReference(entry, context);
|
|
2204
2190
|
});
|
|
2205
2191
|
};
|
|
2206
|
-
const
|
|
2192
|
+
const se_Filter = (input, context) => {
|
|
2207
2193
|
return {
|
|
2208
|
-
...(input.condition != null && { condition:
|
|
2194
|
+
...(input.condition != null && { condition: se_Condition(input.condition, context) }),
|
|
2209
2195
|
...(input.key != null && { key: input.key }),
|
|
2210
2196
|
};
|
|
2211
2197
|
};
|
|
2212
|
-
const
|
|
2198
|
+
const se_FilterList = (input, context) => {
|
|
2213
2199
|
return input
|
|
2214
2200
|
.filter((e) => e != null)
|
|
2215
2201
|
.map((entry) => {
|
|
2216
|
-
return
|
|
2202
|
+
return se_Filter(entry, context);
|
|
2217
2203
|
});
|
|
2218
2204
|
};
|
|
2219
|
-
const
|
|
2205
|
+
const se_IncidentTemplate = (input, context) => {
|
|
2220
2206
|
return {
|
|
2221
2207
|
...(input.dedupeString != null && { dedupeString: input.dedupeString }),
|
|
2222
2208
|
...(input.impact != null && { impact: input.impact }),
|
|
2223
|
-
...(input.incidentTags != null && { incidentTags:
|
|
2209
|
+
...(input.incidentTags != null && { incidentTags: se_TagMap(input.incidentTags, context) }),
|
|
2224
2210
|
...(input.notificationTargets != null && {
|
|
2225
|
-
notificationTargets:
|
|
2211
|
+
notificationTargets: se_NotificationTargetSet(input.notificationTargets, context),
|
|
2226
2212
|
}),
|
|
2227
2213
|
...(input.summary != null && { summary: input.summary }),
|
|
2228
2214
|
...(input.title != null && { title: input.title }),
|
|
2229
2215
|
};
|
|
2230
2216
|
};
|
|
2231
|
-
const
|
|
2217
|
+
const se_IntegerList = (input, context) => {
|
|
2232
2218
|
return input
|
|
2233
2219
|
.filter((e) => e != null)
|
|
2234
2220
|
.map((entry) => {
|
|
2235
2221
|
return entry;
|
|
2236
2222
|
});
|
|
2237
2223
|
};
|
|
2238
|
-
const
|
|
2224
|
+
const se_Integration = (input, context) => {
|
|
2239
2225
|
return Integration.visit(input, {
|
|
2240
|
-
pagerDutyConfiguration: (value) => ({
|
|
2241
|
-
pagerDutyConfiguration: serializeAws_restJson1PagerDutyConfiguration(value, context),
|
|
2242
|
-
}),
|
|
2226
|
+
pagerDutyConfiguration: (value) => ({ pagerDutyConfiguration: se_PagerDutyConfiguration(value, context) }),
|
|
2243
2227
|
_: (name, value) => ({ name: value }),
|
|
2244
2228
|
});
|
|
2245
2229
|
};
|
|
2246
|
-
const
|
|
2230
|
+
const se_Integrations = (input, context) => {
|
|
2247
2231
|
return input
|
|
2248
2232
|
.filter((e) => e != null)
|
|
2249
2233
|
.map((entry) => {
|
|
2250
|
-
return
|
|
2234
|
+
return se_Integration(entry, context);
|
|
2251
2235
|
});
|
|
2252
2236
|
};
|
|
2253
|
-
const
|
|
2237
|
+
const se_ItemIdentifier = (input, context) => {
|
|
2254
2238
|
return {
|
|
2255
2239
|
...(input.type != null && { type: input.type }),
|
|
2256
|
-
...(input.value != null && { value:
|
|
2240
|
+
...(input.value != null && { value: se_ItemValue(input.value, context) }),
|
|
2257
2241
|
};
|
|
2258
2242
|
};
|
|
2259
|
-
const
|
|
2243
|
+
const se_ItemValue = (input, context) => {
|
|
2260
2244
|
return ItemValue.visit(input, {
|
|
2261
2245
|
arn: (value) => ({ arn: value }),
|
|
2262
2246
|
metricDefinition: (value) => ({ metricDefinition: value }),
|
|
2263
|
-
pagerDutyIncidentDetail: (value) => ({
|
|
2264
|
-
pagerDutyIncidentDetail: serializeAws_restJson1PagerDutyIncidentDetail(value, context),
|
|
2265
|
-
}),
|
|
2247
|
+
pagerDutyIncidentDetail: (value) => ({ pagerDutyIncidentDetail: se_PagerDutyIncidentDetail(value, context) }),
|
|
2266
2248
|
url: (value) => ({ url: value }),
|
|
2267
2249
|
_: (name, value) => ({ name: value }),
|
|
2268
2250
|
});
|
|
2269
2251
|
};
|
|
2270
|
-
const
|
|
2252
|
+
const se_NotificationTargetItem = (input, context) => {
|
|
2271
2253
|
return NotificationTargetItem.visit(input, {
|
|
2272
2254
|
snsTopicArn: (value) => ({ snsTopicArn: value }),
|
|
2273
2255
|
_: (name, value) => ({ name: value }),
|
|
2274
2256
|
});
|
|
2275
2257
|
};
|
|
2276
|
-
const
|
|
2258
|
+
const se_NotificationTargetSet = (input, context) => {
|
|
2277
2259
|
return input
|
|
2278
2260
|
.filter((e) => e != null)
|
|
2279
2261
|
.map((entry) => {
|
|
2280
|
-
return
|
|
2262
|
+
return se_NotificationTargetItem(entry, context);
|
|
2281
2263
|
});
|
|
2282
2264
|
};
|
|
2283
|
-
const
|
|
2265
|
+
const se_PagerDutyConfiguration = (input, context) => {
|
|
2284
2266
|
return {
|
|
2285
2267
|
...(input.name != null && { name: input.name }),
|
|
2286
2268
|
...(input.pagerDutyIncidentConfiguration != null && {
|
|
2287
|
-
pagerDutyIncidentConfiguration:
|
|
2269
|
+
pagerDutyIncidentConfiguration: se_PagerDutyIncidentConfiguration(input.pagerDutyIncidentConfiguration, context),
|
|
2288
2270
|
}),
|
|
2289
2271
|
...(input.secretId != null && { secretId: input.secretId }),
|
|
2290
2272
|
};
|
|
2291
2273
|
};
|
|
2292
|
-
const
|
|
2274
|
+
const se_PagerDutyIncidentConfiguration = (input, context) => {
|
|
2293
2275
|
return {
|
|
2294
2276
|
...(input.serviceId != null && { serviceId: input.serviceId }),
|
|
2295
2277
|
};
|
|
2296
2278
|
};
|
|
2297
|
-
const
|
|
2279
|
+
const se_PagerDutyIncidentDetail = (input, context) => {
|
|
2298
2280
|
return {
|
|
2299
2281
|
...(input.autoResolve != null && { autoResolve: input.autoResolve }),
|
|
2300
2282
|
...(input.id != null && { id: input.id }),
|
|
2301
2283
|
...(input.secretId != null && { secretId: input.secretId }),
|
|
2302
2284
|
};
|
|
2303
2285
|
};
|
|
2304
|
-
const
|
|
2286
|
+
const se_RegionMapInput = (input, context) => {
|
|
2305
2287
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2306
2288
|
if (value === null) {
|
|
2307
2289
|
return acc;
|
|
2308
2290
|
}
|
|
2309
|
-
acc[key] =
|
|
2291
|
+
acc[key] = se_RegionMapInputValue(value, context);
|
|
2310
2292
|
return acc;
|
|
2311
2293
|
}, {});
|
|
2312
2294
|
};
|
|
2313
|
-
const
|
|
2295
|
+
const se_RegionMapInputValue = (input, context) => {
|
|
2314
2296
|
return {
|
|
2315
2297
|
...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
|
|
2316
2298
|
};
|
|
2317
2299
|
};
|
|
2318
|
-
const
|
|
2300
|
+
const se_RelatedItem = (input, context) => {
|
|
2319
2301
|
return {
|
|
2320
2302
|
...(input.generatedId != null && { generatedId: input.generatedId }),
|
|
2321
|
-
...(input.identifier != null && { identifier:
|
|
2303
|
+
...(input.identifier != null && { identifier: se_ItemIdentifier(input.identifier, context) }),
|
|
2322
2304
|
...(input.title != null && { title: input.title }),
|
|
2323
2305
|
};
|
|
2324
2306
|
};
|
|
2325
|
-
const
|
|
2307
|
+
const se_RelatedItemList = (input, context) => {
|
|
2326
2308
|
return input
|
|
2327
2309
|
.filter((e) => e != null)
|
|
2328
2310
|
.map((entry) => {
|
|
2329
|
-
return
|
|
2311
|
+
return se_RelatedItem(entry, context);
|
|
2330
2312
|
});
|
|
2331
2313
|
};
|
|
2332
|
-
const
|
|
2314
|
+
const se_RelatedItemsUpdate = (input, context) => {
|
|
2333
2315
|
return RelatedItemsUpdate.visit(input, {
|
|
2334
|
-
itemToAdd: (value) => ({ itemToAdd:
|
|
2335
|
-
itemToRemove: (value) => ({ itemToRemove:
|
|
2316
|
+
itemToAdd: (value) => ({ itemToAdd: se_RelatedItem(value, context) }),
|
|
2317
|
+
itemToRemove: (value) => ({ itemToRemove: se_ItemIdentifier(value, context) }),
|
|
2336
2318
|
_: (name, value) => ({ name: value }),
|
|
2337
2319
|
});
|
|
2338
2320
|
};
|
|
2339
|
-
const
|
|
2321
|
+
const se_SsmAutomation = (input, context) => {
|
|
2340
2322
|
return {
|
|
2341
2323
|
...(input.documentName != null && { documentName: input.documentName }),
|
|
2342
2324
|
...(input.documentVersion != null && { documentVersion: input.documentVersion }),
|
|
2343
2325
|
...(input.dynamicParameters != null && {
|
|
2344
|
-
dynamicParameters:
|
|
2326
|
+
dynamicParameters: se_DynamicSsmParameters(input.dynamicParameters, context),
|
|
2345
2327
|
}),
|
|
2346
|
-
...(input.parameters != null && { parameters:
|
|
2328
|
+
...(input.parameters != null && { parameters: se_SsmParameters(input.parameters, context) }),
|
|
2347
2329
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2348
2330
|
...(input.targetAccount != null && { targetAccount: input.targetAccount }),
|
|
2349
2331
|
};
|
|
2350
2332
|
};
|
|
2351
|
-
const
|
|
2333
|
+
const se_SsmParameters = (input, context) => {
|
|
2352
2334
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2353
2335
|
if (value === null) {
|
|
2354
2336
|
return acc;
|
|
2355
2337
|
}
|
|
2356
|
-
acc[key] =
|
|
2338
|
+
acc[key] = se_SsmParameterValues(value, context);
|
|
2357
2339
|
return acc;
|
|
2358
2340
|
}, {});
|
|
2359
2341
|
};
|
|
2360
|
-
const
|
|
2342
|
+
const se_SsmParameterValues = (input, context) => {
|
|
2361
2343
|
return input
|
|
2362
2344
|
.filter((e) => e != null)
|
|
2363
2345
|
.map((entry) => {
|
|
2364
2346
|
return entry;
|
|
2365
2347
|
});
|
|
2366
2348
|
};
|
|
2367
|
-
const
|
|
2349
|
+
const se_StringList = (input, context) => {
|
|
2368
2350
|
return input
|
|
2369
2351
|
.filter((e) => e != null)
|
|
2370
2352
|
.map((entry) => {
|
|
2371
2353
|
return entry;
|
|
2372
2354
|
});
|
|
2373
2355
|
};
|
|
2374
|
-
const
|
|
2356
|
+
const se_TagMap = (input, context) => {
|
|
2375
2357
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2376
2358
|
if (value === null) {
|
|
2377
2359
|
return acc;
|
|
@@ -2380,7 +2362,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2380
2362
|
return acc;
|
|
2381
2363
|
}, {});
|
|
2382
2364
|
};
|
|
2383
|
-
const
|
|
2365
|
+
const se_TagMapUpdate = (input, context) => {
|
|
2384
2366
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2385
2367
|
if (value === null) {
|
|
2386
2368
|
return acc;
|
|
@@ -2389,7 +2371,7 @@ const serializeAws_restJson1TagMapUpdate = (input, context) => {
|
|
|
2389
2371
|
return acc;
|
|
2390
2372
|
}, {});
|
|
2391
2373
|
};
|
|
2392
|
-
const
|
|
2374
|
+
const se_TriggerDetails = (input, context) => {
|
|
2393
2375
|
return {
|
|
2394
2376
|
...(input.rawData != null && { rawData: input.rawData }),
|
|
2395
2377
|
...(input.source != null && { source: input.source }),
|
|
@@ -2397,57 +2379,57 @@ const serializeAws_restJson1TriggerDetails = (input, context) => {
|
|
|
2397
2379
|
...(input.triggerArn != null && { triggerArn: input.triggerArn }),
|
|
2398
2380
|
};
|
|
2399
2381
|
};
|
|
2400
|
-
const
|
|
2382
|
+
const se_UpdateActionList = (input, context) => {
|
|
2401
2383
|
return input
|
|
2402
2384
|
.filter((e) => e != null)
|
|
2403
2385
|
.map((entry) => {
|
|
2404
|
-
return
|
|
2386
|
+
return se_UpdateReplicationSetAction(entry, context);
|
|
2405
2387
|
});
|
|
2406
2388
|
};
|
|
2407
|
-
const
|
|
2389
|
+
const se_UpdateReplicationSetAction = (input, context) => {
|
|
2408
2390
|
return UpdateReplicationSetAction.visit(input, {
|
|
2409
|
-
addRegionAction: (value) => ({ addRegionAction:
|
|
2410
|
-
deleteRegionAction: (value) => ({ deleteRegionAction:
|
|
2391
|
+
addRegionAction: (value) => ({ addRegionAction: se_AddRegionAction(value, context) }),
|
|
2392
|
+
deleteRegionAction: (value) => ({ deleteRegionAction: se_DeleteRegionAction(value, context) }),
|
|
2411
2393
|
_: (name, value) => ({ name: value }),
|
|
2412
2394
|
});
|
|
2413
2395
|
};
|
|
2414
|
-
const
|
|
2396
|
+
const de_Action = (output, context) => {
|
|
2415
2397
|
if (output.ssmAutomation != null) {
|
|
2416
2398
|
return {
|
|
2417
|
-
ssmAutomation:
|
|
2399
|
+
ssmAutomation: de_SsmAutomation(output.ssmAutomation, context),
|
|
2418
2400
|
};
|
|
2419
2401
|
}
|
|
2420
2402
|
return { $unknown: Object.entries(output)[0] };
|
|
2421
2403
|
};
|
|
2422
|
-
const
|
|
2404
|
+
const de_ActionsList = (output, context) => {
|
|
2423
2405
|
const retVal = (output || [])
|
|
2424
2406
|
.filter((e) => e != null)
|
|
2425
2407
|
.map((entry) => {
|
|
2426
2408
|
if (entry === null) {
|
|
2427
2409
|
return null;
|
|
2428
2410
|
}
|
|
2429
|
-
return
|
|
2411
|
+
return de_Action(__expectUnion(entry), context);
|
|
2430
2412
|
});
|
|
2431
2413
|
return retVal;
|
|
2432
2414
|
};
|
|
2433
|
-
const
|
|
2415
|
+
const de_AutomationExecution = (output, context) => {
|
|
2434
2416
|
if (__expectString(output.ssmExecutionArn) !== undefined) {
|
|
2435
2417
|
return { ssmExecutionArn: __expectString(output.ssmExecutionArn) };
|
|
2436
2418
|
}
|
|
2437
2419
|
return { $unknown: Object.entries(output)[0] };
|
|
2438
2420
|
};
|
|
2439
|
-
const
|
|
2421
|
+
const de_AutomationExecutionSet = (output, context) => {
|
|
2440
2422
|
const retVal = (output || [])
|
|
2441
2423
|
.filter((e) => e != null)
|
|
2442
2424
|
.map((entry) => {
|
|
2443
2425
|
if (entry === null) {
|
|
2444
2426
|
return null;
|
|
2445
2427
|
}
|
|
2446
|
-
return
|
|
2428
|
+
return de_AutomationExecution(__expectUnion(entry), context);
|
|
2447
2429
|
});
|
|
2448
2430
|
return retVal;
|
|
2449
2431
|
};
|
|
2450
|
-
const
|
|
2432
|
+
const de_ChatbotSnsConfigurationSet = (output, context) => {
|
|
2451
2433
|
const retVal = (output || [])
|
|
2452
2434
|
.filter((e) => e != null)
|
|
2453
2435
|
.map((entry) => {
|
|
@@ -2458,38 +2440,38 @@ const deserializeAws_restJson1ChatbotSnsConfigurationSet = (output, context) =>
|
|
|
2458
2440
|
});
|
|
2459
2441
|
return retVal;
|
|
2460
2442
|
};
|
|
2461
|
-
const
|
|
2443
|
+
const de_ChatChannel = (output, context) => {
|
|
2462
2444
|
if (output.chatbotSns != null) {
|
|
2463
2445
|
return {
|
|
2464
|
-
chatbotSns:
|
|
2446
|
+
chatbotSns: de_ChatbotSnsConfigurationSet(output.chatbotSns, context),
|
|
2465
2447
|
};
|
|
2466
2448
|
}
|
|
2467
2449
|
if (output.empty != null) {
|
|
2468
2450
|
return {
|
|
2469
|
-
empty:
|
|
2451
|
+
empty: de_EmptyChatChannel(output.empty, context),
|
|
2470
2452
|
};
|
|
2471
2453
|
}
|
|
2472
2454
|
return { $unknown: Object.entries(output)[0] };
|
|
2473
2455
|
};
|
|
2474
|
-
const
|
|
2456
|
+
const de_DynamicSsmParameters = (output, context) => {
|
|
2475
2457
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2476
2458
|
if (value === null) {
|
|
2477
2459
|
return acc;
|
|
2478
2460
|
}
|
|
2479
|
-
acc[key] =
|
|
2461
|
+
acc[key] = de_DynamicSsmParameterValue(__expectUnion(value), context);
|
|
2480
2462
|
return acc;
|
|
2481
2463
|
}, {});
|
|
2482
2464
|
};
|
|
2483
|
-
const
|
|
2465
|
+
const de_DynamicSsmParameterValue = (output, context) => {
|
|
2484
2466
|
if (__expectString(output.variable) !== undefined) {
|
|
2485
2467
|
return { variable: __expectString(output.variable) };
|
|
2486
2468
|
}
|
|
2487
2469
|
return { $unknown: Object.entries(output)[0] };
|
|
2488
2470
|
};
|
|
2489
|
-
const
|
|
2471
|
+
const de_EmptyChatChannel = (output, context) => {
|
|
2490
2472
|
return {};
|
|
2491
2473
|
};
|
|
2492
|
-
const
|
|
2474
|
+
const de_EngagementSet = (output, context) => {
|
|
2493
2475
|
const retVal = (output || [])
|
|
2494
2476
|
.filter((e) => e != null)
|
|
2495
2477
|
.map((entry) => {
|
|
@@ -2500,7 +2482,7 @@ const deserializeAws_restJson1EngagementSet = (output, context) => {
|
|
|
2500
2482
|
});
|
|
2501
2483
|
return retVal;
|
|
2502
2484
|
};
|
|
2503
|
-
const
|
|
2485
|
+
const de_EventReference = (output, context) => {
|
|
2504
2486
|
if (__expectString(output.relatedItemId) !== undefined) {
|
|
2505
2487
|
return { relatedItemId: __expectString(output.relatedItemId) };
|
|
2506
2488
|
}
|
|
@@ -2509,23 +2491,21 @@ const deserializeAws_restJson1EventReference = (output, context) => {
|
|
|
2509
2491
|
}
|
|
2510
2492
|
return { $unknown: Object.entries(output)[0] };
|
|
2511
2493
|
};
|
|
2512
|
-
const
|
|
2494
|
+
const de_EventReferenceList = (output, context) => {
|
|
2513
2495
|
const retVal = (output || [])
|
|
2514
2496
|
.filter((e) => e != null)
|
|
2515
2497
|
.map((entry) => {
|
|
2516
2498
|
if (entry === null) {
|
|
2517
2499
|
return null;
|
|
2518
2500
|
}
|
|
2519
|
-
return
|
|
2501
|
+
return de_EventReference(__expectUnion(entry), context);
|
|
2520
2502
|
});
|
|
2521
2503
|
return retVal;
|
|
2522
2504
|
};
|
|
2523
|
-
const
|
|
2505
|
+
const de_EventSummary = (output, context) => {
|
|
2524
2506
|
return {
|
|
2525
2507
|
eventId: __expectString(output.eventId),
|
|
2526
|
-
eventReferences: output.eventReferences != null
|
|
2527
|
-
? deserializeAws_restJson1EventReferenceList(output.eventReferences, context)
|
|
2528
|
-
: undefined,
|
|
2508
|
+
eventReferences: output.eventReferences != null ? de_EventReferenceList(output.eventReferences, context) : undefined,
|
|
2529
2509
|
eventTime: output.eventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime))) : undefined,
|
|
2530
2510
|
eventType: __expectString(output.eventType),
|
|
2531
2511
|
eventUpdatedTime: output.eventUpdatedTime != null
|
|
@@ -2534,41 +2514,33 @@ const deserializeAws_restJson1EventSummary = (output, context) => {
|
|
|
2534
2514
|
incidentRecordArn: __expectString(output.incidentRecordArn),
|
|
2535
2515
|
};
|
|
2536
2516
|
};
|
|
2537
|
-
const
|
|
2517
|
+
const de_EventSummaryList = (output, context) => {
|
|
2538
2518
|
const retVal = (output || [])
|
|
2539
2519
|
.filter((e) => e != null)
|
|
2540
2520
|
.map((entry) => {
|
|
2541
2521
|
if (entry === null) {
|
|
2542
2522
|
return null;
|
|
2543
2523
|
}
|
|
2544
|
-
return
|
|
2524
|
+
return de_EventSummary(entry, context);
|
|
2545
2525
|
});
|
|
2546
2526
|
return retVal;
|
|
2547
2527
|
};
|
|
2548
|
-
const
|
|
2528
|
+
const de_IncidentRecord = (output, context) => {
|
|
2549
2529
|
return {
|
|
2550
2530
|
arn: __expectString(output.arn),
|
|
2551
|
-
automationExecutions: output.automationExecutions != null
|
|
2552
|
-
|
|
2553
|
-
: undefined,
|
|
2554
|
-
chatChannel: output.chatChannel != null
|
|
2555
|
-
? deserializeAws_restJson1ChatChannel(__expectUnion(output.chatChannel), context)
|
|
2556
|
-
: undefined,
|
|
2531
|
+
automationExecutions: output.automationExecutions != null ? de_AutomationExecutionSet(output.automationExecutions, context) : undefined,
|
|
2532
|
+
chatChannel: output.chatChannel != null ? de_ChatChannel(__expectUnion(output.chatChannel), context) : undefined,
|
|
2557
2533
|
creationTime: output.creationTime != null
|
|
2558
2534
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
2559
2535
|
: undefined,
|
|
2560
2536
|
dedupeString: __expectString(output.dedupeString),
|
|
2561
2537
|
impact: __expectInt32(output.impact),
|
|
2562
|
-
incidentRecordSource: output.incidentRecordSource != null
|
|
2563
|
-
? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
|
|
2564
|
-
: undefined,
|
|
2538
|
+
incidentRecordSource: output.incidentRecordSource != null ? de_IncidentRecordSource(output.incidentRecordSource, context) : undefined,
|
|
2565
2539
|
lastModifiedBy: __expectString(output.lastModifiedBy),
|
|
2566
2540
|
lastModifiedTime: output.lastModifiedTime != null
|
|
2567
2541
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
|
|
2568
2542
|
: undefined,
|
|
2569
|
-
notificationTargets: output.notificationTargets != null
|
|
2570
|
-
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
2571
|
-
: undefined,
|
|
2543
|
+
notificationTargets: output.notificationTargets != null ? de_NotificationTargetSet(output.notificationTargets, context) : undefined,
|
|
2572
2544
|
resolvedTime: output.resolvedTime != null
|
|
2573
2545
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
|
|
2574
2546
|
: undefined,
|
|
@@ -2577,7 +2549,7 @@ const deserializeAws_restJson1IncidentRecord = (output, context) => {
|
|
|
2577
2549
|
title: __expectString(output.title),
|
|
2578
2550
|
};
|
|
2579
2551
|
};
|
|
2580
|
-
const
|
|
2552
|
+
const de_IncidentRecordSource = (output, context) => {
|
|
2581
2553
|
return {
|
|
2582
2554
|
createdBy: __expectString(output.createdBy),
|
|
2583
2555
|
invokedBy: __expectString(output.invokedBy),
|
|
@@ -2585,16 +2557,14 @@ const deserializeAws_restJson1IncidentRecordSource = (output, context) => {
|
|
|
2585
2557
|
source: __expectString(output.source),
|
|
2586
2558
|
};
|
|
2587
2559
|
};
|
|
2588
|
-
const
|
|
2560
|
+
const de_IncidentRecordSummary = (output, context) => {
|
|
2589
2561
|
return {
|
|
2590
2562
|
arn: __expectString(output.arn),
|
|
2591
2563
|
creationTime: output.creationTime != null
|
|
2592
2564
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
2593
2565
|
: undefined,
|
|
2594
2566
|
impact: __expectInt32(output.impact),
|
|
2595
|
-
incidentRecordSource: output.incidentRecordSource != null
|
|
2596
|
-
? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
|
|
2597
|
-
: undefined,
|
|
2567
|
+
incidentRecordSource: output.incidentRecordSource != null ? de_IncidentRecordSource(output.incidentRecordSource, context) : undefined,
|
|
2598
2568
|
resolvedTime: output.resolvedTime != null
|
|
2599
2569
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
|
|
2600
2570
|
: undefined,
|
|
@@ -2602,55 +2572,53 @@ const deserializeAws_restJson1IncidentRecordSummary = (output, context) => {
|
|
|
2602
2572
|
title: __expectString(output.title),
|
|
2603
2573
|
};
|
|
2604
2574
|
};
|
|
2605
|
-
const
|
|
2575
|
+
const de_IncidentRecordSummaryList = (output, context) => {
|
|
2606
2576
|
const retVal = (output || [])
|
|
2607
2577
|
.filter((e) => e != null)
|
|
2608
2578
|
.map((entry) => {
|
|
2609
2579
|
if (entry === null) {
|
|
2610
2580
|
return null;
|
|
2611
2581
|
}
|
|
2612
|
-
return
|
|
2582
|
+
return de_IncidentRecordSummary(entry, context);
|
|
2613
2583
|
});
|
|
2614
2584
|
return retVal;
|
|
2615
2585
|
};
|
|
2616
|
-
const
|
|
2586
|
+
const de_IncidentTemplate = (output, context) => {
|
|
2617
2587
|
return {
|
|
2618
2588
|
dedupeString: __expectString(output.dedupeString),
|
|
2619
2589
|
impact: __expectInt32(output.impact),
|
|
2620
|
-
incidentTags: output.incidentTags != null ?
|
|
2621
|
-
notificationTargets: output.notificationTargets != null
|
|
2622
|
-
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
2623
|
-
: undefined,
|
|
2590
|
+
incidentTags: output.incidentTags != null ? de_TagMap(output.incidentTags, context) : undefined,
|
|
2591
|
+
notificationTargets: output.notificationTargets != null ? de_NotificationTargetSet(output.notificationTargets, context) : undefined,
|
|
2624
2592
|
summary: __expectString(output.summary),
|
|
2625
2593
|
title: __expectString(output.title),
|
|
2626
2594
|
};
|
|
2627
2595
|
};
|
|
2628
|
-
const
|
|
2596
|
+
const de_Integration = (output, context) => {
|
|
2629
2597
|
if (output.pagerDutyConfiguration != null) {
|
|
2630
2598
|
return {
|
|
2631
|
-
pagerDutyConfiguration:
|
|
2599
|
+
pagerDutyConfiguration: de_PagerDutyConfiguration(output.pagerDutyConfiguration, context),
|
|
2632
2600
|
};
|
|
2633
2601
|
}
|
|
2634
2602
|
return { $unknown: Object.entries(output)[0] };
|
|
2635
2603
|
};
|
|
2636
|
-
const
|
|
2604
|
+
const de_Integrations = (output, context) => {
|
|
2637
2605
|
const retVal = (output || [])
|
|
2638
2606
|
.filter((e) => e != null)
|
|
2639
2607
|
.map((entry) => {
|
|
2640
2608
|
if (entry === null) {
|
|
2641
2609
|
return null;
|
|
2642
2610
|
}
|
|
2643
|
-
return
|
|
2611
|
+
return de_Integration(__expectUnion(entry), context);
|
|
2644
2612
|
});
|
|
2645
2613
|
return retVal;
|
|
2646
2614
|
};
|
|
2647
|
-
const
|
|
2615
|
+
const de_ItemIdentifier = (output, context) => {
|
|
2648
2616
|
return {
|
|
2649
2617
|
type: __expectString(output.type),
|
|
2650
|
-
value: output.value != null ?
|
|
2618
|
+
value: output.value != null ? de_ItemValue(__expectUnion(output.value), context) : undefined,
|
|
2651
2619
|
};
|
|
2652
2620
|
};
|
|
2653
|
-
const
|
|
2621
|
+
const de_ItemValue = (output, context) => {
|
|
2654
2622
|
if (__expectString(output.arn) !== undefined) {
|
|
2655
2623
|
return { arn: __expectString(output.arn) };
|
|
2656
2624
|
}
|
|
@@ -2659,7 +2627,7 @@ const deserializeAws_restJson1ItemValue = (output, context) => {
|
|
|
2659
2627
|
}
|
|
2660
2628
|
if (output.pagerDutyIncidentDetail != null) {
|
|
2661
2629
|
return {
|
|
2662
|
-
pagerDutyIncidentDetail:
|
|
2630
|
+
pagerDutyIncidentDetail: de_PagerDutyIncidentDetail(output.pagerDutyIncidentDetail, context),
|
|
2663
2631
|
};
|
|
2664
2632
|
}
|
|
2665
2633
|
if (__expectString(output.url) !== undefined) {
|
|
@@ -2667,45 +2635,45 @@ const deserializeAws_restJson1ItemValue = (output, context) => {
|
|
|
2667
2635
|
}
|
|
2668
2636
|
return { $unknown: Object.entries(output)[0] };
|
|
2669
2637
|
};
|
|
2670
|
-
const
|
|
2638
|
+
const de_NotificationTargetItem = (output, context) => {
|
|
2671
2639
|
if (__expectString(output.snsTopicArn) !== undefined) {
|
|
2672
2640
|
return { snsTopicArn: __expectString(output.snsTopicArn) };
|
|
2673
2641
|
}
|
|
2674
2642
|
return { $unknown: Object.entries(output)[0] };
|
|
2675
2643
|
};
|
|
2676
|
-
const
|
|
2644
|
+
const de_NotificationTargetSet = (output, context) => {
|
|
2677
2645
|
const retVal = (output || [])
|
|
2678
2646
|
.filter((e) => e != null)
|
|
2679
2647
|
.map((entry) => {
|
|
2680
2648
|
if (entry === null) {
|
|
2681
2649
|
return null;
|
|
2682
2650
|
}
|
|
2683
|
-
return
|
|
2651
|
+
return de_NotificationTargetItem(__expectUnion(entry), context);
|
|
2684
2652
|
});
|
|
2685
2653
|
return retVal;
|
|
2686
2654
|
};
|
|
2687
|
-
const
|
|
2655
|
+
const de_PagerDutyConfiguration = (output, context) => {
|
|
2688
2656
|
return {
|
|
2689
2657
|
name: __expectString(output.name),
|
|
2690
2658
|
pagerDutyIncidentConfiguration: output.pagerDutyIncidentConfiguration != null
|
|
2691
|
-
?
|
|
2659
|
+
? de_PagerDutyIncidentConfiguration(output.pagerDutyIncidentConfiguration, context)
|
|
2692
2660
|
: undefined,
|
|
2693
2661
|
secretId: __expectString(output.secretId),
|
|
2694
2662
|
};
|
|
2695
2663
|
};
|
|
2696
|
-
const
|
|
2664
|
+
const de_PagerDutyIncidentConfiguration = (output, context) => {
|
|
2697
2665
|
return {
|
|
2698
2666
|
serviceId: __expectString(output.serviceId),
|
|
2699
2667
|
};
|
|
2700
2668
|
};
|
|
2701
|
-
const
|
|
2669
|
+
const de_PagerDutyIncidentDetail = (output, context) => {
|
|
2702
2670
|
return {
|
|
2703
2671
|
autoResolve: __expectBoolean(output.autoResolve),
|
|
2704
2672
|
id: __expectString(output.id),
|
|
2705
2673
|
secretId: __expectString(output.secretId),
|
|
2706
2674
|
};
|
|
2707
2675
|
};
|
|
2708
|
-
const
|
|
2676
|
+
const de_RegionInfo = (output, context) => {
|
|
2709
2677
|
return {
|
|
2710
2678
|
sseKmsKeyId: __expectString(output.sseKmsKeyId),
|
|
2711
2679
|
status: __expectString(output.status),
|
|
@@ -2715,34 +2683,34 @@ const deserializeAws_restJson1RegionInfo = (output, context) => {
|
|
|
2715
2683
|
: undefined,
|
|
2716
2684
|
};
|
|
2717
2685
|
};
|
|
2718
|
-
const
|
|
2686
|
+
const de_RegionInfoMap = (output, context) => {
|
|
2719
2687
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2720
2688
|
if (value === null) {
|
|
2721
2689
|
return acc;
|
|
2722
2690
|
}
|
|
2723
|
-
acc[key] =
|
|
2691
|
+
acc[key] = de_RegionInfo(value, context);
|
|
2724
2692
|
return acc;
|
|
2725
2693
|
}, {});
|
|
2726
2694
|
};
|
|
2727
|
-
const
|
|
2695
|
+
const de_RelatedItem = (output, context) => {
|
|
2728
2696
|
return {
|
|
2729
2697
|
generatedId: __expectString(output.generatedId),
|
|
2730
|
-
identifier: output.identifier != null ?
|
|
2698
|
+
identifier: output.identifier != null ? de_ItemIdentifier(output.identifier, context) : undefined,
|
|
2731
2699
|
title: __expectString(output.title),
|
|
2732
2700
|
};
|
|
2733
2701
|
};
|
|
2734
|
-
const
|
|
2702
|
+
const de_RelatedItemList = (output, context) => {
|
|
2735
2703
|
const retVal = (output || [])
|
|
2736
2704
|
.filter((e) => e != null)
|
|
2737
2705
|
.map((entry) => {
|
|
2738
2706
|
if (entry === null) {
|
|
2739
2707
|
return null;
|
|
2740
2708
|
}
|
|
2741
|
-
return
|
|
2709
|
+
return de_RelatedItem(entry, context);
|
|
2742
2710
|
});
|
|
2743
2711
|
return retVal;
|
|
2744
2712
|
};
|
|
2745
|
-
const
|
|
2713
|
+
const de_ReplicationSet = (output, context) => {
|
|
2746
2714
|
return {
|
|
2747
2715
|
arn: __expectString(output.arn),
|
|
2748
2716
|
createdBy: __expectString(output.createdBy),
|
|
@@ -2754,11 +2722,11 @@ const deserializeAws_restJson1ReplicationSet = (output, context) => {
|
|
|
2754
2722
|
lastModifiedTime: output.lastModifiedTime != null
|
|
2755
2723
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
|
|
2756
2724
|
: undefined,
|
|
2757
|
-
regionMap: output.regionMap != null ?
|
|
2725
|
+
regionMap: output.regionMap != null ? de_RegionInfoMap(output.regionMap, context) : undefined,
|
|
2758
2726
|
status: __expectString(output.status),
|
|
2759
2727
|
};
|
|
2760
2728
|
};
|
|
2761
|
-
const
|
|
2729
|
+
const de_ReplicationSetArnList = (output, context) => {
|
|
2762
2730
|
const retVal = (output || [])
|
|
2763
2731
|
.filter((e) => e != null)
|
|
2764
2732
|
.map((entry) => {
|
|
@@ -2769,64 +2737,62 @@ const deserializeAws_restJson1ReplicationSetArnList = (output, context) => {
|
|
|
2769
2737
|
});
|
|
2770
2738
|
return retVal;
|
|
2771
2739
|
};
|
|
2772
|
-
const
|
|
2740
|
+
const de_ResourcePolicy = (output, context) => {
|
|
2773
2741
|
return {
|
|
2774
2742
|
policyDocument: __expectString(output.policyDocument),
|
|
2775
2743
|
policyId: __expectString(output.policyId),
|
|
2776
2744
|
ramResourceShareRegion: __expectString(output.ramResourceShareRegion),
|
|
2777
2745
|
};
|
|
2778
2746
|
};
|
|
2779
|
-
const
|
|
2747
|
+
const de_ResourcePolicyList = (output, context) => {
|
|
2780
2748
|
const retVal = (output || [])
|
|
2781
2749
|
.filter((e) => e != null)
|
|
2782
2750
|
.map((entry) => {
|
|
2783
2751
|
if (entry === null) {
|
|
2784
2752
|
return null;
|
|
2785
2753
|
}
|
|
2786
|
-
return
|
|
2754
|
+
return de_ResourcePolicy(entry, context);
|
|
2787
2755
|
});
|
|
2788
2756
|
return retVal;
|
|
2789
2757
|
};
|
|
2790
|
-
const
|
|
2758
|
+
const de_ResponsePlanSummary = (output, context) => {
|
|
2791
2759
|
return {
|
|
2792
2760
|
arn: __expectString(output.arn),
|
|
2793
2761
|
displayName: __expectString(output.displayName),
|
|
2794
2762
|
name: __expectString(output.name),
|
|
2795
2763
|
};
|
|
2796
2764
|
};
|
|
2797
|
-
const
|
|
2765
|
+
const de_ResponsePlanSummaryList = (output, context) => {
|
|
2798
2766
|
const retVal = (output || [])
|
|
2799
2767
|
.filter((e) => e != null)
|
|
2800
2768
|
.map((entry) => {
|
|
2801
2769
|
if (entry === null) {
|
|
2802
2770
|
return null;
|
|
2803
2771
|
}
|
|
2804
|
-
return
|
|
2772
|
+
return de_ResponsePlanSummary(entry, context);
|
|
2805
2773
|
});
|
|
2806
2774
|
return retVal;
|
|
2807
2775
|
};
|
|
2808
|
-
const
|
|
2776
|
+
const de_SsmAutomation = (output, context) => {
|
|
2809
2777
|
return {
|
|
2810
2778
|
documentName: __expectString(output.documentName),
|
|
2811
2779
|
documentVersion: __expectString(output.documentVersion),
|
|
2812
|
-
dynamicParameters: output.dynamicParameters != null
|
|
2813
|
-
|
|
2814
|
-
: undefined,
|
|
2815
|
-
parameters: output.parameters != null ? deserializeAws_restJson1SsmParameters(output.parameters, context) : undefined,
|
|
2780
|
+
dynamicParameters: output.dynamicParameters != null ? de_DynamicSsmParameters(output.dynamicParameters, context) : undefined,
|
|
2781
|
+
parameters: output.parameters != null ? de_SsmParameters(output.parameters, context) : undefined,
|
|
2816
2782
|
roleArn: __expectString(output.roleArn),
|
|
2817
2783
|
targetAccount: __expectString(output.targetAccount),
|
|
2818
2784
|
};
|
|
2819
2785
|
};
|
|
2820
|
-
const
|
|
2786
|
+
const de_SsmParameters = (output, context) => {
|
|
2821
2787
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2822
2788
|
if (value === null) {
|
|
2823
2789
|
return acc;
|
|
2824
2790
|
}
|
|
2825
|
-
acc[key] =
|
|
2791
|
+
acc[key] = de_SsmParameterValues(value, context);
|
|
2826
2792
|
return acc;
|
|
2827
2793
|
}, {});
|
|
2828
2794
|
};
|
|
2829
|
-
const
|
|
2795
|
+
const de_SsmParameterValues = (output, context) => {
|
|
2830
2796
|
const retVal = (output || [])
|
|
2831
2797
|
.filter((e) => e != null)
|
|
2832
2798
|
.map((entry) => {
|
|
@@ -2837,7 +2803,7 @@ const deserializeAws_restJson1SsmParameterValues = (output, context) => {
|
|
|
2837
2803
|
});
|
|
2838
2804
|
return retVal;
|
|
2839
2805
|
};
|
|
2840
|
-
const
|
|
2806
|
+
const de_TagMap = (output, context) => {
|
|
2841
2807
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2842
2808
|
if (value === null) {
|
|
2843
2809
|
return acc;
|
|
@@ -2846,13 +2812,11 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2846
2812
|
return acc;
|
|
2847
2813
|
}, {});
|
|
2848
2814
|
};
|
|
2849
|
-
const
|
|
2815
|
+
const de_TimelineEvent = (output, context) => {
|
|
2850
2816
|
return {
|
|
2851
2817
|
eventData: __expectString(output.eventData),
|
|
2852
2818
|
eventId: __expectString(output.eventId),
|
|
2853
|
-
eventReferences: output.eventReferences != null
|
|
2854
|
-
? deserializeAws_restJson1EventReferenceList(output.eventReferences, context)
|
|
2855
|
-
: undefined,
|
|
2819
|
+
eventReferences: output.eventReferences != null ? de_EventReferenceList(output.eventReferences, context) : undefined,
|
|
2856
2820
|
eventTime: output.eventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime))) : undefined,
|
|
2857
2821
|
eventType: __expectString(output.eventType),
|
|
2858
2822
|
eventUpdatedTime: output.eventUpdatedTime != null
|