@aws-sdk/client-ssm-incidents 3.123.0 → 3.130.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.
@@ -16,8 +16,7 @@ export var serializeAws_restJson1CreateReplicationSetCommand = function (input,
16
16
  "content-type": "application/json",
17
17
  };
18
18
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/createReplicationSet";
19
- body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.regions !== undefined &&
20
- input.regions !== null && { regions: serializeAws_restJson1RegionMapInput(input.regions, context) })));
19
+ body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.regions != null && { regions: serializeAws_restJson1RegionMapInput(input.regions, context) })));
21
20
  return [2, new __HttpRequest({
22
21
  protocol: protocol,
23
22
  hostname: hostname,
@@ -42,13 +41,9 @@ export var serializeAws_restJson1CreateResponsePlanCommand = function (input, co
42
41
  "content-type": "application/json",
43
42
  };
44
43
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/createResponsePlan";
45
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions !== undefined &&
46
- input.actions !== null && { actions: serializeAws_restJson1ActionsList(input.actions, context) })), (input.chatChannel !== undefined &&
47
- input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName })), (input.engagements !== undefined &&
48
- input.engagements !== null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) })), (input.incidentTemplate !== undefined &&
49
- input.incidentTemplate !== null && {
44
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_restJson1ActionsList(input.actions, context) })), (input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.displayName != null && { displayName: input.displayName })), (input.engagements != null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) })), (input.incidentTemplate != null && {
50
45
  incidentTemplate: serializeAws_restJson1IncidentTemplate(input.incidentTemplate, context),
51
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
46
+ })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
52
47
  return [2, new __HttpRequest({
53
48
  protocol: protocol,
54
49
  hostname: hostname,
@@ -73,9 +68,7 @@ export var serializeAws_restJson1CreateTimelineEventCommand = function (input, c
73
68
  "content-type": "application/json",
74
69
  };
75
70
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/createTimelineEvent";
76
- body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.eventData !== undefined && input.eventData !== null && { eventData: input.eventData })), (input.eventTime !== undefined &&
77
- input.eventTime !== null && { eventTime: Math.round(input.eventTime.getTime() / 1000) })), (input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType })), (input.incidentRecordArn !== undefined &&
78
- input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })));
71
+ body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.eventData != null && { eventData: input.eventData })), (input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) })), (input.eventType != null && { eventType: input.eventType })), (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })));
79
72
  return [2, new __HttpRequest({
80
73
  protocol: protocol,
81
74
  hostname: hostname,
@@ -99,7 +92,7 @@ export var serializeAws_restJson1DeleteIncidentRecordCommand = function (input,
99
92
  "content-type": "application/json",
100
93
  };
101
94
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteIncidentRecord";
102
- body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
95
+ body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
103
96
  return [2, new __HttpRequest({
104
97
  protocol: protocol,
105
98
  hostname: hostname,
@@ -146,7 +139,7 @@ export var serializeAws_restJson1DeleteResourcePolicyCommand = function (input,
146
139
  "content-type": "application/json",
147
140
  };
148
141
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteResourcePolicy";
149
- body = JSON.stringify(__assign(__assign({}, (input.policyId !== undefined && input.policyId !== null && { policyId: input.policyId })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })));
142
+ body = JSON.stringify(__assign(__assign({}, (input.policyId != null && { policyId: input.policyId })), (input.resourceArn != null && { resourceArn: input.resourceArn })));
150
143
  return [2, new __HttpRequest({
151
144
  protocol: protocol,
152
145
  hostname: hostname,
@@ -170,7 +163,7 @@ export var serializeAws_restJson1DeleteResponsePlanCommand = function (input, co
170
163
  "content-type": "application/json",
171
164
  };
172
165
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteResponsePlan";
173
- body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
166
+ body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
174
167
  return [2, new __HttpRequest({
175
168
  protocol: protocol,
176
169
  hostname: hostname,
@@ -194,8 +187,7 @@ export var serializeAws_restJson1DeleteTimelineEventCommand = function (input, c
194
187
  "content-type": "application/json",
195
188
  };
196
189
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteTimelineEvent";
197
- body = JSON.stringify(__assign(__assign({}, (input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId })), (input.incidentRecordArn !== undefined &&
198
- input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })));
190
+ body = JSON.stringify(__assign(__assign({}, (input.eventId != null && { eventId: input.eventId })), (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })));
199
191
  return [2, new __HttpRequest({
200
192
  protocol: protocol,
201
193
  hostname: hostname,
@@ -266,7 +258,7 @@ export var serializeAws_restJson1GetResourcePoliciesCommand = function (input, c
266
258
  };
267
259
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getResourcePolicies";
268
260
  query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
269
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
261
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
270
262
  return [2, new __HttpRequest({
271
263
  protocol: protocol,
272
264
  hostname: hostname,
@@ -337,8 +329,7 @@ export var serializeAws_restJson1ListIncidentRecordsCommand = function (input, c
337
329
  "content-type": "application/json",
338
330
  };
339
331
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listIncidentRecords";
340
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
341
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
332
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
342
333
  return [2, new __HttpRequest({
343
334
  protocol: protocol,
344
335
  hostname: hostname,
@@ -362,8 +353,7 @@ export var serializeAws_restJson1ListRelatedItemsCommand = function (input, cont
362
353
  "content-type": "application/json",
363
354
  };
364
355
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listRelatedItems";
365
- body = JSON.stringify(__assign(__assign(__assign({}, (input.incidentRecordArn !== undefined &&
366
- input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
356
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
367
357
  return [2, new __HttpRequest({
368
358
  protocol: protocol,
369
359
  hostname: hostname,
@@ -387,7 +377,7 @@ export var serializeAws_restJson1ListReplicationSetsCommand = function (input, c
387
377
  "content-type": "application/json",
388
378
  };
389
379
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listReplicationSets";
390
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
380
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
391
381
  return [2, new __HttpRequest({
392
382
  protocol: protocol,
393
383
  hostname: hostname,
@@ -411,7 +401,7 @@ export var serializeAws_restJson1ListResponsePlansCommand = function (input, con
411
401
  "content-type": "application/json",
412
402
  };
413
403
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listResponsePlans";
414
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
404
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
415
405
  return [2, new __HttpRequest({
416
406
  protocol: protocol,
417
407
  hostname: hostname,
@@ -466,9 +456,7 @@ export var serializeAws_restJson1ListTimelineEventsCommand = function (input, co
466
456
  "content-type": "application/json",
467
457
  };
468
458
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listTimelineEvents";
469
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
470
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.incidentRecordArn !== undefined &&
471
- input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder })));
459
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder })));
472
460
  return [2, new __HttpRequest({
473
461
  protocol: protocol,
474
462
  hostname: hostname,
@@ -492,7 +480,7 @@ export var serializeAws_restJson1PutResourcePolicyCommand = function (input, con
492
480
  "content-type": "application/json",
493
481
  };
494
482
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/putResourcePolicy";
495
- body = JSON.stringify(__assign(__assign({}, (input.policy !== undefined && input.policy !== null && { policy: input.policy })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })));
483
+ body = JSON.stringify(__assign(__assign({}, (input.policy != null && { policy: input.policy })), (input.resourceArn != null && { resourceArn: input.resourceArn })));
496
484
  return [2, new __HttpRequest({
497
485
  protocol: protocol,
498
486
  hostname: hostname,
@@ -517,12 +505,9 @@ export var serializeAws_restJson1StartIncidentCommand = function (input, context
517
505
  "content-type": "application/json",
518
506
  };
519
507
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/startIncident";
520
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.impact !== undefined && input.impact !== null && { impact: input.impact })), (input.relatedItems !== undefined &&
521
- input.relatedItems !== null && {
508
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.impact != null && { impact: input.impact })), (input.relatedItems != null && {
522
509
  relatedItems: serializeAws_restJson1RelatedItemList(input.relatedItems, context),
523
- })), (input.responsePlanArn !== undefined &&
524
- input.responsePlanArn !== null && { responsePlanArn: input.responsePlanArn })), (input.title !== undefined && input.title !== null && { title: input.title })), (input.triggerDetails !== undefined &&
525
- input.triggerDetails !== null && {
510
+ })), (input.responsePlanArn != null && { responsePlanArn: input.responsePlanArn })), (input.title != null && { title: input.title })), (input.triggerDetails != null && {
526
511
  triggerDetails: serializeAws_restJson1TriggerDetails(input.triggerDetails, context),
527
512
  })));
528
513
  return [2, new __HttpRequest({
@@ -558,7 +543,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
558
543
  else {
559
544
  throw new Error("No value provided for input HTTP label: resourceArn.");
560
545
  }
561
- body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
546
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
562
547
  return [2, new __HttpRequest({
563
548
  protocol: protocol,
564
549
  hostname: hostname,
@@ -616,8 +601,7 @@ export var serializeAws_restJson1UpdateDeletionProtectionCommand = function (inp
616
601
  "content-type": "application/json",
617
602
  };
618
603
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateDeletionProtection";
619
- body = JSON.stringify(__assign(__assign(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.deletionProtected !== undefined &&
620
- input.deletionProtected !== null && { deletionProtected: input.deletionProtected })));
604
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.arn != null && { arn: input.arn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.deletionProtected != null && { deletionProtected: input.deletionProtected })));
621
605
  return [2, new __HttpRequest({
622
606
  protocol: protocol,
623
607
  hostname: hostname,
@@ -642,11 +626,9 @@ export var serializeAws_restJson1UpdateIncidentRecordCommand = function (input,
642
626
  "content-type": "application/json",
643
627
  };
644
628
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateIncidentRecord";
645
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.chatChannel !== undefined &&
646
- input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.impact !== undefined && input.impact !== null && { impact: input.impact })), (input.notificationTargets !== undefined &&
647
- input.notificationTargets !== null && {
629
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arn != null && { arn: input.arn })), (input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.impact != null && { impact: input.impact })), (input.notificationTargets != null && {
648
630
  notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
649
- })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.summary !== undefined && input.summary !== null && { summary: input.summary })), (input.title !== undefined && input.title !== null && { title: input.title })));
631
+ })), (input.status != null && { status: input.status })), (input.summary != null && { summary: input.summary })), (input.title != null && { title: input.title })));
650
632
  return [2, new __HttpRequest({
651
633
  protocol: protocol,
652
634
  hostname: hostname,
@@ -671,9 +653,7 @@ export var serializeAws_restJson1UpdateRelatedItemsCommand = function (input, co
671
653
  "content-type": "application/json",
672
654
  };
673
655
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateRelatedItems";
674
- body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.incidentRecordArn !== undefined &&
675
- input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })), (input.relatedItemsUpdate !== undefined &&
676
- input.relatedItemsUpdate !== null && {
656
+ body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })), (input.relatedItemsUpdate != null && {
677
657
  relatedItemsUpdate: serializeAws_restJson1RelatedItemsUpdate(input.relatedItemsUpdate, context),
678
658
  })));
679
659
  return [2, new __HttpRequest({
@@ -700,8 +680,7 @@ export var serializeAws_restJson1UpdateReplicationSetCommand = function (input,
700
680
  "content-type": "application/json",
701
681
  };
702
682
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateReplicationSet";
703
- body = JSON.stringify(__assign(__assign(__assign({}, (input.actions !== undefined &&
704
- input.actions !== null && { actions: serializeAws_restJson1UpdateActionList(input.actions, context) })), (input.arn !== undefined && input.arn !== null && { arn: input.arn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
683
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_restJson1UpdateActionList(input.actions, context) })), (input.arn != null && { arn: input.arn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
705
684
  return [2, new __HttpRequest({
706
685
  protocol: protocol,
707
686
  hostname: hostname,
@@ -726,22 +705,13 @@ export var serializeAws_restJson1UpdateResponsePlanCommand = function (input, co
726
705
  "content-type": "application/json",
727
706
  };
728
707
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateResponsePlan";
729
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions !== undefined &&
730
- input.actions !== null && { actions: serializeAws_restJson1ActionsList(input.actions, context) })), (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.chatChannel !== undefined &&
731
- input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName })), (input.engagements !== undefined &&
732
- input.engagements !== null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) })), (input.incidentTemplateDedupeString !== undefined &&
733
- input.incidentTemplateDedupeString !== null && {
708
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_restJson1ActionsList(input.actions, context) })), (input.arn != null && { arn: input.arn })), (input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.displayName != null && { displayName: input.displayName })), (input.engagements != null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) })), (input.incidentTemplateDedupeString != null && {
734
709
  incidentTemplateDedupeString: input.incidentTemplateDedupeString,
735
- })), (input.incidentTemplateImpact !== undefined &&
736
- input.incidentTemplateImpact !== null && { incidentTemplateImpact: input.incidentTemplateImpact })), (input.incidentTemplateNotificationTargets !== undefined &&
737
- input.incidentTemplateNotificationTargets !== null && {
710
+ })), (input.incidentTemplateImpact != null && { incidentTemplateImpact: input.incidentTemplateImpact })), (input.incidentTemplateNotificationTargets != null && {
738
711
  incidentTemplateNotificationTargets: serializeAws_restJson1NotificationTargetSet(input.incidentTemplateNotificationTargets, context),
739
- })), (input.incidentTemplateSummary !== undefined &&
740
- input.incidentTemplateSummary !== null && { incidentTemplateSummary: input.incidentTemplateSummary })), (input.incidentTemplateTags !== undefined &&
741
- input.incidentTemplateTags !== null && {
712
+ })), (input.incidentTemplateSummary != null && { incidentTemplateSummary: input.incidentTemplateSummary })), (input.incidentTemplateTags != null && {
742
713
  incidentTemplateTags: serializeAws_restJson1TagMapUpdate(input.incidentTemplateTags, context),
743
- })), (input.incidentTemplateTitle !== undefined &&
744
- input.incidentTemplateTitle !== null && { incidentTemplateTitle: input.incidentTemplateTitle })));
714
+ })), (input.incidentTemplateTitle != null && { incidentTemplateTitle: input.incidentTemplateTitle })));
745
715
  return [2, new __HttpRequest({
746
716
  protocol: protocol,
747
717
  hostname: hostname,
@@ -766,9 +736,7 @@ export var serializeAws_restJson1UpdateTimelineEventCommand = function (input, c
766
736
  "content-type": "application/json",
767
737
  };
768
738
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateTimelineEvent";
769
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.eventData !== undefined && input.eventData !== null && { eventData: input.eventData })), (input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId })), (input.eventTime !== undefined &&
770
- input.eventTime !== null && { eventTime: Math.round(input.eventTime.getTime() / 1000) })), (input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType })), (input.incidentRecordArn !== undefined &&
771
- input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })));
739
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.eventData != null && { eventData: input.eventData })), (input.eventId != null && { eventId: input.eventId })), (input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) })), (input.eventType != null && { eventType: input.eventType })), (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })));
772
740
  return [2, new __HttpRequest({
773
741
  protocol: protocol,
774
742
  hostname: hostname,
@@ -3022,7 +2990,7 @@ var serializeAws_restJson1ActionsList = function (input, context) {
3022
2990
  });
3023
2991
  };
3024
2992
  var serializeAws_restJson1AddRegionAction = function (input, context) {
3025
- return __assign(__assign({}, (input.regionName !== undefined && input.regionName !== null && { regionName: input.regionName })), (input.sseKmsKeyId !== undefined && input.sseKmsKeyId !== null && { sseKmsKeyId: input.sseKmsKeyId }));
2993
+ return __assign(__assign({}, (input.regionName != null && { regionName: input.regionName })), (input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }));
3026
2994
  };
3027
2995
  var serializeAws_restJson1AttributeValueList = function (input, context) {
3028
2996
  return AttributeValueList.visit(input, {
@@ -3057,7 +3025,7 @@ var serializeAws_restJson1Condition = function (input, context) {
3057
3025
  });
3058
3026
  };
3059
3027
  var serializeAws_restJson1DeleteRegionAction = function (input, context) {
3060
- return __assign({}, (input.regionName !== undefined && input.regionName !== null && { regionName: input.regionName }));
3028
+ return __assign({}, (input.regionName != null && { regionName: input.regionName }));
3061
3029
  };
3062
3030
  var serializeAws_restJson1DynamicSsmParameters = function (input, context) {
3063
3031
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3089,8 +3057,7 @@ var serializeAws_restJson1EngagementSet = function (input, context) {
3089
3057
  });
3090
3058
  };
3091
3059
  var serializeAws_restJson1Filter = function (input, context) {
3092
- return __assign(__assign({}, (input.condition !== undefined &&
3093
- input.condition !== null && { condition: serializeAws_restJson1Condition(input.condition, context) })), (input.key !== undefined && input.key !== null && { key: input.key }));
3060
+ return __assign(__assign({}, (input.condition != null && { condition: serializeAws_restJson1Condition(input.condition, context) })), (input.key != null && { key: input.key }));
3094
3061
  };
3095
3062
  var serializeAws_restJson1FilterList = function (input, context) {
3096
3063
  return input
@@ -3103,11 +3070,9 @@ var serializeAws_restJson1FilterList = function (input, context) {
3103
3070
  });
3104
3071
  };
3105
3072
  var serializeAws_restJson1IncidentTemplate = function (input, context) {
3106
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.dedupeString !== undefined && input.dedupeString !== null && { dedupeString: input.dedupeString })), (input.impact !== undefined && input.impact !== null && { impact: input.impact })), (input.incidentTags !== undefined &&
3107
- input.incidentTags !== null && { incidentTags: serializeAws_restJson1TagMap(input.incidentTags, context) })), (input.notificationTargets !== undefined &&
3108
- input.notificationTargets !== null && {
3073
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.dedupeString != null && { dedupeString: input.dedupeString })), (input.impact != null && { impact: input.impact })), (input.incidentTags != null && { incidentTags: serializeAws_restJson1TagMap(input.incidentTags, context) })), (input.notificationTargets != null && {
3109
3074
  notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
3110
- })), (input.summary !== undefined && input.summary !== null && { summary: input.summary })), (input.title !== undefined && input.title !== null && { title: input.title }));
3075
+ })), (input.summary != null && { summary: input.summary })), (input.title != null && { title: input.title }));
3111
3076
  };
3112
3077
  var serializeAws_restJson1IntegerList = function (input, context) {
3113
3078
  return input
@@ -3120,8 +3085,7 @@ var serializeAws_restJson1IntegerList = function (input, context) {
3120
3085
  });
3121
3086
  };
3122
3087
  var serializeAws_restJson1ItemIdentifier = function (input, context) {
3123
- return __assign(__assign({}, (input.type !== undefined && input.type !== null && { type: input.type })), (input.value !== undefined &&
3124
- input.value !== null && { value: serializeAws_restJson1ItemValue(input.value, context) }));
3088
+ return __assign(__assign({}, (input.type != null && { type: input.type })), (input.value != null && { value: serializeAws_restJson1ItemValue(input.value, context) }));
3125
3089
  };
3126
3090
  var serializeAws_restJson1ItemValue = function (input, context) {
3127
3091
  return ItemValue.visit(input, {
@@ -3158,11 +3122,10 @@ var serializeAws_restJson1RegionMapInput = function (input, context) {
3158
3122
  }, {});
3159
3123
  };
3160
3124
  var serializeAws_restJson1RegionMapInputValue = function (input, context) {
3161
- return __assign({}, (input.sseKmsKeyId !== undefined && input.sseKmsKeyId !== null && { sseKmsKeyId: input.sseKmsKeyId }));
3125
+ return __assign({}, (input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }));
3162
3126
  };
3163
3127
  var serializeAws_restJson1RelatedItem = function (input, context) {
3164
- return __assign(__assign({}, (input.identifier !== undefined &&
3165
- input.identifier !== null && { identifier: serializeAws_restJson1ItemIdentifier(input.identifier, context) })), (input.title !== undefined && input.title !== null && { title: input.title }));
3128
+ return __assign(__assign({}, (input.identifier != null && { identifier: serializeAws_restJson1ItemIdentifier(input.identifier, context) })), (input.title != null && { title: input.title }));
3166
3129
  };
3167
3130
  var serializeAws_restJson1RelatedItemList = function (input, context) {
3168
3131
  return input
@@ -3182,12 +3145,9 @@ var serializeAws_restJson1RelatedItemsUpdate = function (input, context) {
3182
3145
  });
3183
3146
  };
3184
3147
  var serializeAws_restJson1SsmAutomation = function (input, context) {
3185
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.documentName !== undefined && input.documentName !== null && { documentName: input.documentName })), (input.documentVersion !== undefined &&
3186
- input.documentVersion !== null && { documentVersion: input.documentVersion })), (input.dynamicParameters !== undefined &&
3187
- input.dynamicParameters !== null && {
3148
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.documentName != null && { documentName: input.documentName })), (input.documentVersion != null && { documentVersion: input.documentVersion })), (input.dynamicParameters != null && {
3188
3149
  dynamicParameters: serializeAws_restJson1DynamicSsmParameters(input.dynamicParameters, context),
3189
- })), (input.parameters !== undefined &&
3190
- input.parameters !== null && { parameters: serializeAws_restJson1SsmParameters(input.parameters, context) })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.targetAccount !== undefined && input.targetAccount !== null && { targetAccount: input.targetAccount }));
3150
+ })), (input.parameters != null && { parameters: serializeAws_restJson1SsmParameters(input.parameters, context) })), (input.roleArn != null && { roleArn: input.roleArn })), (input.targetAccount != null && { targetAccount: input.targetAccount }));
3191
3151
  };
3192
3152
  var serializeAws_restJson1SsmParameters = function (input, context) {
3193
3153
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3240,8 +3200,7 @@ var serializeAws_restJson1TagMapUpdate = function (input, context) {
3240
3200
  }, {});
3241
3201
  };
3242
3202
  var serializeAws_restJson1TriggerDetails = function (input, context) {
3243
- return __assign(__assign(__assign(__assign({}, (input.rawData !== undefined && input.rawData !== null && { rawData: input.rawData })), (input.source !== undefined && input.source !== null && { source: input.source })), (input.timestamp !== undefined &&
3244
- input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.triggerArn !== undefined && input.triggerArn !== null && { triggerArn: input.triggerArn }));
3203
+ return __assign(__assign(__assign(__assign({}, (input.rawData != null && { rawData: input.rawData })), (input.source != null && { source: input.source })), (input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.triggerArn != null && { triggerArn: input.triggerArn }));
3245
3204
  };
3246
3205
  var serializeAws_restJson1UpdateActionList = function (input, context) {
3247
3206
  return input
@@ -3353,11 +3312,9 @@ var deserializeAws_restJson1EngagementSet = function (output, context) {
3353
3312
  var deserializeAws_restJson1EventSummary = function (output, context) {
3354
3313
  return {
3355
3314
  eventId: __expectString(output.eventId),
3356
- eventTime: output.eventTime !== undefined && output.eventTime !== null
3357
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
3358
- : undefined,
3315
+ eventTime: output.eventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime))) : undefined,
3359
3316
  eventType: __expectString(output.eventType),
3360
- eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
3317
+ eventUpdatedTime: output.eventUpdatedTime != null
3361
3318
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventUpdatedTime)))
3362
3319
  : undefined,
3363
3320
  incidentRecordArn: __expectString(output.incidentRecordArn),
@@ -3377,28 +3334,28 @@ var deserializeAws_restJson1EventSummaryList = function (output, context) {
3377
3334
  var deserializeAws_restJson1IncidentRecord = function (output, context) {
3378
3335
  return {
3379
3336
  arn: __expectString(output.arn),
3380
- automationExecutions: output.automationExecutions !== undefined && output.automationExecutions !== null
3337
+ automationExecutions: output.automationExecutions != null
3381
3338
  ? deserializeAws_restJson1AutomationExecutionSet(output.automationExecutions, context)
3382
3339
  : undefined,
3383
- chatChannel: output.chatChannel !== undefined && output.chatChannel !== null
3340
+ chatChannel: output.chatChannel != null
3384
3341
  ? deserializeAws_restJson1ChatChannel(__expectUnion(output.chatChannel), context)
3385
3342
  : undefined,
3386
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3343
+ creationTime: output.creationTime != null
3387
3344
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
3388
3345
  : undefined,
3389
3346
  dedupeString: __expectString(output.dedupeString),
3390
3347
  impact: __expectInt32(output.impact),
3391
- incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
3348
+ incidentRecordSource: output.incidentRecordSource != null
3392
3349
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
3393
3350
  : undefined,
3394
3351
  lastModifiedBy: __expectString(output.lastModifiedBy),
3395
- lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
3352
+ lastModifiedTime: output.lastModifiedTime != null
3396
3353
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
3397
3354
  : undefined,
3398
- notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
3355
+ notificationTargets: output.notificationTargets != null
3399
3356
  ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
3400
3357
  : undefined,
3401
- resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
3358
+ resolvedTime: output.resolvedTime != null
3402
3359
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
3403
3360
  : undefined,
3404
3361
  status: __expectString(output.status),
@@ -3417,14 +3374,14 @@ var deserializeAws_restJson1IncidentRecordSource = function (output, context) {
3417
3374
  var deserializeAws_restJson1IncidentRecordSummary = function (output, context) {
3418
3375
  return {
3419
3376
  arn: __expectString(output.arn),
3420
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3377
+ creationTime: output.creationTime != null
3421
3378
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
3422
3379
  : undefined,
3423
3380
  impact: __expectInt32(output.impact),
3424
- incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
3381
+ incidentRecordSource: output.incidentRecordSource != null
3425
3382
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
3426
3383
  : undefined,
3427
- resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
3384
+ resolvedTime: output.resolvedTime != null
3428
3385
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
3429
3386
  : undefined,
3430
3387
  status: __expectString(output.status),
@@ -3446,10 +3403,8 @@ var deserializeAws_restJson1IncidentTemplate = function (output, context) {
3446
3403
  return {
3447
3404
  dedupeString: __expectString(output.dedupeString),
3448
3405
  impact: __expectInt32(output.impact),
3449
- incidentTags: output.incidentTags !== undefined && output.incidentTags !== null
3450
- ? deserializeAws_restJson1TagMap(output.incidentTags, context)
3451
- : undefined,
3452
- notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
3406
+ incidentTags: output.incidentTags != null ? deserializeAws_restJson1TagMap(output.incidentTags, context) : undefined,
3407
+ notificationTargets: output.notificationTargets != null
3453
3408
  ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
3454
3409
  : undefined,
3455
3410
  summary: __expectString(output.summary),
@@ -3459,9 +3414,7 @@ var deserializeAws_restJson1IncidentTemplate = function (output, context) {
3459
3414
  var deserializeAws_restJson1ItemIdentifier = function (output, context) {
3460
3415
  return {
3461
3416
  type: __expectString(output.type),
3462
- value: output.value !== undefined && output.value !== null
3463
- ? deserializeAws_restJson1ItemValue(__expectUnion(output.value), context)
3464
- : undefined,
3417
+ value: output.value != null ? deserializeAws_restJson1ItemValue(__expectUnion(output.value), context) : undefined,
3465
3418
  };
3466
3419
  };
3467
3420
  var deserializeAws_restJson1ItemValue = function (output, context) {
@@ -3498,7 +3451,7 @@ var deserializeAws_restJson1RegionInfo = function (output, context) {
3498
3451
  sseKmsKeyId: __expectString(output.sseKmsKeyId),
3499
3452
  status: __expectString(output.status),
3500
3453
  statusMessage: __expectString(output.statusMessage),
3501
- statusUpdateDateTime: output.statusUpdateDateTime !== undefined && output.statusUpdateDateTime !== null
3454
+ statusUpdateDateTime: output.statusUpdateDateTime != null
3502
3455
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.statusUpdateDateTime)))
3503
3456
  : undefined,
3504
3457
  };
@@ -3515,9 +3468,7 @@ var deserializeAws_restJson1RegionInfoMap = function (output, context) {
3515
3468
  };
3516
3469
  var deserializeAws_restJson1RelatedItem = function (output, context) {
3517
3470
  return {
3518
- identifier: output.identifier !== undefined && output.identifier !== null
3519
- ? deserializeAws_restJson1ItemIdentifier(output.identifier, context)
3520
- : undefined,
3471
+ identifier: output.identifier != null ? deserializeAws_restJson1ItemIdentifier(output.identifier, context) : undefined,
3521
3472
  title: __expectString(output.title),
3522
3473
  };
3523
3474
  };
@@ -3536,17 +3487,15 @@ var deserializeAws_restJson1ReplicationSet = function (output, context) {
3536
3487
  return {
3537
3488
  arn: __expectString(output.arn),
3538
3489
  createdBy: __expectString(output.createdBy),
3539
- createdTime: output.createdTime !== undefined && output.createdTime !== null
3490
+ createdTime: output.createdTime != null
3540
3491
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdTime)))
3541
3492
  : undefined,
3542
3493
  deletionProtected: __expectBoolean(output.deletionProtected),
3543
3494
  lastModifiedBy: __expectString(output.lastModifiedBy),
3544
- lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
3495
+ lastModifiedTime: output.lastModifiedTime != null
3545
3496
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
3546
3497
  : undefined,
3547
- regionMap: output.regionMap !== undefined && output.regionMap !== null
3548
- ? deserializeAws_restJson1RegionInfoMap(output.regionMap, context)
3549
- : undefined,
3498
+ regionMap: output.regionMap != null ? deserializeAws_restJson1RegionInfoMap(output.regionMap, context) : undefined,
3550
3499
  status: __expectString(output.status),
3551
3500
  };
3552
3501
  };
@@ -3601,12 +3550,10 @@ var deserializeAws_restJson1SsmAutomation = function (output, context) {
3601
3550
  return {
3602
3551
  documentName: __expectString(output.documentName),
3603
3552
  documentVersion: __expectString(output.documentVersion),
3604
- dynamicParameters: output.dynamicParameters !== undefined && output.dynamicParameters !== null
3553
+ dynamicParameters: output.dynamicParameters != null
3605
3554
  ? deserializeAws_restJson1DynamicSsmParameters(output.dynamicParameters, context)
3606
3555
  : undefined,
3607
- parameters: output.parameters !== undefined && output.parameters !== null
3608
- ? deserializeAws_restJson1SsmParameters(output.parameters, context)
3609
- : undefined,
3556
+ parameters: output.parameters != null ? deserializeAws_restJson1SsmParameters(output.parameters, context) : undefined,
3610
3557
  roleArn: __expectString(output.roleArn),
3611
3558
  targetAccount: __expectString(output.targetAccount),
3612
3559
  };
@@ -3646,11 +3593,9 @@ var deserializeAws_restJson1TimelineEvent = function (output, context) {
3646
3593
  return {
3647
3594
  eventData: __expectString(output.eventData),
3648
3595
  eventId: __expectString(output.eventId),
3649
- eventTime: output.eventTime !== undefined && output.eventTime !== null
3650
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
3651
- : undefined,
3596
+ eventTime: output.eventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime))) : undefined,
3652
3597
  eventType: __expectString(output.eventType),
3653
- eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
3598
+ eventUpdatedTime: output.eventUpdatedTime != null
3654
3599
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventUpdatedTime)))
3655
3600
  : undefined,
3656
3601
  incidentRecordArn: __expectString(output.incidentRecordArn),
@@ -3694,6 +3639,9 @@ var loadRestJsonErrorCode = function (output, data) {
3694
3639
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
3695
3640
  var sanitizeErrorCode = function (rawValue) {
3696
3641
  var cleanValue = rawValue;
3642
+ if (typeof cleanValue === "number") {
3643
+ cleanValue = cleanValue.toString();
3644
+ }
3697
3645
  if (cleanValue.indexOf(":") >= 0) {
3698
3646
  cleanValue = cleanValue.split(":")[0];
3699
3647
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm-incidents",
3
3
  "description": "AWS SDK for JavaScript Ssm Incidents Client for Node.js, Browser and React Native",
4
- "version": "3.123.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,38 +18,38 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
- "@aws-sdk/util-waiter": "3.118.1",
52
+ "@aws-sdk/util-waiter": "3.127.0",
53
53
  "tslib": "^2.3.1",
54
54
  "uuid": "^8.3.2"
55
55
  },