@aws-sdk/client-ssm-incidents 3.28.0 → 3.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ssm-incidents
9
+
10
+
11
+
12
+
13
+
14
+ # [3.31.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.30.0...v3.31.0) (2021-09-11)
15
+
16
+
17
+ ### Features
18
+
19
+ * **codegen:** assert sets have no duplicates ([#2764](https://github.com/aws/aws-sdk-js-v3/issues/2764)) ([aa62fc3](https://github.com/aws/aws-sdk-js-v3/commit/aa62fc3eda48e9a57753cea6fc5896b65f2dbe3b))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.30.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.29.0...v3.30.0) (2021-09-07)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-ssm-incidents
28
+
29
+
30
+
31
+
32
+
33
+ # [3.29.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.28.0...v3.29.0) (2021-09-02)
34
+
35
+ **Note:** Version bump only for package @aws-sdk/client-ssm-incidents
36
+
37
+
38
+
39
+
40
+
6
41
  # [3.28.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.27.0...v3.28.0) (2021-08-27)
7
42
 
8
43
 
@@ -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.28.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,40 +27,40 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.1.0",
29
29
  "@aws-crypto/sha256-js": "^1.1.0",
30
- "@aws-sdk/client-sts": "3.28.0",
31
- "@aws-sdk/config-resolver": "3.28.0",
32
- "@aws-sdk/credential-provider-node": "3.28.0",
33
- "@aws-sdk/fetch-http-handler": "3.25.0",
34
- "@aws-sdk/hash-node": "3.25.0",
35
- "@aws-sdk/invalid-dependency": "3.25.0",
36
- "@aws-sdk/middleware-content-length": "3.25.0",
37
- "@aws-sdk/middleware-host-header": "3.25.0",
38
- "@aws-sdk/middleware-logger": "3.25.0",
39
- "@aws-sdk/middleware-retry": "3.28.0",
40
- "@aws-sdk/middleware-serde": "3.25.0",
41
- "@aws-sdk/middleware-signing": "3.28.0",
42
- "@aws-sdk/middleware-stack": "3.25.0",
43
- "@aws-sdk/middleware-user-agent": "3.25.0",
44
- "@aws-sdk/node-config-provider": "3.28.0",
45
- "@aws-sdk/node-http-handler": "3.25.0",
46
- "@aws-sdk/protocol-http": "3.25.0",
47
- "@aws-sdk/smithy-client": "3.28.0",
48
- "@aws-sdk/types": "3.25.0",
49
- "@aws-sdk/url-parser": "3.25.0",
50
- "@aws-sdk/util-base64-browser": "3.23.0",
51
- "@aws-sdk/util-base64-node": "3.23.0",
52
- "@aws-sdk/util-body-length-browser": "3.23.0",
53
- "@aws-sdk/util-body-length-node": "3.23.0",
54
- "@aws-sdk/util-user-agent-browser": "3.25.0",
55
- "@aws-sdk/util-user-agent-node": "3.28.0",
56
- "@aws-sdk/util-utf8-browser": "3.23.0",
57
- "@aws-sdk/util-utf8-node": "3.23.0",
58
- "@aws-sdk/util-waiter": "3.25.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
+ "@aws-sdk/util-waiter": "3.32.0",
59
59
  "tslib": "^2.3.0",
60
60
  "uuid": "^8.3.2"
61
61
  },
62
62
  "devDependencies": {
63
- "@aws-sdk/client-documentation-generator": "3.23.0",
63
+ "@aws-sdk/client-documentation-generator": "3.32.0",
64
64
  "@types/node": "^12.7.5",
65
65
  "@types/uuid": "^8.3.0",
66
66
  "downlevel-dts": "0.7.0",
@@ -68,7 +68,7 @@
68
68
  "rimraf": "^3.0.0",
69
69
  "ts-jest": "^26.4.1",
70
70
  "typedoc": "^0.19.2",
71
- "typescript": "~4.3.2"
71
+ "typescript": "~4.3.5"
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=10.0.0"
@@ -762,7 +762,7 @@ const deserializeAws_restJson1CreateReplicationSetCommand = async (output, conte
762
762
  $metadata: deserializeMetadata(output),
763
763
  arn: undefined,
764
764
  };
765
- const data = await parseBody(output.body, context);
765
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
766
766
  if (data.arn !== undefined && data.arn !== null) {
767
767
  contents.arn = smithy_client_1.expectString(data.arn);
768
768
  }
@@ -850,7 +850,7 @@ const deserializeAws_restJson1CreateResponsePlanCommand = async (output, context
850
850
  $metadata: deserializeMetadata(output),
851
851
  arn: undefined,
852
852
  };
853
- const data = await parseBody(output.body, context);
853
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
854
854
  if (data.arn !== undefined && data.arn !== null) {
855
855
  contents.arn = smithy_client_1.expectString(data.arn);
856
856
  }
@@ -939,7 +939,7 @@ const deserializeAws_restJson1CreateTimelineEventCommand = async (output, contex
939
939
  eventId: undefined,
940
940
  incidentRecordArn: undefined,
941
941
  };
942
- const data = await parseBody(output.body, context);
942
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
943
943
  if (data.eventId !== undefined && data.eventId !== null) {
944
944
  contents.eventId = smithy_client_1.expectString(data.eventId);
945
945
  }
@@ -1386,7 +1386,7 @@ const deserializeAws_restJson1GetIncidentRecordCommand = async (output, context)
1386
1386
  $metadata: deserializeMetadata(output),
1387
1387
  incidentRecord: undefined,
1388
1388
  };
1389
- const data = await parseBody(output.body, context);
1389
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1390
1390
  if (data.incidentRecord !== undefined && data.incidentRecord !== null) {
1391
1391
  contents.incidentRecord = deserializeAws_restJson1IncidentRecord(data.incidentRecord, context);
1392
1392
  }
@@ -1466,7 +1466,7 @@ const deserializeAws_restJson1GetReplicationSetCommand = async (output, context)
1466
1466
  $metadata: deserializeMetadata(output),
1467
1467
  replicationSet: undefined,
1468
1468
  };
1469
- const data = await parseBody(output.body, context);
1469
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1470
1470
  if (data.replicationSet !== undefined && data.replicationSet !== null) {
1471
1471
  contents.replicationSet = deserializeAws_restJson1ReplicationSet(data.replicationSet, context);
1472
1472
  }
@@ -1547,7 +1547,7 @@ const deserializeAws_restJson1GetResourcePoliciesCommand = async (output, contex
1547
1547
  nextToken: undefined,
1548
1548
  resourcePolicies: undefined,
1549
1549
  };
1550
- const data = await parseBody(output.body, context);
1550
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1551
1551
  if (data.nextToken !== undefined && data.nextToken !== null) {
1552
1552
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
1553
1553
  }
@@ -1636,7 +1636,7 @@ const deserializeAws_restJson1GetResponsePlanCommand = async (output, context) =
1636
1636
  incidentTemplate: undefined,
1637
1637
  name: undefined,
1638
1638
  };
1639
- const data = await parseBody(output.body, context);
1639
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1640
1640
  if (data.actions !== undefined && data.actions !== null) {
1641
1641
  contents.actions = deserializeAws_restJson1ActionsList(data.actions, context);
1642
1642
  }
@@ -1644,7 +1644,7 @@ const deserializeAws_restJson1GetResponsePlanCommand = async (output, context) =
1644
1644
  contents.arn = smithy_client_1.expectString(data.arn);
1645
1645
  }
1646
1646
  if (data.chatChannel !== undefined && data.chatChannel !== null) {
1647
- contents.chatChannel = deserializeAws_restJson1ChatChannel(data.chatChannel, context);
1647
+ contents.chatChannel = deserializeAws_restJson1ChatChannel(smithy_client_1.expectUnion(data.chatChannel), context);
1648
1648
  }
1649
1649
  if (data.displayName !== undefined && data.displayName !== null) {
1650
1650
  contents.displayName = smithy_client_1.expectString(data.displayName);
@@ -1734,7 +1734,7 @@ const deserializeAws_restJson1GetTimelineEventCommand = async (output, context)
1734
1734
  $metadata: deserializeMetadata(output),
1735
1735
  event: undefined,
1736
1736
  };
1737
- const data = await parseBody(output.body, context);
1737
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1738
1738
  if (data.event !== undefined && data.event !== null) {
1739
1739
  contents.event = deserializeAws_restJson1TimelineEvent(data.event, context);
1740
1740
  }
@@ -1815,7 +1815,7 @@ const deserializeAws_restJson1ListIncidentRecordsCommand = async (output, contex
1815
1815
  incidentRecordSummaries: undefined,
1816
1816
  nextToken: undefined,
1817
1817
  };
1818
- const data = await parseBody(output.body, context);
1818
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1819
1819
  if (data.incidentRecordSummaries !== undefined && data.incidentRecordSummaries !== null) {
1820
1820
  contents.incidentRecordSummaries = deserializeAws_restJson1IncidentRecordSummaryList(data.incidentRecordSummaries, context);
1821
1821
  }
@@ -1891,7 +1891,7 @@ const deserializeAws_restJson1ListRelatedItemsCommand = async (output, context)
1891
1891
  nextToken: undefined,
1892
1892
  relatedItems: undefined,
1893
1893
  };
1894
- const data = await parseBody(output.body, context);
1894
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1895
1895
  if (data.nextToken !== undefined && data.nextToken !== null) {
1896
1896
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
1897
1897
  }
@@ -1967,7 +1967,7 @@ const deserializeAws_restJson1ListReplicationSetsCommand = async (output, contex
1967
1967
  nextToken: undefined,
1968
1968
  replicationSetArns: undefined,
1969
1969
  };
1970
- const data = await parseBody(output.body, context);
1970
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1971
1971
  if (data.nextToken !== undefined && data.nextToken !== null) {
1972
1972
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
1973
1973
  }
@@ -2043,7 +2043,7 @@ const deserializeAws_restJson1ListResponsePlansCommand = async (output, context)
2043
2043
  nextToken: undefined,
2044
2044
  responsePlanSummaries: undefined,
2045
2045
  };
2046
- const data = await parseBody(output.body, context);
2046
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2047
2047
  if (data.nextToken !== undefined && data.nextToken !== null) {
2048
2048
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
2049
2049
  }
@@ -2118,7 +2118,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
2118
2118
  $metadata: deserializeMetadata(output),
2119
2119
  tags: undefined,
2120
2120
  };
2121
- const data = await parseBody(output.body, context);
2121
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2122
2122
  if (data.tags !== undefined && data.tags !== null) {
2123
2123
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
2124
2124
  }
@@ -2199,7 +2199,7 @@ const deserializeAws_restJson1ListTimelineEventsCommand = async (output, context
2199
2199
  eventSummaries: undefined,
2200
2200
  nextToken: undefined,
2201
2201
  };
2202
- const data = await parseBody(output.body, context);
2202
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2203
2203
  if (data.eventSummaries !== undefined && data.eventSummaries !== null) {
2204
2204
  contents.eventSummaries = deserializeAws_restJson1EventSummaryList(data.eventSummaries, context);
2205
2205
  }
@@ -2274,7 +2274,7 @@ const deserializeAws_restJson1PutResourcePolicyCommand = async (output, context)
2274
2274
  $metadata: deserializeMetadata(output),
2275
2275
  policyId: undefined,
2276
2276
  };
2277
- const data = await parseBody(output.body, context);
2277
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2278
2278
  if (data.policyId !== undefined && data.policyId !== null) {
2279
2279
  contents.policyId = smithy_client_1.expectString(data.policyId);
2280
2280
  }
@@ -2354,7 +2354,7 @@ const deserializeAws_restJson1StartIncidentCommand = async (output, context) =>
2354
2354
  $metadata: deserializeMetadata(output),
2355
2355
  incidentRecordArn: undefined,
2356
2356
  };
2357
- const data = await parseBody(output.body, context);
2357
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2358
2358
  if (data.incidentRecordArn !== undefined && data.incidentRecordArn !== null) {
2359
2359
  contents.incidentRecordArn = smithy_client_1.expectString(data.incidentRecordArn);
2360
2360
  }
@@ -3505,7 +3505,7 @@ const deserializeAws_restJson1ActionsList = (output, context) => {
3505
3505
  if (entry === null) {
3506
3506
  return null;
3507
3507
  }
3508
- return deserializeAws_restJson1Action(entry, context);
3508
+ return deserializeAws_restJson1Action(smithy_client_1.expectUnion(entry), context);
3509
3509
  });
3510
3510
  };
3511
3511
  const deserializeAws_restJson1AutomationExecution = (output, context) => {
@@ -3515,23 +3515,39 @@ const deserializeAws_restJson1AutomationExecution = (output, context) => {
3515
3515
  return { $unknown: Object.entries(output)[0] };
3516
3516
  };
3517
3517
  const deserializeAws_restJson1AutomationExecutionSet = (output, context) => {
3518
+ const uniqueValues = new Set();
3518
3519
  return (output || [])
3519
3520
  .filter((e) => e != null)
3520
3521
  .map((entry) => {
3521
3522
  if (entry === null) {
3522
3523
  return null;
3523
3524
  }
3524
- return deserializeAws_restJson1AutomationExecution(entry, context);
3525
+ const parsedEntry = deserializeAws_restJson1AutomationExecution(smithy_client_1.expectUnion(entry), context);
3526
+ if (uniqueValues.has(parsedEntry)) {
3527
+ throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#AutomationExecutionSet" must be unique.');
3528
+ }
3529
+ else {
3530
+ uniqueValues.add(parsedEntry);
3531
+ return parsedEntry;
3532
+ }
3525
3533
  });
3526
3534
  };
3527
3535
  const deserializeAws_restJson1ChatbotSnsConfigurationSet = (output, context) => {
3536
+ const uniqueValues = new Set();
3528
3537
  return (output || [])
3529
3538
  .filter((e) => e != null)
3530
3539
  .map((entry) => {
3531
3540
  if (entry === null) {
3532
3541
  return null;
3533
3542
  }
3534
- return smithy_client_1.expectString(entry);
3543
+ const parsedEntry = smithy_client_1.expectString(entry);
3544
+ if (uniqueValues.has(parsedEntry)) {
3545
+ throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#ChatbotSnsConfigurationSet" must be unique.');
3546
+ }
3547
+ else {
3548
+ uniqueValues.add(parsedEntry);
3549
+ return parsedEntry;
3550
+ }
3535
3551
  });
3536
3552
  };
3537
3553
  const deserializeAws_restJson1ChatChannel = (output, context) => {
@@ -3551,24 +3567,32 @@ const deserializeAws_restJson1EmptyChatChannel = (output, context) => {
3551
3567
  return {};
3552
3568
  };
3553
3569
  const deserializeAws_restJson1EngagementSet = (output, context) => {
3570
+ const uniqueValues = new Set();
3554
3571
  return (output || [])
3555
3572
  .filter((e) => e != null)
3556
3573
  .map((entry) => {
3557
3574
  if (entry === null) {
3558
3575
  return null;
3559
3576
  }
3560
- return smithy_client_1.expectString(entry);
3577
+ const parsedEntry = smithy_client_1.expectString(entry);
3578
+ if (uniqueValues.has(parsedEntry)) {
3579
+ throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#EngagementSet" must be unique.');
3580
+ }
3581
+ else {
3582
+ uniqueValues.add(parsedEntry);
3583
+ return parsedEntry;
3584
+ }
3561
3585
  });
3562
3586
  };
3563
3587
  const deserializeAws_restJson1EventSummary = (output, context) => {
3564
3588
  return {
3565
3589
  eventId: smithy_client_1.expectString(output.eventId),
3566
3590
  eventTime: output.eventTime !== undefined && output.eventTime !== null
3567
- ? new Date(Math.round(output.eventTime * 1000))
3591
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.eventTime)))
3568
3592
  : undefined,
3569
3593
  eventType: smithy_client_1.expectString(output.eventType),
3570
3594
  eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
3571
- ? new Date(Math.round(output.eventUpdatedTime * 1000))
3595
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.eventUpdatedTime)))
3572
3596
  : undefined,
3573
3597
  incidentRecordArn: smithy_client_1.expectString(output.incidentRecordArn),
3574
3598
  };
@@ -3590,25 +3614,25 @@ const deserializeAws_restJson1IncidentRecord = (output, context) => {
3590
3614
  ? deserializeAws_restJson1AutomationExecutionSet(output.automationExecutions, context)
3591
3615
  : undefined,
3592
3616
  chatChannel: output.chatChannel !== undefined && output.chatChannel !== null
3593
- ? deserializeAws_restJson1ChatChannel(output.chatChannel, context)
3617
+ ? deserializeAws_restJson1ChatChannel(smithy_client_1.expectUnion(output.chatChannel), context)
3594
3618
  : undefined,
3595
3619
  creationTime: output.creationTime !== undefined && output.creationTime !== null
3596
- ? new Date(Math.round(output.creationTime * 1000))
3620
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
3597
3621
  : undefined,
3598
3622
  dedupeString: smithy_client_1.expectString(output.dedupeString),
3599
- impact: smithy_client_1.expectInt(output.impact),
3623
+ impact: smithy_client_1.expectInt32(output.impact),
3600
3624
  incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
3601
3625
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
3602
3626
  : undefined,
3603
3627
  lastModifiedBy: smithy_client_1.expectString(output.lastModifiedBy),
3604
3628
  lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
3605
- ? new Date(Math.round(output.lastModifiedTime * 1000))
3629
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastModifiedTime)))
3606
3630
  : undefined,
3607
3631
  notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
3608
3632
  ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
3609
3633
  : undefined,
3610
3634
  resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
3611
- ? new Date(Math.round(output.resolvedTime * 1000))
3635
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.resolvedTime)))
3612
3636
  : undefined,
3613
3637
  status: smithy_client_1.expectString(output.status),
3614
3638
  summary: smithy_client_1.expectString(output.summary),
@@ -3627,14 +3651,14 @@ const deserializeAws_restJson1IncidentRecordSummary = (output, context) => {
3627
3651
  return {
3628
3652
  arn: smithy_client_1.expectString(output.arn),
3629
3653
  creationTime: output.creationTime !== undefined && output.creationTime !== null
3630
- ? new Date(Math.round(output.creationTime * 1000))
3654
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
3631
3655
  : undefined,
3632
- impact: smithy_client_1.expectInt(output.impact),
3656
+ impact: smithy_client_1.expectInt32(output.impact),
3633
3657
  incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
3634
3658
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
3635
3659
  : undefined,
3636
3660
  resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
3637
- ? new Date(Math.round(output.resolvedTime * 1000))
3661
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.resolvedTime)))
3638
3662
  : undefined,
3639
3663
  status: smithy_client_1.expectString(output.status),
3640
3664
  title: smithy_client_1.expectString(output.title),
@@ -3653,7 +3677,7 @@ const deserializeAws_restJson1IncidentRecordSummaryList = (output, context) => {
3653
3677
  const deserializeAws_restJson1IncidentTemplate = (output, context) => {
3654
3678
  return {
3655
3679
  dedupeString: smithy_client_1.expectString(output.dedupeString),
3656
- impact: smithy_client_1.expectInt(output.impact),
3680
+ impact: smithy_client_1.expectInt32(output.impact),
3657
3681
  notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
3658
3682
  ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
3659
3683
  : undefined,
@@ -3665,7 +3689,7 @@ const deserializeAws_restJson1ItemIdentifier = (output, context) => {
3665
3689
  return {
3666
3690
  type: smithy_client_1.expectString(output.type),
3667
3691
  value: output.value !== undefined && output.value !== null
3668
- ? deserializeAws_restJson1ItemValue(output.value, context)
3692
+ ? deserializeAws_restJson1ItemValue(smithy_client_1.expectUnion(output.value), context)
3669
3693
  : undefined,
3670
3694
  };
3671
3695
  };
@@ -3688,13 +3712,21 @@ const deserializeAws_restJson1NotificationTargetItem = (output, context) => {
3688
3712
  return { $unknown: Object.entries(output)[0] };
3689
3713
  };
3690
3714
  const deserializeAws_restJson1NotificationTargetSet = (output, context) => {
3715
+ const uniqueValues = new Set();
3691
3716
  return (output || [])
3692
3717
  .filter((e) => e != null)
3693
3718
  .map((entry) => {
3694
3719
  if (entry === null) {
3695
3720
  return null;
3696
3721
  }
3697
- return deserializeAws_restJson1NotificationTargetItem(entry, context);
3722
+ const parsedEntry = deserializeAws_restJson1NotificationTargetItem(smithy_client_1.expectUnion(entry), context);
3723
+ if (uniqueValues.has(parsedEntry)) {
3724
+ throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#NotificationTargetSet" must be unique.');
3725
+ }
3726
+ else {
3727
+ uniqueValues.add(parsedEntry);
3728
+ return parsedEntry;
3729
+ }
3698
3730
  });
3699
3731
  };
3700
3732
  const deserializeAws_restJson1RegionInfo = (output, context) => {
@@ -3703,7 +3735,7 @@ const deserializeAws_restJson1RegionInfo = (output, context) => {
3703
3735
  status: smithy_client_1.expectString(output.status),
3704
3736
  statusMessage: smithy_client_1.expectString(output.statusMessage),
3705
3737
  statusUpdateDateTime: output.statusUpdateDateTime !== undefined && output.statusUpdateDateTime !== null
3706
- ? new Date(Math.round(output.statusUpdateDateTime * 1000))
3738
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.statusUpdateDateTime)))
3707
3739
  : undefined,
3708
3740
  };
3709
3741
  };
@@ -3741,12 +3773,12 @@ const deserializeAws_restJson1ReplicationSet = (output, context) => {
3741
3773
  arn: smithy_client_1.expectString(output.arn),
3742
3774
  createdBy: smithy_client_1.expectString(output.createdBy),
3743
3775
  createdTime: output.createdTime !== undefined && output.createdTime !== null
3744
- ? new Date(Math.round(output.createdTime * 1000))
3776
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdTime)))
3745
3777
  : undefined,
3746
3778
  deletionProtected: smithy_client_1.expectBoolean(output.deletionProtected),
3747
3779
  lastModifiedBy: smithy_client_1.expectString(output.lastModifiedBy),
3748
3780
  lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
3749
- ? new Date(Math.round(output.lastModifiedTime * 1000))
3781
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastModifiedTime)))
3750
3782
  : undefined,
3751
3783
  regionMap: output.regionMap !== undefined && output.regionMap !== null
3752
3784
  ? deserializeAws_restJson1RegionInfoMap(output.regionMap, context)
@@ -3846,11 +3878,11 @@ const deserializeAws_restJson1TimelineEvent = (output, context) => {
3846
3878
  eventData: smithy_client_1.expectString(output.eventData),
3847
3879
  eventId: smithy_client_1.expectString(output.eventId),
3848
3880
  eventTime: output.eventTime !== undefined && output.eventTime !== null
3849
- ? new Date(Math.round(output.eventTime * 1000))
3881
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.eventTime)))
3850
3882
  : undefined,
3851
3883
  eventType: smithy_client_1.expectString(output.eventType),
3852
3884
  eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
3853
- ? new Date(Math.round(output.eventUpdatedTime * 1000))
3885
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.eventUpdatedTime)))
3854
3886
  : undefined,
3855
3887
  incidentRecordArn: smithy_client_1.expectString(output.incidentRecordArn),
3856
3888
  };