@aws-sdk/client-ssm-contacts 3.927.0 → 3.929.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.
Files changed (60) hide show
  1. package/dist-cjs/index.js +1093 -1508
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/SSMContactsClient.js +2 -0
  4. package/dist-es/commands/AcceptPageCommand.js +3 -9
  5. package/dist-es/commands/ActivateContactChannelCommand.js +3 -9
  6. package/dist-es/commands/CreateContactChannelCommand.js +3 -9
  7. package/dist-es/commands/CreateContactCommand.js +3 -9
  8. package/dist-es/commands/CreateRotationCommand.js +3 -9
  9. package/dist-es/commands/CreateRotationOverrideCommand.js +3 -9
  10. package/dist-es/commands/DeactivateContactChannelCommand.js +3 -9
  11. package/dist-es/commands/DeleteContactChannelCommand.js +3 -9
  12. package/dist-es/commands/DeleteContactCommand.js +3 -9
  13. package/dist-es/commands/DeleteRotationCommand.js +3 -9
  14. package/dist-es/commands/DeleteRotationOverrideCommand.js +3 -9
  15. package/dist-es/commands/DescribeEngagementCommand.js +3 -9
  16. package/dist-es/commands/DescribePageCommand.js +3 -9
  17. package/dist-es/commands/GetContactChannelCommand.js +3 -9
  18. package/dist-es/commands/GetContactCommand.js +3 -9
  19. package/dist-es/commands/GetContactPolicyCommand.js +3 -9
  20. package/dist-es/commands/GetRotationCommand.js +3 -9
  21. package/dist-es/commands/GetRotationOverrideCommand.js +3 -9
  22. package/dist-es/commands/ListContactChannelsCommand.js +3 -9
  23. package/dist-es/commands/ListContactsCommand.js +3 -9
  24. package/dist-es/commands/ListEngagementsCommand.js +3 -9
  25. package/dist-es/commands/ListPageReceiptsCommand.js +3 -9
  26. package/dist-es/commands/ListPageResolutionsCommand.js +3 -9
  27. package/dist-es/commands/ListPagesByContactCommand.js +3 -9
  28. package/dist-es/commands/ListPagesByEngagementCommand.js +3 -9
  29. package/dist-es/commands/ListPreviewRotationShiftsCommand.js +3 -9
  30. package/dist-es/commands/ListRotationOverridesCommand.js +3 -9
  31. package/dist-es/commands/ListRotationShiftsCommand.js +3 -9
  32. package/dist-es/commands/ListRotationsCommand.js +3 -9
  33. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  34. package/dist-es/commands/PutContactPolicyCommand.js +3 -9
  35. package/dist-es/commands/SendActivationCodeCommand.js +3 -9
  36. package/dist-es/commands/StartEngagementCommand.js +3 -9
  37. package/dist-es/commands/StopEngagementCommand.js +3 -9
  38. package/dist-es/commands/TagResourceCommand.js +3 -9
  39. package/dist-es/commands/UntagResourceCommand.js +3 -9
  40. package/dist-es/commands/UpdateContactChannelCommand.js +3 -9
  41. package/dist-es/commands/UpdateContactCommand.js +3 -9
  42. package/dist-es/commands/UpdateRotationCommand.js +3 -9
  43. package/dist-es/runtimeConfig.shared.js +7 -0
  44. package/dist-es/schemas/schemas_0.js +996 -0
  45. package/dist-types/SSMContactsClient.d.ts +10 -1
  46. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  47. package/dist-types/runtimeConfig.d.ts +1 -0
  48. package/dist-types/runtimeConfig.native.d.ts +1 -0
  49. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  50. package/dist-types/schemas/schemas_0.d.ts +180 -0
  51. package/dist-types/ts3.4/SSMContactsClient.d.ts +4 -0
  52. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  53. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  54. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  55. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  56. package/dist-types/ts3.4/schemas/schemas_0.d.ts +186 -0
  57. package/package.json +5 -6
  58. package/dist-es/protocols/Aws_json1_1.js +0 -1215
  59. package/dist-types/protocols/Aws_json1_1.d.ts +0 -353
  60. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -473
@@ -1,1215 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { AccessDeniedException, ConflictException, DataEncryptionException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- import { SSMContactsServiceException as __BaseException } from "../models/SSMContactsServiceException";
7
- export const se_AcceptPageCommand = async (input, context) => {
8
- const headers = sharedHeaders("AcceptPage");
9
- let body;
10
- body = JSON.stringify(_json(input));
11
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
12
- };
13
- export const se_ActivateContactChannelCommand = async (input, context) => {
14
- const headers = sharedHeaders("ActivateContactChannel");
15
- let body;
16
- body = JSON.stringify(_json(input));
17
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
- };
19
- export const se_CreateContactCommand = async (input, context) => {
20
- const headers = sharedHeaders("CreateContact");
21
- let body;
22
- body = JSON.stringify(se_CreateContactRequest(input, context));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- export const se_CreateContactChannelCommand = async (input, context) => {
26
- const headers = sharedHeaders("CreateContactChannel");
27
- let body;
28
- body = JSON.stringify(se_CreateContactChannelRequest(input, context));
29
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
- };
31
- export const se_CreateRotationCommand = async (input, context) => {
32
- const headers = sharedHeaders("CreateRotation");
33
- let body;
34
- body = JSON.stringify(se_CreateRotationRequest(input, context));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- export const se_CreateRotationOverrideCommand = async (input, context) => {
38
- const headers = sharedHeaders("CreateRotationOverride");
39
- let body;
40
- body = JSON.stringify(se_CreateRotationOverrideRequest(input, context));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- export const se_DeactivateContactChannelCommand = async (input, context) => {
44
- const headers = sharedHeaders("DeactivateContactChannel");
45
- let body;
46
- body = JSON.stringify(_json(input));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- export const se_DeleteContactCommand = async (input, context) => {
50
- const headers = sharedHeaders("DeleteContact");
51
- let body;
52
- body = JSON.stringify(_json(input));
53
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
- };
55
- export const se_DeleteContactChannelCommand = async (input, context) => {
56
- const headers = sharedHeaders("DeleteContactChannel");
57
- let body;
58
- body = JSON.stringify(_json(input));
59
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
- };
61
- export const se_DeleteRotationCommand = async (input, context) => {
62
- const headers = sharedHeaders("DeleteRotation");
63
- let body;
64
- body = JSON.stringify(_json(input));
65
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
- };
67
- export const se_DeleteRotationOverrideCommand = async (input, context) => {
68
- const headers = sharedHeaders("DeleteRotationOverride");
69
- let body;
70
- body = JSON.stringify(_json(input));
71
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
72
- };
73
- export const se_DescribeEngagementCommand = async (input, context) => {
74
- const headers = sharedHeaders("DescribeEngagement");
75
- let body;
76
- body = JSON.stringify(_json(input));
77
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
- };
79
- export const se_DescribePageCommand = async (input, context) => {
80
- const headers = sharedHeaders("DescribePage");
81
- let body;
82
- body = JSON.stringify(_json(input));
83
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
- };
85
- export const se_GetContactCommand = async (input, context) => {
86
- const headers = sharedHeaders("GetContact");
87
- let body;
88
- body = JSON.stringify(_json(input));
89
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
- };
91
- export const se_GetContactChannelCommand = async (input, context) => {
92
- const headers = sharedHeaders("GetContactChannel");
93
- let body;
94
- body = JSON.stringify(_json(input));
95
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
- };
97
- export const se_GetContactPolicyCommand = async (input, context) => {
98
- const headers = sharedHeaders("GetContactPolicy");
99
- let body;
100
- body = JSON.stringify(_json(input));
101
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
- };
103
- export const se_GetRotationCommand = async (input, context) => {
104
- const headers = sharedHeaders("GetRotation");
105
- let body;
106
- body = JSON.stringify(_json(input));
107
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
- };
109
- export const se_GetRotationOverrideCommand = async (input, context) => {
110
- const headers = sharedHeaders("GetRotationOverride");
111
- let body;
112
- body = JSON.stringify(_json(input));
113
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
- };
115
- export const se_ListContactChannelsCommand = async (input, context) => {
116
- const headers = sharedHeaders("ListContactChannels");
117
- let body;
118
- body = JSON.stringify(_json(input));
119
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
- };
121
- export const se_ListContactsCommand = async (input, context) => {
122
- const headers = sharedHeaders("ListContacts");
123
- let body;
124
- body = JSON.stringify(_json(input));
125
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
- };
127
- export const se_ListEngagementsCommand = async (input, context) => {
128
- const headers = sharedHeaders("ListEngagements");
129
- let body;
130
- body = JSON.stringify(se_ListEngagementsRequest(input, context));
131
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
- };
133
- export const se_ListPageReceiptsCommand = async (input, context) => {
134
- const headers = sharedHeaders("ListPageReceipts");
135
- let body;
136
- body = JSON.stringify(_json(input));
137
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
- };
139
- export const se_ListPageResolutionsCommand = async (input, context) => {
140
- const headers = sharedHeaders("ListPageResolutions");
141
- let body;
142
- body = JSON.stringify(_json(input));
143
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
144
- };
145
- export const se_ListPagesByContactCommand = async (input, context) => {
146
- const headers = sharedHeaders("ListPagesByContact");
147
- let body;
148
- body = JSON.stringify(_json(input));
149
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
- };
151
- export const se_ListPagesByEngagementCommand = async (input, context) => {
152
- const headers = sharedHeaders("ListPagesByEngagement");
153
- let body;
154
- body = JSON.stringify(_json(input));
155
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
- };
157
- export const se_ListPreviewRotationShiftsCommand = async (input, context) => {
158
- const headers = sharedHeaders("ListPreviewRotationShifts");
159
- let body;
160
- body = JSON.stringify(se_ListPreviewRotationShiftsRequest(input, context));
161
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
- };
163
- export const se_ListRotationOverridesCommand = async (input, context) => {
164
- const headers = sharedHeaders("ListRotationOverrides");
165
- let body;
166
- body = JSON.stringify(se_ListRotationOverridesRequest(input, context));
167
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
- };
169
- export const se_ListRotationsCommand = async (input, context) => {
170
- const headers = sharedHeaders("ListRotations");
171
- let body;
172
- body = JSON.stringify(_json(input));
173
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
- };
175
- export const se_ListRotationShiftsCommand = async (input, context) => {
176
- const headers = sharedHeaders("ListRotationShifts");
177
- let body;
178
- body = JSON.stringify(se_ListRotationShiftsRequest(input, context));
179
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
180
- };
181
- export const se_ListTagsForResourceCommand = async (input, context) => {
182
- const headers = sharedHeaders("ListTagsForResource");
183
- let body;
184
- body = JSON.stringify(_json(input));
185
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
- };
187
- export const se_PutContactPolicyCommand = async (input, context) => {
188
- const headers = sharedHeaders("PutContactPolicy");
189
- let body;
190
- body = JSON.stringify(_json(input));
191
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
192
- };
193
- export const se_SendActivationCodeCommand = async (input, context) => {
194
- const headers = sharedHeaders("SendActivationCode");
195
- let body;
196
- body = JSON.stringify(_json(input));
197
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
- };
199
- export const se_StartEngagementCommand = async (input, context) => {
200
- const headers = sharedHeaders("StartEngagement");
201
- let body;
202
- body = JSON.stringify(se_StartEngagementRequest(input, context));
203
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
- };
205
- export const se_StopEngagementCommand = async (input, context) => {
206
- const headers = sharedHeaders("StopEngagement");
207
- let body;
208
- body = JSON.stringify(_json(input));
209
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
- };
211
- export const se_TagResourceCommand = async (input, context) => {
212
- const headers = sharedHeaders("TagResource");
213
- let body;
214
- body = JSON.stringify(_json(input));
215
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
216
- };
217
- export const se_UntagResourceCommand = async (input, context) => {
218
- const headers = sharedHeaders("UntagResource");
219
- let body;
220
- body = JSON.stringify(_json(input));
221
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
- };
223
- export const se_UpdateContactCommand = async (input, context) => {
224
- const headers = sharedHeaders("UpdateContact");
225
- let body;
226
- body = JSON.stringify(_json(input));
227
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
- };
229
- export const se_UpdateContactChannelCommand = async (input, context) => {
230
- const headers = sharedHeaders("UpdateContactChannel");
231
- let body;
232
- body = JSON.stringify(_json(input));
233
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
- };
235
- export const se_UpdateRotationCommand = async (input, context) => {
236
- const headers = sharedHeaders("UpdateRotation");
237
- let body;
238
- body = JSON.stringify(se_UpdateRotationRequest(input, context));
239
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
- };
241
- export const de_AcceptPageCommand = async (output, context) => {
242
- if (output.statusCode >= 300) {
243
- return de_CommandError(output, context);
244
- }
245
- const data = await parseBody(output.body, context);
246
- let contents = {};
247
- contents = _json(data);
248
- const response = {
249
- $metadata: deserializeMetadata(output),
250
- ...contents,
251
- };
252
- return response;
253
- };
254
- export const de_ActivateContactChannelCommand = async (output, context) => {
255
- if (output.statusCode >= 300) {
256
- return de_CommandError(output, context);
257
- }
258
- const data = await parseBody(output.body, context);
259
- let contents = {};
260
- contents = _json(data);
261
- const response = {
262
- $metadata: deserializeMetadata(output),
263
- ...contents,
264
- };
265
- return response;
266
- };
267
- export const de_CreateContactCommand = async (output, context) => {
268
- if (output.statusCode >= 300) {
269
- return de_CommandError(output, context);
270
- }
271
- const data = await parseBody(output.body, context);
272
- let contents = {};
273
- contents = _json(data);
274
- const response = {
275
- $metadata: deserializeMetadata(output),
276
- ...contents,
277
- };
278
- return response;
279
- };
280
- export const de_CreateContactChannelCommand = async (output, context) => {
281
- if (output.statusCode >= 300) {
282
- return de_CommandError(output, context);
283
- }
284
- const data = await parseBody(output.body, context);
285
- let contents = {};
286
- contents = _json(data);
287
- const response = {
288
- $metadata: deserializeMetadata(output),
289
- ...contents,
290
- };
291
- return response;
292
- };
293
- export const de_CreateRotationCommand = async (output, context) => {
294
- if (output.statusCode >= 300) {
295
- return de_CommandError(output, context);
296
- }
297
- const data = await parseBody(output.body, context);
298
- let contents = {};
299
- contents = _json(data);
300
- const response = {
301
- $metadata: deserializeMetadata(output),
302
- ...contents,
303
- };
304
- return response;
305
- };
306
- export const de_CreateRotationOverrideCommand = async (output, context) => {
307
- if (output.statusCode >= 300) {
308
- return de_CommandError(output, context);
309
- }
310
- const data = await parseBody(output.body, context);
311
- let contents = {};
312
- contents = _json(data);
313
- const response = {
314
- $metadata: deserializeMetadata(output),
315
- ...contents,
316
- };
317
- return response;
318
- };
319
- export const de_DeactivateContactChannelCommand = async (output, context) => {
320
- if (output.statusCode >= 300) {
321
- return de_CommandError(output, context);
322
- }
323
- const data = await parseBody(output.body, context);
324
- let contents = {};
325
- contents = _json(data);
326
- const response = {
327
- $metadata: deserializeMetadata(output),
328
- ...contents,
329
- };
330
- return response;
331
- };
332
- export const de_DeleteContactCommand = async (output, context) => {
333
- if (output.statusCode >= 300) {
334
- return de_CommandError(output, context);
335
- }
336
- const data = await parseBody(output.body, context);
337
- let contents = {};
338
- contents = _json(data);
339
- const response = {
340
- $metadata: deserializeMetadata(output),
341
- ...contents,
342
- };
343
- return response;
344
- };
345
- export const de_DeleteContactChannelCommand = async (output, context) => {
346
- if (output.statusCode >= 300) {
347
- return de_CommandError(output, context);
348
- }
349
- const data = await parseBody(output.body, context);
350
- let contents = {};
351
- contents = _json(data);
352
- const response = {
353
- $metadata: deserializeMetadata(output),
354
- ...contents,
355
- };
356
- return response;
357
- };
358
- export const de_DeleteRotationCommand = async (output, context) => {
359
- if (output.statusCode >= 300) {
360
- return de_CommandError(output, context);
361
- }
362
- const data = await parseBody(output.body, context);
363
- let contents = {};
364
- contents = _json(data);
365
- const response = {
366
- $metadata: deserializeMetadata(output),
367
- ...contents,
368
- };
369
- return response;
370
- };
371
- export const de_DeleteRotationOverrideCommand = async (output, context) => {
372
- if (output.statusCode >= 300) {
373
- return de_CommandError(output, context);
374
- }
375
- const data = await parseBody(output.body, context);
376
- let contents = {};
377
- contents = _json(data);
378
- const response = {
379
- $metadata: deserializeMetadata(output),
380
- ...contents,
381
- };
382
- return response;
383
- };
384
- export const de_DescribeEngagementCommand = async (output, context) => {
385
- if (output.statusCode >= 300) {
386
- return de_CommandError(output, context);
387
- }
388
- const data = await parseBody(output.body, context);
389
- let contents = {};
390
- contents = de_DescribeEngagementResult(data, context);
391
- const response = {
392
- $metadata: deserializeMetadata(output),
393
- ...contents,
394
- };
395
- return response;
396
- };
397
- export const de_DescribePageCommand = async (output, context) => {
398
- if (output.statusCode >= 300) {
399
- return de_CommandError(output, context);
400
- }
401
- const data = await parseBody(output.body, context);
402
- let contents = {};
403
- contents = de_DescribePageResult(data, context);
404
- const response = {
405
- $metadata: deserializeMetadata(output),
406
- ...contents,
407
- };
408
- return response;
409
- };
410
- export const de_GetContactCommand = async (output, context) => {
411
- if (output.statusCode >= 300) {
412
- return de_CommandError(output, context);
413
- }
414
- const data = await parseBody(output.body, context);
415
- let contents = {};
416
- contents = _json(data);
417
- const response = {
418
- $metadata: deserializeMetadata(output),
419
- ...contents,
420
- };
421
- return response;
422
- };
423
- export const de_GetContactChannelCommand = async (output, context) => {
424
- if (output.statusCode >= 300) {
425
- return de_CommandError(output, context);
426
- }
427
- const data = await parseBody(output.body, context);
428
- let contents = {};
429
- contents = _json(data);
430
- const response = {
431
- $metadata: deserializeMetadata(output),
432
- ...contents,
433
- };
434
- return response;
435
- };
436
- export const de_GetContactPolicyCommand = async (output, context) => {
437
- if (output.statusCode >= 300) {
438
- return de_CommandError(output, context);
439
- }
440
- const data = await parseBody(output.body, context);
441
- let contents = {};
442
- contents = _json(data);
443
- const response = {
444
- $metadata: deserializeMetadata(output),
445
- ...contents,
446
- };
447
- return response;
448
- };
449
- export const de_GetRotationCommand = async (output, context) => {
450
- if (output.statusCode >= 300) {
451
- return de_CommandError(output, context);
452
- }
453
- const data = await parseBody(output.body, context);
454
- let contents = {};
455
- contents = de_GetRotationResult(data, context);
456
- const response = {
457
- $metadata: deserializeMetadata(output),
458
- ...contents,
459
- };
460
- return response;
461
- };
462
- export const de_GetRotationOverrideCommand = async (output, context) => {
463
- if (output.statusCode >= 300) {
464
- return de_CommandError(output, context);
465
- }
466
- const data = await parseBody(output.body, context);
467
- let contents = {};
468
- contents = de_GetRotationOverrideResult(data, context);
469
- const response = {
470
- $metadata: deserializeMetadata(output),
471
- ...contents,
472
- };
473
- return response;
474
- };
475
- export const de_ListContactChannelsCommand = async (output, context) => {
476
- if (output.statusCode >= 300) {
477
- return de_CommandError(output, context);
478
- }
479
- const data = await parseBody(output.body, context);
480
- let contents = {};
481
- contents = _json(data);
482
- const response = {
483
- $metadata: deserializeMetadata(output),
484
- ...contents,
485
- };
486
- return response;
487
- };
488
- export const de_ListContactsCommand = async (output, context) => {
489
- if (output.statusCode >= 300) {
490
- return de_CommandError(output, context);
491
- }
492
- const data = await parseBody(output.body, context);
493
- let contents = {};
494
- contents = _json(data);
495
- const response = {
496
- $metadata: deserializeMetadata(output),
497
- ...contents,
498
- };
499
- return response;
500
- };
501
- export const de_ListEngagementsCommand = async (output, context) => {
502
- if (output.statusCode >= 300) {
503
- return de_CommandError(output, context);
504
- }
505
- const data = await parseBody(output.body, context);
506
- let contents = {};
507
- contents = de_ListEngagementsResult(data, context);
508
- const response = {
509
- $metadata: deserializeMetadata(output),
510
- ...contents,
511
- };
512
- return response;
513
- };
514
- export const de_ListPageReceiptsCommand = async (output, context) => {
515
- if (output.statusCode >= 300) {
516
- return de_CommandError(output, context);
517
- }
518
- const data = await parseBody(output.body, context);
519
- let contents = {};
520
- contents = de_ListPageReceiptsResult(data, context);
521
- const response = {
522
- $metadata: deserializeMetadata(output),
523
- ...contents,
524
- };
525
- return response;
526
- };
527
- export const de_ListPageResolutionsCommand = async (output, context) => {
528
- if (output.statusCode >= 300) {
529
- return de_CommandError(output, context);
530
- }
531
- const data = await parseBody(output.body, context);
532
- let contents = {};
533
- contents = _json(data);
534
- const response = {
535
- $metadata: deserializeMetadata(output),
536
- ...contents,
537
- };
538
- return response;
539
- };
540
- export const de_ListPagesByContactCommand = async (output, context) => {
541
- if (output.statusCode >= 300) {
542
- return de_CommandError(output, context);
543
- }
544
- const data = await parseBody(output.body, context);
545
- let contents = {};
546
- contents = de_ListPagesByContactResult(data, context);
547
- const response = {
548
- $metadata: deserializeMetadata(output),
549
- ...contents,
550
- };
551
- return response;
552
- };
553
- export const de_ListPagesByEngagementCommand = async (output, context) => {
554
- if (output.statusCode >= 300) {
555
- return de_CommandError(output, context);
556
- }
557
- const data = await parseBody(output.body, context);
558
- let contents = {};
559
- contents = de_ListPagesByEngagementResult(data, context);
560
- const response = {
561
- $metadata: deserializeMetadata(output),
562
- ...contents,
563
- };
564
- return response;
565
- };
566
- export const de_ListPreviewRotationShiftsCommand = async (output, context) => {
567
- if (output.statusCode >= 300) {
568
- return de_CommandError(output, context);
569
- }
570
- const data = await parseBody(output.body, context);
571
- let contents = {};
572
- contents = de_ListPreviewRotationShiftsResult(data, context);
573
- const response = {
574
- $metadata: deserializeMetadata(output),
575
- ...contents,
576
- };
577
- return response;
578
- };
579
- export const de_ListRotationOverridesCommand = async (output, context) => {
580
- if (output.statusCode >= 300) {
581
- return de_CommandError(output, context);
582
- }
583
- const data = await parseBody(output.body, context);
584
- let contents = {};
585
- contents = de_ListRotationOverridesResult(data, context);
586
- const response = {
587
- $metadata: deserializeMetadata(output),
588
- ...contents,
589
- };
590
- return response;
591
- };
592
- export const de_ListRotationsCommand = async (output, context) => {
593
- if (output.statusCode >= 300) {
594
- return de_CommandError(output, context);
595
- }
596
- const data = await parseBody(output.body, context);
597
- let contents = {};
598
- contents = de_ListRotationsResult(data, context);
599
- const response = {
600
- $metadata: deserializeMetadata(output),
601
- ...contents,
602
- };
603
- return response;
604
- };
605
- export const de_ListRotationShiftsCommand = async (output, context) => {
606
- if (output.statusCode >= 300) {
607
- return de_CommandError(output, context);
608
- }
609
- const data = await parseBody(output.body, context);
610
- let contents = {};
611
- contents = de_ListRotationShiftsResult(data, context);
612
- const response = {
613
- $metadata: deserializeMetadata(output),
614
- ...contents,
615
- };
616
- return response;
617
- };
618
- export const de_ListTagsForResourceCommand = async (output, context) => {
619
- if (output.statusCode >= 300) {
620
- return de_CommandError(output, context);
621
- }
622
- const data = await parseBody(output.body, context);
623
- let contents = {};
624
- contents = _json(data);
625
- const response = {
626
- $metadata: deserializeMetadata(output),
627
- ...contents,
628
- };
629
- return response;
630
- };
631
- export const de_PutContactPolicyCommand = async (output, context) => {
632
- if (output.statusCode >= 300) {
633
- return de_CommandError(output, context);
634
- }
635
- const data = await parseBody(output.body, context);
636
- let contents = {};
637
- contents = _json(data);
638
- const response = {
639
- $metadata: deserializeMetadata(output),
640
- ...contents,
641
- };
642
- return response;
643
- };
644
- export const de_SendActivationCodeCommand = async (output, context) => {
645
- if (output.statusCode >= 300) {
646
- return de_CommandError(output, context);
647
- }
648
- const data = await parseBody(output.body, context);
649
- let contents = {};
650
- contents = _json(data);
651
- const response = {
652
- $metadata: deserializeMetadata(output),
653
- ...contents,
654
- };
655
- return response;
656
- };
657
- export const de_StartEngagementCommand = async (output, context) => {
658
- if (output.statusCode >= 300) {
659
- return de_CommandError(output, context);
660
- }
661
- const data = await parseBody(output.body, context);
662
- let contents = {};
663
- contents = _json(data);
664
- const response = {
665
- $metadata: deserializeMetadata(output),
666
- ...contents,
667
- };
668
- return response;
669
- };
670
- export const de_StopEngagementCommand = async (output, context) => {
671
- if (output.statusCode >= 300) {
672
- return de_CommandError(output, context);
673
- }
674
- const data = await parseBody(output.body, context);
675
- let contents = {};
676
- contents = _json(data);
677
- const response = {
678
- $metadata: deserializeMetadata(output),
679
- ...contents,
680
- };
681
- return response;
682
- };
683
- export const de_TagResourceCommand = async (output, context) => {
684
- if (output.statusCode >= 300) {
685
- return de_CommandError(output, context);
686
- }
687
- const data = await parseBody(output.body, context);
688
- let contents = {};
689
- contents = _json(data);
690
- const response = {
691
- $metadata: deserializeMetadata(output),
692
- ...contents,
693
- };
694
- return response;
695
- };
696
- export const de_UntagResourceCommand = async (output, context) => {
697
- if (output.statusCode >= 300) {
698
- return de_CommandError(output, context);
699
- }
700
- const data = await parseBody(output.body, context);
701
- let contents = {};
702
- contents = _json(data);
703
- const response = {
704
- $metadata: deserializeMetadata(output),
705
- ...contents,
706
- };
707
- return response;
708
- };
709
- export const de_UpdateContactCommand = async (output, context) => {
710
- if (output.statusCode >= 300) {
711
- return de_CommandError(output, context);
712
- }
713
- const data = await parseBody(output.body, context);
714
- let contents = {};
715
- contents = _json(data);
716
- const response = {
717
- $metadata: deserializeMetadata(output),
718
- ...contents,
719
- };
720
- return response;
721
- };
722
- export const de_UpdateContactChannelCommand = async (output, context) => {
723
- if (output.statusCode >= 300) {
724
- return de_CommandError(output, context);
725
- }
726
- const data = await parseBody(output.body, context);
727
- let contents = {};
728
- contents = _json(data);
729
- const response = {
730
- $metadata: deserializeMetadata(output),
731
- ...contents,
732
- };
733
- return response;
734
- };
735
- export const de_UpdateRotationCommand = async (output, context) => {
736
- if (output.statusCode >= 300) {
737
- return de_CommandError(output, context);
738
- }
739
- const data = await parseBody(output.body, context);
740
- let contents = {};
741
- contents = _json(data);
742
- const response = {
743
- $metadata: deserializeMetadata(output),
744
- ...contents,
745
- };
746
- return response;
747
- };
748
- const de_CommandError = async (output, context) => {
749
- const parsedOutput = {
750
- ...output,
751
- body: await parseErrorBody(output.body, context),
752
- };
753
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
754
- switch (errorCode) {
755
- case "AccessDeniedException":
756
- case "com.amazonaws.ssmcontacts#AccessDeniedException":
757
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
758
- case "InternalServerException":
759
- case "com.amazonaws.ssmcontacts#InternalServerException":
760
- throw await de_InternalServerExceptionRes(parsedOutput, context);
761
- case "ResourceNotFoundException":
762
- case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
763
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
764
- case "ThrottlingException":
765
- case "com.amazonaws.ssmcontacts#ThrottlingException":
766
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
767
- case "ValidationException":
768
- case "com.amazonaws.ssmcontacts#ValidationException":
769
- throw await de_ValidationExceptionRes(parsedOutput, context);
770
- case "ConflictException":
771
- case "com.amazonaws.ssmcontacts#ConflictException":
772
- throw await de_ConflictExceptionRes(parsedOutput, context);
773
- case "DataEncryptionException":
774
- case "com.amazonaws.ssmcontacts#DataEncryptionException":
775
- throw await de_DataEncryptionExceptionRes(parsedOutput, context);
776
- case "ServiceQuotaExceededException":
777
- case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
778
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
779
- default:
780
- const parsedBody = parsedOutput.body;
781
- return throwDefaultError({
782
- output,
783
- parsedBody,
784
- errorCode,
785
- });
786
- }
787
- };
788
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
789
- const body = parsedOutput.body;
790
- const deserialized = _json(body);
791
- const exception = new AccessDeniedException({
792
- $metadata: deserializeMetadata(parsedOutput),
793
- ...deserialized,
794
- });
795
- return __decorateServiceException(exception, body);
796
- };
797
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
798
- const body = parsedOutput.body;
799
- const deserialized = _json(body);
800
- const exception = new ConflictException({
801
- $metadata: deserializeMetadata(parsedOutput),
802
- ...deserialized,
803
- });
804
- return __decorateServiceException(exception, body);
805
- };
806
- const de_DataEncryptionExceptionRes = async (parsedOutput, context) => {
807
- const body = parsedOutput.body;
808
- const deserialized = _json(body);
809
- const exception = new DataEncryptionException({
810
- $metadata: deserializeMetadata(parsedOutput),
811
- ...deserialized,
812
- });
813
- return __decorateServiceException(exception, body);
814
- };
815
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
816
- const body = parsedOutput.body;
817
- const deserialized = _json(body);
818
- const exception = new InternalServerException({
819
- $metadata: deserializeMetadata(parsedOutput),
820
- ...deserialized,
821
- });
822
- return __decorateServiceException(exception, body);
823
- };
824
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
825
- const body = parsedOutput.body;
826
- const deserialized = _json(body);
827
- const exception = new ResourceNotFoundException({
828
- $metadata: deserializeMetadata(parsedOutput),
829
- ...deserialized,
830
- });
831
- return __decorateServiceException(exception, body);
832
- };
833
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
834
- const body = parsedOutput.body;
835
- const deserialized = _json(body);
836
- const exception = new ServiceQuotaExceededException({
837
- $metadata: deserializeMetadata(parsedOutput),
838
- ...deserialized,
839
- });
840
- return __decorateServiceException(exception, body);
841
- };
842
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
843
- const body = parsedOutput.body;
844
- const deserialized = _json(body);
845
- const exception = new ThrottlingException({
846
- $metadata: deserializeMetadata(parsedOutput),
847
- ...deserialized,
848
- });
849
- return __decorateServiceException(exception, body);
850
- };
851
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
852
- const body = parsedOutput.body;
853
- const deserialized = _json(body);
854
- const exception = new ValidationException({
855
- $metadata: deserializeMetadata(parsedOutput),
856
- ...deserialized,
857
- });
858
- return __decorateServiceException(exception, body);
859
- };
860
- const se_CreateContactChannelRequest = (input, context) => {
861
- return take(input, {
862
- ContactId: [],
863
- DeferActivation: [],
864
- DeliveryAddress: _json,
865
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
866
- Name: [],
867
- Type: [],
868
- });
869
- };
870
- const se_CreateContactRequest = (input, context) => {
871
- return take(input, {
872
- Alias: [],
873
- DisplayName: [],
874
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
875
- Plan: _json,
876
- Tags: _json,
877
- Type: [],
878
- });
879
- };
880
- const se_CreateRotationOverrideRequest = (input, context) => {
881
- return take(input, {
882
- EndTime: (_) => _.getTime() / 1_000,
883
- IdempotencyToken: [],
884
- NewContactIds: _json,
885
- RotationId: [],
886
- StartTime: (_) => _.getTime() / 1_000,
887
- });
888
- };
889
- const se_CreateRotationRequest = (input, context) => {
890
- return take(input, {
891
- ContactIds: _json,
892
- IdempotencyToken: [],
893
- Name: [],
894
- Recurrence: _json,
895
- StartTime: (_) => _.getTime() / 1_000,
896
- Tags: _json,
897
- TimeZoneId: [],
898
- });
899
- };
900
- const se_ListEngagementsRequest = (input, context) => {
901
- return take(input, {
902
- IncidentId: [],
903
- MaxResults: [],
904
- NextToken: [],
905
- TimeRangeValue: (_) => se_TimeRange(_, context),
906
- });
907
- };
908
- const se_ListPreviewRotationShiftsRequest = (input, context) => {
909
- return take(input, {
910
- EndTime: (_) => _.getTime() / 1_000,
911
- MaxResults: [],
912
- Members: _json,
913
- NextToken: [],
914
- Overrides: (_) => se_OverrideList(_, context),
915
- Recurrence: _json,
916
- RotationStartTime: (_) => _.getTime() / 1_000,
917
- StartTime: (_) => _.getTime() / 1_000,
918
- TimeZoneId: [],
919
- });
920
- };
921
- const se_ListRotationOverridesRequest = (input, context) => {
922
- return take(input, {
923
- EndTime: (_) => _.getTime() / 1_000,
924
- MaxResults: [],
925
- NextToken: [],
926
- RotationId: [],
927
- StartTime: (_) => _.getTime() / 1_000,
928
- });
929
- };
930
- const se_ListRotationShiftsRequest = (input, context) => {
931
- return take(input, {
932
- EndTime: (_) => _.getTime() / 1_000,
933
- MaxResults: [],
934
- NextToken: [],
935
- RotationId: [],
936
- StartTime: (_) => _.getTime() / 1_000,
937
- });
938
- };
939
- const se_OverrideList = (input, context) => {
940
- return input
941
- .filter((e) => e != null)
942
- .map((entry) => {
943
- return se_PreviewOverride(entry, context);
944
- });
945
- };
946
- const se_PreviewOverride = (input, context) => {
947
- return take(input, {
948
- EndTime: (_) => _.getTime() / 1_000,
949
- NewMembers: _json,
950
- StartTime: (_) => _.getTime() / 1_000,
951
- });
952
- };
953
- const se_StartEngagementRequest = (input, context) => {
954
- return take(input, {
955
- ContactId: [],
956
- Content: [],
957
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
958
- IncidentId: [],
959
- PublicContent: [],
960
- PublicSubject: [],
961
- Sender: [],
962
- Subject: [],
963
- });
964
- };
965
- const se_TimeRange = (input, context) => {
966
- return take(input, {
967
- EndTime: (_) => _.getTime() / 1_000,
968
- StartTime: (_) => _.getTime() / 1_000,
969
- });
970
- };
971
- const se_UpdateRotationRequest = (input, context) => {
972
- return take(input, {
973
- ContactIds: _json,
974
- Recurrence: _json,
975
- RotationId: [],
976
- StartTime: (_) => _.getTime() / 1_000,
977
- TimeZoneId: [],
978
- });
979
- };
980
- const de_DescribeEngagementResult = (output, context) => {
981
- return take(output, {
982
- ContactArn: __expectString,
983
- Content: __expectString,
984
- EngagementArn: __expectString,
985
- IncidentId: __expectString,
986
- PublicContent: __expectString,
987
- PublicSubject: __expectString,
988
- Sender: __expectString,
989
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
990
- StopTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
991
- Subject: __expectString,
992
- });
993
- };
994
- const de_DescribePageResult = (output, context) => {
995
- return take(output, {
996
- ContactArn: __expectString,
997
- Content: __expectString,
998
- DeliveryTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
999
- EngagementArn: __expectString,
1000
- IncidentId: __expectString,
1001
- PageArn: __expectString,
1002
- PublicContent: __expectString,
1003
- PublicSubject: __expectString,
1004
- ReadTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1005
- Sender: __expectString,
1006
- SentTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1007
- Subject: __expectString,
1008
- });
1009
- };
1010
- const de_Engagement = (output, context) => {
1011
- return take(output, {
1012
- ContactArn: __expectString,
1013
- EngagementArn: __expectString,
1014
- IncidentId: __expectString,
1015
- Sender: __expectString,
1016
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1017
- StopTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1018
- });
1019
- };
1020
- const de_EngagementsList = (output, context) => {
1021
- const retVal = (output || [])
1022
- .filter((e) => e != null)
1023
- .map((entry) => {
1024
- return de_Engagement(entry, context);
1025
- });
1026
- return retVal;
1027
- };
1028
- const de_GetRotationOverrideResult = (output, context) => {
1029
- return take(output, {
1030
- CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1031
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1032
- NewContactIds: _json,
1033
- RotationArn: __expectString,
1034
- RotationOverrideId: __expectString,
1035
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1036
- });
1037
- };
1038
- const de_GetRotationResult = (output, context) => {
1039
- return take(output, {
1040
- ContactIds: _json,
1041
- Name: __expectString,
1042
- Recurrence: _json,
1043
- RotationArn: __expectString,
1044
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1045
- TimeZoneId: __expectString,
1046
- });
1047
- };
1048
- const de_ListEngagementsResult = (output, context) => {
1049
- return take(output, {
1050
- Engagements: (_) => de_EngagementsList(_, context),
1051
- NextToken: __expectString,
1052
- });
1053
- };
1054
- const de_ListPageReceiptsResult = (output, context) => {
1055
- return take(output, {
1056
- NextToken: __expectString,
1057
- Receipts: (_) => de_ReceiptsList(_, context),
1058
- });
1059
- };
1060
- const de_ListPagesByContactResult = (output, context) => {
1061
- return take(output, {
1062
- NextToken: __expectString,
1063
- Pages: (_) => de_PagesList(_, context),
1064
- });
1065
- };
1066
- const de_ListPagesByEngagementResult = (output, context) => {
1067
- return take(output, {
1068
- NextToken: __expectString,
1069
- Pages: (_) => de_PagesList(_, context),
1070
- });
1071
- };
1072
- const de_ListPreviewRotationShiftsResult = (output, context) => {
1073
- return take(output, {
1074
- NextToken: __expectString,
1075
- RotationShifts: (_) => de_RotationShifts(_, context),
1076
- });
1077
- };
1078
- const de_ListRotationOverridesResult = (output, context) => {
1079
- return take(output, {
1080
- NextToken: __expectString,
1081
- RotationOverrides: (_) => de_RotationOverrides(_, context),
1082
- });
1083
- };
1084
- const de_ListRotationShiftsResult = (output, context) => {
1085
- return take(output, {
1086
- NextToken: __expectString,
1087
- RotationShifts: (_) => de_RotationShifts(_, context),
1088
- });
1089
- };
1090
- const de_ListRotationsResult = (output, context) => {
1091
- return take(output, {
1092
- NextToken: __expectString,
1093
- Rotations: (_) => de_Rotations(_, context),
1094
- });
1095
- };
1096
- const de_Page = (output, context) => {
1097
- return take(output, {
1098
- ContactArn: __expectString,
1099
- DeliveryTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1100
- EngagementArn: __expectString,
1101
- IncidentId: __expectString,
1102
- PageArn: __expectString,
1103
- ReadTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1104
- Sender: __expectString,
1105
- SentTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1106
- });
1107
- };
1108
- const de_PagesList = (output, context) => {
1109
- const retVal = (output || [])
1110
- .filter((e) => e != null)
1111
- .map((entry) => {
1112
- return de_Page(entry, context);
1113
- });
1114
- return retVal;
1115
- };
1116
- const de_Receipt = (output, context) => {
1117
- return take(output, {
1118
- ContactChannelArn: __expectString,
1119
- ReceiptInfo: __expectString,
1120
- ReceiptTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1121
- ReceiptType: __expectString,
1122
- });
1123
- };
1124
- const de_ReceiptsList = (output, context) => {
1125
- const retVal = (output || [])
1126
- .filter((e) => e != null)
1127
- .map((entry) => {
1128
- return de_Receipt(entry, context);
1129
- });
1130
- return retVal;
1131
- };
1132
- const de_Rotation = (output, context) => {
1133
- return take(output, {
1134
- ContactIds: _json,
1135
- Name: __expectString,
1136
- Recurrence: _json,
1137
- RotationArn: __expectString,
1138
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1139
- TimeZoneId: __expectString,
1140
- });
1141
- };
1142
- const de_RotationOverride = (output, context) => {
1143
- return take(output, {
1144
- CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1145
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1146
- NewContactIds: _json,
1147
- RotationOverrideId: __expectString,
1148
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1149
- });
1150
- };
1151
- const de_RotationOverrides = (output, context) => {
1152
- const retVal = (output || [])
1153
- .filter((e) => e != null)
1154
- .map((entry) => {
1155
- return de_RotationOverride(entry, context);
1156
- });
1157
- return retVal;
1158
- };
1159
- const de_Rotations = (output, context) => {
1160
- const retVal = (output || [])
1161
- .filter((e) => e != null)
1162
- .map((entry) => {
1163
- return de_Rotation(entry, context);
1164
- });
1165
- return retVal;
1166
- };
1167
- const de_RotationShift = (output, context) => {
1168
- return take(output, {
1169
- ContactIds: _json,
1170
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1171
- ShiftDetails: _json,
1172
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1173
- Type: __expectString,
1174
- });
1175
- };
1176
- const de_RotationShifts = (output, context) => {
1177
- const retVal = (output || [])
1178
- .filter((e) => e != null)
1179
- .map((entry) => {
1180
- return de_RotationShift(entry, context);
1181
- });
1182
- return retVal;
1183
- };
1184
- const deserializeMetadata = (output) => ({
1185
- httpStatusCode: output.statusCode,
1186
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1187
- extendedRequestId: output.headers["x-amz-id-2"],
1188
- cfId: output.headers["x-amz-cf-id"],
1189
- });
1190
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1191
- const throwDefaultError = withBaseException(__BaseException);
1192
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1193
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1194
- const contents = {
1195
- protocol,
1196
- hostname,
1197
- port,
1198
- method: "POST",
1199
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1200
- headers,
1201
- };
1202
- if (resolvedHostname !== undefined) {
1203
- contents.hostname = resolvedHostname;
1204
- }
1205
- if (body !== undefined) {
1206
- contents.body = body;
1207
- }
1208
- return new __HttpRequest(contents);
1209
- };
1210
- function sharedHeaders(operation) {
1211
- return {
1212
- "content-type": "application/x-amz-json-1.1",
1213
- "x-amz-target": `SSMContacts.${operation}`,
1214
- };
1215
- }