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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,390 +8,273 @@ const uuid_1 = require("uuid");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const SSMContactsServiceException_1 = require("../models/SSMContactsServiceException");
10
10
  const se_AcceptPageCommand = async (input, context) => {
11
- const headers = {
12
- "content-type": "application/x-amz-json-1.1",
13
- "x-amz-target": "SSMContacts.AcceptPage",
14
- };
11
+ const headers = sharedHeaders("AcceptPage");
15
12
  let body;
16
- body = JSON.stringify(se_AcceptPageRequest(input, context));
13
+ body = JSON.stringify((0, smithy_client_1._json)(input));
17
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
15
  };
19
16
  exports.se_AcceptPageCommand = se_AcceptPageCommand;
20
17
  const se_ActivateContactChannelCommand = async (input, context) => {
21
- const headers = {
22
- "content-type": "application/x-amz-json-1.1",
23
- "x-amz-target": "SSMContacts.ActivateContactChannel",
24
- };
18
+ const headers = sharedHeaders("ActivateContactChannel");
25
19
  let body;
26
- body = JSON.stringify(se_ActivateContactChannelRequest(input, context));
20
+ body = JSON.stringify((0, smithy_client_1._json)(input));
27
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
22
  };
29
23
  exports.se_ActivateContactChannelCommand = se_ActivateContactChannelCommand;
30
24
  const se_CreateContactCommand = async (input, context) => {
31
- const headers = {
32
- "content-type": "application/x-amz-json-1.1",
33
- "x-amz-target": "SSMContacts.CreateContact",
34
- };
25
+ const headers = sharedHeaders("CreateContact");
35
26
  let body;
36
27
  body = JSON.stringify(se_CreateContactRequest(input, context));
37
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
38
29
  };
39
30
  exports.se_CreateContactCommand = se_CreateContactCommand;
40
31
  const se_CreateContactChannelCommand = async (input, context) => {
41
- const headers = {
42
- "content-type": "application/x-amz-json-1.1",
43
- "x-amz-target": "SSMContacts.CreateContactChannel",
44
- };
32
+ const headers = sharedHeaders("CreateContactChannel");
45
33
  let body;
46
34
  body = JSON.stringify(se_CreateContactChannelRequest(input, context));
47
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
36
  };
49
37
  exports.se_CreateContactChannelCommand = se_CreateContactChannelCommand;
50
38
  const se_CreateRotationCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "SSMContacts.CreateRotation",
54
- };
39
+ const headers = sharedHeaders("CreateRotation");
55
40
  let body;
56
41
  body = JSON.stringify(se_CreateRotationRequest(input, context));
57
42
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
43
  };
59
44
  exports.se_CreateRotationCommand = se_CreateRotationCommand;
60
45
  const se_CreateRotationOverrideCommand = async (input, context) => {
61
- const headers = {
62
- "content-type": "application/x-amz-json-1.1",
63
- "x-amz-target": "SSMContacts.CreateRotationOverride",
64
- };
46
+ const headers = sharedHeaders("CreateRotationOverride");
65
47
  let body;
66
48
  body = JSON.stringify(se_CreateRotationOverrideRequest(input, context));
67
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
68
50
  };
69
51
  exports.se_CreateRotationOverrideCommand = se_CreateRotationOverrideCommand;
70
52
  const se_DeactivateContactChannelCommand = async (input, context) => {
71
- const headers = {
72
- "content-type": "application/x-amz-json-1.1",
73
- "x-amz-target": "SSMContacts.DeactivateContactChannel",
74
- };
53
+ const headers = sharedHeaders("DeactivateContactChannel");
75
54
  let body;
76
- body = JSON.stringify(se_DeactivateContactChannelRequest(input, context));
55
+ body = JSON.stringify((0, smithy_client_1._json)(input));
77
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
57
  };
79
58
  exports.se_DeactivateContactChannelCommand = se_DeactivateContactChannelCommand;
80
59
  const se_DeleteContactCommand = async (input, context) => {
81
- const headers = {
82
- "content-type": "application/x-amz-json-1.1",
83
- "x-amz-target": "SSMContacts.DeleteContact",
84
- };
60
+ const headers = sharedHeaders("DeleteContact");
85
61
  let body;
86
- body = JSON.stringify(se_DeleteContactRequest(input, context));
62
+ body = JSON.stringify((0, smithy_client_1._json)(input));
87
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
64
  };
89
65
  exports.se_DeleteContactCommand = se_DeleteContactCommand;
90
66
  const se_DeleteContactChannelCommand = async (input, context) => {
91
- const headers = {
92
- "content-type": "application/x-amz-json-1.1",
93
- "x-amz-target": "SSMContacts.DeleteContactChannel",
94
- };
67
+ const headers = sharedHeaders("DeleteContactChannel");
95
68
  let body;
96
- body = JSON.stringify(se_DeleteContactChannelRequest(input, context));
69
+ body = JSON.stringify((0, smithy_client_1._json)(input));
97
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
71
  };
99
72
  exports.se_DeleteContactChannelCommand = se_DeleteContactChannelCommand;
100
73
  const se_DeleteRotationCommand = async (input, context) => {
101
- const headers = {
102
- "content-type": "application/x-amz-json-1.1",
103
- "x-amz-target": "SSMContacts.DeleteRotation",
104
- };
74
+ const headers = sharedHeaders("DeleteRotation");
105
75
  let body;
106
- body = JSON.stringify(se_DeleteRotationRequest(input, context));
76
+ body = JSON.stringify((0, smithy_client_1._json)(input));
107
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
78
  };
109
79
  exports.se_DeleteRotationCommand = se_DeleteRotationCommand;
110
80
  const se_DeleteRotationOverrideCommand = async (input, context) => {
111
- const headers = {
112
- "content-type": "application/x-amz-json-1.1",
113
- "x-amz-target": "SSMContacts.DeleteRotationOverride",
114
- };
81
+ const headers = sharedHeaders("DeleteRotationOverride");
115
82
  let body;
116
- body = JSON.stringify(se_DeleteRotationOverrideRequest(input, context));
83
+ body = JSON.stringify((0, smithy_client_1._json)(input));
117
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
85
  };
119
86
  exports.se_DeleteRotationOverrideCommand = se_DeleteRotationOverrideCommand;
120
87
  const se_DescribeEngagementCommand = async (input, context) => {
121
- const headers = {
122
- "content-type": "application/x-amz-json-1.1",
123
- "x-amz-target": "SSMContacts.DescribeEngagement",
124
- };
88
+ const headers = sharedHeaders("DescribeEngagement");
125
89
  let body;
126
- body = JSON.stringify(se_DescribeEngagementRequest(input, context));
90
+ body = JSON.stringify((0, smithy_client_1._json)(input));
127
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
128
92
  };
129
93
  exports.se_DescribeEngagementCommand = se_DescribeEngagementCommand;
130
94
  const se_DescribePageCommand = async (input, context) => {
131
- const headers = {
132
- "content-type": "application/x-amz-json-1.1",
133
- "x-amz-target": "SSMContacts.DescribePage",
134
- };
95
+ const headers = sharedHeaders("DescribePage");
135
96
  let body;
136
- body = JSON.stringify(se_DescribePageRequest(input, context));
97
+ body = JSON.stringify((0, smithy_client_1._json)(input));
137
98
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
99
  };
139
100
  exports.se_DescribePageCommand = se_DescribePageCommand;
140
101
  const se_GetContactCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "SSMContacts.GetContact",
144
- };
102
+ const headers = sharedHeaders("GetContact");
145
103
  let body;
146
- body = JSON.stringify(se_GetContactRequest(input, context));
104
+ body = JSON.stringify((0, smithy_client_1._json)(input));
147
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
106
  };
149
107
  exports.se_GetContactCommand = se_GetContactCommand;
150
108
  const se_GetContactChannelCommand = async (input, context) => {
151
- const headers = {
152
- "content-type": "application/x-amz-json-1.1",
153
- "x-amz-target": "SSMContacts.GetContactChannel",
154
- };
109
+ const headers = sharedHeaders("GetContactChannel");
155
110
  let body;
156
- body = JSON.stringify(se_GetContactChannelRequest(input, context));
111
+ body = JSON.stringify((0, smithy_client_1._json)(input));
157
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
158
113
  };
159
114
  exports.se_GetContactChannelCommand = se_GetContactChannelCommand;
160
115
  const se_GetContactPolicyCommand = async (input, context) => {
161
- const headers = {
162
- "content-type": "application/x-amz-json-1.1",
163
- "x-amz-target": "SSMContacts.GetContactPolicy",
164
- };
116
+ const headers = sharedHeaders("GetContactPolicy");
165
117
  let body;
166
- body = JSON.stringify(se_GetContactPolicyRequest(input, context));
118
+ body = JSON.stringify((0, smithy_client_1._json)(input));
167
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
120
  };
169
121
  exports.se_GetContactPolicyCommand = se_GetContactPolicyCommand;
170
122
  const se_GetRotationCommand = async (input, context) => {
171
- const headers = {
172
- "content-type": "application/x-amz-json-1.1",
173
- "x-amz-target": "SSMContacts.GetRotation",
174
- };
123
+ const headers = sharedHeaders("GetRotation");
175
124
  let body;
176
- body = JSON.stringify(se_GetRotationRequest(input, context));
125
+ body = JSON.stringify((0, smithy_client_1._json)(input));
177
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
127
  };
179
128
  exports.se_GetRotationCommand = se_GetRotationCommand;
180
129
  const se_GetRotationOverrideCommand = async (input, context) => {
181
- const headers = {
182
- "content-type": "application/x-amz-json-1.1",
183
- "x-amz-target": "SSMContacts.GetRotationOverride",
184
- };
130
+ const headers = sharedHeaders("GetRotationOverride");
185
131
  let body;
186
- body = JSON.stringify(se_GetRotationOverrideRequest(input, context));
132
+ body = JSON.stringify((0, smithy_client_1._json)(input));
187
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
188
134
  };
189
135
  exports.se_GetRotationOverrideCommand = se_GetRotationOverrideCommand;
190
136
  const se_ListContactChannelsCommand = async (input, context) => {
191
- const headers = {
192
- "content-type": "application/x-amz-json-1.1",
193
- "x-amz-target": "SSMContacts.ListContactChannels",
194
- };
137
+ const headers = sharedHeaders("ListContactChannels");
195
138
  let body;
196
- body = JSON.stringify(se_ListContactChannelsRequest(input, context));
139
+ body = JSON.stringify((0, smithy_client_1._json)(input));
197
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
141
  };
199
142
  exports.se_ListContactChannelsCommand = se_ListContactChannelsCommand;
200
143
  const se_ListContactsCommand = async (input, context) => {
201
- const headers = {
202
- "content-type": "application/x-amz-json-1.1",
203
- "x-amz-target": "SSMContacts.ListContacts",
204
- };
144
+ const headers = sharedHeaders("ListContacts");
205
145
  let body;
206
- body = JSON.stringify(se_ListContactsRequest(input, context));
146
+ body = JSON.stringify((0, smithy_client_1._json)(input));
207
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
148
  };
209
149
  exports.se_ListContactsCommand = se_ListContactsCommand;
210
150
  const se_ListEngagementsCommand = async (input, context) => {
211
- const headers = {
212
- "content-type": "application/x-amz-json-1.1",
213
- "x-amz-target": "SSMContacts.ListEngagements",
214
- };
151
+ const headers = sharedHeaders("ListEngagements");
215
152
  let body;
216
153
  body = JSON.stringify(se_ListEngagementsRequest(input, context));
217
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
155
  };
219
156
  exports.se_ListEngagementsCommand = se_ListEngagementsCommand;
220
157
  const se_ListPageReceiptsCommand = async (input, context) => {
221
- const headers = {
222
- "content-type": "application/x-amz-json-1.1",
223
- "x-amz-target": "SSMContacts.ListPageReceipts",
224
- };
158
+ const headers = sharedHeaders("ListPageReceipts");
225
159
  let body;
226
- body = JSON.stringify(se_ListPageReceiptsRequest(input, context));
160
+ body = JSON.stringify((0, smithy_client_1._json)(input));
227
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
162
  };
229
163
  exports.se_ListPageReceiptsCommand = se_ListPageReceiptsCommand;
230
164
  const se_ListPageResolutionsCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.1",
233
- "x-amz-target": "SSMContacts.ListPageResolutions",
234
- };
165
+ const headers = sharedHeaders("ListPageResolutions");
235
166
  let body;
236
- body = JSON.stringify(se_ListPageResolutionsRequest(input, context));
167
+ body = JSON.stringify((0, smithy_client_1._json)(input));
237
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
169
  };
239
170
  exports.se_ListPageResolutionsCommand = se_ListPageResolutionsCommand;
240
171
  const se_ListPagesByContactCommand = async (input, context) => {
241
- const headers = {
242
- "content-type": "application/x-amz-json-1.1",
243
- "x-amz-target": "SSMContacts.ListPagesByContact",
244
- };
172
+ const headers = sharedHeaders("ListPagesByContact");
245
173
  let body;
246
- body = JSON.stringify(se_ListPagesByContactRequest(input, context));
174
+ body = JSON.stringify((0, smithy_client_1._json)(input));
247
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
248
176
  };
249
177
  exports.se_ListPagesByContactCommand = se_ListPagesByContactCommand;
250
178
  const se_ListPagesByEngagementCommand = async (input, context) => {
251
- const headers = {
252
- "content-type": "application/x-amz-json-1.1",
253
- "x-amz-target": "SSMContacts.ListPagesByEngagement",
254
- };
179
+ const headers = sharedHeaders("ListPagesByEngagement");
255
180
  let body;
256
- body = JSON.stringify(se_ListPagesByEngagementRequest(input, context));
181
+ body = JSON.stringify((0, smithy_client_1._json)(input));
257
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
183
  };
259
184
  exports.se_ListPagesByEngagementCommand = se_ListPagesByEngagementCommand;
260
185
  const se_ListPreviewRotationShiftsCommand = async (input, context) => {
261
- const headers = {
262
- "content-type": "application/x-amz-json-1.1",
263
- "x-amz-target": "SSMContacts.ListPreviewRotationShifts",
264
- };
186
+ const headers = sharedHeaders("ListPreviewRotationShifts");
265
187
  let body;
266
188
  body = JSON.stringify(se_ListPreviewRotationShiftsRequest(input, context));
267
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
190
  };
269
191
  exports.se_ListPreviewRotationShiftsCommand = se_ListPreviewRotationShiftsCommand;
270
192
  const se_ListRotationOverridesCommand = async (input, context) => {
271
- const headers = {
272
- "content-type": "application/x-amz-json-1.1",
273
- "x-amz-target": "SSMContacts.ListRotationOverrides",
274
- };
193
+ const headers = sharedHeaders("ListRotationOverrides");
275
194
  let body;
276
195
  body = JSON.stringify(se_ListRotationOverridesRequest(input, context));
277
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
278
197
  };
279
198
  exports.se_ListRotationOverridesCommand = se_ListRotationOverridesCommand;
280
199
  const se_ListRotationsCommand = async (input, context) => {
281
- const headers = {
282
- "content-type": "application/x-amz-json-1.1",
283
- "x-amz-target": "SSMContacts.ListRotations",
284
- };
200
+ const headers = sharedHeaders("ListRotations");
285
201
  let body;
286
- body = JSON.stringify(se_ListRotationsRequest(input, context));
202
+ body = JSON.stringify((0, smithy_client_1._json)(input));
287
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
204
  };
289
205
  exports.se_ListRotationsCommand = se_ListRotationsCommand;
290
206
  const se_ListRotationShiftsCommand = async (input, context) => {
291
- const headers = {
292
- "content-type": "application/x-amz-json-1.1",
293
- "x-amz-target": "SSMContacts.ListRotationShifts",
294
- };
207
+ const headers = sharedHeaders("ListRotationShifts");
295
208
  let body;
296
209
  body = JSON.stringify(se_ListRotationShiftsRequest(input, context));
297
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
298
211
  };
299
212
  exports.se_ListRotationShiftsCommand = se_ListRotationShiftsCommand;
300
213
  const se_ListTagsForResourceCommand = async (input, context) => {
301
- const headers = {
302
- "content-type": "application/x-amz-json-1.1",
303
- "x-amz-target": "SSMContacts.ListTagsForResource",
304
- };
214
+ const headers = sharedHeaders("ListTagsForResource");
305
215
  let body;
306
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
216
+ body = JSON.stringify((0, smithy_client_1._json)(input));
307
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
308
218
  };
309
219
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
310
220
  const se_PutContactPolicyCommand = async (input, context) => {
311
- const headers = {
312
- "content-type": "application/x-amz-json-1.1",
313
- "x-amz-target": "SSMContacts.PutContactPolicy",
314
- };
221
+ const headers = sharedHeaders("PutContactPolicy");
315
222
  let body;
316
- body = JSON.stringify(se_PutContactPolicyRequest(input, context));
223
+ body = JSON.stringify((0, smithy_client_1._json)(input));
317
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
225
  };
319
226
  exports.se_PutContactPolicyCommand = se_PutContactPolicyCommand;
320
227
  const se_SendActivationCodeCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-amz-json-1.1",
323
- "x-amz-target": "SSMContacts.SendActivationCode",
324
- };
228
+ const headers = sharedHeaders("SendActivationCode");
325
229
  let body;
326
- body = JSON.stringify(se_SendActivationCodeRequest(input, context));
230
+ body = JSON.stringify((0, smithy_client_1._json)(input));
327
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
232
  };
329
233
  exports.se_SendActivationCodeCommand = se_SendActivationCodeCommand;
330
234
  const se_StartEngagementCommand = async (input, context) => {
331
- const headers = {
332
- "content-type": "application/x-amz-json-1.1",
333
- "x-amz-target": "SSMContacts.StartEngagement",
334
- };
235
+ const headers = sharedHeaders("StartEngagement");
335
236
  let body;
336
237
  body = JSON.stringify(se_StartEngagementRequest(input, context));
337
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
338
239
  };
339
240
  exports.se_StartEngagementCommand = se_StartEngagementCommand;
340
241
  const se_StopEngagementCommand = async (input, context) => {
341
- const headers = {
342
- "content-type": "application/x-amz-json-1.1",
343
- "x-amz-target": "SSMContacts.StopEngagement",
344
- };
242
+ const headers = sharedHeaders("StopEngagement");
345
243
  let body;
346
- body = JSON.stringify(se_StopEngagementRequest(input, context));
244
+ body = JSON.stringify((0, smithy_client_1._json)(input));
347
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
246
  };
349
247
  exports.se_StopEngagementCommand = se_StopEngagementCommand;
350
248
  const se_TagResourceCommand = async (input, context) => {
351
- const headers = {
352
- "content-type": "application/x-amz-json-1.1",
353
- "x-amz-target": "SSMContacts.TagResource",
354
- };
249
+ const headers = sharedHeaders("TagResource");
355
250
  let body;
356
- body = JSON.stringify(se_TagResourceRequest(input, context));
251
+ body = JSON.stringify((0, smithy_client_1._json)(input));
357
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
253
  };
359
254
  exports.se_TagResourceCommand = se_TagResourceCommand;
360
255
  const se_UntagResourceCommand = async (input, context) => {
361
- const headers = {
362
- "content-type": "application/x-amz-json-1.1",
363
- "x-amz-target": "SSMContacts.UntagResource",
364
- };
256
+ const headers = sharedHeaders("UntagResource");
365
257
  let body;
366
- body = JSON.stringify(se_UntagResourceRequest(input, context));
258
+ body = JSON.stringify((0, smithy_client_1._json)(input));
367
259
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
368
260
  };
369
261
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
370
262
  const se_UpdateContactCommand = async (input, context) => {
371
- const headers = {
372
- "content-type": "application/x-amz-json-1.1",
373
- "x-amz-target": "SSMContacts.UpdateContact",
374
- };
263
+ const headers = sharedHeaders("UpdateContact");
375
264
  let body;
376
- body = JSON.stringify(se_UpdateContactRequest(input, context));
265
+ body = JSON.stringify((0, smithy_client_1._json)(input));
377
266
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
267
  };
379
268
  exports.se_UpdateContactCommand = se_UpdateContactCommand;
380
269
  const se_UpdateContactChannelCommand = async (input, context) => {
381
- const headers = {
382
- "content-type": "application/x-amz-json-1.1",
383
- "x-amz-target": "SSMContacts.UpdateContactChannel",
384
- };
270
+ const headers = sharedHeaders("UpdateContactChannel");
385
271
  let body;
386
- body = JSON.stringify(se_UpdateContactChannelRequest(input, context));
272
+ body = JSON.stringify((0, smithy_client_1._json)(input));
387
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
388
274
  };
389
275
  exports.se_UpdateContactChannelCommand = se_UpdateContactChannelCommand;
390
276
  const se_UpdateRotationCommand = async (input, context) => {
391
- const headers = {
392
- "content-type": "application/x-amz-json-1.1",
393
- "x-amz-target": "SSMContacts.UpdateRotation",
394
- };
277
+ const headers = sharedHeaders("UpdateRotation");
395
278
  let body;
396
279
  body = JSON.stringify(se_UpdateRotationRequest(input, context));
397
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -403,12 +286,12 @@ const de_AcceptPageCommand = async (output, context) => {
403
286
  }
404
287
  const data = await parseBody(output.body, context);
405
288
  let contents = {};
406
- contents = de_AcceptPageResult(data, context);
289
+ contents = (0, smithy_client_1._json)(data);
407
290
  const response = {
408
291
  $metadata: deserializeMetadata(output),
409
292
  ...contents,
410
293
  };
411
- return Promise.resolve(response);
294
+ return response;
412
295
  };
413
296
  exports.de_AcceptPageCommand = de_AcceptPageCommand;
414
297
  const de_AcceptPageCommandError = async (output, context) => {
@@ -435,10 +318,9 @@ const de_AcceptPageCommandError = async (output, context) => {
435
318
  throw await de_ValidationExceptionRes(parsedOutput, context);
436
319
  default:
437
320
  const parsedBody = parsedOutput.body;
438
- (0, smithy_client_1.throwDefaultError)({
321
+ return throwDefaultError({
439
322
  output,
440
323
  parsedBody,
441
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
442
324
  errorCode,
443
325
  });
444
326
  }
@@ -449,12 +331,12 @@ const de_ActivateContactChannelCommand = async (output, context) => {
449
331
  }
450
332
  const data = await parseBody(output.body, context);
451
333
  let contents = {};
452
- contents = de_ActivateContactChannelResult(data, context);
334
+ contents = (0, smithy_client_1._json)(data);
453
335
  const response = {
454
336
  $metadata: deserializeMetadata(output),
455
337
  ...contents,
456
338
  };
457
- return Promise.resolve(response);
339
+ return response;
458
340
  };
459
341
  exports.de_ActivateContactChannelCommand = de_ActivateContactChannelCommand;
460
342
  const de_ActivateContactChannelCommandError = async (output, context) => {
@@ -481,10 +363,9 @@ const de_ActivateContactChannelCommandError = async (output, context) => {
481
363
  throw await de_ValidationExceptionRes(parsedOutput, context);
482
364
  default:
483
365
  const parsedBody = parsedOutput.body;
484
- (0, smithy_client_1.throwDefaultError)({
366
+ return throwDefaultError({
485
367
  output,
486
368
  parsedBody,
487
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
488
369
  errorCode,
489
370
  });
490
371
  }
@@ -495,12 +376,12 @@ const de_CreateContactCommand = async (output, context) => {
495
376
  }
496
377
  const data = await parseBody(output.body, context);
497
378
  let contents = {};
498
- contents = de_CreateContactResult(data, context);
379
+ contents = (0, smithy_client_1._json)(data);
499
380
  const response = {
500
381
  $metadata: deserializeMetadata(output),
501
382
  ...contents,
502
383
  };
503
- return Promise.resolve(response);
384
+ return response;
504
385
  };
505
386
  exports.de_CreateContactCommand = de_CreateContactCommand;
506
387
  const de_CreateContactCommandError = async (output, context) => {
@@ -533,10 +414,9 @@ const de_CreateContactCommandError = async (output, context) => {
533
414
  throw await de_ValidationExceptionRes(parsedOutput, context);
534
415
  default:
535
416
  const parsedBody = parsedOutput.body;
536
- (0, smithy_client_1.throwDefaultError)({
417
+ return throwDefaultError({
537
418
  output,
538
419
  parsedBody,
539
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
540
420
  errorCode,
541
421
  });
542
422
  }
@@ -547,12 +427,12 @@ const de_CreateContactChannelCommand = async (output, context) => {
547
427
  }
548
428
  const data = await parseBody(output.body, context);
549
429
  let contents = {};
550
- contents = de_CreateContactChannelResult(data, context);
430
+ contents = (0, smithy_client_1._json)(data);
551
431
  const response = {
552
432
  $metadata: deserializeMetadata(output),
553
433
  ...contents,
554
434
  };
555
- return Promise.resolve(response);
435
+ return response;
556
436
  };
557
437
  exports.de_CreateContactChannelCommand = de_CreateContactChannelCommand;
558
438
  const de_CreateContactChannelCommandError = async (output, context) => {
@@ -582,10 +462,9 @@ const de_CreateContactChannelCommandError = async (output, context) => {
582
462
  throw await de_ValidationExceptionRes(parsedOutput, context);
583
463
  default:
584
464
  const parsedBody = parsedOutput.body;
585
- (0, smithy_client_1.throwDefaultError)({
465
+ return throwDefaultError({
586
466
  output,
587
467
  parsedBody,
588
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
589
468
  errorCode,
590
469
  });
591
470
  }
@@ -596,12 +475,12 @@ const de_CreateRotationCommand = async (output, context) => {
596
475
  }
597
476
  const data = await parseBody(output.body, context);
598
477
  let contents = {};
599
- contents = de_CreateRotationResult(data, context);
478
+ contents = (0, smithy_client_1._json)(data);
600
479
  const response = {
601
480
  $metadata: deserializeMetadata(output),
602
481
  ...contents,
603
482
  };
604
- return Promise.resolve(response);
483
+ return response;
605
484
  };
606
485
  exports.de_CreateRotationCommand = de_CreateRotationCommand;
607
486
  const de_CreateRotationCommandError = async (output, context) => {
@@ -631,10 +510,9 @@ const de_CreateRotationCommandError = async (output, context) => {
631
510
  throw await de_ValidationExceptionRes(parsedOutput, context);
632
511
  default:
633
512
  const parsedBody = parsedOutput.body;
634
- (0, smithy_client_1.throwDefaultError)({
513
+ return throwDefaultError({
635
514
  output,
636
515
  parsedBody,
637
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
638
516
  errorCode,
639
517
  });
640
518
  }
@@ -645,12 +523,12 @@ const de_CreateRotationOverrideCommand = async (output, context) => {
645
523
  }
646
524
  const data = await parseBody(output.body, context);
647
525
  let contents = {};
648
- contents = de_CreateRotationOverrideResult(data, context);
526
+ contents = (0, smithy_client_1._json)(data);
649
527
  const response = {
650
528
  $metadata: deserializeMetadata(output),
651
529
  ...contents,
652
530
  };
653
- return Promise.resolve(response);
531
+ return response;
654
532
  };
655
533
  exports.de_CreateRotationOverrideCommand = de_CreateRotationOverrideCommand;
656
534
  const de_CreateRotationOverrideCommandError = async (output, context) => {
@@ -680,10 +558,9 @@ const de_CreateRotationOverrideCommandError = async (output, context) => {
680
558
  throw await de_ValidationExceptionRes(parsedOutput, context);
681
559
  default:
682
560
  const parsedBody = parsedOutput.body;
683
- (0, smithy_client_1.throwDefaultError)({
561
+ return throwDefaultError({
684
562
  output,
685
563
  parsedBody,
686
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
687
564
  errorCode,
688
565
  });
689
566
  }
@@ -694,12 +571,12 @@ const de_DeactivateContactChannelCommand = async (output, context) => {
694
571
  }
695
572
  const data = await parseBody(output.body, context);
696
573
  let contents = {};
697
- contents = de_DeactivateContactChannelResult(data, context);
574
+ contents = (0, smithy_client_1._json)(data);
698
575
  const response = {
699
576
  $metadata: deserializeMetadata(output),
700
577
  ...contents,
701
578
  };
702
- return Promise.resolve(response);
579
+ return response;
703
580
  };
704
581
  exports.de_DeactivateContactChannelCommand = de_DeactivateContactChannelCommand;
705
582
  const de_DeactivateContactChannelCommandError = async (output, context) => {
@@ -726,10 +603,9 @@ const de_DeactivateContactChannelCommandError = async (output, context) => {
726
603
  throw await de_ValidationExceptionRes(parsedOutput, context);
727
604
  default:
728
605
  const parsedBody = parsedOutput.body;
729
- (0, smithy_client_1.throwDefaultError)({
606
+ return throwDefaultError({
730
607
  output,
731
608
  parsedBody,
732
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
733
609
  errorCode,
734
610
  });
735
611
  }
@@ -740,12 +616,12 @@ const de_DeleteContactCommand = async (output, context) => {
740
616
  }
741
617
  const data = await parseBody(output.body, context);
742
618
  let contents = {};
743
- contents = de_DeleteContactResult(data, context);
619
+ contents = (0, smithy_client_1._json)(data);
744
620
  const response = {
745
621
  $metadata: deserializeMetadata(output),
746
622
  ...contents,
747
623
  };
748
- return Promise.resolve(response);
624
+ return response;
749
625
  };
750
626
  exports.de_DeleteContactCommand = de_DeleteContactCommand;
751
627
  const de_DeleteContactCommandError = async (output, context) => {
@@ -775,10 +651,9 @@ const de_DeleteContactCommandError = async (output, context) => {
775
651
  throw await de_ValidationExceptionRes(parsedOutput, context);
776
652
  default:
777
653
  const parsedBody = parsedOutput.body;
778
- (0, smithy_client_1.throwDefaultError)({
654
+ return throwDefaultError({
779
655
  output,
780
656
  parsedBody,
781
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
782
657
  errorCode,
783
658
  });
784
659
  }
@@ -789,12 +664,12 @@ const de_DeleteContactChannelCommand = async (output, context) => {
789
664
  }
790
665
  const data = await parseBody(output.body, context);
791
666
  let contents = {};
792
- contents = de_DeleteContactChannelResult(data, context);
667
+ contents = (0, smithy_client_1._json)(data);
793
668
  const response = {
794
669
  $metadata: deserializeMetadata(output),
795
670
  ...contents,
796
671
  };
797
- return Promise.resolve(response);
672
+ return response;
798
673
  };
799
674
  exports.de_DeleteContactChannelCommand = de_DeleteContactChannelCommand;
800
675
  const de_DeleteContactChannelCommandError = async (output, context) => {
@@ -821,10 +696,9 @@ const de_DeleteContactChannelCommandError = async (output, context) => {
821
696
  throw await de_ValidationExceptionRes(parsedOutput, context);
822
697
  default:
823
698
  const parsedBody = parsedOutput.body;
824
- (0, smithy_client_1.throwDefaultError)({
699
+ return throwDefaultError({
825
700
  output,
826
701
  parsedBody,
827
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
828
702
  errorCode,
829
703
  });
830
704
  }
@@ -835,12 +709,12 @@ const de_DeleteRotationCommand = async (output, context) => {
835
709
  }
836
710
  const data = await parseBody(output.body, context);
837
711
  let contents = {};
838
- contents = de_DeleteRotationResult(data, context);
712
+ contents = (0, smithy_client_1._json)(data);
839
713
  const response = {
840
714
  $metadata: deserializeMetadata(output),
841
715
  ...contents,
842
716
  };
843
- return Promise.resolve(response);
717
+ return response;
844
718
  };
845
719
  exports.de_DeleteRotationCommand = de_DeleteRotationCommand;
846
720
  const de_DeleteRotationCommandError = async (output, context) => {
@@ -870,10 +744,9 @@ const de_DeleteRotationCommandError = async (output, context) => {
870
744
  throw await de_ValidationExceptionRes(parsedOutput, context);
871
745
  default:
872
746
  const parsedBody = parsedOutput.body;
873
- (0, smithy_client_1.throwDefaultError)({
747
+ return throwDefaultError({
874
748
  output,
875
749
  parsedBody,
876
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
877
750
  errorCode,
878
751
  });
879
752
  }
@@ -884,12 +757,12 @@ const de_DeleteRotationOverrideCommand = async (output, context) => {
884
757
  }
885
758
  const data = await parseBody(output.body, context);
886
759
  let contents = {};
887
- contents = de_DeleteRotationOverrideResult(data, context);
760
+ contents = (0, smithy_client_1._json)(data);
888
761
  const response = {
889
762
  $metadata: deserializeMetadata(output),
890
763
  ...contents,
891
764
  };
892
- return Promise.resolve(response);
765
+ return response;
893
766
  };
894
767
  exports.de_DeleteRotationOverrideCommand = de_DeleteRotationOverrideCommand;
895
768
  const de_DeleteRotationOverrideCommandError = async (output, context) => {
@@ -916,10 +789,9 @@ const de_DeleteRotationOverrideCommandError = async (output, context) => {
916
789
  throw await de_ValidationExceptionRes(parsedOutput, context);
917
790
  default:
918
791
  const parsedBody = parsedOutput.body;
919
- (0, smithy_client_1.throwDefaultError)({
792
+ return throwDefaultError({
920
793
  output,
921
794
  parsedBody,
922
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
923
795
  errorCode,
924
796
  });
925
797
  }
@@ -935,7 +807,7 @@ const de_DescribeEngagementCommand = async (output, context) => {
935
807
  $metadata: deserializeMetadata(output),
936
808
  ...contents,
937
809
  };
938
- return Promise.resolve(response);
810
+ return response;
939
811
  };
940
812
  exports.de_DescribeEngagementCommand = de_DescribeEngagementCommand;
941
813
  const de_DescribeEngagementCommandError = async (output, context) => {
@@ -965,10 +837,9 @@ const de_DescribeEngagementCommandError = async (output, context) => {
965
837
  throw await de_ValidationExceptionRes(parsedOutput, context);
966
838
  default:
967
839
  const parsedBody = parsedOutput.body;
968
- (0, smithy_client_1.throwDefaultError)({
840
+ return throwDefaultError({
969
841
  output,
970
842
  parsedBody,
971
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
972
843
  errorCode,
973
844
  });
974
845
  }
@@ -984,7 +855,7 @@ const de_DescribePageCommand = async (output, context) => {
984
855
  $metadata: deserializeMetadata(output),
985
856
  ...contents,
986
857
  };
987
- return Promise.resolve(response);
858
+ return response;
988
859
  };
989
860
  exports.de_DescribePageCommand = de_DescribePageCommand;
990
861
  const de_DescribePageCommandError = async (output, context) => {
@@ -1014,10 +885,9 @@ const de_DescribePageCommandError = async (output, context) => {
1014
885
  throw await de_ValidationExceptionRes(parsedOutput, context);
1015
886
  default:
1016
887
  const parsedBody = parsedOutput.body;
1017
- (0, smithy_client_1.throwDefaultError)({
888
+ return throwDefaultError({
1018
889
  output,
1019
890
  parsedBody,
1020
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1021
891
  errorCode,
1022
892
  });
1023
893
  }
@@ -1028,12 +898,12 @@ const de_GetContactCommand = async (output, context) => {
1028
898
  }
1029
899
  const data = await parseBody(output.body, context);
1030
900
  let contents = {};
1031
- contents = de_GetContactResult(data, context);
901
+ contents = (0, smithy_client_1._json)(data);
1032
902
  const response = {
1033
903
  $metadata: deserializeMetadata(output),
1034
904
  ...contents,
1035
905
  };
1036
- return Promise.resolve(response);
906
+ return response;
1037
907
  };
1038
908
  exports.de_GetContactCommand = de_GetContactCommand;
1039
909
  const de_GetContactCommandError = async (output, context) => {
@@ -1063,10 +933,9 @@ const de_GetContactCommandError = async (output, context) => {
1063
933
  throw await de_ValidationExceptionRes(parsedOutput, context);
1064
934
  default:
1065
935
  const parsedBody = parsedOutput.body;
1066
- (0, smithy_client_1.throwDefaultError)({
936
+ return throwDefaultError({
1067
937
  output,
1068
938
  parsedBody,
1069
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1070
939
  errorCode,
1071
940
  });
1072
941
  }
@@ -1077,12 +946,12 @@ const de_GetContactChannelCommand = async (output, context) => {
1077
946
  }
1078
947
  const data = await parseBody(output.body, context);
1079
948
  let contents = {};
1080
- contents = de_GetContactChannelResult(data, context);
949
+ contents = (0, smithy_client_1._json)(data);
1081
950
  const response = {
1082
951
  $metadata: deserializeMetadata(output),
1083
952
  ...contents,
1084
953
  };
1085
- return Promise.resolve(response);
954
+ return response;
1086
955
  };
1087
956
  exports.de_GetContactChannelCommand = de_GetContactChannelCommand;
1088
957
  const de_GetContactChannelCommandError = async (output, context) => {
@@ -1112,10 +981,9 @@ const de_GetContactChannelCommandError = async (output, context) => {
1112
981
  throw await de_ValidationExceptionRes(parsedOutput, context);
1113
982
  default:
1114
983
  const parsedBody = parsedOutput.body;
1115
- (0, smithy_client_1.throwDefaultError)({
984
+ return throwDefaultError({
1116
985
  output,
1117
986
  parsedBody,
1118
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1119
987
  errorCode,
1120
988
  });
1121
989
  }
@@ -1126,12 +994,12 @@ const de_GetContactPolicyCommand = async (output, context) => {
1126
994
  }
1127
995
  const data = await parseBody(output.body, context);
1128
996
  let contents = {};
1129
- contents = de_GetContactPolicyResult(data, context);
997
+ contents = (0, smithy_client_1._json)(data);
1130
998
  const response = {
1131
999
  $metadata: deserializeMetadata(output),
1132
1000
  ...contents,
1133
1001
  };
1134
- return Promise.resolve(response);
1002
+ return response;
1135
1003
  };
1136
1004
  exports.de_GetContactPolicyCommand = de_GetContactPolicyCommand;
1137
1005
  const de_GetContactPolicyCommandError = async (output, context) => {
@@ -1158,10 +1026,9 @@ const de_GetContactPolicyCommandError = async (output, context) => {
1158
1026
  throw await de_ValidationExceptionRes(parsedOutput, context);
1159
1027
  default:
1160
1028
  const parsedBody = parsedOutput.body;
1161
- (0, smithy_client_1.throwDefaultError)({
1029
+ return throwDefaultError({
1162
1030
  output,
1163
1031
  parsedBody,
1164
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1165
1032
  errorCode,
1166
1033
  });
1167
1034
  }
@@ -1177,7 +1044,7 @@ const de_GetRotationCommand = async (output, context) => {
1177
1044
  $metadata: deserializeMetadata(output),
1178
1045
  ...contents,
1179
1046
  };
1180
- return Promise.resolve(response);
1047
+ return response;
1181
1048
  };
1182
1049
  exports.de_GetRotationCommand = de_GetRotationCommand;
1183
1050
  const de_GetRotationCommandError = async (output, context) => {
@@ -1204,10 +1071,9 @@ const de_GetRotationCommandError = async (output, context) => {
1204
1071
  throw await de_ValidationExceptionRes(parsedOutput, context);
1205
1072
  default:
1206
1073
  const parsedBody = parsedOutput.body;
1207
- (0, smithy_client_1.throwDefaultError)({
1074
+ return throwDefaultError({
1208
1075
  output,
1209
1076
  parsedBody,
1210
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1211
1077
  errorCode,
1212
1078
  });
1213
1079
  }
@@ -1223,7 +1089,7 @@ const de_GetRotationOverrideCommand = async (output, context) => {
1223
1089
  $metadata: deserializeMetadata(output),
1224
1090
  ...contents,
1225
1091
  };
1226
- return Promise.resolve(response);
1092
+ return response;
1227
1093
  };
1228
1094
  exports.de_GetRotationOverrideCommand = de_GetRotationOverrideCommand;
1229
1095
  const de_GetRotationOverrideCommandError = async (output, context) => {
@@ -1250,10 +1116,9 @@ const de_GetRotationOverrideCommandError = async (output, context) => {
1250
1116
  throw await de_ValidationExceptionRes(parsedOutput, context);
1251
1117
  default:
1252
1118
  const parsedBody = parsedOutput.body;
1253
- (0, smithy_client_1.throwDefaultError)({
1119
+ return throwDefaultError({
1254
1120
  output,
1255
1121
  parsedBody,
1256
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1257
1122
  errorCode,
1258
1123
  });
1259
1124
  }
@@ -1264,12 +1129,12 @@ const de_ListContactChannelsCommand = async (output, context) => {
1264
1129
  }
1265
1130
  const data = await parseBody(output.body, context);
1266
1131
  let contents = {};
1267
- contents = de_ListContactChannelsResult(data, context);
1132
+ contents = (0, smithy_client_1._json)(data);
1268
1133
  const response = {
1269
1134
  $metadata: deserializeMetadata(output),
1270
1135
  ...contents,
1271
1136
  };
1272
- return Promise.resolve(response);
1137
+ return response;
1273
1138
  };
1274
1139
  exports.de_ListContactChannelsCommand = de_ListContactChannelsCommand;
1275
1140
  const de_ListContactChannelsCommandError = async (output, context) => {
@@ -1299,10 +1164,9 @@ const de_ListContactChannelsCommandError = async (output, context) => {
1299
1164
  throw await de_ValidationExceptionRes(parsedOutput, context);
1300
1165
  default:
1301
1166
  const parsedBody = parsedOutput.body;
1302
- (0, smithy_client_1.throwDefaultError)({
1167
+ return throwDefaultError({
1303
1168
  output,
1304
1169
  parsedBody,
1305
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1306
1170
  errorCode,
1307
1171
  });
1308
1172
  }
@@ -1313,12 +1177,12 @@ const de_ListContactsCommand = async (output, context) => {
1313
1177
  }
1314
1178
  const data = await parseBody(output.body, context);
1315
1179
  let contents = {};
1316
- contents = de_ListContactsResult(data, context);
1180
+ contents = (0, smithy_client_1._json)(data);
1317
1181
  const response = {
1318
1182
  $metadata: deserializeMetadata(output),
1319
1183
  ...contents,
1320
1184
  };
1321
- return Promise.resolve(response);
1185
+ return response;
1322
1186
  };
1323
1187
  exports.de_ListContactsCommand = de_ListContactsCommand;
1324
1188
  const de_ListContactsCommandError = async (output, context) => {
@@ -1342,10 +1206,9 @@ const de_ListContactsCommandError = async (output, context) => {
1342
1206
  throw await de_ValidationExceptionRes(parsedOutput, context);
1343
1207
  default:
1344
1208
  const parsedBody = parsedOutput.body;
1345
- (0, smithy_client_1.throwDefaultError)({
1209
+ return throwDefaultError({
1346
1210
  output,
1347
1211
  parsedBody,
1348
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1349
1212
  errorCode,
1350
1213
  });
1351
1214
  }
@@ -1361,7 +1224,7 @@ const de_ListEngagementsCommand = async (output, context) => {
1361
1224
  $metadata: deserializeMetadata(output),
1362
1225
  ...contents,
1363
1226
  };
1364
- return Promise.resolve(response);
1227
+ return response;
1365
1228
  };
1366
1229
  exports.de_ListEngagementsCommand = de_ListEngagementsCommand;
1367
1230
  const de_ListEngagementsCommandError = async (output, context) => {
@@ -1385,10 +1248,9 @@ const de_ListEngagementsCommandError = async (output, context) => {
1385
1248
  throw await de_ValidationExceptionRes(parsedOutput, context);
1386
1249
  default:
1387
1250
  const parsedBody = parsedOutput.body;
1388
- (0, smithy_client_1.throwDefaultError)({
1251
+ return throwDefaultError({
1389
1252
  output,
1390
1253
  parsedBody,
1391
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1392
1254
  errorCode,
1393
1255
  });
1394
1256
  }
@@ -1404,7 +1266,7 @@ const de_ListPageReceiptsCommand = async (output, context) => {
1404
1266
  $metadata: deserializeMetadata(output),
1405
1267
  ...contents,
1406
1268
  };
1407
- return Promise.resolve(response);
1269
+ return response;
1408
1270
  };
1409
1271
  exports.de_ListPageReceiptsCommand = de_ListPageReceiptsCommand;
1410
1272
  const de_ListPageReceiptsCommandError = async (output, context) => {
@@ -1431,10 +1293,9 @@ const de_ListPageReceiptsCommandError = async (output, context) => {
1431
1293
  throw await de_ValidationExceptionRes(parsedOutput, context);
1432
1294
  default:
1433
1295
  const parsedBody = parsedOutput.body;
1434
- (0, smithy_client_1.throwDefaultError)({
1296
+ return throwDefaultError({
1435
1297
  output,
1436
1298
  parsedBody,
1437
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1438
1299
  errorCode,
1439
1300
  });
1440
1301
  }
@@ -1445,12 +1306,12 @@ const de_ListPageResolutionsCommand = async (output, context) => {
1445
1306
  }
1446
1307
  const data = await parseBody(output.body, context);
1447
1308
  let contents = {};
1448
- contents = de_ListPageResolutionsResult(data, context);
1309
+ contents = (0, smithy_client_1._json)(data);
1449
1310
  const response = {
1450
1311
  $metadata: deserializeMetadata(output),
1451
1312
  ...contents,
1452
1313
  };
1453
- return Promise.resolve(response);
1314
+ return response;
1454
1315
  };
1455
1316
  exports.de_ListPageResolutionsCommand = de_ListPageResolutionsCommand;
1456
1317
  const de_ListPageResolutionsCommandError = async (output, context) => {
@@ -1477,10 +1338,9 @@ const de_ListPageResolutionsCommandError = async (output, context) => {
1477
1338
  throw await de_ValidationExceptionRes(parsedOutput, context);
1478
1339
  default:
1479
1340
  const parsedBody = parsedOutput.body;
1480
- (0, smithy_client_1.throwDefaultError)({
1341
+ return throwDefaultError({
1481
1342
  output,
1482
1343
  parsedBody,
1483
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1484
1344
  errorCode,
1485
1345
  });
1486
1346
  }
@@ -1496,7 +1356,7 @@ const de_ListPagesByContactCommand = async (output, context) => {
1496
1356
  $metadata: deserializeMetadata(output),
1497
1357
  ...contents,
1498
1358
  };
1499
- return Promise.resolve(response);
1359
+ return response;
1500
1360
  };
1501
1361
  exports.de_ListPagesByContactCommand = de_ListPagesByContactCommand;
1502
1362
  const de_ListPagesByContactCommandError = async (output, context) => {
@@ -1523,10 +1383,9 @@ const de_ListPagesByContactCommandError = async (output, context) => {
1523
1383
  throw await de_ValidationExceptionRes(parsedOutput, context);
1524
1384
  default:
1525
1385
  const parsedBody = parsedOutput.body;
1526
- (0, smithy_client_1.throwDefaultError)({
1386
+ return throwDefaultError({
1527
1387
  output,
1528
1388
  parsedBody,
1529
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1530
1389
  errorCode,
1531
1390
  });
1532
1391
  }
@@ -1542,7 +1401,7 @@ const de_ListPagesByEngagementCommand = async (output, context) => {
1542
1401
  $metadata: deserializeMetadata(output),
1543
1402
  ...contents,
1544
1403
  };
1545
- return Promise.resolve(response);
1404
+ return response;
1546
1405
  };
1547
1406
  exports.de_ListPagesByEngagementCommand = de_ListPagesByEngagementCommand;
1548
1407
  const de_ListPagesByEngagementCommandError = async (output, context) => {
@@ -1569,10 +1428,9 @@ const de_ListPagesByEngagementCommandError = async (output, context) => {
1569
1428
  throw await de_ValidationExceptionRes(parsedOutput, context);
1570
1429
  default:
1571
1430
  const parsedBody = parsedOutput.body;
1572
- (0, smithy_client_1.throwDefaultError)({
1431
+ return throwDefaultError({
1573
1432
  output,
1574
1433
  parsedBody,
1575
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1576
1434
  errorCode,
1577
1435
  });
1578
1436
  }
@@ -1588,7 +1446,7 @@ const de_ListPreviewRotationShiftsCommand = async (output, context) => {
1588
1446
  $metadata: deserializeMetadata(output),
1589
1447
  ...contents,
1590
1448
  };
1591
- return Promise.resolve(response);
1449
+ return response;
1592
1450
  };
1593
1451
  exports.de_ListPreviewRotationShiftsCommand = de_ListPreviewRotationShiftsCommand;
1594
1452
  const de_ListPreviewRotationShiftsCommandError = async (output, context) => {
@@ -1612,10 +1470,9 @@ const de_ListPreviewRotationShiftsCommandError = async (output, context) => {
1612
1470
  throw await de_ValidationExceptionRes(parsedOutput, context);
1613
1471
  default:
1614
1472
  const parsedBody = parsedOutput.body;
1615
- (0, smithy_client_1.throwDefaultError)({
1473
+ return throwDefaultError({
1616
1474
  output,
1617
1475
  parsedBody,
1618
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1619
1476
  errorCode,
1620
1477
  });
1621
1478
  }
@@ -1631,7 +1488,7 @@ const de_ListRotationOverridesCommand = async (output, context) => {
1631
1488
  $metadata: deserializeMetadata(output),
1632
1489
  ...contents,
1633
1490
  };
1634
- return Promise.resolve(response);
1491
+ return response;
1635
1492
  };
1636
1493
  exports.de_ListRotationOverridesCommand = de_ListRotationOverridesCommand;
1637
1494
  const de_ListRotationOverridesCommandError = async (output, context) => {
@@ -1658,10 +1515,9 @@ const de_ListRotationOverridesCommandError = async (output, context) => {
1658
1515
  throw await de_ValidationExceptionRes(parsedOutput, context);
1659
1516
  default:
1660
1517
  const parsedBody = parsedOutput.body;
1661
- (0, smithy_client_1.throwDefaultError)({
1518
+ return throwDefaultError({
1662
1519
  output,
1663
1520
  parsedBody,
1664
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1665
1521
  errorCode,
1666
1522
  });
1667
1523
  }
@@ -1677,7 +1533,7 @@ const de_ListRotationsCommand = async (output, context) => {
1677
1533
  $metadata: deserializeMetadata(output),
1678
1534
  ...contents,
1679
1535
  };
1680
- return Promise.resolve(response);
1536
+ return response;
1681
1537
  };
1682
1538
  exports.de_ListRotationsCommand = de_ListRotationsCommand;
1683
1539
  const de_ListRotationsCommandError = async (output, context) => {
@@ -1704,10 +1560,9 @@ const de_ListRotationsCommandError = async (output, context) => {
1704
1560
  throw await de_ValidationExceptionRes(parsedOutput, context);
1705
1561
  default:
1706
1562
  const parsedBody = parsedOutput.body;
1707
- (0, smithy_client_1.throwDefaultError)({
1563
+ return throwDefaultError({
1708
1564
  output,
1709
1565
  parsedBody,
1710
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1711
1566
  errorCode,
1712
1567
  });
1713
1568
  }
@@ -1723,7 +1578,7 @@ const de_ListRotationShiftsCommand = async (output, context) => {
1723
1578
  $metadata: deserializeMetadata(output),
1724
1579
  ...contents,
1725
1580
  };
1726
- return Promise.resolve(response);
1581
+ return response;
1727
1582
  };
1728
1583
  exports.de_ListRotationShiftsCommand = de_ListRotationShiftsCommand;
1729
1584
  const de_ListRotationShiftsCommandError = async (output, context) => {
@@ -1753,10 +1608,9 @@ const de_ListRotationShiftsCommandError = async (output, context) => {
1753
1608
  throw await de_ValidationExceptionRes(parsedOutput, context);
1754
1609
  default:
1755
1610
  const parsedBody = parsedOutput.body;
1756
- (0, smithy_client_1.throwDefaultError)({
1611
+ return throwDefaultError({
1757
1612
  output,
1758
1613
  parsedBody,
1759
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1760
1614
  errorCode,
1761
1615
  });
1762
1616
  }
@@ -1767,12 +1621,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1767
1621
  }
1768
1622
  const data = await parseBody(output.body, context);
1769
1623
  let contents = {};
1770
- contents = de_ListTagsForResourceResult(data, context);
1624
+ contents = (0, smithy_client_1._json)(data);
1771
1625
  const response = {
1772
1626
  $metadata: deserializeMetadata(output),
1773
1627
  ...contents,
1774
1628
  };
1775
- return Promise.resolve(response);
1629
+ return response;
1776
1630
  };
1777
1631
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1778
1632
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1799,10 +1653,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1799
1653
  throw await de_ValidationExceptionRes(parsedOutput, context);
1800
1654
  default:
1801
1655
  const parsedBody = parsedOutput.body;
1802
- (0, smithy_client_1.throwDefaultError)({
1656
+ return throwDefaultError({
1803
1657
  output,
1804
1658
  parsedBody,
1805
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1806
1659
  errorCode,
1807
1660
  });
1808
1661
  }
@@ -1813,12 +1666,12 @@ const de_PutContactPolicyCommand = async (output, context) => {
1813
1666
  }
1814
1667
  const data = await parseBody(output.body, context);
1815
1668
  let contents = {};
1816
- contents = de_PutContactPolicyResult(data, context);
1669
+ contents = (0, smithy_client_1._json)(data);
1817
1670
  const response = {
1818
1671
  $metadata: deserializeMetadata(output),
1819
1672
  ...contents,
1820
1673
  };
1821
- return Promise.resolve(response);
1674
+ return response;
1822
1675
  };
1823
1676
  exports.de_PutContactPolicyCommand = de_PutContactPolicyCommand;
1824
1677
  const de_PutContactPolicyCommandError = async (output, context) => {
@@ -1848,10 +1701,9 @@ const de_PutContactPolicyCommandError = async (output, context) => {
1848
1701
  throw await de_ValidationExceptionRes(parsedOutput, context);
1849
1702
  default:
1850
1703
  const parsedBody = parsedOutput.body;
1851
- (0, smithy_client_1.throwDefaultError)({
1704
+ return throwDefaultError({
1852
1705
  output,
1853
1706
  parsedBody,
1854
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1855
1707
  errorCode,
1856
1708
  });
1857
1709
  }
@@ -1862,12 +1714,12 @@ const de_SendActivationCodeCommand = async (output, context) => {
1862
1714
  }
1863
1715
  const data = await parseBody(output.body, context);
1864
1716
  let contents = {};
1865
- contents = de_SendActivationCodeResult(data, context);
1717
+ contents = (0, smithy_client_1._json)(data);
1866
1718
  const response = {
1867
1719
  $metadata: deserializeMetadata(output),
1868
1720
  ...contents,
1869
1721
  };
1870
- return Promise.resolve(response);
1722
+ return response;
1871
1723
  };
1872
1724
  exports.de_SendActivationCodeCommand = de_SendActivationCodeCommand;
1873
1725
  const de_SendActivationCodeCommandError = async (output, context) => {
@@ -1900,10 +1752,9 @@ const de_SendActivationCodeCommandError = async (output, context) => {
1900
1752
  throw await de_ValidationExceptionRes(parsedOutput, context);
1901
1753
  default:
1902
1754
  const parsedBody = parsedOutput.body;
1903
- (0, smithy_client_1.throwDefaultError)({
1755
+ return throwDefaultError({
1904
1756
  output,
1905
1757
  parsedBody,
1906
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1907
1758
  errorCode,
1908
1759
  });
1909
1760
  }
@@ -1914,12 +1765,12 @@ const de_StartEngagementCommand = async (output, context) => {
1914
1765
  }
1915
1766
  const data = await parseBody(output.body, context);
1916
1767
  let contents = {};
1917
- contents = de_StartEngagementResult(data, context);
1768
+ contents = (0, smithy_client_1._json)(data);
1918
1769
  const response = {
1919
1770
  $metadata: deserializeMetadata(output),
1920
1771
  ...contents,
1921
1772
  };
1922
- return Promise.resolve(response);
1773
+ return response;
1923
1774
  };
1924
1775
  exports.de_StartEngagementCommand = de_StartEngagementCommand;
1925
1776
  const de_StartEngagementCommandError = async (output, context) => {
@@ -1949,10 +1800,9 @@ const de_StartEngagementCommandError = async (output, context) => {
1949
1800
  throw await de_ValidationExceptionRes(parsedOutput, context);
1950
1801
  default:
1951
1802
  const parsedBody = parsedOutput.body;
1952
- (0, smithy_client_1.throwDefaultError)({
1803
+ return throwDefaultError({
1953
1804
  output,
1954
1805
  parsedBody,
1955
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
1956
1806
  errorCode,
1957
1807
  });
1958
1808
  }
@@ -1963,12 +1813,12 @@ const de_StopEngagementCommand = async (output, context) => {
1963
1813
  }
1964
1814
  const data = await parseBody(output.body, context);
1965
1815
  let contents = {};
1966
- contents = de_StopEngagementResult(data, context);
1816
+ contents = (0, smithy_client_1._json)(data);
1967
1817
  const response = {
1968
1818
  $metadata: deserializeMetadata(output),
1969
1819
  ...contents,
1970
1820
  };
1971
- return Promise.resolve(response);
1821
+ return response;
1972
1822
  };
1973
1823
  exports.de_StopEngagementCommand = de_StopEngagementCommand;
1974
1824
  const de_StopEngagementCommandError = async (output, context) => {
@@ -1995,10 +1845,9 @@ const de_StopEngagementCommandError = async (output, context) => {
1995
1845
  throw await de_ValidationExceptionRes(parsedOutput, context);
1996
1846
  default:
1997
1847
  const parsedBody = parsedOutput.body;
1998
- (0, smithy_client_1.throwDefaultError)({
1848
+ return throwDefaultError({
1999
1849
  output,
2000
1850
  parsedBody,
2001
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
2002
1851
  errorCode,
2003
1852
  });
2004
1853
  }
@@ -2009,12 +1858,12 @@ const de_TagResourceCommand = async (output, context) => {
2009
1858
  }
2010
1859
  const data = await parseBody(output.body, context);
2011
1860
  let contents = {};
2012
- contents = de_TagResourceResult(data, context);
1861
+ contents = (0, smithy_client_1._json)(data);
2013
1862
  const response = {
2014
1863
  $metadata: deserializeMetadata(output),
2015
1864
  ...contents,
2016
1865
  };
2017
- return Promise.resolve(response);
1866
+ return response;
2018
1867
  };
2019
1868
  exports.de_TagResourceCommand = de_TagResourceCommand;
2020
1869
  const de_TagResourceCommandError = async (output, context) => {
@@ -2044,10 +1893,9 @@ const de_TagResourceCommandError = async (output, context) => {
2044
1893
  throw await de_ValidationExceptionRes(parsedOutput, context);
2045
1894
  default:
2046
1895
  const parsedBody = parsedOutput.body;
2047
- (0, smithy_client_1.throwDefaultError)({
1896
+ return throwDefaultError({
2048
1897
  output,
2049
1898
  parsedBody,
2050
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
2051
1899
  errorCode,
2052
1900
  });
2053
1901
  }
@@ -2058,12 +1906,12 @@ const de_UntagResourceCommand = async (output, context) => {
2058
1906
  }
2059
1907
  const data = await parseBody(output.body, context);
2060
1908
  let contents = {};
2061
- contents = de_UntagResourceResult(data, context);
1909
+ contents = (0, smithy_client_1._json)(data);
2062
1910
  const response = {
2063
1911
  $metadata: deserializeMetadata(output),
2064
1912
  ...contents,
2065
1913
  };
2066
- return Promise.resolve(response);
1914
+ return response;
2067
1915
  };
2068
1916
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
2069
1917
  const de_UntagResourceCommandError = async (output, context) => {
@@ -2090,10 +1938,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2090
1938
  throw await de_ValidationExceptionRes(parsedOutput, context);
2091
1939
  default:
2092
1940
  const parsedBody = parsedOutput.body;
2093
- (0, smithy_client_1.throwDefaultError)({
1941
+ return throwDefaultError({
2094
1942
  output,
2095
1943
  parsedBody,
2096
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
2097
1944
  errorCode,
2098
1945
  });
2099
1946
  }
@@ -2104,12 +1951,12 @@ const de_UpdateContactCommand = async (output, context) => {
2104
1951
  }
2105
1952
  const data = await parseBody(output.body, context);
2106
1953
  let contents = {};
2107
- contents = de_UpdateContactResult(data, context);
1954
+ contents = (0, smithy_client_1._json)(data);
2108
1955
  const response = {
2109
1956
  $metadata: deserializeMetadata(output),
2110
1957
  ...contents,
2111
1958
  };
2112
- return Promise.resolve(response);
1959
+ return response;
2113
1960
  };
2114
1961
  exports.de_UpdateContactCommand = de_UpdateContactCommand;
2115
1962
  const de_UpdateContactCommandError = async (output, context) => {
@@ -2142,10 +1989,9 @@ const de_UpdateContactCommandError = async (output, context) => {
2142
1989
  throw await de_ValidationExceptionRes(parsedOutput, context);
2143
1990
  default:
2144
1991
  const parsedBody = parsedOutput.body;
2145
- (0, smithy_client_1.throwDefaultError)({
1992
+ return throwDefaultError({
2146
1993
  output,
2147
1994
  parsedBody,
2148
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
2149
1995
  errorCode,
2150
1996
  });
2151
1997
  }
@@ -2156,12 +2002,12 @@ const de_UpdateContactChannelCommand = async (output, context) => {
2156
2002
  }
2157
2003
  const data = await parseBody(output.body, context);
2158
2004
  let contents = {};
2159
- contents = de_UpdateContactChannelResult(data, context);
2005
+ contents = (0, smithy_client_1._json)(data);
2160
2006
  const response = {
2161
2007
  $metadata: deserializeMetadata(output),
2162
2008
  ...contents,
2163
2009
  };
2164
- return Promise.resolve(response);
2010
+ return response;
2165
2011
  };
2166
2012
  exports.de_UpdateContactChannelCommand = de_UpdateContactChannelCommand;
2167
2013
  const de_UpdateContactChannelCommandError = async (output, context) => {
@@ -2194,10 +2040,9 @@ const de_UpdateContactChannelCommandError = async (output, context) => {
2194
2040
  throw await de_ValidationExceptionRes(parsedOutput, context);
2195
2041
  default:
2196
2042
  const parsedBody = parsedOutput.body;
2197
- (0, smithy_client_1.throwDefaultError)({
2043
+ return throwDefaultError({
2198
2044
  output,
2199
2045
  parsedBody,
2200
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
2201
2046
  errorCode,
2202
2047
  });
2203
2048
  }
@@ -2208,12 +2053,12 @@ const de_UpdateRotationCommand = async (output, context) => {
2208
2053
  }
2209
2054
  const data = await parseBody(output.body, context);
2210
2055
  let contents = {};
2211
- contents = de_UpdateRotationResult(data, context);
2056
+ contents = (0, smithy_client_1._json)(data);
2212
2057
  const response = {
2213
2058
  $metadata: deserializeMetadata(output),
2214
2059
  ...contents,
2215
2060
  };
2216
- return Promise.resolve(response);
2061
+ return response;
2217
2062
  };
2218
2063
  exports.de_UpdateRotationCommand = de_UpdateRotationCommand;
2219
2064
  const de_UpdateRotationCommandError = async (output, context) => {
@@ -2243,17 +2088,16 @@ const de_UpdateRotationCommandError = async (output, context) => {
2243
2088
  throw await de_ValidationExceptionRes(parsedOutput, context);
2244
2089
  default:
2245
2090
  const parsedBody = parsedOutput.body;
2246
- (0, smithy_client_1.throwDefaultError)({
2091
+ return throwDefaultError({
2247
2092
  output,
2248
2093
  parsedBody,
2249
- exceptionCtor: SSMContactsServiceException_1.SSMContactsServiceException,
2250
2094
  errorCode,
2251
2095
  });
2252
2096
  }
2253
2097
  };
2254
2098
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2255
2099
  const body = parsedOutput.body;
2256
- const deserialized = de_AccessDeniedException(body, context);
2100
+ const deserialized = (0, smithy_client_1._json)(body);
2257
2101
  const exception = new models_0_1.AccessDeniedException({
2258
2102
  $metadata: deserializeMetadata(parsedOutput),
2259
2103
  ...deserialized,
@@ -2262,7 +2106,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2262
2106
  };
2263
2107
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
2264
2108
  const body = parsedOutput.body;
2265
- const deserialized = de_ConflictException(body, context);
2109
+ const deserialized = (0, smithy_client_1._json)(body);
2266
2110
  const exception = new models_0_1.ConflictException({
2267
2111
  $metadata: deserializeMetadata(parsedOutput),
2268
2112
  ...deserialized,
@@ -2271,7 +2115,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2271
2115
  };
2272
2116
  const de_DataEncryptionExceptionRes = async (parsedOutput, context) => {
2273
2117
  const body = parsedOutput.body;
2274
- const deserialized = de_DataEncryptionException(body, context);
2118
+ const deserialized = (0, smithy_client_1._json)(body);
2275
2119
  const exception = new models_0_1.DataEncryptionException({
2276
2120
  $metadata: deserializeMetadata(parsedOutput),
2277
2121
  ...deserialized,
@@ -2280,7 +2124,7 @@ const de_DataEncryptionExceptionRes = async (parsedOutput, context) => {
2280
2124
  };
2281
2125
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2282
2126
  const body = parsedOutput.body;
2283
- const deserialized = de_InternalServerException(body, context);
2127
+ const deserialized = (0, smithy_client_1._json)(body);
2284
2128
  const exception = new models_0_1.InternalServerException({
2285
2129
  $metadata: deserializeMetadata(parsedOutput),
2286
2130
  ...deserialized,
@@ -2289,7 +2133,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2289
2133
  };
2290
2134
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2291
2135
  const body = parsedOutput.body;
2292
- const deserialized = de_ResourceNotFoundException(body, context);
2136
+ const deserialized = (0, smithy_client_1._json)(body);
2293
2137
  const exception = new models_0_1.ResourceNotFoundException({
2294
2138
  $metadata: deserializeMetadata(parsedOutput),
2295
2139
  ...deserialized,
@@ -2298,7 +2142,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2298
2142
  };
2299
2143
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2300
2144
  const body = parsedOutput.body;
2301
- const deserialized = de_ServiceQuotaExceededException(body, context);
2145
+ const deserialized = (0, smithy_client_1._json)(body);
2302
2146
  const exception = new models_0_1.ServiceQuotaExceededException({
2303
2147
  $metadata: deserializeMetadata(parsedOutput),
2304
2148
  ...deserialized,
@@ -2307,7 +2151,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2307
2151
  };
2308
2152
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2309
2153
  const body = parsedOutput.body;
2310
- const deserialized = de_ThrottlingException(body, context);
2154
+ const deserialized = (0, smithy_client_1._json)(body);
2311
2155
  const exception = new models_0_1.ThrottlingException({
2312
2156
  $metadata: deserializeMetadata(parsedOutput),
2313
2157
  ...deserialized,
@@ -2316,280 +2160,90 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2316
2160
  };
2317
2161
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
2318
2162
  const body = parsedOutput.body;
2319
- const deserialized = de_ValidationException(body, context);
2163
+ const deserialized = (0, smithy_client_1._json)(body);
2320
2164
  const exception = new models_0_1.ValidationException({
2321
2165
  $metadata: deserializeMetadata(parsedOutput),
2322
2166
  ...deserialized,
2323
2167
  });
2324
2168
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2325
2169
  };
2326
- const se_AcceptPageRequest = (input, context) => {
2327
- return {
2328
- ...(input.AcceptCode != null && { AcceptCode: input.AcceptCode }),
2329
- ...(input.AcceptCodeValidation != null && { AcceptCodeValidation: input.AcceptCodeValidation }),
2330
- ...(input.AcceptType != null && { AcceptType: input.AcceptType }),
2331
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2332
- ...(input.Note != null && { Note: input.Note }),
2333
- ...(input.PageId != null && { PageId: input.PageId }),
2334
- };
2335
- };
2336
- const se_ActivateContactChannelRequest = (input, context) => {
2337
- return {
2338
- ...(input.ActivationCode != null && { ActivationCode: input.ActivationCode }),
2339
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2340
- };
2341
- };
2342
- const se_ChannelTargetInfo = (input, context) => {
2343
- return {
2344
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2345
- ...(input.RetryIntervalInMinutes != null && { RetryIntervalInMinutes: input.RetryIntervalInMinutes }),
2346
- };
2347
- };
2348
- const se_ContactChannelAddress = (input, context) => {
2349
- return {
2350
- ...(input.SimpleAddress != null && { SimpleAddress: input.SimpleAddress }),
2351
- };
2352
- };
2353
- const se_ContactTargetInfo = (input, context) => {
2354
- return {
2355
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2356
- ...(input.IsEssential != null && { IsEssential: input.IsEssential }),
2357
- };
2358
- };
2359
- const se_CoverageTime = (input, context) => {
2360
- return {
2361
- ...(input.End != null && { End: se_HandOffTime(input.End, context) }),
2362
- ...(input.Start != null && { Start: se_HandOffTime(input.Start, context) }),
2363
- };
2364
- };
2365
- const se_CoverageTimes = (input, context) => {
2366
- return input
2367
- .filter((e) => e != null)
2368
- .map((entry) => {
2369
- return se_CoverageTime(entry, context);
2370
- });
2371
- };
2372
2170
  const se_CreateContactChannelRequest = (input, context) => {
2373
- return {
2374
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2375
- ...(input.DeferActivation != null && { DeferActivation: input.DeferActivation }),
2376
- ...(input.DeliveryAddress != null && { DeliveryAddress: se_ContactChannelAddress(input.DeliveryAddress, context) }),
2377
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2378
- ...(input.Name != null && { Name: input.Name }),
2379
- ...(input.Type != null && { Type: input.Type }),
2380
- };
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: [],
2178
+ });
2381
2179
  };
2382
2180
  const se_CreateContactRequest = (input, context) => {
2383
- return {
2384
- ...(input.Alias != null && { Alias: input.Alias }),
2385
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
2386
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2387
- ...(input.Plan != null && { Plan: se_Plan(input.Plan, context) }),
2388
- ...(input.Tags != null && { Tags: se_TagsList(input.Tags, context) }),
2389
- ...(input.Type != null && { Type: input.Type }),
2390
- };
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: [],
2188
+ });
2391
2189
  };
2392
2190
  const se_CreateRotationOverrideRequest = (input, context) => {
2393
- return {
2394
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2395
- ...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
2396
- ...(input.NewContactIds != null && {
2397
- NewContactIds: se_RotationOverrideContactsArnList(input.NewContactIds, context),
2398
- }),
2399
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2400
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2401
- };
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
+ });
2402
2198
  };
2403
2199
  const se_CreateRotationRequest = (input, context) => {
2404
- return {
2405
- ...(input.ContactIds != null && { ContactIds: se_RotationContactsArnList(input.ContactIds, context) }),
2406
- ...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
2407
- ...(input.Name != null && { Name: input.Name }),
2408
- ...(input.Recurrence != null && { Recurrence: se_RecurrenceSettings(input.Recurrence, context) }),
2409
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2410
- ...(input.Tags != null && { Tags: se_TagsList(input.Tags, context) }),
2411
- ...(input.TimeZoneId != null && { TimeZoneId: input.TimeZoneId }),
2412
- };
2413
- };
2414
- const se_DailySettings = (input, context) => {
2415
- return input
2416
- .filter((e) => e != null)
2417
- .map((entry) => {
2418
- return se_HandOffTime(entry, 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: [],
2419
2208
  });
2420
2209
  };
2421
- const se_DeactivateContactChannelRequest = (input, context) => {
2422
- return {
2423
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2424
- };
2425
- };
2426
- const se_DeleteContactChannelRequest = (input, context) => {
2427
- return {
2428
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2429
- };
2430
- };
2431
- const se_DeleteContactRequest = (input, context) => {
2432
- return {
2433
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2434
- };
2435
- };
2436
- const se_DeleteRotationOverrideRequest = (input, context) => {
2437
- return {
2438
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2439
- ...(input.RotationOverrideId != null && { RotationOverrideId: input.RotationOverrideId }),
2440
- };
2441
- };
2442
- const se_DeleteRotationRequest = (input, context) => {
2443
- return {
2444
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2445
- };
2446
- };
2447
- const se_DescribeEngagementRequest = (input, context) => {
2448
- return {
2449
- ...(input.EngagementId != null && { EngagementId: input.EngagementId }),
2450
- };
2451
- };
2452
- const se_DescribePageRequest = (input, context) => {
2453
- return {
2454
- ...(input.PageId != null && { PageId: input.PageId }),
2455
- };
2456
- };
2457
- const se_GetContactChannelRequest = (input, context) => {
2458
- return {
2459
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2460
- };
2461
- };
2462
- const se_GetContactPolicyRequest = (input, context) => {
2463
- return {
2464
- ...(input.ContactArn != null && { ContactArn: input.ContactArn }),
2465
- };
2466
- };
2467
- const se_GetContactRequest = (input, context) => {
2468
- return {
2469
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2470
- };
2471
- };
2472
- const se_GetRotationOverrideRequest = (input, context) => {
2473
- return {
2474
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2475
- ...(input.RotationOverrideId != null && { RotationOverrideId: input.RotationOverrideId }),
2476
- };
2477
- };
2478
- const se_GetRotationRequest = (input, context) => {
2479
- return {
2480
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2481
- };
2482
- };
2483
- const se_HandOffTime = (input, context) => {
2484
- return {
2485
- ...(input.HourOfDay != null && { HourOfDay: input.HourOfDay }),
2486
- ...(input.MinuteOfHour != null && { MinuteOfHour: input.MinuteOfHour }),
2487
- };
2488
- };
2489
- const se_ListContactChannelsRequest = (input, context) => {
2490
- return {
2491
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2492
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2493
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2494
- };
2495
- };
2496
- const se_ListContactsRequest = (input, context) => {
2497
- return {
2498
- ...(input.AliasPrefix != null && { AliasPrefix: input.AliasPrefix }),
2499
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2500
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2501
- ...(input.Type != null && { Type: input.Type }),
2502
- };
2503
- };
2504
2210
  const se_ListEngagementsRequest = (input, context) => {
2505
- return {
2506
- ...(input.IncidentId != null && { IncidentId: input.IncidentId }),
2507
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2508
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2509
- ...(input.TimeRangeValue != null && { TimeRangeValue: se_TimeRange(input.TimeRangeValue, context) }),
2510
- };
2511
- };
2512
- const se_ListPageReceiptsRequest = (input, context) => {
2513
- return {
2514
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2515
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2516
- ...(input.PageId != null && { PageId: input.PageId }),
2517
- };
2518
- };
2519
- const se_ListPageResolutionsRequest = (input, context) => {
2520
- return {
2521
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2522
- ...(input.PageId != null && { PageId: input.PageId }),
2523
- };
2524
- };
2525
- const se_ListPagesByContactRequest = (input, context) => {
2526
- return {
2527
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2528
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2529
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2530
- };
2531
- };
2532
- const se_ListPagesByEngagementRequest = (input, context) => {
2533
- return {
2534
- ...(input.EngagementId != null && { EngagementId: input.EngagementId }),
2535
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2536
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2537
- };
2211
+ return (0, smithy_client_1.take)(input, {
2212
+ IncidentId: [],
2213
+ MaxResults: [],
2214
+ NextToken: [],
2215
+ TimeRangeValue: (_) => se_TimeRange(_, context),
2216
+ });
2538
2217
  };
2539
2218
  const se_ListPreviewRotationShiftsRequest = (input, context) => {
2540
- return {
2541
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2542
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2543
- ...(input.Members != null && { Members: se_RotationPreviewMemberList(input.Members, context) }),
2544
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2545
- ...(input.Overrides != null && { Overrides: se_OverrideList(input.Overrides, context) }),
2546
- ...(input.Recurrence != null && { Recurrence: se_RecurrenceSettings(input.Recurrence, context) }),
2547
- ...(input.RotationStartTime != null && { RotationStartTime: Math.round(input.RotationStartTime.getTime() / 1000) }),
2548
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2549
- ...(input.TimeZoneId != null && { TimeZoneId: input.TimeZoneId }),
2550
- };
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
+ });
2551
2230
  };
2552
2231
  const se_ListRotationOverridesRequest = (input, context) => {
2553
- return {
2554
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2555
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2556
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2557
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2558
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2559
- };
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
+ });
2560
2239
  };
2561
2240
  const se_ListRotationShiftsRequest = (input, context) => {
2562
- return {
2563
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2564
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2565
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2566
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2567
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2568
- };
2569
- };
2570
- const se_ListRotationsRequest = (input, context) => {
2571
- return {
2572
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2573
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2574
- ...(input.RotationNamePrefix != null && { RotationNamePrefix: input.RotationNamePrefix }),
2575
- };
2576
- };
2577
- const se_ListTagsForResourceRequest = (input, context) => {
2578
- return {
2579
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
2580
- };
2581
- };
2582
- const se_MonthlySetting = (input, context) => {
2583
- return {
2584
- ...(input.DayOfMonth != null && { DayOfMonth: input.DayOfMonth }),
2585
- ...(input.HandOffTime != null && { HandOffTime: se_HandOffTime(input.HandOffTime, context) }),
2586
- };
2587
- };
2588
- const se_MonthlySettings = (input, context) => {
2589
- return input
2590
- .filter((e) => e != null)
2591
- .map((entry) => {
2592
- return se_MonthlySetting(entry, 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),
2593
2247
  });
2594
2248
  };
2595
2249
  const se_OverrideList = (input, context) => {
@@ -2599,692 +2253,215 @@ const se_OverrideList = (input, context) => {
2599
2253
  return se_PreviewOverride(entry, context);
2600
2254
  });
2601
2255
  };
2602
- const se_Plan = (input, context) => {
2603
- return {
2604
- ...(input.RotationIds != null && { RotationIds: se_SsmContactsArnList(input.RotationIds, context) }),
2605
- ...(input.Stages != null && { Stages: se_StagesList(input.Stages, context) }),
2606
- };
2607
- };
2608
2256
  const se_PreviewOverride = (input, context) => {
2609
- return {
2610
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2611
- ...(input.NewMembers != null && { NewMembers: se_RotationOverridePreviewMemberList(input.NewMembers, context) }),
2612
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2613
- };
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
+ });
2614
2262
  };
2615
- const se_PutContactPolicyRequest = (input, context) => {
2616
- return {
2617
- ...(input.ContactArn != null && { ContactArn: input.ContactArn }),
2618
- ...(input.Policy != null && { Policy: input.Policy }),
2619
- };
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
+ });
2620
2274
  };
2621
- const se_RecurrenceSettings = (input, context) => {
2622
- return {
2623
- ...(input.DailySettings != null && { DailySettings: se_DailySettings(input.DailySettings, context) }),
2624
- ...(input.MonthlySettings != null && { MonthlySettings: se_MonthlySettings(input.MonthlySettings, context) }),
2625
- ...(input.NumberOfOnCalls != null && { NumberOfOnCalls: input.NumberOfOnCalls }),
2626
- ...(input.RecurrenceMultiplier != null && { RecurrenceMultiplier: input.RecurrenceMultiplier }),
2627
- ...(input.ShiftCoverages != null && { ShiftCoverages: se_ShiftCoveragesMap(input.ShiftCoverages, context) }),
2628
- ...(input.WeeklySettings != null && { WeeklySettings: se_WeeklySettings(input.WeeklySettings, context) }),
2629
- };
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
+ });
2630
2280
  };
2631
- const se_RotationContactsArnList = (input, context) => {
2632
- return input
2633
- .filter((e) => e != null)
2634
- .map((entry) => {
2635
- return entry;
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: [],
2636
2288
  });
2637
2289
  };
2638
- const se_RotationOverrideContactsArnList = (input, context) => {
2639
- return input
2640
- .filter((e) => e != null)
2641
- .map((entry) => {
2642
- return entry;
2290
+ const de_DescribeEngagementResult = (output, context) => {
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,
2643
2302
  });
2644
2303
  };
2645
- const se_RotationOverridePreviewMemberList = (input, context) => {
2646
- return input
2647
- .filter((e) => e != null)
2648
- .map((entry) => {
2649
- return entry;
2304
+ const de_DescribePageResult = (output, context) => {
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,
2650
2318
  });
2651
2319
  };
2652
- const se_RotationPreviewMemberList = (input, context) => {
2653
- return input
2320
+ const de_Engagement = (output, context) => {
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
+ });
2329
+ };
2330
+ const de_EngagementsList = (output, context) => {
2331
+ const retVal = (output || [])
2654
2332
  .filter((e) => e != null)
2655
2333
  .map((entry) => {
2656
- return entry;
2334
+ return de_Engagement(entry, context);
2657
2335
  });
2336
+ return retVal;
2658
2337
  };
2659
- const se_SendActivationCodeRequest = (input, context) => {
2660
- return {
2661
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2662
- };
2338
+ const de_GetRotationOverrideResult = (output, context) => {
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
+ });
2663
2347
  };
2664
- const se_ShiftCoveragesMap = (input, context) => {
2665
- return Object.entries(input).reduce((acc, [key, value]) => {
2666
- if (value === null) {
2667
- return acc;
2668
- }
2669
- acc[key] = se_CoverageTimes(value, context);
2670
- return acc;
2671
- }, {});
2348
+ const de_GetRotationResult = (output, context) => {
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
+ });
2672
2357
  };
2673
- const se_SsmContactsArnList = (input, context) => {
2674
- return input
2675
- .filter((e) => e != null)
2676
- .map((entry) => {
2677
- return entry;
2358
+ const de_ListEngagementsResult = (output, context) => {
2359
+ return (0, smithy_client_1.take)(output, {
2360
+ Engagements: (_) => de_EngagementsList(_, context),
2361
+ NextToken: smithy_client_1.expectString,
2678
2362
  });
2679
2363
  };
2680
- const se_Stage = (input, context) => {
2681
- return {
2682
- ...(input.DurationInMinutes != null && { DurationInMinutes: input.DurationInMinutes }),
2683
- ...(input.Targets != null && { Targets: se_TargetsList(input.Targets, context) }),
2684
- };
2364
+ const de_ListPageReceiptsResult = (output, context) => {
2365
+ return (0, smithy_client_1.take)(output, {
2366
+ NextToken: smithy_client_1.expectString,
2367
+ Receipts: (_) => de_ReceiptsList(_, context),
2368
+ });
2685
2369
  };
2686
- const se_StagesList = (input, context) => {
2687
- return input
2688
- .filter((e) => e != null)
2689
- .map((entry) => {
2690
- return se_Stage(entry, context);
2370
+ const de_ListPagesByContactResult = (output, context) => {
2371
+ return (0, smithy_client_1.take)(output, {
2372
+ NextToken: smithy_client_1.expectString,
2373
+ Pages: (_) => de_PagesList(_, context),
2691
2374
  });
2692
2375
  };
2693
- const se_StartEngagementRequest = (input, context) => {
2694
- return {
2695
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2696
- ...(input.Content != null && { Content: input.Content }),
2697
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2698
- ...(input.IncidentId != null && { IncidentId: input.IncidentId }),
2699
- ...(input.PublicContent != null && { PublicContent: input.PublicContent }),
2700
- ...(input.PublicSubject != null && { PublicSubject: input.PublicSubject }),
2701
- ...(input.Sender != null && { Sender: input.Sender }),
2702
- ...(input.Subject != null && { Subject: input.Subject }),
2703
- };
2704
- };
2705
- const se_StopEngagementRequest = (input, context) => {
2706
- return {
2707
- ...(input.EngagementId != null && { EngagementId: input.EngagementId }),
2708
- ...(input.Reason != null && { Reason: input.Reason }),
2709
- };
2710
- };
2711
- const se_Tag = (input, context) => {
2712
- return {
2713
- ...(input.Key != null && { Key: input.Key }),
2714
- ...(input.Value != null && { Value: input.Value }),
2715
- };
2716
- };
2717
- const se_TagKeyList = (input, context) => {
2718
- return input
2719
- .filter((e) => e != null)
2720
- .map((entry) => {
2721
- return entry;
2722
- });
2723
- };
2724
- const se_TagResourceRequest = (input, context) => {
2725
- return {
2726
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
2727
- ...(input.Tags != null && { Tags: se_TagsList(input.Tags, context) }),
2728
- };
2729
- };
2730
- const se_TagsList = (input, context) => {
2731
- return input
2732
- .filter((e) => e != null)
2733
- .map((entry) => {
2734
- return se_Tag(entry, context);
2735
- });
2736
- };
2737
- const se_Target = (input, context) => {
2738
- return {
2739
- ...(input.ChannelTargetInfo != null && {
2740
- ChannelTargetInfo: se_ChannelTargetInfo(input.ChannelTargetInfo, context),
2741
- }),
2742
- ...(input.ContactTargetInfo != null && {
2743
- ContactTargetInfo: se_ContactTargetInfo(input.ContactTargetInfo, context),
2744
- }),
2745
- };
2746
- };
2747
- const se_TargetsList = (input, context) => {
2748
- return input
2749
- .filter((e) => e != null)
2750
- .map((entry) => {
2751
- return se_Target(entry, context);
2752
- });
2753
- };
2754
- const se_TimeRange = (input, context) => {
2755
- return {
2756
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2757
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2758
- };
2759
- };
2760
- const se_UntagResourceRequest = (input, context) => {
2761
- return {
2762
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
2763
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
2764
- };
2765
- };
2766
- const se_UpdateContactChannelRequest = (input, context) => {
2767
- return {
2768
- ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
2769
- ...(input.DeliveryAddress != null && { DeliveryAddress: se_ContactChannelAddress(input.DeliveryAddress, context) }),
2770
- ...(input.Name != null && { Name: input.Name }),
2771
- };
2772
- };
2773
- const se_UpdateContactRequest = (input, context) => {
2774
- return {
2775
- ...(input.ContactId != null && { ContactId: input.ContactId }),
2776
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
2777
- ...(input.Plan != null && { Plan: se_Plan(input.Plan, context) }),
2778
- };
2779
- };
2780
- const se_UpdateRotationRequest = (input, context) => {
2781
- return {
2782
- ...(input.ContactIds != null && { ContactIds: se_RotationContactsArnList(input.ContactIds, context) }),
2783
- ...(input.Recurrence != null && { Recurrence: se_RecurrenceSettings(input.Recurrence, context) }),
2784
- ...(input.RotationId != null && { RotationId: input.RotationId }),
2785
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2786
- ...(input.TimeZoneId != null && { TimeZoneId: input.TimeZoneId }),
2787
- };
2788
- };
2789
- const se_WeeklySetting = (input, context) => {
2790
- return {
2791
- ...(input.DayOfWeek != null && { DayOfWeek: input.DayOfWeek }),
2792
- ...(input.HandOffTime != null && { HandOffTime: se_HandOffTime(input.HandOffTime, context) }),
2793
- };
2794
- };
2795
- const se_WeeklySettings = (input, context) => {
2796
- return input
2797
- .filter((e) => e != null)
2798
- .map((entry) => {
2799
- return se_WeeklySetting(entry, context);
2800
- });
2801
- };
2802
- const de_AcceptPageResult = (output, context) => {
2803
- return {};
2804
- };
2805
- const de_AccessDeniedException = (output, context) => {
2806
- return {
2807
- Message: (0, smithy_client_1.expectString)(output.Message),
2808
- };
2809
- };
2810
- const de_ActivateContactChannelResult = (output, context) => {
2811
- return {};
2812
- };
2813
- const de_ChannelTargetInfo = (output, context) => {
2814
- return {
2815
- ContactChannelId: (0, smithy_client_1.expectString)(output.ContactChannelId),
2816
- RetryIntervalInMinutes: (0, smithy_client_1.expectInt32)(output.RetryIntervalInMinutes),
2817
- };
2818
- };
2819
- const de_ConflictException = (output, context) => {
2820
- return {
2821
- DependentEntities: output.DependentEntities != null ? de_DependentEntityList(output.DependentEntities, context) : undefined,
2822
- Message: (0, smithy_client_1.expectString)(output.Message),
2823
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
2824
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
2825
- };
2826
- };
2827
- const de_Contact = (output, context) => {
2828
- return {
2829
- Alias: (0, smithy_client_1.expectString)(output.Alias),
2830
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2831
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
2832
- Type: (0, smithy_client_1.expectString)(output.Type),
2833
- };
2834
- };
2835
- const de_ContactChannel = (output, context) => {
2836
- return {
2837
- ActivationStatus: (0, smithy_client_1.expectString)(output.ActivationStatus),
2838
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2839
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
2840
- DeliveryAddress: output.DeliveryAddress != null ? de_ContactChannelAddress(output.DeliveryAddress, context) : undefined,
2841
- Name: (0, smithy_client_1.expectString)(output.Name),
2842
- Type: (0, smithy_client_1.expectString)(output.Type),
2843
- };
2844
- };
2845
- const de_ContactChannelAddress = (output, context) => {
2846
- return {
2847
- SimpleAddress: (0, smithy_client_1.expectString)(output.SimpleAddress),
2848
- };
2849
- };
2850
- const de_ContactChannelList = (output, context) => {
2851
- const retVal = (output || [])
2852
- .filter((e) => e != null)
2853
- .map((entry) => {
2854
- if (entry === null) {
2855
- return null;
2856
- }
2857
- return de_ContactChannel(entry, context);
2858
- });
2859
- return retVal;
2860
- };
2861
- const de_ContactsList = (output, context) => {
2862
- const retVal = (output || [])
2863
- .filter((e) => e != null)
2864
- .map((entry) => {
2865
- if (entry === null) {
2866
- return null;
2867
- }
2868
- return de_Contact(entry, context);
2869
- });
2870
- return retVal;
2871
- };
2872
- const de_ContactTargetInfo = (output, context) => {
2873
- return {
2874
- ContactId: (0, smithy_client_1.expectString)(output.ContactId),
2875
- IsEssential: (0, smithy_client_1.expectBoolean)(output.IsEssential),
2876
- };
2877
- };
2878
- const de_CoverageTime = (output, context) => {
2879
- return {
2880
- End: output.End != null ? de_HandOffTime(output.End, context) : undefined,
2881
- Start: output.Start != null ? de_HandOffTime(output.Start, context) : undefined,
2882
- };
2883
- };
2884
- const de_CoverageTimes = (output, context) => {
2885
- const retVal = (output || [])
2886
- .filter((e) => e != null)
2887
- .map((entry) => {
2888
- if (entry === null) {
2889
- return null;
2890
- }
2891
- return de_CoverageTime(entry, context);
2892
- });
2893
- return retVal;
2894
- };
2895
- const de_CreateContactChannelResult = (output, context) => {
2896
- return {
2897
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
2898
- };
2899
- };
2900
- const de_CreateContactResult = (output, context) => {
2901
- return {
2902
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2903
- };
2904
- };
2905
- const de_CreateRotationOverrideResult = (output, context) => {
2906
- return {
2907
- RotationOverrideId: (0, smithy_client_1.expectString)(output.RotationOverrideId),
2908
- };
2909
- };
2910
- const de_CreateRotationResult = (output, context) => {
2911
- return {
2912
- RotationArn: (0, smithy_client_1.expectString)(output.RotationArn),
2913
- };
2914
- };
2915
- const de_DailySettings = (output, context) => {
2916
- const retVal = (output || [])
2917
- .filter((e) => e != null)
2918
- .map((entry) => {
2919
- if (entry === null) {
2920
- return null;
2921
- }
2922
- return de_HandOffTime(entry, context);
2923
- });
2924
- return retVal;
2925
- };
2926
- const de_DataEncryptionException = (output, context) => {
2927
- return {
2928
- Message: (0, smithy_client_1.expectString)(output.Message),
2929
- };
2930
- };
2931
- const de_DeactivateContactChannelResult = (output, context) => {
2932
- return {};
2933
- };
2934
- const de_DeleteContactChannelResult = (output, context) => {
2935
- return {};
2936
- };
2937
- const de_DeleteContactResult = (output, context) => {
2938
- return {};
2939
- };
2940
- const de_DeleteRotationOverrideResult = (output, context) => {
2941
- return {};
2942
- };
2943
- const de_DeleteRotationResult = (output, context) => {
2944
- return {};
2945
- };
2946
- const de_DependentEntity = (output, context) => {
2947
- return {
2948
- DependentResourceIds: output.DependentResourceIds != null ? de_SsmContactsArnList(output.DependentResourceIds, context) : undefined,
2949
- RelationType: (0, smithy_client_1.expectString)(output.RelationType),
2950
- };
2951
- };
2952
- const de_DependentEntityList = (output, context) => {
2953
- const retVal = (output || [])
2954
- .filter((e) => e != null)
2955
- .map((entry) => {
2956
- if (entry === null) {
2957
- return null;
2958
- }
2959
- return de_DependentEntity(entry, context);
2960
- });
2961
- return retVal;
2962
- };
2963
- const de_DescribeEngagementResult = (output, context) => {
2964
- return {
2965
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2966
- Content: (0, smithy_client_1.expectString)(output.Content),
2967
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
2968
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
2969
- PublicContent: (0, smithy_client_1.expectString)(output.PublicContent),
2970
- PublicSubject: (0, smithy_client_1.expectString)(output.PublicSubject),
2971
- Sender: (0, smithy_client_1.expectString)(output.Sender),
2972
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2973
- StopTime: output.StopTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StopTime))) : undefined,
2974
- Subject: (0, smithy_client_1.expectString)(output.Subject),
2975
- };
2976
- };
2977
- const de_DescribePageResult = (output, context) => {
2978
- return {
2979
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2980
- Content: (0, smithy_client_1.expectString)(output.Content),
2981
- DeliveryTime: output.DeliveryTime != null
2982
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeliveryTime)))
2983
- : undefined,
2984
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
2985
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
2986
- PageArn: (0, smithy_client_1.expectString)(output.PageArn),
2987
- PublicContent: (0, smithy_client_1.expectString)(output.PublicContent),
2988
- PublicSubject: (0, smithy_client_1.expectString)(output.PublicSubject),
2989
- ReadTime: output.ReadTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadTime))) : undefined,
2990
- Sender: (0, smithy_client_1.expectString)(output.Sender),
2991
- SentTime: output.SentTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SentTime))) : undefined,
2992
- Subject: (0, smithy_client_1.expectString)(output.Subject),
2993
- };
2994
- };
2995
- const de_Engagement = (output, context) => {
2996
- return {
2997
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2998
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
2999
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
3000
- Sender: (0, smithy_client_1.expectString)(output.Sender),
3001
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3002
- StopTime: output.StopTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StopTime))) : undefined,
3003
- };
3004
- };
3005
- const de_EngagementsList = (output, context) => {
3006
- const retVal = (output || [])
3007
- .filter((e) => e != null)
3008
- .map((entry) => {
3009
- if (entry === null) {
3010
- return null;
3011
- }
3012
- return de_Engagement(entry, context);
3013
- });
3014
- return retVal;
3015
- };
3016
- const de_GetContactChannelResult = (output, context) => {
3017
- return {
3018
- ActivationStatus: (0, smithy_client_1.expectString)(output.ActivationStatus),
3019
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3020
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
3021
- DeliveryAddress: output.DeliveryAddress != null ? de_ContactChannelAddress(output.DeliveryAddress, context) : undefined,
3022
- Name: (0, smithy_client_1.expectString)(output.Name),
3023
- Type: (0, smithy_client_1.expectString)(output.Type),
3024
- };
3025
- };
3026
- const de_GetContactPolicyResult = (output, context) => {
3027
- return {
3028
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3029
- Policy: (0, smithy_client_1.expectString)(output.Policy),
3030
- };
3031
- };
3032
- const de_GetContactResult = (output, context) => {
3033
- return {
3034
- Alias: (0, smithy_client_1.expectString)(output.Alias),
3035
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3036
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
3037
- Plan: output.Plan != null ? de_Plan(output.Plan, context) : undefined,
3038
- Type: (0, smithy_client_1.expectString)(output.Type),
3039
- };
3040
- };
3041
- const de_GetRotationOverrideResult = (output, context) => {
3042
- return {
3043
- CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined,
3044
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
3045
- NewContactIds: output.NewContactIds != null ? de_SsmContactsArnList(output.NewContactIds, context) : undefined,
3046
- RotationArn: (0, smithy_client_1.expectString)(output.RotationArn),
3047
- RotationOverrideId: (0, smithy_client_1.expectString)(output.RotationOverrideId),
3048
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3049
- };
3050
- };
3051
- const de_GetRotationResult = (output, context) => {
3052
- return {
3053
- ContactIds: output.ContactIds != null ? de_RotationContactsArnList(output.ContactIds, context) : undefined,
3054
- Name: (0, smithy_client_1.expectString)(output.Name),
3055
- Recurrence: output.Recurrence != null ? de_RecurrenceSettings(output.Recurrence, context) : undefined,
3056
- RotationArn: (0, smithy_client_1.expectString)(output.RotationArn),
3057
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3058
- TimeZoneId: (0, smithy_client_1.expectString)(output.TimeZoneId),
3059
- };
3060
- };
3061
- const de_HandOffTime = (output, context) => {
3062
- return {
3063
- HourOfDay: (0, smithy_client_1.expectInt32)(output.HourOfDay),
3064
- MinuteOfHour: (0, smithy_client_1.expectInt32)(output.MinuteOfHour),
3065
- };
3066
- };
3067
- const de_InternalServerException = (output, context) => {
3068
- return {
3069
- Message: (0, smithy_client_1.expectString)(output.Message),
3070
- RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
3071
- };
3072
- };
3073
- const de_ListContactChannelsResult = (output, context) => {
3074
- return {
3075
- ContactChannels: output.ContactChannels != null ? de_ContactChannelList(output.ContactChannels, context) : undefined,
3076
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3077
- };
3078
- };
3079
- const de_ListContactsResult = (output, context) => {
3080
- return {
3081
- Contacts: output.Contacts != null ? de_ContactsList(output.Contacts, context) : undefined,
3082
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3083
- };
3084
- };
3085
- const de_ListEngagementsResult = (output, context) => {
3086
- return {
3087
- Engagements: output.Engagements != null ? de_EngagementsList(output.Engagements, context) : undefined,
3088
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3089
- };
3090
- };
3091
- const de_ListPageReceiptsResult = (output, context) => {
3092
- return {
3093
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3094
- Receipts: output.Receipts != null ? de_ReceiptsList(output.Receipts, context) : undefined,
3095
- };
3096
- };
3097
- const de_ListPageResolutionsResult = (output, context) => {
3098
- return {
3099
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3100
- PageResolutions: output.PageResolutions != null ? de_ResolutionList(output.PageResolutions, context) : undefined,
3101
- };
3102
- };
3103
- const de_ListPagesByContactResult = (output, context) => {
3104
- return {
3105
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3106
- Pages: output.Pages != null ? de_PagesList(output.Pages, context) : undefined,
3107
- };
3108
- };
3109
- const de_ListPagesByEngagementResult = (output, context) => {
3110
- return {
3111
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3112
- Pages: output.Pages != null ? de_PagesList(output.Pages, context) : undefined,
3113
- };
2376
+ const de_ListPagesByEngagementResult = (output, context) => {
2377
+ return (0, smithy_client_1.take)(output, {
2378
+ NextToken: smithy_client_1.expectString,
2379
+ Pages: (_) => de_PagesList(_, context),
2380
+ });
3114
2381
  };
3115
2382
  const de_ListPreviewRotationShiftsResult = (output, context) => {
3116
- return {
3117
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3118
- RotationShifts: output.RotationShifts != null ? de_RotationShifts(output.RotationShifts, context) : undefined,
3119
- };
2383
+ return (0, smithy_client_1.take)(output, {
2384
+ NextToken: smithy_client_1.expectString,
2385
+ RotationShifts: (_) => de_RotationShifts(_, context),
2386
+ });
3120
2387
  };
3121
2388
  const de_ListRotationOverridesResult = (output, context) => {
3122
- return {
3123
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3124
- RotationOverrides: output.RotationOverrides != null ? de_RotationOverrides(output.RotationOverrides, context) : undefined,
3125
- };
2389
+ return (0, smithy_client_1.take)(output, {
2390
+ NextToken: smithy_client_1.expectString,
2391
+ RotationOverrides: (_) => de_RotationOverrides(_, context),
2392
+ });
3126
2393
  };
3127
2394
  const de_ListRotationShiftsResult = (output, context) => {
3128
- return {
3129
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3130
- RotationShifts: output.RotationShifts != null ? de_RotationShifts(output.RotationShifts, context) : undefined,
3131
- };
2395
+ return (0, smithy_client_1.take)(output, {
2396
+ NextToken: smithy_client_1.expectString,
2397
+ RotationShifts: (_) => de_RotationShifts(_, context),
2398
+ });
3132
2399
  };
3133
2400
  const de_ListRotationsResult = (output, context) => {
3134
- return {
3135
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3136
- Rotations: output.Rotations != null ? de_Rotations(output.Rotations, context) : undefined,
3137
- };
3138
- };
3139
- const de_ListTagsForResourceResult = (output, context) => {
3140
- return {
3141
- Tags: output.Tags != null ? de_TagsList(output.Tags, context) : undefined,
3142
- };
3143
- };
3144
- const de_MonthlySetting = (output, context) => {
3145
- return {
3146
- DayOfMonth: (0, smithy_client_1.expectInt32)(output.DayOfMonth),
3147
- HandOffTime: output.HandOffTime != null ? de_HandOffTime(output.HandOffTime, context) : undefined,
3148
- };
3149
- };
3150
- const de_MonthlySettings = (output, context) => {
3151
- const retVal = (output || [])
3152
- .filter((e) => e != null)
3153
- .map((entry) => {
3154
- if (entry === null) {
3155
- return null;
3156
- }
3157
- return de_MonthlySetting(entry, context);
2401
+ return (0, smithy_client_1.take)(output, {
2402
+ NextToken: smithy_client_1.expectString,
2403
+ Rotations: (_) => de_Rotations(_, context),
3158
2404
  });
3159
- return retVal;
3160
2405
  };
3161
2406
  const de_Page = (output, context) => {
3162
- return {
3163
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3164
- DeliveryTime: output.DeliveryTime != null
3165
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeliveryTime)))
3166
- : undefined,
3167
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
3168
- IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
3169
- PageArn: (0, smithy_client_1.expectString)(output.PageArn),
3170
- ReadTime: output.ReadTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadTime))) : undefined,
3171
- Sender: (0, smithy_client_1.expectString)(output.Sender),
3172
- SentTime: output.SentTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SentTime))) : undefined,
3173
- };
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
+ });
3174
2417
  };
3175
2418
  const de_PagesList = (output, context) => {
3176
2419
  const retVal = (output || [])
3177
2420
  .filter((e) => e != null)
3178
2421
  .map((entry) => {
3179
- if (entry === null) {
3180
- return null;
3181
- }
3182
2422
  return de_Page(entry, context);
3183
2423
  });
3184
2424
  return retVal;
3185
2425
  };
3186
- const de_Plan = (output, context) => {
3187
- return {
3188
- RotationIds: output.RotationIds != null ? de_SsmContactsArnList(output.RotationIds, context) : undefined,
3189
- Stages: output.Stages != null ? de_StagesList(output.Stages, context) : undefined,
3190
- };
3191
- };
3192
- const de_PutContactPolicyResult = (output, context) => {
3193
- return {};
3194
- };
3195
2426
  const de_Receipt = (output, context) => {
3196
- return {
3197
- ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
3198
- ReceiptInfo: (0, smithy_client_1.expectString)(output.ReceiptInfo),
3199
- ReceiptTime: output.ReceiptTime != null
3200
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReceiptTime)))
3201
- : undefined,
3202
- ReceiptType: (0, smithy_client_1.expectString)(output.ReceiptType),
3203
- };
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
+ });
3204
2433
  };
3205
2434
  const de_ReceiptsList = (output, context) => {
3206
2435
  const retVal = (output || [])
3207
2436
  .filter((e) => e != null)
3208
2437
  .map((entry) => {
3209
- if (entry === null) {
3210
- return null;
3211
- }
3212
2438
  return de_Receipt(entry, context);
3213
2439
  });
3214
2440
  return retVal;
3215
2441
  };
3216
- const de_RecurrenceSettings = (output, context) => {
3217
- return {
3218
- DailySettings: output.DailySettings != null ? de_DailySettings(output.DailySettings, context) : undefined,
3219
- MonthlySettings: output.MonthlySettings != null ? de_MonthlySettings(output.MonthlySettings, context) : undefined,
3220
- NumberOfOnCalls: (0, smithy_client_1.expectInt32)(output.NumberOfOnCalls),
3221
- RecurrenceMultiplier: (0, smithy_client_1.expectInt32)(output.RecurrenceMultiplier),
3222
- ShiftCoverages: output.ShiftCoverages != null ? de_ShiftCoveragesMap(output.ShiftCoverages, context) : undefined,
3223
- WeeklySettings: output.WeeklySettings != null ? de_WeeklySettings(output.WeeklySettings, context) : undefined,
3224
- };
3225
- };
3226
- const de_ResolutionContact = (output, context) => {
3227
- return {
3228
- ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
3229
- StageIndex: (0, smithy_client_1.expectInt32)(output.StageIndex),
3230
- Type: (0, smithy_client_1.expectString)(output.Type),
3231
- };
3232
- };
3233
- const de_ResolutionList = (output, context) => {
3234
- const retVal = (output || [])
3235
- .filter((e) => e != null)
3236
- .map((entry) => {
3237
- if (entry === null) {
3238
- return null;
3239
- }
3240
- return de_ResolutionContact(entry, context);
3241
- });
3242
- return retVal;
3243
- };
3244
- const de_ResourceNotFoundException = (output, context) => {
3245
- return {
3246
- Message: (0, smithy_client_1.expectString)(output.Message),
3247
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
3248
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3249
- };
3250
- };
3251
2442
  const de_Rotation = (output, context) => {
3252
- return {
3253
- ContactIds: output.ContactIds != null ? de_SsmContactsArnList(output.ContactIds, context) : undefined,
3254
- Name: (0, smithy_client_1.expectString)(output.Name),
3255
- Recurrence: output.Recurrence != null ? de_RecurrenceSettings(output.Recurrence, context) : undefined,
3256
- RotationArn: (0, smithy_client_1.expectString)(output.RotationArn),
3257
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3258
- TimeZoneId: (0, smithy_client_1.expectString)(output.TimeZoneId),
3259
- };
3260
- };
3261
- const de_RotationContactsArnList = (output, context) => {
3262
- const retVal = (output || [])
3263
- .filter((e) => e != null)
3264
- .map((entry) => {
3265
- if (entry === null) {
3266
- return null;
3267
- }
3268
- 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,
3269
2450
  });
3270
- return retVal;
3271
2451
  };
3272
2452
  const de_RotationOverride = (output, context) => {
3273
- return {
3274
- CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined,
3275
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
3276
- NewContactIds: output.NewContactIds != null ? de_SsmContactsArnList(output.NewContactIds, context) : undefined,
3277
- RotationOverrideId: (0, smithy_client_1.expectString)(output.RotationOverrideId),
3278
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3279
- };
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
+ });
3280
2460
  };
3281
2461
  const de_RotationOverrides = (output, context) => {
3282
2462
  const retVal = (output || [])
3283
2463
  .filter((e) => e != null)
3284
2464
  .map((entry) => {
3285
- if (entry === null) {
3286
- return null;
3287
- }
3288
2465
  return de_RotationOverride(entry, context);
3289
2466
  });
3290
2467
  return retVal;
@@ -3293,193 +2470,27 @@ const de_Rotations = (output, context) => {
3293
2470
  const retVal = (output || [])
3294
2471
  .filter((e) => e != null)
3295
2472
  .map((entry) => {
3296
- if (entry === null) {
3297
- return null;
3298
- }
3299
2473
  return de_Rotation(entry, context);
3300
2474
  });
3301
2475
  return retVal;
3302
2476
  };
3303
2477
  const de_RotationShift = (output, context) => {
3304
- return {
3305
- ContactIds: output.ContactIds != null ? de_SsmContactsArnList(output.ContactIds, context) : undefined,
3306
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
3307
- ShiftDetails: output.ShiftDetails != null ? de_ShiftDetails(output.ShiftDetails, context) : undefined,
3308
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3309
- Type: (0, smithy_client_1.expectString)(output.Type),
3310
- };
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
+ });
3311
2485
  };
3312
2486
  const de_RotationShifts = (output, context) => {
3313
2487
  const retVal = (output || [])
3314
2488
  .filter((e) => e != null)
3315
2489
  .map((entry) => {
3316
- if (entry === null) {
3317
- return null;
3318
- }
3319
2490
  return de_RotationShift(entry, context);
3320
2491
  });
3321
2492
  return retVal;
3322
2493
  };
3323
- const de_SendActivationCodeResult = (output, context) => {
3324
- return {};
3325
- };
3326
- const de_ServiceQuotaExceededException = (output, context) => {
3327
- return {
3328
- Message: (0, smithy_client_1.expectString)(output.Message),
3329
- QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
3330
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
3331
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3332
- ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
3333
- };
3334
- };
3335
- const de_ShiftCoveragesMap = (output, context) => {
3336
- return Object.entries(output).reduce((acc, [key, value]) => {
3337
- if (value === null) {
3338
- return acc;
3339
- }
3340
- acc[key] = de_CoverageTimes(value, context);
3341
- return acc;
3342
- }, {});
3343
- };
3344
- const de_ShiftDetails = (output, context) => {
3345
- return {
3346
- OverriddenContactIds: output.OverriddenContactIds != null ? de_SsmContactsArnList(output.OverriddenContactIds, context) : undefined,
3347
- };
3348
- };
3349
- const de_SsmContactsArnList = (output, context) => {
3350
- const retVal = (output || [])
3351
- .filter((e) => e != null)
3352
- .map((entry) => {
3353
- if (entry === null) {
3354
- return null;
3355
- }
3356
- return (0, smithy_client_1.expectString)(entry);
3357
- });
3358
- return retVal;
3359
- };
3360
- const de_Stage = (output, context) => {
3361
- return {
3362
- DurationInMinutes: (0, smithy_client_1.expectInt32)(output.DurationInMinutes),
3363
- Targets: output.Targets != null ? de_TargetsList(output.Targets, context) : undefined,
3364
- };
3365
- };
3366
- const de_StagesList = (output, context) => {
3367
- const retVal = (output || [])
3368
- .filter((e) => e != null)
3369
- .map((entry) => {
3370
- if (entry === null) {
3371
- return null;
3372
- }
3373
- return de_Stage(entry, context);
3374
- });
3375
- return retVal;
3376
- };
3377
- const de_StartEngagementResult = (output, context) => {
3378
- return {
3379
- EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
3380
- };
3381
- };
3382
- const de_StopEngagementResult = (output, context) => {
3383
- return {};
3384
- };
3385
- const de_Tag = (output, context) => {
3386
- return {
3387
- Key: (0, smithy_client_1.expectString)(output.Key),
3388
- Value: (0, smithy_client_1.expectString)(output.Value),
3389
- };
3390
- };
3391
- const de_TagResourceResult = (output, context) => {
3392
- return {};
3393
- };
3394
- const de_TagsList = (output, context) => {
3395
- const retVal = (output || [])
3396
- .filter((e) => e != null)
3397
- .map((entry) => {
3398
- if (entry === null) {
3399
- return null;
3400
- }
3401
- return de_Tag(entry, context);
3402
- });
3403
- return retVal;
3404
- };
3405
- const de_Target = (output, context) => {
3406
- return {
3407
- ChannelTargetInfo: output.ChannelTargetInfo != null ? de_ChannelTargetInfo(output.ChannelTargetInfo, context) : undefined,
3408
- ContactTargetInfo: output.ContactTargetInfo != null ? de_ContactTargetInfo(output.ContactTargetInfo, context) : undefined,
3409
- };
3410
- };
3411
- const de_TargetsList = (output, context) => {
3412
- const retVal = (output || [])
3413
- .filter((e) => e != null)
3414
- .map((entry) => {
3415
- if (entry === null) {
3416
- return null;
3417
- }
3418
- return de_Target(entry, context);
3419
- });
3420
- return retVal;
3421
- };
3422
- const de_ThrottlingException = (output, context) => {
3423
- return {
3424
- Message: (0, smithy_client_1.expectString)(output.Message),
3425
- QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
3426
- RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
3427
- ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
3428
- };
3429
- };
3430
- const de_UntagResourceResult = (output, context) => {
3431
- return {};
3432
- };
3433
- const de_UpdateContactChannelResult = (output, context) => {
3434
- return {};
3435
- };
3436
- const de_UpdateContactResult = (output, context) => {
3437
- return {};
3438
- };
3439
- const de_UpdateRotationResult = (output, context) => {
3440
- return {};
3441
- };
3442
- const de_ValidationException = (output, context) => {
3443
- return {
3444
- Fields: output.Fields != null ? de_ValidationExceptionFieldList(output.Fields, context) : undefined,
3445
- Message: (0, smithy_client_1.expectString)(output.Message),
3446
- Reason: (0, smithy_client_1.expectString)(output.Reason),
3447
- };
3448
- };
3449
- const de_ValidationExceptionField = (output, context) => {
3450
- return {
3451
- Message: (0, smithy_client_1.expectString)(output.Message),
3452
- Name: (0, smithy_client_1.expectString)(output.Name),
3453
- };
3454
- };
3455
- const de_ValidationExceptionFieldList = (output, context) => {
3456
- const retVal = (output || [])
3457
- .filter((e) => e != null)
3458
- .map((entry) => {
3459
- if (entry === null) {
3460
- return null;
3461
- }
3462
- return de_ValidationExceptionField(entry, context);
3463
- });
3464
- return retVal;
3465
- };
3466
- const de_WeeklySetting = (output, context) => {
3467
- return {
3468
- DayOfWeek: (0, smithy_client_1.expectString)(output.DayOfWeek),
3469
- HandOffTime: output.HandOffTime != null ? de_HandOffTime(output.HandOffTime, context) : undefined,
3470
- };
3471
- };
3472
- const de_WeeklySettings = (output, context) => {
3473
- const retVal = (output || [])
3474
- .filter((e) => e != null)
3475
- .map((entry) => {
3476
- if (entry === null) {
3477
- return null;
3478
- }
3479
- return de_WeeklySetting(entry, context);
3480
- });
3481
- return retVal;
3482
- };
3483
2494
  const deserializeMetadata = (output) => ({
3484
2495
  httpStatusCode: output.statusCode,
3485
2496
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -3493,6 +2504,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3493
2504
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3494
2505
  };
3495
2506
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2507
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(SSMContactsServiceException_1.SSMContactsServiceException);
3496
2508
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3497
2509
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3498
2510
  const contents = {
@@ -3511,6 +2523,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
3511
2523
  }
3512
2524
  return new protocol_http_1.HttpRequest(contents);
3513
2525
  };
2526
+ function sharedHeaders(operation) {
2527
+ return {
2528
+ "content-type": "application/x-amz-json-1.1",
2529
+ "x-amz-target": `SSMContacts.${operation}`,
2530
+ };
2531
+ }
3514
2532
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3515
2533
  if (encoded.length) {
3516
2534
  return JSON.parse(encoded);