@aws-sdk/client-ssm-contacts 3.312.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,14 +10,14 @@ const SSMContactsServiceException_1 = require("../models/SSMContactsServiceExcep
10
10
  const se_AcceptPageCommand = async (input, context) => {
11
11
  const headers = sharedHeaders("AcceptPage");
12
12
  let body;
13
- body = JSON.stringify(se_AcceptPageRequest(input, context));
13
+ body = JSON.stringify((0, smithy_client_1._json)(input));
14
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
15
15
  };
16
16
  exports.se_AcceptPageCommand = se_AcceptPageCommand;
17
17
  const se_ActivateContactChannelCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("ActivateContactChannel");
19
19
  let body;
20
- body = JSON.stringify(se_ActivateContactChannelRequest(input, context));
20
+ body = JSON.stringify((0, smithy_client_1._json)(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  exports.se_ActivateContactChannelCommand = se_ActivateContactChannelCommand;
@@ -52,98 +52,98 @@ exports.se_CreateRotationOverrideCommand = se_CreateRotationOverrideCommand;
52
52
  const se_DeactivateContactChannelCommand = async (input, context) => {
53
53
  const headers = sharedHeaders("DeactivateContactChannel");
54
54
  let body;
55
- body = JSON.stringify(se_DeactivateContactChannelRequest(input, context));
55
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
57
  };
58
58
  exports.se_DeactivateContactChannelCommand = se_DeactivateContactChannelCommand;
59
59
  const se_DeleteContactCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("DeleteContact");
61
61
  let body;
62
- body = JSON.stringify(se_DeleteContactRequest(input, context));
62
+ body = JSON.stringify((0, smithy_client_1._json)(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  exports.se_DeleteContactCommand = se_DeleteContactCommand;
66
66
  const se_DeleteContactChannelCommand = async (input, context) => {
67
67
  const headers = sharedHeaders("DeleteContactChannel");
68
68
  let body;
69
- body = JSON.stringify(se_DeleteContactChannelRequest(input, context));
69
+ body = JSON.stringify((0, smithy_client_1._json)(input));
70
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
71
  };
72
72
  exports.se_DeleteContactChannelCommand = se_DeleteContactChannelCommand;
73
73
  const se_DeleteRotationCommand = async (input, context) => {
74
74
  const headers = sharedHeaders("DeleteRotation");
75
75
  let body;
76
- body = JSON.stringify(se_DeleteRotationRequest(input, context));
76
+ body = JSON.stringify((0, smithy_client_1._json)(input));
77
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
78
  };
79
79
  exports.se_DeleteRotationCommand = se_DeleteRotationCommand;
80
80
  const se_DeleteRotationOverrideCommand = async (input, context) => {
81
81
  const headers = sharedHeaders("DeleteRotationOverride");
82
82
  let body;
83
- body = JSON.stringify(se_DeleteRotationOverrideRequest(input, context));
83
+ body = JSON.stringify((0, smithy_client_1._json)(input));
84
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
85
  };
86
86
  exports.se_DeleteRotationOverrideCommand = se_DeleteRotationOverrideCommand;
87
87
  const se_DescribeEngagementCommand = async (input, context) => {
88
88
  const headers = sharedHeaders("DescribeEngagement");
89
89
  let body;
90
- body = JSON.stringify(se_DescribeEngagementRequest(input, context));
90
+ body = JSON.stringify((0, smithy_client_1._json)(input));
91
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
92
92
  };
93
93
  exports.se_DescribeEngagementCommand = se_DescribeEngagementCommand;
94
94
  const se_DescribePageCommand = async (input, context) => {
95
95
  const headers = sharedHeaders("DescribePage");
96
96
  let body;
97
- body = JSON.stringify(se_DescribePageRequest(input, context));
97
+ body = JSON.stringify((0, smithy_client_1._json)(input));
98
98
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
99
99
  };
100
100
  exports.se_DescribePageCommand = se_DescribePageCommand;
101
101
  const se_GetContactCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("GetContact");
103
103
  let body;
104
- body = JSON.stringify(se_GetContactRequest(input, context));
104
+ body = JSON.stringify((0, smithy_client_1._json)(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  exports.se_GetContactCommand = se_GetContactCommand;
108
108
  const se_GetContactChannelCommand = async (input, context) => {
109
109
  const headers = sharedHeaders("GetContactChannel");
110
110
  let body;
111
- body = JSON.stringify(se_GetContactChannelRequest(input, context));
111
+ body = JSON.stringify((0, smithy_client_1._json)(input));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
114
  exports.se_GetContactChannelCommand = se_GetContactChannelCommand;
115
115
  const se_GetContactPolicyCommand = async (input, context) => {
116
116
  const headers = sharedHeaders("GetContactPolicy");
117
117
  let body;
118
- body = JSON.stringify(se_GetContactPolicyRequest(input, context));
118
+ body = JSON.stringify((0, smithy_client_1._json)(input));
119
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
120
  };
121
121
  exports.se_GetContactPolicyCommand = se_GetContactPolicyCommand;
122
122
  const se_GetRotationCommand = async (input, context) => {
123
123
  const headers = sharedHeaders("GetRotation");
124
124
  let body;
125
- body = JSON.stringify(se_GetRotationRequest(input, context));
125
+ body = JSON.stringify((0, smithy_client_1._json)(input));
126
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
127
  };
128
128
  exports.se_GetRotationCommand = se_GetRotationCommand;
129
129
  const se_GetRotationOverrideCommand = async (input, context) => {
130
130
  const headers = sharedHeaders("GetRotationOverride");
131
131
  let body;
132
- body = JSON.stringify(se_GetRotationOverrideRequest(input, context));
132
+ body = JSON.stringify((0, smithy_client_1._json)(input));
133
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
134
134
  };
135
135
  exports.se_GetRotationOverrideCommand = se_GetRotationOverrideCommand;
136
136
  const se_ListContactChannelsCommand = async (input, context) => {
137
137
  const headers = sharedHeaders("ListContactChannels");
138
138
  let body;
139
- body = JSON.stringify(se_ListContactChannelsRequest(input, context));
139
+ body = JSON.stringify((0, smithy_client_1._json)(input));
140
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
141
141
  };
142
142
  exports.se_ListContactChannelsCommand = se_ListContactChannelsCommand;
143
143
  const se_ListContactsCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("ListContacts");
145
145
  let body;
146
- body = JSON.stringify(se_ListContactsRequest(input, context));
146
+ body = JSON.stringify((0, smithy_client_1._json)(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  exports.se_ListContactsCommand = se_ListContactsCommand;
@@ -157,28 +157,28 @@ exports.se_ListEngagementsCommand = se_ListEngagementsCommand;
157
157
  const se_ListPageReceiptsCommand = async (input, context) => {
158
158
  const headers = sharedHeaders("ListPageReceipts");
159
159
  let body;
160
- body = JSON.stringify(se_ListPageReceiptsRequest(input, context));
160
+ body = JSON.stringify((0, smithy_client_1._json)(input));
161
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
162
  };
163
163
  exports.se_ListPageReceiptsCommand = se_ListPageReceiptsCommand;
164
164
  const se_ListPageResolutionsCommand = async (input, context) => {
165
165
  const headers = sharedHeaders("ListPageResolutions");
166
166
  let body;
167
- body = JSON.stringify(se_ListPageResolutionsRequest(input, context));
167
+ body = JSON.stringify((0, smithy_client_1._json)(input));
168
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
169
169
  };
170
170
  exports.se_ListPageResolutionsCommand = se_ListPageResolutionsCommand;
171
171
  const se_ListPagesByContactCommand = async (input, context) => {
172
172
  const headers = sharedHeaders("ListPagesByContact");
173
173
  let body;
174
- body = JSON.stringify(se_ListPagesByContactRequest(input, context));
174
+ body = JSON.stringify((0, smithy_client_1._json)(input));
175
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
176
  };
177
177
  exports.se_ListPagesByContactCommand = se_ListPagesByContactCommand;
178
178
  const se_ListPagesByEngagementCommand = async (input, context) => {
179
179
  const headers = sharedHeaders("ListPagesByEngagement");
180
180
  let body;
181
- body = JSON.stringify(se_ListPagesByEngagementRequest(input, context));
181
+ body = JSON.stringify((0, smithy_client_1._json)(input));
182
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
183
183
  };
184
184
  exports.se_ListPagesByEngagementCommand = se_ListPagesByEngagementCommand;
@@ -199,7 +199,7 @@ exports.se_ListRotationOverridesCommand = se_ListRotationOverridesCommand;
199
199
  const se_ListRotationsCommand = async (input, context) => {
200
200
  const headers = sharedHeaders("ListRotations");
201
201
  let body;
202
- body = JSON.stringify(se_ListRotationsRequest(input, context));
202
+ body = JSON.stringify((0, smithy_client_1._json)(input));
203
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
204
  };
205
205
  exports.se_ListRotationsCommand = se_ListRotationsCommand;
@@ -213,21 +213,21 @@ exports.se_ListRotationShiftsCommand = se_ListRotationShiftsCommand;
213
213
  const se_ListTagsForResourceCommand = async (input, context) => {
214
214
  const headers = sharedHeaders("ListTagsForResource");
215
215
  let body;
216
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
216
+ body = JSON.stringify((0, smithy_client_1._json)(input));
217
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
218
  };
219
219
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
220
220
  const se_PutContactPolicyCommand = async (input, context) => {
221
221
  const headers = sharedHeaders("PutContactPolicy");
222
222
  let body;
223
- body = JSON.stringify(se_PutContactPolicyRequest(input, context));
223
+ body = JSON.stringify((0, smithy_client_1._json)(input));
224
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
225
  };
226
226
  exports.se_PutContactPolicyCommand = se_PutContactPolicyCommand;
227
227
  const se_SendActivationCodeCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("SendActivationCode");
229
229
  let body;
230
- body = JSON.stringify(se_SendActivationCodeRequest(input, context));
230
+ body = JSON.stringify((0, smithy_client_1._json)(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  exports.se_SendActivationCodeCommand = se_SendActivationCodeCommand;
@@ -241,35 +241,35 @@ exports.se_StartEngagementCommand = se_StartEngagementCommand;
241
241
  const se_StopEngagementCommand = async (input, context) => {
242
242
  const headers = sharedHeaders("StopEngagement");
243
243
  let body;
244
- body = JSON.stringify(se_StopEngagementRequest(input, context));
244
+ body = JSON.stringify((0, smithy_client_1._json)(input));
245
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
246
  };
247
247
  exports.se_StopEngagementCommand = se_StopEngagementCommand;
248
248
  const se_TagResourceCommand = async (input, context) => {
249
249
  const headers = sharedHeaders("TagResource");
250
250
  let body;
251
- body = JSON.stringify(se_TagResourceRequest(input, context));
251
+ body = JSON.stringify((0, smithy_client_1._json)(input));
252
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
253
  };
254
254
  exports.se_TagResourceCommand = se_TagResourceCommand;
255
255
  const se_UntagResourceCommand = async (input, context) => {
256
256
  const headers = sharedHeaders("UntagResource");
257
257
  let body;
258
- body = JSON.stringify(se_UntagResourceRequest(input, context));
258
+ body = JSON.stringify((0, smithy_client_1._json)(input));
259
259
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
260
  };
261
261
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
262
262
  const se_UpdateContactCommand = async (input, context) => {
263
263
  const headers = sharedHeaders("UpdateContact");
264
264
  let body;
265
- body = JSON.stringify(se_UpdateContactRequest(input, context));
265
+ body = JSON.stringify((0, smithy_client_1._json)(input));
266
266
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
267
  };
268
268
  exports.se_UpdateContactCommand = se_UpdateContactCommand;
269
269
  const se_UpdateContactChannelCommand = async (input, context) => {
270
270
  const headers = sharedHeaders("UpdateContactChannel");
271
271
  let body;
272
- body = JSON.stringify(se_UpdateContactChannelRequest(input, context));
272
+ body = JSON.stringify((0, smithy_client_1._json)(input));
273
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
274
  };
275
275
  exports.se_UpdateContactChannelCommand = se_UpdateContactChannelCommand;
@@ -286,12 +286,12 @@ const de_AcceptPageCommand = async (output, context) => {
286
286
  }
287
287
  const data = await parseBody(output.body, context);
288
288
  let contents = {};
289
- contents = de_AcceptPageResult(data, context);
289
+ contents = (0, smithy_client_1._json)(data);
290
290
  const response = {
291
291
  $metadata: deserializeMetadata(output),
292
292
  ...contents,
293
293
  };
294
- return Promise.resolve(response);
294
+ return response;
295
295
  };
296
296
  exports.de_AcceptPageCommand = de_AcceptPageCommand;
297
297
  const de_AcceptPageCommandError = async (output, context) => {
@@ -318,10 +318,9 @@ const de_AcceptPageCommandError = async (output, context) => {
318
318
  throw await de_ValidationExceptionRes(parsedOutput, context);
319
319
  default:
320
320
  const parsedBody = parsedOutput.body;
321
- (0, smithy_client_1.throwDefaultError)({
321
+ return throwDefaultError({
322
322
  output,
323
323
  parsedBody,
324
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
325
324
  errorCode,
326
325
  });
327
326
  }
@@ -332,12 +331,12 @@ const de_ActivateContactChannelCommand = async (output, context) => {
332
331
  }
333
332
  const data = await parseBody(output.body, context);
334
333
  let contents = {};
335
- contents = de_ActivateContactChannelResult(data, context);
334
+ contents = (0, smithy_client_1._json)(data);
336
335
  const response = {
337
336
  $metadata: deserializeMetadata(output),
338
337
  ...contents,
339
338
  };
340
- return Promise.resolve(response);
339
+ return response;
341
340
  };
342
341
  exports.de_ActivateContactChannelCommand = de_ActivateContactChannelCommand;
343
342
  const de_ActivateContactChannelCommandError = async (output, context) => {
@@ -364,10 +363,9 @@ const de_ActivateContactChannelCommandError = async (output, context) => {
364
363
  throw await de_ValidationExceptionRes(parsedOutput, context);
365
364
  default:
366
365
  const parsedBody = parsedOutput.body;
367
- (0, smithy_client_1.throwDefaultError)({
366
+ return throwDefaultError({
368
367
  output,
369
368
  parsedBody,
370
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
371
369
  errorCode,
372
370
  });
373
371
  }
@@ -378,12 +376,12 @@ const de_CreateContactCommand = async (output, context) => {
378
376
  }
379
377
  const data = await parseBody(output.body, context);
380
378
  let contents = {};
381
- contents = de_CreateContactResult(data, context);
379
+ contents = (0, smithy_client_1._json)(data);
382
380
  const response = {
383
381
  $metadata: deserializeMetadata(output),
384
382
  ...contents,
385
383
  };
386
- return Promise.resolve(response);
384
+ return response;
387
385
  };
388
386
  exports.de_CreateContactCommand = de_CreateContactCommand;
389
387
  const de_CreateContactCommandError = async (output, context) => {
@@ -416,10 +414,9 @@ const de_CreateContactCommandError = async (output, context) => {
416
414
  throw await de_ValidationExceptionRes(parsedOutput, context);
417
415
  default:
418
416
  const parsedBody = parsedOutput.body;
419
- (0, smithy_client_1.throwDefaultError)({
417
+ return throwDefaultError({
420
418
  output,
421
419
  parsedBody,
422
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
423
420
  errorCode,
424
421
  });
425
422
  }
@@ -430,12 +427,12 @@ const de_CreateContactChannelCommand = async (output, context) => {
430
427
  }
431
428
  const data = await parseBody(output.body, context);
432
429
  let contents = {};
433
- contents = de_CreateContactChannelResult(data, context);
430
+ contents = (0, smithy_client_1._json)(data);
434
431
  const response = {
435
432
  $metadata: deserializeMetadata(output),
436
433
  ...contents,
437
434
  };
438
- return Promise.resolve(response);
435
+ return response;
439
436
  };
440
437
  exports.de_CreateContactChannelCommand = de_CreateContactChannelCommand;
441
438
  const de_CreateContactChannelCommandError = async (output, context) => {
@@ -465,10 +462,9 @@ const de_CreateContactChannelCommandError = async (output, context) => {
465
462
  throw await de_ValidationExceptionRes(parsedOutput, context);
466
463
  default:
467
464
  const parsedBody = parsedOutput.body;
468
- (0, smithy_client_1.throwDefaultError)({
465
+ return throwDefaultError({
469
466
  output,
470
467
  parsedBody,
471
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
472
468
  errorCode,
473
469
  });
474
470
  }
@@ -479,12 +475,12 @@ const de_CreateRotationCommand = async (output, context) => {
479
475
  }
480
476
  const data = await parseBody(output.body, context);
481
477
  let contents = {};
482
- contents = de_CreateRotationResult(data, context);
478
+ contents = (0, smithy_client_1._json)(data);
483
479
  const response = {
484
480
  $metadata: deserializeMetadata(output),
485
481
  ...contents,
486
482
  };
487
- return Promise.resolve(response);
483
+ return response;
488
484
  };
489
485
  exports.de_CreateRotationCommand = de_CreateRotationCommand;
490
486
  const de_CreateRotationCommandError = async (output, context) => {
@@ -514,10 +510,9 @@ const de_CreateRotationCommandError = async (output, context) => {
514
510
  throw await de_ValidationExceptionRes(parsedOutput, context);
515
511
  default:
516
512
  const parsedBody = parsedOutput.body;
517
- (0, smithy_client_1.throwDefaultError)({
513
+ return throwDefaultError({
518
514
  output,
519
515
  parsedBody,
520
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
521
516
  errorCode,
522
517
  });
523
518
  }
@@ -528,12 +523,12 @@ const de_CreateRotationOverrideCommand = async (output, context) => {
528
523
  }
529
524
  const data = await parseBody(output.body, context);
530
525
  let contents = {};
531
- contents = de_CreateRotationOverrideResult(data, context);
526
+ contents = (0, smithy_client_1._json)(data);
532
527
  const response = {
533
528
  $metadata: deserializeMetadata(output),
534
529
  ...contents,
535
530
  };
536
- return Promise.resolve(response);
531
+ return response;
537
532
  };
538
533
  exports.de_CreateRotationOverrideCommand = de_CreateRotationOverrideCommand;
539
534
  const de_CreateRotationOverrideCommandError = async (output, context) => {
@@ -563,10 +558,9 @@ const de_CreateRotationOverrideCommandError = async (output, context) => {
563
558
  throw await de_ValidationExceptionRes(parsedOutput, context);
564
559
  default:
565
560
  const parsedBody = parsedOutput.body;
566
- (0, smithy_client_1.throwDefaultError)({
561
+ return throwDefaultError({
567
562
  output,
568
563
  parsedBody,
569
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
570
564
  errorCode,
571
565
  });
572
566
  }
@@ -577,12 +571,12 @@ const de_DeactivateContactChannelCommand = async (output, context) => {
577
571
  }
578
572
  const data = await parseBody(output.body, context);
579
573
  let contents = {};
580
- contents = de_DeactivateContactChannelResult(data, context);
574
+ contents = (0, smithy_client_1._json)(data);
581
575
  const response = {
582
576
  $metadata: deserializeMetadata(output),
583
577
  ...contents,
584
578
  };
585
- return Promise.resolve(response);
579
+ return response;
586
580
  };
587
581
  exports.de_DeactivateContactChannelCommand = de_DeactivateContactChannelCommand;
588
582
  const de_DeactivateContactChannelCommandError = async (output, context) => {
@@ -609,10 +603,9 @@ const de_DeactivateContactChannelCommandError = async (output, context) => {
609
603
  throw await de_ValidationExceptionRes(parsedOutput, context);
610
604
  default:
611
605
  const parsedBody = parsedOutput.body;
612
- (0, smithy_client_1.throwDefaultError)({
606
+ return throwDefaultError({
613
607
  output,
614
608
  parsedBody,
615
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
616
609
  errorCode,
617
610
  });
618
611
  }
@@ -623,12 +616,12 @@ const de_DeleteContactCommand = async (output, context) => {
623
616
  }
624
617
  const data = await parseBody(output.body, context);
625
618
  let contents = {};
626
- contents = de_DeleteContactResult(data, context);
619
+ contents = (0, smithy_client_1._json)(data);
627
620
  const response = {
628
621
  $metadata: deserializeMetadata(output),
629
622
  ...contents,
630
623
  };
631
- return Promise.resolve(response);
624
+ return response;
632
625
  };
633
626
  exports.de_DeleteContactCommand = de_DeleteContactCommand;
634
627
  const de_DeleteContactCommandError = async (output, context) => {
@@ -658,10 +651,9 @@ const de_DeleteContactCommandError = async (output, context) => {
658
651
  throw await de_ValidationExceptionRes(parsedOutput, context);
659
652
  default:
660
653
  const parsedBody = parsedOutput.body;
661
- (0, smithy_client_1.throwDefaultError)({
654
+ return throwDefaultError({
662
655
  output,
663
656
  parsedBody,
664
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
665
657
  errorCode,
666
658
  });
667
659
  }
@@ -672,12 +664,12 @@ const de_DeleteContactChannelCommand = async (output, context) => {
672
664
  }
673
665
  const data = await parseBody(output.body, context);
674
666
  let contents = {};
675
- contents = de_DeleteContactChannelResult(data, context);
667
+ contents = (0, smithy_client_1._json)(data);
676
668
  const response = {
677
669
  $metadata: deserializeMetadata(output),
678
670
  ...contents,
679
671
  };
680
- return Promise.resolve(response);
672
+ return response;
681
673
  };
682
674
  exports.de_DeleteContactChannelCommand = de_DeleteContactChannelCommand;
683
675
  const de_DeleteContactChannelCommandError = async (output, context) => {
@@ -704,10 +696,9 @@ const de_DeleteContactChannelCommandError = async (output, context) => {
704
696
  throw await de_ValidationExceptionRes(parsedOutput, context);
705
697
  default:
706
698
  const parsedBody = parsedOutput.body;
707
- (0, smithy_client_1.throwDefaultError)({
699
+ return throwDefaultError({
708
700
  output,
709
701
  parsedBody,
710
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
711
702
  errorCode,
712
703
  });
713
704
  }
@@ -718,12 +709,12 @@ const de_DeleteRotationCommand = async (output, context) => {
718
709
  }
719
710
  const data = await parseBody(output.body, context);
720
711
  let contents = {};
721
- contents = de_DeleteRotationResult(data, context);
712
+ contents = (0, smithy_client_1._json)(data);
722
713
  const response = {
723
714
  $metadata: deserializeMetadata(output),
724
715
  ...contents,
725
716
  };
726
- return Promise.resolve(response);
717
+ return response;
727
718
  };
728
719
  exports.de_DeleteRotationCommand = de_DeleteRotationCommand;
729
720
  const de_DeleteRotationCommandError = async (output, context) => {
@@ -753,10 +744,9 @@ const de_DeleteRotationCommandError = async (output, context) => {
753
744
  throw await de_ValidationExceptionRes(parsedOutput, context);
754
745
  default:
755
746
  const parsedBody = parsedOutput.body;
756
- (0, smithy_client_1.throwDefaultError)({
747
+ return throwDefaultError({
757
748
  output,
758
749
  parsedBody,
759
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
760
750
  errorCode,
761
751
  });
762
752
  }
@@ -767,12 +757,12 @@ const de_DeleteRotationOverrideCommand = async (output, context) => {
767
757
  }
768
758
  const data = await parseBody(output.body, context);
769
759
  let contents = {};
770
- contents = de_DeleteRotationOverrideResult(data, context);
760
+ contents = (0, smithy_client_1._json)(data);
771
761
  const response = {
772
762
  $metadata: deserializeMetadata(output),
773
763
  ...contents,
774
764
  };
775
- return Promise.resolve(response);
765
+ return response;
776
766
  };
777
767
  exports.de_DeleteRotationOverrideCommand = de_DeleteRotationOverrideCommand;
778
768
  const de_DeleteRotationOverrideCommandError = async (output, context) => {
@@ -799,10 +789,9 @@ const de_DeleteRotationOverrideCommandError = async (output, context) => {
799
789
  throw await de_ValidationExceptionRes(parsedOutput, context);
800
790
  default:
801
791
  const parsedBody = parsedOutput.body;
802
- (0, smithy_client_1.throwDefaultError)({
792
+ return throwDefaultError({
803
793
  output,
804
794
  parsedBody,
805
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
806
795
  errorCode,
807
796
  });
808
797
  }
@@ -818,7 +807,7 @@ const de_DescribeEngagementCommand = async (output, context) => {
818
807
  $metadata: deserializeMetadata(output),
819
808
  ...contents,
820
809
  };
821
- return Promise.resolve(response);
810
+ return response;
822
811
  };
823
812
  exports.de_DescribeEngagementCommand = de_DescribeEngagementCommand;
824
813
  const de_DescribeEngagementCommandError = async (output, context) => {
@@ -848,10 +837,9 @@ const de_DescribeEngagementCommandError = async (output, context) => {
848
837
  throw await de_ValidationExceptionRes(parsedOutput, context);
849
838
  default:
850
839
  const parsedBody = parsedOutput.body;
851
- (0, smithy_client_1.throwDefaultError)({
840
+ return throwDefaultError({
852
841
  output,
853
842
  parsedBody,
854
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
855
843
  errorCode,
856
844
  });
857
845
  }
@@ -867,7 +855,7 @@ const de_DescribePageCommand = async (output, context) => {
867
855
  $metadata: deserializeMetadata(output),
868
856
  ...contents,
869
857
  };
870
- return Promise.resolve(response);
858
+ return response;
871
859
  };
872
860
  exports.de_DescribePageCommand = de_DescribePageCommand;
873
861
  const de_DescribePageCommandError = async (output, context) => {
@@ -897,10 +885,9 @@ const de_DescribePageCommandError = async (output, context) => {
897
885
  throw await de_ValidationExceptionRes(parsedOutput, context);
898
886
  default:
899
887
  const parsedBody = parsedOutput.body;
900
- (0, smithy_client_1.throwDefaultError)({
888
+ return throwDefaultError({
901
889
  output,
902
890
  parsedBody,
903
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
904
891
  errorCode,
905
892
  });
906
893
  }
@@ -911,12 +898,12 @@ const de_GetContactCommand = async (output, context) => {
911
898
  }
912
899
  const data = await parseBody(output.body, context);
913
900
  let contents = {};
914
- contents = de_GetContactResult(data, context);
901
+ contents = (0, smithy_client_1._json)(data);
915
902
  const response = {
916
903
  $metadata: deserializeMetadata(output),
917
904
  ...contents,
918
905
  };
919
- return Promise.resolve(response);
906
+ return response;
920
907
  };
921
908
  exports.de_GetContactCommand = de_GetContactCommand;
922
909
  const de_GetContactCommandError = async (output, context) => {
@@ -946,10 +933,9 @@ const de_GetContactCommandError = async (output, context) => {
946
933
  throw await de_ValidationExceptionRes(parsedOutput, context);
947
934
  default:
948
935
  const parsedBody = parsedOutput.body;
949
- (0, smithy_client_1.throwDefaultError)({
936
+ return throwDefaultError({
950
937
  output,
951
938
  parsedBody,
952
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
953
939
  errorCode,
954
940
  });
955
941
  }
@@ -960,12 +946,12 @@ const de_GetContactChannelCommand = async (output, context) => {
960
946
  }
961
947
  const data = await parseBody(output.body, context);
962
948
  let contents = {};
963
- contents = de_GetContactChannelResult(data, context);
949
+ contents = (0, smithy_client_1._json)(data);
964
950
  const response = {
965
951
  $metadata: deserializeMetadata(output),
966
952
  ...contents,
967
953
  };
968
- return Promise.resolve(response);
954
+ return response;
969
955
  };
970
956
  exports.de_GetContactChannelCommand = de_GetContactChannelCommand;
971
957
  const de_GetContactChannelCommandError = async (output, context) => {
@@ -995,10 +981,9 @@ const de_GetContactChannelCommandError = async (output, context) => {
995
981
  throw await de_ValidationExceptionRes(parsedOutput, context);
996
982
  default:
997
983
  const parsedBody = parsedOutput.body;
998
- (0, smithy_client_1.throwDefaultError)({
984
+ return throwDefaultError({
999
985
  output,
1000
986
  parsedBody,
1001
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1002
987
  errorCode,
1003
988
  });
1004
989
  }
@@ -1009,12 +994,12 @@ const de_GetContactPolicyCommand = async (output, context) => {
1009
994
  }
1010
995
  const data = await parseBody(output.body, context);
1011
996
  let contents = {};
1012
- contents = de_GetContactPolicyResult(data, context);
997
+ contents = (0, smithy_client_1._json)(data);
1013
998
  const response = {
1014
999
  $metadata: deserializeMetadata(output),
1015
1000
  ...contents,
1016
1001
  };
1017
- return Promise.resolve(response);
1002
+ return response;
1018
1003
  };
1019
1004
  exports.de_GetContactPolicyCommand = de_GetContactPolicyCommand;
1020
1005
  const de_GetContactPolicyCommandError = async (output, context) => {
@@ -1041,10 +1026,9 @@ const de_GetContactPolicyCommandError = async (output, context) => {
1041
1026
  throw await de_ValidationExceptionRes(parsedOutput, context);
1042
1027
  default:
1043
1028
  const parsedBody = parsedOutput.body;
1044
- (0, smithy_client_1.throwDefaultError)({
1029
+ return throwDefaultError({
1045
1030
  output,
1046
1031
  parsedBody,
1047
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1048
1032
  errorCode,
1049
1033
  });
1050
1034
  }
@@ -1060,7 +1044,7 @@ const de_GetRotationCommand = async (output, context) => {
1060
1044
  $metadata: deserializeMetadata(output),
1061
1045
  ...contents,
1062
1046
  };
1063
- return Promise.resolve(response);
1047
+ return response;
1064
1048
  };
1065
1049
  exports.de_GetRotationCommand = de_GetRotationCommand;
1066
1050
  const de_GetRotationCommandError = async (output, context) => {
@@ -1087,10 +1071,9 @@ const de_GetRotationCommandError = async (output, context) => {
1087
1071
  throw await de_ValidationExceptionRes(parsedOutput, context);
1088
1072
  default:
1089
1073
  const parsedBody = parsedOutput.body;
1090
- (0, smithy_client_1.throwDefaultError)({
1074
+ return throwDefaultError({
1091
1075
  output,
1092
1076
  parsedBody,
1093
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1094
1077
  errorCode,
1095
1078
  });
1096
1079
  }
@@ -1106,7 +1089,7 @@ const de_GetRotationOverrideCommand = async (output, context) => {
1106
1089
  $metadata: deserializeMetadata(output),
1107
1090
  ...contents,
1108
1091
  };
1109
- return Promise.resolve(response);
1092
+ return response;
1110
1093
  };
1111
1094
  exports.de_GetRotationOverrideCommand = de_GetRotationOverrideCommand;
1112
1095
  const de_GetRotationOverrideCommandError = async (output, context) => {
@@ -1133,10 +1116,9 @@ const de_GetRotationOverrideCommandError = async (output, context) => {
1133
1116
  throw await de_ValidationExceptionRes(parsedOutput, context);
1134
1117
  default:
1135
1118
  const parsedBody = parsedOutput.body;
1136
- (0, smithy_client_1.throwDefaultError)({
1119
+ return throwDefaultError({
1137
1120
  output,
1138
1121
  parsedBody,
1139
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1140
1122
  errorCode,
1141
1123
  });
1142
1124
  }
@@ -1147,12 +1129,12 @@ const de_ListContactChannelsCommand = async (output, context) => {
1147
1129
  }
1148
1130
  const data = await parseBody(output.body, context);
1149
1131
  let contents = {};
1150
- contents = de_ListContactChannelsResult(data, context);
1132
+ contents = (0, smithy_client_1._json)(data);
1151
1133
  const response = {
1152
1134
  $metadata: deserializeMetadata(output),
1153
1135
  ...contents,
1154
1136
  };
1155
- return Promise.resolve(response);
1137
+ return response;
1156
1138
  };
1157
1139
  exports.de_ListContactChannelsCommand = de_ListContactChannelsCommand;
1158
1140
  const de_ListContactChannelsCommandError = async (output, context) => {
@@ -1182,10 +1164,9 @@ const de_ListContactChannelsCommandError = async (output, context) => {
1182
1164
  throw await de_ValidationExceptionRes(parsedOutput, context);
1183
1165
  default:
1184
1166
  const parsedBody = parsedOutput.body;
1185
- (0, smithy_client_1.throwDefaultError)({
1167
+ return throwDefaultError({
1186
1168
  output,
1187
1169
  parsedBody,
1188
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1189
1170
  errorCode,
1190
1171
  });
1191
1172
  }
@@ -1196,12 +1177,12 @@ const de_ListContactsCommand = async (output, context) => {
1196
1177
  }
1197
1178
  const data = await parseBody(output.body, context);
1198
1179
  let contents = {};
1199
- contents = de_ListContactsResult(data, context);
1180
+ contents = (0, smithy_client_1._json)(data);
1200
1181
  const response = {
1201
1182
  $metadata: deserializeMetadata(output),
1202
1183
  ...contents,
1203
1184
  };
1204
- return Promise.resolve(response);
1185
+ return response;
1205
1186
  };
1206
1187
  exports.de_ListContactsCommand = de_ListContactsCommand;
1207
1188
  const de_ListContactsCommandError = async (output, context) => {
@@ -1225,10 +1206,9 @@ const de_ListContactsCommandError = async (output, context) => {
1225
1206
  throw await de_ValidationExceptionRes(parsedOutput, context);
1226
1207
  default:
1227
1208
  const parsedBody = parsedOutput.body;
1228
- (0, smithy_client_1.throwDefaultError)({
1209
+ return throwDefaultError({
1229
1210
  output,
1230
1211
  parsedBody,
1231
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1232
1212
  errorCode,
1233
1213
  });
1234
1214
  }
@@ -1244,7 +1224,7 @@ const de_ListEngagementsCommand = async (output, context) => {
1244
1224
  $metadata: deserializeMetadata(output),
1245
1225
  ...contents,
1246
1226
  };
1247
- return Promise.resolve(response);
1227
+ return response;
1248
1228
  };
1249
1229
  exports.de_ListEngagementsCommand = de_ListEngagementsCommand;
1250
1230
  const de_ListEngagementsCommandError = async (output, context) => {
@@ -1268,10 +1248,9 @@ const de_ListEngagementsCommandError = async (output, context) => {
1268
1248
  throw await de_ValidationExceptionRes(parsedOutput, context);
1269
1249
  default:
1270
1250
  const parsedBody = parsedOutput.body;
1271
- (0, smithy_client_1.throwDefaultError)({
1251
+ return throwDefaultError({
1272
1252
  output,
1273
1253
  parsedBody,
1274
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1275
1254
  errorCode,
1276
1255
  });
1277
1256
  }
@@ -1287,7 +1266,7 @@ const de_ListPageReceiptsCommand = async (output, context) => {
1287
1266
  $metadata: deserializeMetadata(output),
1288
1267
  ...contents,
1289
1268
  };
1290
- return Promise.resolve(response);
1269
+ return response;
1291
1270
  };
1292
1271
  exports.de_ListPageReceiptsCommand = de_ListPageReceiptsCommand;
1293
1272
  const de_ListPageReceiptsCommandError = async (output, context) => {
@@ -1314,10 +1293,9 @@ const de_ListPageReceiptsCommandError = async (output, context) => {
1314
1293
  throw await de_ValidationExceptionRes(parsedOutput, context);
1315
1294
  default:
1316
1295
  const parsedBody = parsedOutput.body;
1317
- (0, smithy_client_1.throwDefaultError)({
1296
+ return throwDefaultError({
1318
1297
  output,
1319
1298
  parsedBody,
1320
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1321
1299
  errorCode,
1322
1300
  });
1323
1301
  }
@@ -1328,12 +1306,12 @@ const de_ListPageResolutionsCommand = async (output, context) => {
1328
1306
  }
1329
1307
  const data = await parseBody(output.body, context);
1330
1308
  let contents = {};
1331
- contents = de_ListPageResolutionsResult(data, context);
1309
+ contents = (0, smithy_client_1._json)(data);
1332
1310
  const response = {
1333
1311
  $metadata: deserializeMetadata(output),
1334
1312
  ...contents,
1335
1313
  };
1336
- return Promise.resolve(response);
1314
+ return response;
1337
1315
  };
1338
1316
  exports.de_ListPageResolutionsCommand = de_ListPageResolutionsCommand;
1339
1317
  const de_ListPageResolutionsCommandError = async (output, context) => {
@@ -1360,10 +1338,9 @@ const de_ListPageResolutionsCommandError = async (output, context) => {
1360
1338
  throw await de_ValidationExceptionRes(parsedOutput, context);
1361
1339
  default:
1362
1340
  const parsedBody = parsedOutput.body;
1363
- (0, smithy_client_1.throwDefaultError)({
1341
+ return throwDefaultError({
1364
1342
  output,
1365
1343
  parsedBody,
1366
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1367
1344
  errorCode,
1368
1345
  });
1369
1346
  }
@@ -1379,7 +1356,7 @@ const de_ListPagesByContactCommand = async (output, context) => {
1379
1356
  $metadata: deserializeMetadata(output),
1380
1357
  ...contents,
1381
1358
  };
1382
- return Promise.resolve(response);
1359
+ return response;
1383
1360
  };
1384
1361
  exports.de_ListPagesByContactCommand = de_ListPagesByContactCommand;
1385
1362
  const de_ListPagesByContactCommandError = async (output, context) => {
@@ -1406,10 +1383,9 @@ const de_ListPagesByContactCommandError = async (output, context) => {
1406
1383
  throw await de_ValidationExceptionRes(parsedOutput, context);
1407
1384
  default:
1408
1385
  const parsedBody = parsedOutput.body;
1409
- (0, smithy_client_1.throwDefaultError)({
1386
+ return throwDefaultError({
1410
1387
  output,
1411
1388
  parsedBody,
1412
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1413
1389
  errorCode,
1414
1390
  });
1415
1391
  }
@@ -1425,7 +1401,7 @@ const de_ListPagesByEngagementCommand = async (output, context) => {
1425
1401
  $metadata: deserializeMetadata(output),
1426
1402
  ...contents,
1427
1403
  };
1428
- return Promise.resolve(response);
1404
+ return response;
1429
1405
  };
1430
1406
  exports.de_ListPagesByEngagementCommand = de_ListPagesByEngagementCommand;
1431
1407
  const de_ListPagesByEngagementCommandError = async (output, context) => {
@@ -1452,10 +1428,9 @@ const de_ListPagesByEngagementCommandError = async (output, context) => {
1452
1428
  throw await de_ValidationExceptionRes(parsedOutput, context);
1453
1429
  default:
1454
1430
  const parsedBody = parsedOutput.body;
1455
- (0, smithy_client_1.throwDefaultError)({
1431
+ return throwDefaultError({
1456
1432
  output,
1457
1433
  parsedBody,
1458
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1459
1434
  errorCode,
1460
1435
  });
1461
1436
  }
@@ -1471,7 +1446,7 @@ const de_ListPreviewRotationShiftsCommand = async (output, context) => {
1471
1446
  $metadata: deserializeMetadata(output),
1472
1447
  ...contents,
1473
1448
  };
1474
- return Promise.resolve(response);
1449
+ return response;
1475
1450
  };
1476
1451
  exports.de_ListPreviewRotationShiftsCommand = de_ListPreviewRotationShiftsCommand;
1477
1452
  const de_ListPreviewRotationShiftsCommandError = async (output, context) => {
@@ -1495,10 +1470,9 @@ const de_ListPreviewRotationShiftsCommandError = async (output, context) => {
1495
1470
  throw await de_ValidationExceptionRes(parsedOutput, context);
1496
1471
  default:
1497
1472
  const parsedBody = parsedOutput.body;
1498
- (0, smithy_client_1.throwDefaultError)({
1473
+ return throwDefaultError({
1499
1474
  output,
1500
1475
  parsedBody,
1501
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1502
1476
  errorCode,
1503
1477
  });
1504
1478
  }
@@ -1514,7 +1488,7 @@ const de_ListRotationOverridesCommand = async (output, context) => {
1514
1488
  $metadata: deserializeMetadata(output),
1515
1489
  ...contents,
1516
1490
  };
1517
- return Promise.resolve(response);
1491
+ return response;
1518
1492
  };
1519
1493
  exports.de_ListRotationOverridesCommand = de_ListRotationOverridesCommand;
1520
1494
  const de_ListRotationOverridesCommandError = async (output, context) => {
@@ -1541,10 +1515,9 @@ const de_ListRotationOverridesCommandError = async (output, context) => {
1541
1515
  throw await de_ValidationExceptionRes(parsedOutput, context);
1542
1516
  default:
1543
1517
  const parsedBody = parsedOutput.body;
1544
- (0, smithy_client_1.throwDefaultError)({
1518
+ return throwDefaultError({
1545
1519
  output,
1546
1520
  parsedBody,
1547
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1548
1521
  errorCode,
1549
1522
  });
1550
1523
  }
@@ -1560,7 +1533,7 @@ const de_ListRotationsCommand = async (output, context) => {
1560
1533
  $metadata: deserializeMetadata(output),
1561
1534
  ...contents,
1562
1535
  };
1563
- return Promise.resolve(response);
1536
+ return response;
1564
1537
  };
1565
1538
  exports.de_ListRotationsCommand = de_ListRotationsCommand;
1566
1539
  const de_ListRotationsCommandError = async (output, context) => {
@@ -1587,10 +1560,9 @@ const de_ListRotationsCommandError = async (output, context) => {
1587
1560
  throw await de_ValidationExceptionRes(parsedOutput, context);
1588
1561
  default:
1589
1562
  const parsedBody = parsedOutput.body;
1590
- (0, smithy_client_1.throwDefaultError)({
1563
+ return throwDefaultError({
1591
1564
  output,
1592
1565
  parsedBody,
1593
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1594
1566
  errorCode,
1595
1567
  });
1596
1568
  }
@@ -1606,7 +1578,7 @@ const de_ListRotationShiftsCommand = async (output, context) => {
1606
1578
  $metadata: deserializeMetadata(output),
1607
1579
  ...contents,
1608
1580
  };
1609
- return Promise.resolve(response);
1581
+ return response;
1610
1582
  };
1611
1583
  exports.de_ListRotationShiftsCommand = de_ListRotationShiftsCommand;
1612
1584
  const de_ListRotationShiftsCommandError = async (output, context) => {
@@ -1636,10 +1608,9 @@ const de_ListRotationShiftsCommandError = async (output, context) => {
1636
1608
  throw await de_ValidationExceptionRes(parsedOutput, context);
1637
1609
  default:
1638
1610
  const parsedBody = parsedOutput.body;
1639
- (0, smithy_client_1.throwDefaultError)({
1611
+ return throwDefaultError({
1640
1612
  output,
1641
1613
  parsedBody,
1642
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1643
1614
  errorCode,
1644
1615
  });
1645
1616
  }
@@ -1650,12 +1621,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1650
1621
  }
1651
1622
  const data = await parseBody(output.body, context);
1652
1623
  let contents = {};
1653
- contents = de_ListTagsForResourceResult(data, context);
1624
+ contents = (0, smithy_client_1._json)(data);
1654
1625
  const response = {
1655
1626
  $metadata: deserializeMetadata(output),
1656
1627
  ...contents,
1657
1628
  };
1658
- return Promise.resolve(response);
1629
+ return response;
1659
1630
  };
1660
1631
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1661
1632
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1682,10 +1653,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1682
1653
  throw await de_ValidationExceptionRes(parsedOutput, context);
1683
1654
  default:
1684
1655
  const parsedBody = parsedOutput.body;
1685
- (0, smithy_client_1.throwDefaultError)({
1656
+ return throwDefaultError({
1686
1657
  output,
1687
1658
  parsedBody,
1688
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1689
1659
  errorCode,
1690
1660
  });
1691
1661
  }
@@ -1696,12 +1666,12 @@ const de_PutContactPolicyCommand = async (output, context) => {
1696
1666
  }
1697
1667
  const data = await parseBody(output.body, context);
1698
1668
  let contents = {};
1699
- contents = de_PutContactPolicyResult(data, context);
1669
+ contents = (0, smithy_client_1._json)(data);
1700
1670
  const response = {
1701
1671
  $metadata: deserializeMetadata(output),
1702
1672
  ...contents,
1703
1673
  };
1704
- return Promise.resolve(response);
1674
+ return response;
1705
1675
  };
1706
1676
  exports.de_PutContactPolicyCommand = de_PutContactPolicyCommand;
1707
1677
  const de_PutContactPolicyCommandError = async (output, context) => {
@@ -1731,10 +1701,9 @@ const de_PutContactPolicyCommandError = async (output, context) => {
1731
1701
  throw await de_ValidationExceptionRes(parsedOutput, context);
1732
1702
  default:
1733
1703
  const parsedBody = parsedOutput.body;
1734
- (0, smithy_client_1.throwDefaultError)({
1704
+ return throwDefaultError({
1735
1705
  output,
1736
1706
  parsedBody,
1737
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1738
1707
  errorCode,
1739
1708
  });
1740
1709
  }
@@ -1745,12 +1714,12 @@ const de_SendActivationCodeCommand = async (output, context) => {
1745
1714
  }
1746
1715
  const data = await parseBody(output.body, context);
1747
1716
  let contents = {};
1748
- contents = de_SendActivationCodeResult(data, context);
1717
+ contents = (0, smithy_client_1._json)(data);
1749
1718
  const response = {
1750
1719
  $metadata: deserializeMetadata(output),
1751
1720
  ...contents,
1752
1721
  };
1753
- return Promise.resolve(response);
1722
+ return response;
1754
1723
  };
1755
1724
  exports.de_SendActivationCodeCommand = de_SendActivationCodeCommand;
1756
1725
  const de_SendActivationCodeCommandError = async (output, context) => {
@@ -1783,10 +1752,9 @@ const de_SendActivationCodeCommandError = async (output, context) => {
1783
1752
  throw await de_ValidationExceptionRes(parsedOutput, context);
1784
1753
  default:
1785
1754
  const parsedBody = parsedOutput.body;
1786
- (0, smithy_client_1.throwDefaultError)({
1755
+ return throwDefaultError({
1787
1756
  output,
1788
1757
  parsedBody,
1789
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1790
1758
  errorCode,
1791
1759
  });
1792
1760
  }
@@ -1797,12 +1765,12 @@ const de_StartEngagementCommand = async (output, context) => {
1797
1765
  }
1798
1766
  const data = await parseBody(output.body, context);
1799
1767
  let contents = {};
1800
- contents = de_StartEngagementResult(data, context);
1768
+ contents = (0, smithy_client_1._json)(data);
1801
1769
  const response = {
1802
1770
  $metadata: deserializeMetadata(output),
1803
1771
  ...contents,
1804
1772
  };
1805
- return Promise.resolve(response);
1773
+ return response;
1806
1774
  };
1807
1775
  exports.de_StartEngagementCommand = de_StartEngagementCommand;
1808
1776
  const de_StartEngagementCommandError = async (output, context) => {
@@ -1832,10 +1800,9 @@ const de_StartEngagementCommandError = async (output, context) => {
1832
1800
  throw await de_ValidationExceptionRes(parsedOutput, context);
1833
1801
  default:
1834
1802
  const parsedBody = parsedOutput.body;
1835
- (0, smithy_client_1.throwDefaultError)({
1803
+ return throwDefaultError({
1836
1804
  output,
1837
1805
  parsedBody,
1838
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1839
1806
  errorCode,
1840
1807
  });
1841
1808
  }
@@ -1846,12 +1813,12 @@ const de_StopEngagementCommand = async (output, context) => {
1846
1813
  }
1847
1814
  const data = await parseBody(output.body, context);
1848
1815
  let contents = {};
1849
- contents = de_StopEngagementResult(data, context);
1816
+ contents = (0, smithy_client_1._json)(data);
1850
1817
  const response = {
1851
1818
  $metadata: deserializeMetadata(output),
1852
1819
  ...contents,
1853
1820
  };
1854
- return Promise.resolve(response);
1821
+ return response;
1855
1822
  };
1856
1823
  exports.de_StopEngagementCommand = de_StopEngagementCommand;
1857
1824
  const de_StopEngagementCommandError = async (output, context) => {
@@ -1878,10 +1845,9 @@ const de_StopEngagementCommandError = async (output, context) => {
1878
1845
  throw await de_ValidationExceptionRes(parsedOutput, context);
1879
1846
  default:
1880
1847
  const parsedBody = parsedOutput.body;
1881
- (0, smithy_client_1.throwDefaultError)({
1848
+ return throwDefaultError({
1882
1849
  output,
1883
1850
  parsedBody,
1884
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1885
1851
  errorCode,
1886
1852
  });
1887
1853
  }
@@ -1892,12 +1858,12 @@ const de_TagResourceCommand = async (output, context) => {
1892
1858
  }
1893
1859
  const data = await parseBody(output.body, context);
1894
1860
  let contents = {};
1895
- contents = de_TagResourceResult(data, context);
1861
+ contents = (0, smithy_client_1._json)(data);
1896
1862
  const response = {
1897
1863
  $metadata: deserializeMetadata(output),
1898
1864
  ...contents,
1899
1865
  };
1900
- return Promise.resolve(response);
1866
+ return response;
1901
1867
  };
1902
1868
  exports.de_TagResourceCommand = de_TagResourceCommand;
1903
1869
  const de_TagResourceCommandError = async (output, context) => {
@@ -1927,10 +1893,9 @@ const de_TagResourceCommandError = async (output, context) => {
1927
1893
  throw await de_ValidationExceptionRes(parsedOutput, context);
1928
1894
  default:
1929
1895
  const parsedBody = parsedOutput.body;
1930
- (0, smithy_client_1.throwDefaultError)({
1896
+ return throwDefaultError({
1931
1897
  output,
1932
1898
  parsedBody,
1933
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1934
1899
  errorCode,
1935
1900
  });
1936
1901
  }
@@ -1941,12 +1906,12 @@ const de_UntagResourceCommand = async (output, context) => {
1941
1906
  }
1942
1907
  const data = await parseBody(output.body, context);
1943
1908
  let contents = {};
1944
- contents = de_UntagResourceResult(data, context);
1909
+ contents = (0, smithy_client_1._json)(data);
1945
1910
  const response = {
1946
1911
  $metadata: deserializeMetadata(output),
1947
1912
  ...contents,
1948
1913
  };
1949
- return Promise.resolve(response);
1914
+ return response;
1950
1915
  };
1951
1916
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1952
1917
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1973,10 +1938,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1973
1938
  throw await de_ValidationExceptionRes(parsedOutput, context);
1974
1939
  default:
1975
1940
  const parsedBody = parsedOutput.body;
1976
- (0, smithy_client_1.throwDefaultError)({
1941
+ return throwDefaultError({
1977
1942
  output,
1978
1943
  parsedBody,
1979
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1980
1944
  errorCode,
1981
1945
  });
1982
1946
  }
@@ -1987,12 +1951,12 @@ const de_UpdateContactCommand = async (output, context) => {
1987
1951
  }
1988
1952
  const data = await parseBody(output.body, context);
1989
1953
  let contents = {};
1990
- contents = de_UpdateContactResult(data, context);
1954
+ contents = (0, smithy_client_1._json)(data);
1991
1955
  const response = {
1992
1956
  $metadata: deserializeMetadata(output),
1993
1957
  ...contents,
1994
1958
  };
1995
- return Promise.resolve(response);
1959
+ return response;
1996
1960
  };
1997
1961
  exports.de_UpdateContactCommand = de_UpdateContactCommand;
1998
1962
  const de_UpdateContactCommandError = async (output, context) => {
@@ -2025,10 +1989,9 @@ const de_UpdateContactCommandError = async (output, context) => {
2025
1989
  throw await de_ValidationExceptionRes(parsedOutput, context);
2026
1990
  default:
2027
1991
  const parsedBody = parsedOutput.body;
2028
- (0, smithy_client_1.throwDefaultError)({
1992
+ return throwDefaultError({
2029
1993
  output,
2030
1994
  parsedBody,
2031
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
2032
1995
  errorCode,
2033
1996
  });
2034
1997
  }
@@ -2039,12 +2002,12 @@ const de_UpdateContactChannelCommand = async (output, context) => {
2039
2002
  }
2040
2003
  const data = await parseBody(output.body, context);
2041
2004
  let contents = {};
2042
- contents = de_UpdateContactChannelResult(data, context);
2005
+ contents = (0, smithy_client_1._json)(data);
2043
2006
  const response = {
2044
2007
  $metadata: deserializeMetadata(output),
2045
2008
  ...contents,
2046
2009
  };
2047
- return Promise.resolve(response);
2010
+ return response;
2048
2011
  };
2049
2012
  exports.de_UpdateContactChannelCommand = de_UpdateContactChannelCommand;
2050
2013
  const de_UpdateContactChannelCommandError = async (output, context) => {
@@ -2077,10 +2040,9 @@ const de_UpdateContactChannelCommandError = async (output, context) => {
2077
2040
  throw await de_ValidationExceptionRes(parsedOutput, context);
2078
2041
  default:
2079
2042
  const parsedBody = parsedOutput.body;
2080
- (0, smithy_client_1.throwDefaultError)({
2043
+ return throwDefaultError({
2081
2044
  output,
2082
2045
  parsedBody,
2083
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
2084
2046
  errorCode,
2085
2047
  });
2086
2048
  }
@@ -2091,12 +2053,12 @@ const de_UpdateRotationCommand = async (output, context) => {
2091
2053
  }
2092
2054
  const data = await parseBody(output.body, context);
2093
2055
  let contents = {};
2094
- contents = de_UpdateRotationResult(data, context);
2056
+ contents = (0, smithy_client_1._json)(data);
2095
2057
  const response = {
2096
2058
  $metadata: deserializeMetadata(output),
2097
2059
  ...contents,
2098
2060
  };
2099
- return Promise.resolve(response);
2061
+ return response;
2100
2062
  };
2101
2063
  exports.de_UpdateRotationCommand = de_UpdateRotationCommand;
2102
2064
  const de_UpdateRotationCommandError = async (output, context) => {
@@ -2126,17 +2088,16 @@ const de_UpdateRotationCommandError = async (output, context) => {
2126
2088
  throw await de_ValidationExceptionRes(parsedOutput, context);
2127
2089
  default:
2128
2090
  const parsedBody = parsedOutput.body;
2129
- (0, smithy_client_1.throwDefaultError)({
2091
+ return throwDefaultError({
2130
2092
  output,
2131
2093
  parsedBody,
2132
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
2133
2094
  errorCode,
2134
2095
  });
2135
2096
  }
2136
2097
  };
2137
2098
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2138
2099
  const body = parsedOutput.body;
2139
- const deserialized = de_AccessDeniedException(body, context);
2100
+ const deserialized = (0, smithy_client_1._json)(body);
2140
2101
  const exception = new models_0_1.AccessDeniedException({
2141
2102
  $metadata: deserializeMetadata(parsedOutput),
2142
2103
  ...deserialized,
@@ -2145,7 +2106,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2145
2106
  };
2146
2107
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
2147
2108
  const body = parsedOutput.body;
2148
- const deserialized = de_ConflictException(body, context);
2109
+ const deserialized = (0, smithy_client_1._json)(body);
2149
2110
  const exception = new models_0_1.ConflictException({
2150
2111
  $metadata: deserializeMetadata(parsedOutput),
2151
2112
  ...deserialized,
@@ -2154,7 +2115,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2154
2115
  };
2155
2116
  const de_DataEncryptionExceptionRes = async (parsedOutput, context) => {
2156
2117
  const body = parsedOutput.body;
2157
- const deserialized = de_DataEncryptionException(body, context);
2118
+ const deserialized = (0, smithy_client_1._json)(body);
2158
2119
  const exception = new models_0_1.DataEncryptionException({
2159
2120
  $metadata: deserializeMetadata(parsedOutput),
2160
2121
  ...deserialized,
@@ -2163,7 +2124,7 @@ const de_DataEncryptionExceptionRes = async (parsedOutput, context) => {
2163
2124
  };
2164
2125
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2165
2126
  const body = parsedOutput.body;
2166
- const deserialized = de_InternalServerException(body, context);
2127
+ const deserialized = (0, smithy_client_1._json)(body);
2167
2128
  const exception = new models_0_1.InternalServerException({
2168
2129
  $metadata: deserializeMetadata(parsedOutput),
2169
2130
  ...deserialized,
@@ -2172,7 +2133,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2172
2133
  };
2173
2134
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2174
2135
  const body = parsedOutput.body;
2175
- const deserialized = de_ResourceNotFoundException(body, context);
2136
+ const deserialized = (0, smithy_client_1._json)(body);
2176
2137
  const exception = new models_0_1.ResourceNotFoundException({
2177
2138
  $metadata: deserializeMetadata(parsedOutput),
2178
2139
  ...deserialized,
@@ -2181,7 +2142,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2181
2142
  };
2182
2143
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2183
2144
  const body = parsedOutput.body;
2184
- const deserialized = de_ServiceQuotaExceededException(body, context);
2145
+ const deserialized = (0, smithy_client_1._json)(body);
2185
2146
  const exception = new models_0_1.ServiceQuotaExceededException({
2186
2147
  $metadata: deserializeMetadata(parsedOutput),
2187
2148
  ...deserialized,
@@ -2190,7 +2151,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2190
2151
  };
2191
2152
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2192
2153
  const body = parsedOutput.body;
2193
- const deserialized = de_ThrottlingException(body, context);
2154
+ const deserialized = (0, smithy_client_1._json)(body);
2194
2155
  const exception = new models_0_1.ThrottlingException({
2195
2156
  $metadata: deserializeMetadata(parsedOutput),
2196
2157
  ...deserialized,
@@ -2199,975 +2160,308 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2199
2160
  };
2200
2161
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
2201
2162
  const body = parsedOutput.body;
2202
- const deserialized = de_ValidationException(body, context);
2163
+ const deserialized = (0, smithy_client_1._json)(body);
2203
2164
  const exception = new models_0_1.ValidationException({
2204
2165
  $metadata: deserializeMetadata(parsedOutput),
2205
2166
  ...deserialized,
2206
2167
  });
2207
2168
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2208
2169
  };
2209
- const se_AcceptPageRequest = (input, context) => {
2210
- return {
2211
- ...(input.AcceptCode != null && { AcceptCode: input.AcceptCode }),
2212
- ...(input.AcceptCodeValidation != null && { AcceptCodeValidation: input.AcceptCodeValidation }),
2213
- ...(input.AcceptType != null && { AcceptType: input.AcceptType }),
2214
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2215
- ...(input.Note != null && { Note: input.Note }),
2216
- ...(input.PageId != null && { PageId: input.PageId }),
2217
- };
2218
- };
2219
- const se_ActivateContactChannelRequest = (input, context) => {
2220
- return {
2221
- ...(input.ActivationCode != null && { ActivationCode: input.ActivationCode }),
2222
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2223
- };
2224
- };
2225
- const se_ChannelTargetInfo = (input, context) => {
2226
- return {
2227
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2228
- ...(input.RetryIntervalInMinutes != null && { RetryIntervalInMinutes: input.RetryIntervalInMinutes }),
2229
- };
2230
- };
2231
- const se_ContactChannelAddress = (input, context) => {
2232
- return {
2233
- ...(input.SimpleAddress != null && { SimpleAddress: input.SimpleAddress }),
2234
- };
2235
- };
2236
- const se_ContactTargetInfo = (input, context) => {
2237
- return {
2238
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2239
- ...(input.IsEssential != null && { IsEssential: input.IsEssential }),
2240
- };
2241
- };
2242
- const se_CoverageTime = (input, context) => {
2243
- return {
2244
- ...(input.End != null && { End: se_HandOffTime(input.End, context) }),
2245
- ...(input.Start != null && { Start: se_HandOffTime(input.Start, context) }),
2246
- };
2247
- };
2248
- const se_CoverageTimes = (input, context) => {
2249
- return input
2250
- .filter((e) => e != null)
2251
- .map((entry) => {
2252
- return se_CoverageTime(entry, context);
2253
- });
2254
- };
2255
2170
  const se_CreateContactChannelRequest = (input, context) => {
2256
- return {
2257
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2258
- ...(input.DeferActivation != null && { DeferActivation: input.DeferActivation }),
2259
- ...(input.DeliveryAddress != null && { DeliveryAddress: se_ContactChannelAddress(input.DeliveryAddress, context) }),
2260
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2261
- ...(input.Name != null && { Name: input.Name }),
2262
- ...(input.Type != null && { Type: input.Type }),
2263
- };
2264
- };
2265
- const se_CreateContactRequest = (input, context) => {
2266
- return {
2267
- ...(input.Alias != null && { Alias: input.Alias }),
2268
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
2269
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2270
- ...(input.Plan != null && { Plan: se_Plan(input.Plan, context) }),
2271
- ...(input.Tags != null && { Tags: se_TagsList(input.Tags, context) }),
2272
- ...(input.Type != null && { Type: input.Type }),
2273
- };
2274
- };
2275
- const se_CreateRotationOverrideRequest = (input, context) => {
2276
- return {
2277
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2278
- ...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
2279
- ...(input.NewContactIds != null && {
2280
- NewContactIds: se_RotationOverrideContactsArnList(input.NewContactIds, context),
2281
- }),
2282
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2283
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2284
- };
2285
- };
2286
- const se_CreateRotationRequest = (input, context) => {
2287
- return {
2288
- ...(input.ContactIds != null && { ContactIds: se_RotationContactsArnList(input.ContactIds, context) }),
2289
- ...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
2290
- ...(input.Name != null && { Name: input.Name }),
2291
- ...(input.Recurrence != null && { Recurrence: se_RecurrenceSettings(input.Recurrence, context) }),
2292
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2293
- ...(input.Tags != null && { Tags: se_TagsList(input.Tags, context) }),
2294
- ...(input.TimeZoneId != null && { TimeZoneId: input.TimeZoneId }),
2295
- };
2296
- };
2297
- const se_DailySettings = (input, context) => {
2298
- return input
2299
- .filter((e) => e != null)
2300
- .map((entry) => {
2301
- return se_HandOffTime(entry, context);
2302
- });
2303
- };
2304
- const se_DeactivateContactChannelRequest = (input, context) => {
2305
- return {
2306
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2307
- };
2308
- };
2309
- const se_DeleteContactChannelRequest = (input, context) => {
2310
- return {
2311
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2312
- };
2313
- };
2314
- const se_DeleteContactRequest = (input, context) => {
2315
- return {
2316
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2317
- };
2318
- };
2319
- const se_DeleteRotationOverrideRequest = (input, context) => {
2320
- return {
2321
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2322
- ...(input.RotationOverrideId != null && { RotationOverrideId: input.RotationOverrideId }),
2323
- };
2324
- };
2325
- const se_DeleteRotationRequest = (input, context) => {
2326
- return {
2327
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2328
- };
2329
- };
2330
- const se_DescribeEngagementRequest = (input, context) => {
2331
- return {
2332
- ...(input.EngagementId != null && { EngagementId: input.EngagementId }),
2333
- };
2334
- };
2335
- const se_DescribePageRequest = (input, context) => {
2336
- return {
2337
- ...(input.PageId != null && { PageId: input.PageId }),
2338
- };
2339
- };
2340
- const se_GetContactChannelRequest = (input, context) => {
2341
- return {
2342
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2343
- };
2344
- };
2345
- const se_GetContactPolicyRequest = (input, context) => {
2346
- return {
2347
- ...(input.ContactArn != null && { ContactArn: input.ContactArn }),
2348
- };
2349
- };
2350
- const se_GetContactRequest = (input, context) => {
2351
- return {
2352
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2353
- };
2354
- };
2355
- const se_GetRotationOverrideRequest = (input, context) => {
2356
- return {
2357
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2358
- ...(input.RotationOverrideId != null && { RotationOverrideId: input.RotationOverrideId }),
2359
- };
2360
- };
2361
- const se_GetRotationRequest = (input, context) => {
2362
- return {
2363
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2364
- };
2365
- };
2366
- const se_HandOffTime = (input, context) => {
2367
- return {
2368
- ...(input.HourOfDay != null && { HourOfDay: input.HourOfDay }),
2369
- ...(input.MinuteOfHour != null && { MinuteOfHour: input.MinuteOfHour }),
2370
- };
2371
- };
2372
- const se_ListContactChannelsRequest = (input, context) => {
2373
- return {
2374
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2375
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2376
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2377
- };
2378
- };
2379
- const se_ListContactsRequest = (input, context) => {
2380
- return {
2381
- ...(input.AliasPrefix != null && { AliasPrefix: input.AliasPrefix }),
2382
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2383
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2384
- ...(input.Type != null && { Type: input.Type }),
2385
- };
2386
- };
2387
- const se_ListEngagementsRequest = (input, context) => {
2388
- return {
2389
- ...(input.IncidentId != null && { IncidentId: input.IncidentId }),
2390
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2391
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2392
- ...(input.TimeRangeValue != null && { TimeRangeValue: se_TimeRange(input.TimeRangeValue, context) }),
2393
- };
2394
- };
2395
- const se_ListPageReceiptsRequest = (input, context) => {
2396
- return {
2397
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2398
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2399
- ...(input.PageId != null && { PageId: input.PageId }),
2400
- };
2401
- };
2402
- const se_ListPageResolutionsRequest = (input, context) => {
2403
- return {
2404
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2405
- ...(input.PageId != null && { PageId: input.PageId }),
2406
- };
2407
- };
2408
- const se_ListPagesByContactRequest = (input, context) => {
2409
- return {
2410
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2411
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2412
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2413
- };
2414
- };
2415
- const se_ListPagesByEngagementRequest = (input, context) => {
2416
- return {
2417
- ...(input.EngagementId != null && { EngagementId: input.EngagementId }),
2418
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2419
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2420
- };
2421
- };
2422
- const se_ListPreviewRotationShiftsRequest = (input, context) => {
2423
- return {
2424
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2425
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2426
- ...(input.Members != null && { Members: se_RotationPreviewMemberList(input.Members, context) }),
2427
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2428
- ...(input.Overrides != null && { Overrides: se_OverrideList(input.Overrides, context) }),
2429
- ...(input.Recurrence != null && { Recurrence: se_RecurrenceSettings(input.Recurrence, context) }),
2430
- ...(input.RotationStartTime != null && { RotationStartTime: Math.round(input.RotationStartTime.getTime() / 1000) }),
2431
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2432
- ...(input.TimeZoneId != null && { TimeZoneId: input.TimeZoneId }),
2433
- };
2434
- };
2435
- const se_ListRotationOverridesRequest = (input, context) => {
2436
- return {
2437
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2438
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2439
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2440
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2441
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2442
- };
2443
- };
2444
- const se_ListRotationShiftsRequest = (input, context) => {
2445
- return {
2446
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2447
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2448
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2449
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2450
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2451
- };
2452
- };
2453
- const se_ListRotationsRequest = (input, context) => {
2454
- return {
2455
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2456
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2457
- ...(input.RotationNamePrefix != null && { RotationNamePrefix: input.RotationNamePrefix }),
2458
- };
2459
- };
2460
- const se_ListTagsForResourceRequest = (input, context) => {
2461
- return {
2462
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
2463
- };
2464
- };
2465
- const se_MonthlySetting = (input, context) => {
2466
- return {
2467
- ...(input.DayOfMonth != null && { DayOfMonth: input.DayOfMonth }),
2468
- ...(input.HandOffTime != null && { HandOffTime: se_HandOffTime(input.HandOffTime, context) }),
2469
- };
2470
- };
2471
- const se_MonthlySettings = (input, context) => {
2472
- return input
2473
- .filter((e) => e != null)
2474
- .map((entry) => {
2475
- return se_MonthlySetting(entry, context);
2476
- });
2477
- };
2478
- const se_OverrideList = (input, context) => {
2479
- return input
2480
- .filter((e) => e != null)
2481
- .map((entry) => {
2482
- return se_PreviewOverride(entry, context);
2483
- });
2484
- };
2485
- const se_Plan = (input, context) => {
2486
- return {
2487
- ...(input.RotationIds != null && { RotationIds: se_SsmContactsArnList(input.RotationIds, context) }),
2488
- ...(input.Stages != null && { Stages: se_StagesList(input.Stages, context) }),
2489
- };
2490
- };
2491
- const se_PreviewOverride = (input, context) => {
2492
- return {
2493
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2494
- ...(input.NewMembers != null && { NewMembers: se_RotationOverridePreviewMemberList(input.NewMembers, context) }),
2495
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2496
- };
2497
- };
2498
- const se_PutContactPolicyRequest = (input, context) => {
2499
- return {
2500
- ...(input.ContactArn != null && { ContactArn: input.ContactArn }),
2501
- ...(input.Policy != null && { Policy: input.Policy }),
2502
- };
2503
- };
2504
- const se_RecurrenceSettings = (input, context) => {
2505
- return {
2506
- ...(input.DailySettings != null && { DailySettings: se_DailySettings(input.DailySettings, context) }),
2507
- ...(input.MonthlySettings != null && { MonthlySettings: se_MonthlySettings(input.MonthlySettings, context) }),
2508
- ...(input.NumberOfOnCalls != null && { NumberOfOnCalls: input.NumberOfOnCalls }),
2509
- ...(input.RecurrenceMultiplier != null && { RecurrenceMultiplier: input.RecurrenceMultiplier }),
2510
- ...(input.ShiftCoverages != null && { ShiftCoverages: se_ShiftCoveragesMap(input.ShiftCoverages, context) }),
2511
- ...(input.WeeklySettings != null && { WeeklySettings: se_WeeklySettings(input.WeeklySettings, context) }),
2512
- };
2513
- };
2514
- const se_RotationContactsArnList = (input, context) => {
2515
- return input
2516
- .filter((e) => e != null)
2517
- .map((entry) => {
2518
- return entry;
2519
- });
2520
- };
2521
- const se_RotationOverrideContactsArnList = (input, context) => {
2522
- return input
2523
- .filter((e) => e != null)
2524
- .map((entry) => {
2525
- return entry;
2526
- });
2527
- };
2528
- const se_RotationOverridePreviewMemberList = (input, context) => {
2529
- return input
2530
- .filter((e) => e != null)
2531
- .map((entry) => {
2532
- return entry;
2533
- });
2534
- };
2535
- const se_RotationPreviewMemberList = (input, context) => {
2536
- return input
2537
- .filter((e) => e != null)
2538
- .map((entry) => {
2539
- return entry;
2540
- });
2541
- };
2542
- const se_SendActivationCodeRequest = (input, context) => {
2543
- return {
2544
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2545
- };
2546
- };
2547
- const se_ShiftCoveragesMap = (input, context) => {
2548
- return Object.entries(input).reduce((acc, [key, value]) => {
2549
- if (value === null) {
2550
- return acc;
2551
- }
2552
- acc[key] = se_CoverageTimes(value, context);
2553
- return acc;
2554
- }, {});
2555
- };
2556
- const se_SsmContactsArnList = (input, context) => {
2557
- return input
2558
- .filter((e) => e != null)
2559
- .map((entry) => {
2560
- return entry;
2561
- });
2562
- };
2563
- const se_Stage = (input, context) => {
2564
- return {
2565
- ...(input.DurationInMinutes != null && { DurationInMinutes: input.DurationInMinutes }),
2566
- ...(input.Targets != null && { Targets: se_TargetsList(input.Targets, context) }),
2567
- };
2568
- };
2569
- const se_StagesList = (input, context) => {
2570
- return input
2571
- .filter((e) => e != null)
2572
- .map((entry) => {
2573
- return se_Stage(entry, context);
2574
- });
2575
- };
2576
- const se_StartEngagementRequest = (input, context) => {
2577
- return {
2578
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2579
- ...(input.Content != null && { Content: input.Content }),
2580
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2581
- ...(input.IncidentId != null && { IncidentId: input.IncidentId }),
2582
- ...(input.PublicContent != null && { PublicContent: input.PublicContent }),
2583
- ...(input.PublicSubject != null && { PublicSubject: input.PublicSubject }),
2584
- ...(input.Sender != null && { Sender: input.Sender }),
2585
- ...(input.Subject != null && { Subject: input.Subject }),
2586
- };
2587
- };
2588
- const se_StopEngagementRequest = (input, context) => {
2589
- return {
2590
- ...(input.EngagementId != null && { EngagementId: input.EngagementId }),
2591
- ...(input.Reason != null && { Reason: input.Reason }),
2592
- };
2593
- };
2594
- const se_Tag = (input, context) => {
2595
- return {
2596
- ...(input.Key != null && { Key: input.Key }),
2597
- ...(input.Value != null && { Value: input.Value }),
2598
- };
2599
- };
2600
- const se_TagKeyList = (input, context) => {
2601
- return input
2602
- .filter((e) => e != null)
2603
- .map((entry) => {
2604
- return entry;
2605
- });
2606
- };
2607
- const se_TagResourceRequest = (input, context) => {
2608
- return {
2609
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
2610
- ...(input.Tags != null && { Tags: se_TagsList(input.Tags, context) }),
2611
- };
2612
- };
2613
- const se_TagsList = (input, context) => {
2614
- return input
2615
- .filter((e) => e != null)
2616
- .map((entry) => {
2617
- return se_Tag(entry, context);
2618
- });
2619
- };
2620
- const se_Target = (input, context) => {
2621
- return {
2622
- ...(input.ChannelTargetInfo != null && {
2623
- ChannelTargetInfo: se_ChannelTargetInfo(input.ChannelTargetInfo, context),
2624
- }),
2625
- ...(input.ContactTargetInfo != null && {
2626
- ContactTargetInfo: se_ContactTargetInfo(input.ContactTargetInfo, context),
2627
- }),
2628
- };
2629
- };
2630
- const se_TargetsList = (input, context) => {
2631
- return input
2632
- .filter((e) => e != null)
2633
- .map((entry) => {
2634
- return se_Target(entry, context);
2635
- });
2636
- };
2637
- const se_TimeRange = (input, context) => {
2638
- return {
2639
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2640
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2641
- };
2642
- };
2643
- const se_UntagResourceRequest = (input, context) => {
2644
- return {
2645
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
2646
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
2647
- };
2648
- };
2649
- const se_UpdateContactChannelRequest = (input, context) => {
2650
- return {
2651
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2652
- ...(input.DeliveryAddress != null && { DeliveryAddress: se_ContactChannelAddress(input.DeliveryAddress, context) }),
2653
- ...(input.Name != null && { Name: input.Name }),
2654
- };
2655
- };
2656
- const se_UpdateContactRequest = (input, context) => {
2657
- return {
2658
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2659
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
2660
- ...(input.Plan != null && { Plan: se_Plan(input.Plan, context) }),
2661
- };
2662
- };
2663
- const se_UpdateRotationRequest = (input, context) => {
2664
- return {
2665
- ...(input.ContactIds != null && { ContactIds: se_RotationContactsArnList(input.ContactIds, context) }),
2666
- ...(input.Recurrence != null && { Recurrence: se_RecurrenceSettings(input.Recurrence, context) }),
2667
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2668
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2669
- ...(input.TimeZoneId != null && { TimeZoneId: input.TimeZoneId }),
2670
- };
2671
- };
2672
- const se_WeeklySetting = (input, context) => {
2673
- return {
2674
- ...(input.DayOfWeek != null && { DayOfWeek: input.DayOfWeek }),
2675
- ...(input.HandOffTime != null && { HandOffTime: se_HandOffTime(input.HandOffTime, context) }),
2676
- };
2677
- };
2678
- const se_WeeklySettings = (input, context) => {
2679
- return input
2680
- .filter((e) => e != null)
2681
- .map((entry) => {
2682
- return se_WeeklySetting(entry, context);
2683
- });
2684
- };
2685
- const de_AcceptPageResult = (output, context) => {
2686
- return {};
2687
- };
2688
- const de_AccessDeniedException = (output, context) => {
2689
- return {
2690
- Message: (0, smithy_client_1.expectString)(output.Message),
2691
- };
2692
- };
2693
- const de_ActivateContactChannelResult = (output, context) => {
2694
- return {};
2695
- };
2696
- const de_ChannelTargetInfo = (output, context) => {
2697
- return {
2698
- ContactChannelId: (0, smithy_client_1.expectString)(output.ContactChannelId),
2699
- RetryIntervalInMinutes: (0, smithy_client_1.expectInt32)(output.RetryIntervalInMinutes),
2700
- };
2701
- };
2702
- const de_ConflictException = (output, context) => {
2703
- return {
2704
- DependentEntities: output.DependentEntities != null ? de_DependentEntityList(output.DependentEntities, context) : undefined,
2705
- Message: (0, smithy_client_1.expectString)(output.Message),
2706
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
2707
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
2708
- };
2709
- };
2710
- const de_Contact = (output, context) => {
2711
- return {
2712
- Alias: (0, smithy_client_1.expectString)(output.Alias),
2713
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2714
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
2715
- Type: (0, smithy_client_1.expectString)(output.Type),
2716
- };
2717
- };
2718
- const de_ContactChannel = (output, context) => {
2719
- return {
2720
- ActivationStatus: (0, smithy_client_1.expectString)(output.ActivationStatus),
2721
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2722
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
2723
- DeliveryAddress: output.DeliveryAddress != null ? de_ContactChannelAddress(output.DeliveryAddress, context) : undefined,
2724
- Name: (0, smithy_client_1.expectString)(output.Name),
2725
- Type: (0, smithy_client_1.expectString)(output.Type),
2726
- };
2727
- };
2728
- const de_ContactChannelAddress = (output, context) => {
2729
- return {
2730
- SimpleAddress: (0, smithy_client_1.expectString)(output.SimpleAddress),
2731
- };
2732
- };
2733
- const de_ContactChannelList = (output, context) => {
2734
- const retVal = (output || [])
2735
- .filter((e) => e != null)
2736
- .map((entry) => {
2737
- if (entry === null) {
2738
- return null;
2739
- }
2740
- return de_ContactChannel(entry, context);
2171
+ return (0, smithy_client_1.take)(input, {
2172
+ ContactId: [],
2173
+ DeferActivation: [],
2174
+ DeliveryAddress: smithy_client_1._json,
2175
+ IdempotencyToken: (_) => _ ?? (0, uuid_1.v4)(),
2176
+ Name: [],
2177
+ Type: [],
2741
2178
  });
2742
- return retVal;
2743
- };
2744
- const de_ContactsList = (output, context) => {
2745
- const retVal = (output || [])
2746
- .filter((e) => e != null)
2747
- .map((entry) => {
2748
- if (entry === null) {
2749
- return null;
2750
- }
2751
- return de_Contact(entry, context);
2752
- });
2753
- return retVal;
2754
2179
  };
2755
- const de_ContactTargetInfo = (output, context) => {
2756
- return {
2757
- ContactId: (0, smithy_client_1.expectString)(output.ContactId),
2758
- IsEssential: (0, smithy_client_1.expectBoolean)(output.IsEssential),
2759
- };
2760
- };
2761
- const de_CoverageTime = (output, context) => {
2762
- return {
2763
- End: output.End != null ? de_HandOffTime(output.End, context) : undefined,
2764
- Start: output.Start != null ? de_HandOffTime(output.Start, context) : undefined,
2765
- };
2766
- };
2767
- const de_CoverageTimes = (output, context) => {
2768
- const retVal = (output || [])
2769
- .filter((e) => e != null)
2770
- .map((entry) => {
2771
- if (entry === null) {
2772
- return null;
2773
- }
2774
- return de_CoverageTime(entry, context);
2180
+ const se_CreateContactRequest = (input, context) => {
2181
+ return (0, smithy_client_1.take)(input, {
2182
+ Alias: [],
2183
+ DisplayName: [],
2184
+ IdempotencyToken: (_) => _ ?? (0, uuid_1.v4)(),
2185
+ Plan: smithy_client_1._json,
2186
+ Tags: smithy_client_1._json,
2187
+ Type: [],
2775
2188
  });
2776
- return retVal;
2777
- };
2778
- const de_CreateContactChannelResult = (output, context) => {
2779
- return {
2780
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
2781
- };
2782
- };
2783
- const de_CreateContactResult = (output, context) => {
2784
- return {
2785
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2786
- };
2787
2189
  };
2788
- const de_CreateRotationOverrideResult = (output, context) => {
2789
- return {
2790
- RotationOverrideId: (0, smithy_client_1.expectString)(output.RotationOverrideId),
2791
- };
2190
+ const se_CreateRotationOverrideRequest = (input, context) => {
2191
+ return (0, smithy_client_1.take)(input, {
2192
+ EndTime: (_) => Math.round(_.getTime() / 1000),
2193
+ IdempotencyToken: [],
2194
+ NewContactIds: smithy_client_1._json,
2195
+ RotationId: [],
2196
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2197
+ });
2792
2198
  };
2793
- const de_CreateRotationResult = (output, context) => {
2794
- return {
2795
- RotationArn: (0, smithy_client_1.expectString)(output.RotationArn),
2796
- };
2199
+ const se_CreateRotationRequest = (input, context) => {
2200
+ return (0, smithy_client_1.take)(input, {
2201
+ ContactIds: smithy_client_1._json,
2202
+ IdempotencyToken: [],
2203
+ Name: [],
2204
+ Recurrence: smithy_client_1._json,
2205
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2206
+ Tags: smithy_client_1._json,
2207
+ TimeZoneId: [],
2208
+ });
2797
2209
  };
2798
- const de_DailySettings = (output, context) => {
2799
- const retVal = (output || [])
2800
- .filter((e) => e != null)
2801
- .map((entry) => {
2802
- if (entry === null) {
2803
- return null;
2804
- }
2805
- return de_HandOffTime(entry, context);
2210
+ const se_ListEngagementsRequest = (input, context) => {
2211
+ return (0, smithy_client_1.take)(input, {
2212
+ IncidentId: [],
2213
+ MaxResults: [],
2214
+ NextToken: [],
2215
+ TimeRangeValue: (_) => se_TimeRange(_, context),
2806
2216
  });
2807
- return retVal;
2808
2217
  };
2809
- const de_DataEncryptionException = (output, context) => {
2810
- return {
2811
- Message: (0, smithy_client_1.expectString)(output.Message),
2812
- };
2218
+ const se_ListPreviewRotationShiftsRequest = (input, context) => {
2219
+ return (0, smithy_client_1.take)(input, {
2220
+ EndTime: (_) => Math.round(_.getTime() / 1000),
2221
+ MaxResults: [],
2222
+ Members: smithy_client_1._json,
2223
+ NextToken: [],
2224
+ Overrides: (_) => se_OverrideList(_, context),
2225
+ Recurrence: smithy_client_1._json,
2226
+ RotationStartTime: (_) => Math.round(_.getTime() / 1000),
2227
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2228
+ TimeZoneId: [],
2229
+ });
2813
2230
  };
2814
- const de_DeactivateContactChannelResult = (output, context) => {
2815
- return {};
2231
+ const se_ListRotationOverridesRequest = (input, context) => {
2232
+ return (0, smithy_client_1.take)(input, {
2233
+ EndTime: (_) => Math.round(_.getTime() / 1000),
2234
+ MaxResults: [],
2235
+ NextToken: [],
2236
+ RotationId: [],
2237
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2238
+ });
2816
2239
  };
2817
- const de_DeleteContactChannelResult = (output, context) => {
2818
- return {};
2240
+ const se_ListRotationShiftsRequest = (input, context) => {
2241
+ return (0, smithy_client_1.take)(input, {
2242
+ EndTime: (_) => Math.round(_.getTime() / 1000),
2243
+ MaxResults: [],
2244
+ NextToken: [],
2245
+ RotationId: [],
2246
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2247
+ });
2819
2248
  };
2820
- const de_DeleteContactResult = (output, context) => {
2821
- return {};
2249
+ const se_OverrideList = (input, context) => {
2250
+ return input
2251
+ .filter((e) => e != null)
2252
+ .map((entry) => {
2253
+ return se_PreviewOverride(entry, context);
2254
+ });
2822
2255
  };
2823
- const de_DeleteRotationOverrideResult = (output, context) => {
2824
- return {};
2256
+ const se_PreviewOverride = (input, context) => {
2257
+ return (0, smithy_client_1.take)(input, {
2258
+ EndTime: (_) => Math.round(_.getTime() / 1000),
2259
+ NewMembers: smithy_client_1._json,
2260
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2261
+ });
2825
2262
  };
2826
- const de_DeleteRotationResult = (output, context) => {
2827
- return {};
2263
+ const se_StartEngagementRequest = (input, context) => {
2264
+ return (0, smithy_client_1.take)(input, {
2265
+ ContactId: [],
2266
+ Content: [],
2267
+ IdempotencyToken: (_) => _ ?? (0, uuid_1.v4)(),
2268
+ IncidentId: [],
2269
+ PublicContent: [],
2270
+ PublicSubject: [],
2271
+ Sender: [],
2272
+ Subject: [],
2273
+ });
2828
2274
  };
2829
- const de_DependentEntity = (output, context) => {
2830
- return {
2831
- DependentResourceIds: output.DependentResourceIds != null ? de_SsmContactsArnList(output.DependentResourceIds, context) : undefined,
2832
- RelationType: (0, smithy_client_1.expectString)(output.RelationType),
2833
- };
2275
+ const se_TimeRange = (input, context) => {
2276
+ return (0, smithy_client_1.take)(input, {
2277
+ EndTime: (_) => Math.round(_.getTime() / 1000),
2278
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2279
+ });
2834
2280
  };
2835
- const de_DependentEntityList = (output, context) => {
2836
- const retVal = (output || [])
2837
- .filter((e) => e != null)
2838
- .map((entry) => {
2839
- if (entry === null) {
2840
- return null;
2841
- }
2842
- return de_DependentEntity(entry, context);
2281
+ const se_UpdateRotationRequest = (input, context) => {
2282
+ return (0, smithy_client_1.take)(input, {
2283
+ ContactIds: smithy_client_1._json,
2284
+ Recurrence: smithy_client_1._json,
2285
+ RotationId: [],
2286
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2287
+ TimeZoneId: [],
2843
2288
  });
2844
- return retVal;
2845
2289
  };
2846
2290
  const de_DescribeEngagementResult = (output, context) => {
2847
- return {
2848
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2849
- Content: (0, smithy_client_1.expectString)(output.Content),
2850
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
2851
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
2852
- PublicContent: (0, smithy_client_1.expectString)(output.PublicContent),
2853
- PublicSubject: (0, smithy_client_1.expectString)(output.PublicSubject),
2854
- Sender: (0, smithy_client_1.expectString)(output.Sender),
2855
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2856
- StopTime: output.StopTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StopTime))) : undefined,
2857
- Subject: (0, smithy_client_1.expectString)(output.Subject),
2858
- };
2291
+ return (0, smithy_client_1.take)(output, {
2292
+ ContactArn: smithy_client_1.expectString,
2293
+ Content: smithy_client_1.expectString,
2294
+ EngagementArn: smithy_client_1.expectString,
2295
+ IncidentId: smithy_client_1.expectString,
2296
+ PublicContent: smithy_client_1.expectString,
2297
+ PublicSubject: smithy_client_1.expectString,
2298
+ Sender: smithy_client_1.expectString,
2299
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2300
+ StopTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2301
+ Subject: smithy_client_1.expectString,
2302
+ });
2859
2303
  };
2860
2304
  const de_DescribePageResult = (output, context) => {
2861
- return {
2862
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2863
- Content: (0, smithy_client_1.expectString)(output.Content),
2864
- DeliveryTime: output.DeliveryTime != null
2865
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeliveryTime)))
2866
- : undefined,
2867
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
2868
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
2869
- PageArn: (0, smithy_client_1.expectString)(output.PageArn),
2870
- PublicContent: (0, smithy_client_1.expectString)(output.PublicContent),
2871
- PublicSubject: (0, smithy_client_1.expectString)(output.PublicSubject),
2872
- ReadTime: output.ReadTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadTime))) : undefined,
2873
- Sender: (0, smithy_client_1.expectString)(output.Sender),
2874
- SentTime: output.SentTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SentTime))) : undefined,
2875
- Subject: (0, smithy_client_1.expectString)(output.Subject),
2876
- };
2305
+ return (0, smithy_client_1.take)(output, {
2306
+ ContactArn: smithy_client_1.expectString,
2307
+ Content: smithy_client_1.expectString,
2308
+ DeliveryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2309
+ EngagementArn: smithy_client_1.expectString,
2310
+ IncidentId: smithy_client_1.expectString,
2311
+ PageArn: smithy_client_1.expectString,
2312
+ PublicContent: smithy_client_1.expectString,
2313
+ PublicSubject: smithy_client_1.expectString,
2314
+ ReadTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2315
+ Sender: smithy_client_1.expectString,
2316
+ SentTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2317
+ Subject: smithy_client_1.expectString,
2318
+ });
2877
2319
  };
2878
2320
  const de_Engagement = (output, context) => {
2879
- return {
2880
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2881
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
2882
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
2883
- Sender: (0, smithy_client_1.expectString)(output.Sender),
2884
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2885
- StopTime: output.StopTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StopTime))) : undefined,
2886
- };
2321
+ return (0, smithy_client_1.take)(output, {
2322
+ ContactArn: smithy_client_1.expectString,
2323
+ EngagementArn: smithy_client_1.expectString,
2324
+ IncidentId: smithy_client_1.expectString,
2325
+ Sender: smithy_client_1.expectString,
2326
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2327
+ StopTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2328
+ });
2887
2329
  };
2888
2330
  const de_EngagementsList = (output, context) => {
2889
2331
  const retVal = (output || [])
2890
2332
  .filter((e) => e != null)
2891
2333
  .map((entry) => {
2892
- if (entry === null) {
2893
- return null;
2894
- }
2895
2334
  return de_Engagement(entry, context);
2896
2335
  });
2897
2336
  return retVal;
2898
2337
  };
2899
- const de_GetContactChannelResult = (output, context) => {
2900
- return {
2901
- ActivationStatus: (0, smithy_client_1.expectString)(output.ActivationStatus),
2902
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2903
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
2904
- DeliveryAddress: output.DeliveryAddress != null ? de_ContactChannelAddress(output.DeliveryAddress, context) : undefined,
2905
- Name: (0, smithy_client_1.expectString)(output.Name),
2906
- Type: (0, smithy_client_1.expectString)(output.Type),
2907
- };
2908
- };
2909
- const de_GetContactPolicyResult = (output, context) => {
2910
- return {
2911
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2912
- Policy: (0, smithy_client_1.expectString)(output.Policy),
2913
- };
2914
- };
2915
- const de_GetContactResult = (output, context) => {
2916
- return {
2917
- Alias: (0, smithy_client_1.expectString)(output.Alias),
2918
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2919
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
2920
- Plan: output.Plan != null ? de_Plan(output.Plan, context) : undefined,
2921
- Type: (0, smithy_client_1.expectString)(output.Type),
2922
- };
2923
- };
2924
2338
  const de_GetRotationOverrideResult = (output, context) => {
2925
- return {
2926
- CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined,
2927
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
2928
- NewContactIds: output.NewContactIds != null ? de_SsmContactsArnList(output.NewContactIds, context) : undefined,
2929
- RotationArn: (0, smithy_client_1.expectString)(output.RotationArn),
2930
- RotationOverrideId: (0, smithy_client_1.expectString)(output.RotationOverrideId),
2931
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2932
- };
2339
+ return (0, smithy_client_1.take)(output, {
2340
+ CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2341
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2342
+ NewContactIds: smithy_client_1._json,
2343
+ RotationArn: smithy_client_1.expectString,
2344
+ RotationOverrideId: smithy_client_1.expectString,
2345
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2346
+ });
2933
2347
  };
2934
2348
  const de_GetRotationResult = (output, context) => {
2935
- return {
2936
- ContactIds: output.ContactIds != null ? de_RotationContactsArnList(output.ContactIds, context) : undefined,
2937
- Name: (0, smithy_client_1.expectString)(output.Name),
2938
- Recurrence: output.Recurrence != null ? de_RecurrenceSettings(output.Recurrence, context) : undefined,
2939
- RotationArn: (0, smithy_client_1.expectString)(output.RotationArn),
2940
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2941
- TimeZoneId: (0, smithy_client_1.expectString)(output.TimeZoneId),
2942
- };
2943
- };
2944
- const de_HandOffTime = (output, context) => {
2945
- return {
2946
- HourOfDay: (0, smithy_client_1.expectInt32)(output.HourOfDay),
2947
- MinuteOfHour: (0, smithy_client_1.expectInt32)(output.MinuteOfHour),
2948
- };
2949
- };
2950
- const de_InternalServerException = (output, context) => {
2951
- return {
2952
- Message: (0, smithy_client_1.expectString)(output.Message),
2953
- RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
2954
- };
2955
- };
2956
- const de_ListContactChannelsResult = (output, context) => {
2957
- return {
2958
- ContactChannels: output.ContactChannels != null ? de_ContactChannelList(output.ContactChannels, context) : undefined,
2959
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2960
- };
2961
- };
2962
- const de_ListContactsResult = (output, context) => {
2963
- return {
2964
- Contacts: output.Contacts != null ? de_ContactsList(output.Contacts, context) : undefined,
2965
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2966
- };
2349
+ return (0, smithy_client_1.take)(output, {
2350
+ ContactIds: smithy_client_1._json,
2351
+ Name: smithy_client_1.expectString,
2352
+ Recurrence: smithy_client_1._json,
2353
+ RotationArn: smithy_client_1.expectString,
2354
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2355
+ TimeZoneId: smithy_client_1.expectString,
2356
+ });
2967
2357
  };
2968
2358
  const de_ListEngagementsResult = (output, context) => {
2969
- return {
2970
- Engagements: output.Engagements != null ? de_EngagementsList(output.Engagements, context) : undefined,
2971
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2972
- };
2359
+ return (0, smithy_client_1.take)(output, {
2360
+ Engagements: (_) => de_EngagementsList(_, context),
2361
+ NextToken: smithy_client_1.expectString,
2362
+ });
2973
2363
  };
2974
2364
  const de_ListPageReceiptsResult = (output, context) => {
2975
- return {
2976
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2977
- Receipts: output.Receipts != null ? de_ReceiptsList(output.Receipts, context) : undefined,
2978
- };
2979
- };
2980
- const de_ListPageResolutionsResult = (output, context) => {
2981
- return {
2982
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2983
- PageResolutions: output.PageResolutions != null ? de_ResolutionList(output.PageResolutions, context) : undefined,
2984
- };
2365
+ return (0, smithy_client_1.take)(output, {
2366
+ NextToken: smithy_client_1.expectString,
2367
+ Receipts: (_) => de_ReceiptsList(_, context),
2368
+ });
2985
2369
  };
2986
2370
  const de_ListPagesByContactResult = (output, context) => {
2987
- return {
2988
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2989
- Pages: output.Pages != null ? de_PagesList(output.Pages, context) : undefined,
2990
- };
2371
+ return (0, smithy_client_1.take)(output, {
2372
+ NextToken: smithy_client_1.expectString,
2373
+ Pages: (_) => de_PagesList(_, context),
2374
+ });
2991
2375
  };
2992
2376
  const de_ListPagesByEngagementResult = (output, context) => {
2993
- return {
2994
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2995
- Pages: output.Pages != null ? de_PagesList(output.Pages, context) : undefined,
2996
- };
2377
+ return (0, smithy_client_1.take)(output, {
2378
+ NextToken: smithy_client_1.expectString,
2379
+ Pages: (_) => de_PagesList(_, context),
2380
+ });
2997
2381
  };
2998
2382
  const de_ListPreviewRotationShiftsResult = (output, context) => {
2999
- return {
3000
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3001
- RotationShifts: output.RotationShifts != null ? de_RotationShifts(output.RotationShifts, context) : undefined,
3002
- };
2383
+ return (0, smithy_client_1.take)(output, {
2384
+ NextToken: smithy_client_1.expectString,
2385
+ RotationShifts: (_) => de_RotationShifts(_, context),
2386
+ });
3003
2387
  };
3004
2388
  const de_ListRotationOverridesResult = (output, context) => {
3005
- return {
3006
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3007
- RotationOverrides: output.RotationOverrides != null ? de_RotationOverrides(output.RotationOverrides, context) : undefined,
3008
- };
2389
+ return (0, smithy_client_1.take)(output, {
2390
+ NextToken: smithy_client_1.expectString,
2391
+ RotationOverrides: (_) => de_RotationOverrides(_, context),
2392
+ });
3009
2393
  };
3010
2394
  const de_ListRotationShiftsResult = (output, context) => {
3011
- return {
3012
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3013
- RotationShifts: output.RotationShifts != null ? de_RotationShifts(output.RotationShifts, context) : undefined,
3014
- };
2395
+ return (0, smithy_client_1.take)(output, {
2396
+ NextToken: smithy_client_1.expectString,
2397
+ RotationShifts: (_) => de_RotationShifts(_, context),
2398
+ });
3015
2399
  };
3016
2400
  const de_ListRotationsResult = (output, context) => {
3017
- return {
3018
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3019
- Rotations: output.Rotations != null ? de_Rotations(output.Rotations, context) : undefined,
3020
- };
3021
- };
3022
- const de_ListTagsForResourceResult = (output, context) => {
3023
- return {
3024
- Tags: output.Tags != null ? de_TagsList(output.Tags, context) : undefined,
3025
- };
3026
- };
3027
- const de_MonthlySetting = (output, context) => {
3028
- return {
3029
- DayOfMonth: (0, smithy_client_1.expectInt32)(output.DayOfMonth),
3030
- HandOffTime: output.HandOffTime != null ? de_HandOffTime(output.HandOffTime, context) : undefined,
3031
- };
3032
- };
3033
- const de_MonthlySettings = (output, context) => {
3034
- const retVal = (output || [])
3035
- .filter((e) => e != null)
3036
- .map((entry) => {
3037
- if (entry === null) {
3038
- return null;
3039
- }
3040
- return de_MonthlySetting(entry, context);
2401
+ return (0, smithy_client_1.take)(output, {
2402
+ NextToken: smithy_client_1.expectString,
2403
+ Rotations: (_) => de_Rotations(_, context),
3041
2404
  });
3042
- return retVal;
3043
2405
  };
3044
2406
  const de_Page = (output, context) => {
3045
- return {
3046
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3047
- DeliveryTime: output.DeliveryTime != null
3048
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeliveryTime)))
3049
- : undefined,
3050
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
3051
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
3052
- PageArn: (0, smithy_client_1.expectString)(output.PageArn),
3053
- ReadTime: output.ReadTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadTime))) : undefined,
3054
- Sender: (0, smithy_client_1.expectString)(output.Sender),
3055
- SentTime: output.SentTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SentTime))) : undefined,
3056
- };
2407
+ return (0, smithy_client_1.take)(output, {
2408
+ ContactArn: smithy_client_1.expectString,
2409
+ DeliveryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2410
+ EngagementArn: smithy_client_1.expectString,
2411
+ IncidentId: smithy_client_1.expectString,
2412
+ PageArn: smithy_client_1.expectString,
2413
+ ReadTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2414
+ Sender: smithy_client_1.expectString,
2415
+ SentTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2416
+ });
3057
2417
  };
3058
2418
  const de_PagesList = (output, context) => {
3059
2419
  const retVal = (output || [])
3060
2420
  .filter((e) => e != null)
3061
2421
  .map((entry) => {
3062
- if (entry === null) {
3063
- return null;
3064
- }
3065
2422
  return de_Page(entry, context);
3066
2423
  });
3067
2424
  return retVal;
3068
2425
  };
3069
- const de_Plan = (output, context) => {
3070
- return {
3071
- RotationIds: output.RotationIds != null ? de_SsmContactsArnList(output.RotationIds, context) : undefined,
3072
- Stages: output.Stages != null ? de_StagesList(output.Stages, context) : undefined,
3073
- };
3074
- };
3075
- const de_PutContactPolicyResult = (output, context) => {
3076
- return {};
3077
- };
3078
2426
  const de_Receipt = (output, context) => {
3079
- return {
3080
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
3081
- ReceiptInfo: (0, smithy_client_1.expectString)(output.ReceiptInfo),
3082
- ReceiptTime: output.ReceiptTime != null
3083
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReceiptTime)))
3084
- : undefined,
3085
- ReceiptType: (0, smithy_client_1.expectString)(output.ReceiptType),
3086
- };
2427
+ return (0, smithy_client_1.take)(output, {
2428
+ ContactChannelArn: smithy_client_1.expectString,
2429
+ ReceiptInfo: smithy_client_1.expectString,
2430
+ ReceiptTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2431
+ ReceiptType: smithy_client_1.expectString,
2432
+ });
3087
2433
  };
3088
2434
  const de_ReceiptsList = (output, context) => {
3089
2435
  const retVal = (output || [])
3090
2436
  .filter((e) => e != null)
3091
2437
  .map((entry) => {
3092
- if (entry === null) {
3093
- return null;
3094
- }
3095
2438
  return de_Receipt(entry, context);
3096
2439
  });
3097
2440
  return retVal;
3098
2441
  };
3099
- const de_RecurrenceSettings = (output, context) => {
3100
- return {
3101
- DailySettings: output.DailySettings != null ? de_DailySettings(output.DailySettings, context) : undefined,
3102
- MonthlySettings: output.MonthlySettings != null ? de_MonthlySettings(output.MonthlySettings, context) : undefined,
3103
- NumberOfOnCalls: (0, smithy_client_1.expectInt32)(output.NumberOfOnCalls),
3104
- RecurrenceMultiplier: (0, smithy_client_1.expectInt32)(output.RecurrenceMultiplier),
3105
- ShiftCoverages: output.ShiftCoverages != null ? de_ShiftCoveragesMap(output.ShiftCoverages, context) : undefined,
3106
- WeeklySettings: output.WeeklySettings != null ? de_WeeklySettings(output.WeeklySettings, context) : undefined,
3107
- };
3108
- };
3109
- const de_ResolutionContact = (output, context) => {
3110
- return {
3111
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3112
- StageIndex: (0, smithy_client_1.expectInt32)(output.StageIndex),
3113
- Type: (0, smithy_client_1.expectString)(output.Type),
3114
- };
3115
- };
3116
- const de_ResolutionList = (output, context) => {
3117
- const retVal = (output || [])
3118
- .filter((e) => e != null)
3119
- .map((entry) => {
3120
- if (entry === null) {
3121
- return null;
3122
- }
3123
- return de_ResolutionContact(entry, context);
3124
- });
3125
- return retVal;
3126
- };
3127
- const de_ResourceNotFoundException = (output, context) => {
3128
- return {
3129
- Message: (0, smithy_client_1.expectString)(output.Message),
3130
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
3131
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3132
- };
3133
- };
3134
2442
  const de_Rotation = (output, context) => {
3135
- return {
3136
- ContactIds: output.ContactIds != null ? de_SsmContactsArnList(output.ContactIds, context) : undefined,
3137
- Name: (0, smithy_client_1.expectString)(output.Name),
3138
- Recurrence: output.Recurrence != null ? de_RecurrenceSettings(output.Recurrence, context) : undefined,
3139
- RotationArn: (0, smithy_client_1.expectString)(output.RotationArn),
3140
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3141
- TimeZoneId: (0, smithy_client_1.expectString)(output.TimeZoneId),
3142
- };
3143
- };
3144
- const de_RotationContactsArnList = (output, context) => {
3145
- const retVal = (output || [])
3146
- .filter((e) => e != null)
3147
- .map((entry) => {
3148
- if (entry === null) {
3149
- return null;
3150
- }
3151
- return (0, smithy_client_1.expectString)(entry);
2443
+ return (0, smithy_client_1.take)(output, {
2444
+ ContactIds: smithy_client_1._json,
2445
+ Name: smithy_client_1.expectString,
2446
+ Recurrence: smithy_client_1._json,
2447
+ RotationArn: smithy_client_1.expectString,
2448
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2449
+ TimeZoneId: smithy_client_1.expectString,
3152
2450
  });
3153
- return retVal;
3154
2451
  };
3155
2452
  const de_RotationOverride = (output, context) => {
3156
- return {
3157
- CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined,
3158
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
3159
- NewContactIds: output.NewContactIds != null ? de_SsmContactsArnList(output.NewContactIds, context) : undefined,
3160
- RotationOverrideId: (0, smithy_client_1.expectString)(output.RotationOverrideId),
3161
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3162
- };
2453
+ return (0, smithy_client_1.take)(output, {
2454
+ CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2455
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2456
+ NewContactIds: smithy_client_1._json,
2457
+ RotationOverrideId: smithy_client_1.expectString,
2458
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2459
+ });
3163
2460
  };
3164
2461
  const de_RotationOverrides = (output, context) => {
3165
2462
  const retVal = (output || [])
3166
2463
  .filter((e) => e != null)
3167
2464
  .map((entry) => {
3168
- if (entry === null) {
3169
- return null;
3170
- }
3171
2465
  return de_RotationOverride(entry, context);
3172
2466
  });
3173
2467
  return retVal;
@@ -3176,193 +2470,27 @@ const de_Rotations = (output, context) => {
3176
2470
  const retVal = (output || [])
3177
2471
  .filter((e) => e != null)
3178
2472
  .map((entry) => {
3179
- if (entry === null) {
3180
- return null;
3181
- }
3182
2473
  return de_Rotation(entry, context);
3183
2474
  });
3184
2475
  return retVal;
3185
2476
  };
3186
2477
  const de_RotationShift = (output, context) => {
3187
- return {
3188
- ContactIds: output.ContactIds != null ? de_SsmContactsArnList(output.ContactIds, context) : undefined,
3189
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
3190
- ShiftDetails: output.ShiftDetails != null ? de_ShiftDetails(output.ShiftDetails, context) : undefined,
3191
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3192
- Type: (0, smithy_client_1.expectString)(output.Type),
3193
- };
2478
+ return (0, smithy_client_1.take)(output, {
2479
+ ContactIds: smithy_client_1._json,
2480
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2481
+ ShiftDetails: smithy_client_1._json,
2482
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2483
+ Type: smithy_client_1.expectString,
2484
+ });
3194
2485
  };
3195
2486
  const de_RotationShifts = (output, context) => {
3196
2487
  const retVal = (output || [])
3197
2488
  .filter((e) => e != null)
3198
2489
  .map((entry) => {
3199
- if (entry === null) {
3200
- return null;
3201
- }
3202
2490
  return de_RotationShift(entry, context);
3203
2491
  });
3204
2492
  return retVal;
3205
2493
  };
3206
- const de_SendActivationCodeResult = (output, context) => {
3207
- return {};
3208
- };
3209
- const de_ServiceQuotaExceededException = (output, context) => {
3210
- return {
3211
- Message: (0, smithy_client_1.expectString)(output.Message),
3212
- QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
3213
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
3214
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3215
- ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
3216
- };
3217
- };
3218
- const de_ShiftCoveragesMap = (output, context) => {
3219
- return Object.entries(output).reduce((acc, [key, value]) => {
3220
- if (value === null) {
3221
- return acc;
3222
- }
3223
- acc[key] = de_CoverageTimes(value, context);
3224
- return acc;
3225
- }, {});
3226
- };
3227
- const de_ShiftDetails = (output, context) => {
3228
- return {
3229
- OverriddenContactIds: output.OverriddenContactIds != null ? de_SsmContactsArnList(output.OverriddenContactIds, context) : undefined,
3230
- };
3231
- };
3232
- const de_SsmContactsArnList = (output, context) => {
3233
- const retVal = (output || [])
3234
- .filter((e) => e != null)
3235
- .map((entry) => {
3236
- if (entry === null) {
3237
- return null;
3238
- }
3239
- return (0, smithy_client_1.expectString)(entry);
3240
- });
3241
- return retVal;
3242
- };
3243
- const de_Stage = (output, context) => {
3244
- return {
3245
- DurationInMinutes: (0, smithy_client_1.expectInt32)(output.DurationInMinutes),
3246
- Targets: output.Targets != null ? de_TargetsList(output.Targets, context) : undefined,
3247
- };
3248
- };
3249
- const de_StagesList = (output, context) => {
3250
- const retVal = (output || [])
3251
- .filter((e) => e != null)
3252
- .map((entry) => {
3253
- if (entry === null) {
3254
- return null;
3255
- }
3256
- return de_Stage(entry, context);
3257
- });
3258
- return retVal;
3259
- };
3260
- const de_StartEngagementResult = (output, context) => {
3261
- return {
3262
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
3263
- };
3264
- };
3265
- const de_StopEngagementResult = (output, context) => {
3266
- return {};
3267
- };
3268
- const de_Tag = (output, context) => {
3269
- return {
3270
- Key: (0, smithy_client_1.expectString)(output.Key),
3271
- Value: (0, smithy_client_1.expectString)(output.Value),
3272
- };
3273
- };
3274
- const de_TagResourceResult = (output, context) => {
3275
- return {};
3276
- };
3277
- const de_TagsList = (output, context) => {
3278
- const retVal = (output || [])
3279
- .filter((e) => e != null)
3280
- .map((entry) => {
3281
- if (entry === null) {
3282
- return null;
3283
- }
3284
- return de_Tag(entry, context);
3285
- });
3286
- return retVal;
3287
- };
3288
- const de_Target = (output, context) => {
3289
- return {
3290
- ChannelTargetInfo: output.ChannelTargetInfo != null ? de_ChannelTargetInfo(output.ChannelTargetInfo, context) : undefined,
3291
- ContactTargetInfo: output.ContactTargetInfo != null ? de_ContactTargetInfo(output.ContactTargetInfo, context) : undefined,
3292
- };
3293
- };
3294
- const de_TargetsList = (output, context) => {
3295
- const retVal = (output || [])
3296
- .filter((e) => e != null)
3297
- .map((entry) => {
3298
- if (entry === null) {
3299
- return null;
3300
- }
3301
- return de_Target(entry, context);
3302
- });
3303
- return retVal;
3304
- };
3305
- const de_ThrottlingException = (output, context) => {
3306
- return {
3307
- Message: (0, smithy_client_1.expectString)(output.Message),
3308
- QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
3309
- RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
3310
- ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
3311
- };
3312
- };
3313
- const de_UntagResourceResult = (output, context) => {
3314
- return {};
3315
- };
3316
- const de_UpdateContactChannelResult = (output, context) => {
3317
- return {};
3318
- };
3319
- const de_UpdateContactResult = (output, context) => {
3320
- return {};
3321
- };
3322
- const de_UpdateRotationResult = (output, context) => {
3323
- return {};
3324
- };
3325
- const de_ValidationException = (output, context) => {
3326
- return {
3327
- Fields: output.Fields != null ? de_ValidationExceptionFieldList(output.Fields, context) : undefined,
3328
- Message: (0, smithy_client_1.expectString)(output.Message),
3329
- Reason: (0, smithy_client_1.expectString)(output.Reason),
3330
- };
3331
- };
3332
- const de_ValidationExceptionField = (output, context) => {
3333
- return {
3334
- Message: (0, smithy_client_1.expectString)(output.Message),
3335
- Name: (0, smithy_client_1.expectString)(output.Name),
3336
- };
3337
- };
3338
- const de_ValidationExceptionFieldList = (output, context) => {
3339
- const retVal = (output || [])
3340
- .filter((e) => e != null)
3341
- .map((entry) => {
3342
- if (entry === null) {
3343
- return null;
3344
- }
3345
- return de_ValidationExceptionField(entry, context);
3346
- });
3347
- return retVal;
3348
- };
3349
- const de_WeeklySetting = (output, context) => {
3350
- return {
3351
- DayOfWeek: (0, smithy_client_1.expectString)(output.DayOfWeek),
3352
- HandOffTime: output.HandOffTime != null ? de_HandOffTime(output.HandOffTime, context) : undefined,
3353
- };
3354
- };
3355
- const de_WeeklySettings = (output, context) => {
3356
- const retVal = (output || [])
3357
- .filter((e) => e != null)
3358
- .map((entry) => {
3359
- if (entry === null) {
3360
- return null;
3361
- }
3362
- return de_WeeklySetting(entry, context);
3363
- });
3364
- return retVal;
3365
- };
3366
2494
  const deserializeMetadata = (output) => ({
3367
2495
  httpStatusCode: output.statusCode,
3368
2496
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -3376,6 +2504,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3376
2504
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3377
2505
  };
3378
2506
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2507
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(SSMContactsServiceException_1.SSMContactsServiceException);
3379
2508
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3380
2509
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3381
2510
  const contents = {