@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/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.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"
@@ -109,9 +109,14 @@ import {
109
109
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
110
110
  import {
111
111
  expectBoolean as __expectBoolean,
112
- expectInt as __expectInt,
112
+ expectInt32 as __expectInt32,
113
+ expectNonNull as __expectNonNull,
114
+ expectNumber as __expectNumber,
115
+ expectObject as __expectObject,
113
116
  expectString as __expectString,
117
+ expectUnion as __expectUnion,
114
118
  extendedEncodeURIComponent as __extendedEncodeURIComponent,
119
+ parseEpochTimestamp as __parseEpochTimestamp,
115
120
  } from "@aws-sdk/smithy-client";
116
121
  import {
117
122
  Endpoint as __Endpoint,
@@ -959,7 +964,7 @@ export const deserializeAws_restJson1CreateReplicationSetCommand = async (
959
964
  $metadata: deserializeMetadata(output),
960
965
  arn: undefined,
961
966
  };
962
- const data: any = await parseBody(output.body, context);
967
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
963
968
  if (data.arn !== undefined && data.arn !== null) {
964
969
  contents.arn = __expectString(data.arn);
965
970
  }
@@ -1054,7 +1059,7 @@ export const deserializeAws_restJson1CreateResponsePlanCommand = async (
1054
1059
  $metadata: deserializeMetadata(output),
1055
1060
  arn: undefined,
1056
1061
  };
1057
- const data: any = await parseBody(output.body, context);
1062
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1058
1063
  if (data.arn !== undefined && data.arn !== null) {
1059
1064
  contents.arn = __expectString(data.arn);
1060
1065
  }
@@ -1150,7 +1155,7 @@ export const deserializeAws_restJson1CreateTimelineEventCommand = async (
1150
1155
  eventId: undefined,
1151
1156
  incidentRecordArn: undefined,
1152
1157
  };
1153
- const data: any = await parseBody(output.body, context);
1158
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1154
1159
  if (data.eventId !== undefined && data.eventId !== null) {
1155
1160
  contents.eventId = __expectString(data.eventId);
1156
1161
  }
@@ -1639,7 +1644,7 @@ export const deserializeAws_restJson1GetIncidentRecordCommand = async (
1639
1644
  $metadata: deserializeMetadata(output),
1640
1645
  incidentRecord: undefined,
1641
1646
  };
1642
- const data: any = await parseBody(output.body, context);
1647
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1643
1648
  if (data.incidentRecord !== undefined && data.incidentRecord !== null) {
1644
1649
  contents.incidentRecord = deserializeAws_restJson1IncidentRecord(data.incidentRecord, context);
1645
1650
  }
@@ -1726,7 +1731,7 @@ export const deserializeAws_restJson1GetReplicationSetCommand = async (
1726
1731
  $metadata: deserializeMetadata(output),
1727
1732
  replicationSet: undefined,
1728
1733
  };
1729
- const data: any = await parseBody(output.body, context);
1734
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1730
1735
  if (data.replicationSet !== undefined && data.replicationSet !== null) {
1731
1736
  contents.replicationSet = deserializeAws_restJson1ReplicationSet(data.replicationSet, context);
1732
1737
  }
@@ -1814,7 +1819,7 @@ export const deserializeAws_restJson1GetResourcePoliciesCommand = async (
1814
1819
  nextToken: undefined,
1815
1820
  resourcePolicies: undefined,
1816
1821
  };
1817
- const data: any = await parseBody(output.body, context);
1822
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1818
1823
  if (data.nextToken !== undefined && data.nextToken !== null) {
1819
1824
  contents.nextToken = __expectString(data.nextToken);
1820
1825
  }
@@ -1910,7 +1915,7 @@ export const deserializeAws_restJson1GetResponsePlanCommand = async (
1910
1915
  incidentTemplate: undefined,
1911
1916
  name: undefined,
1912
1917
  };
1913
- const data: any = await parseBody(output.body, context);
1918
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1914
1919
  if (data.actions !== undefined && data.actions !== null) {
1915
1920
  contents.actions = deserializeAws_restJson1ActionsList(data.actions, context);
1916
1921
  }
@@ -1918,7 +1923,7 @@ export const deserializeAws_restJson1GetResponsePlanCommand = async (
1918
1923
  contents.arn = __expectString(data.arn);
1919
1924
  }
1920
1925
  if (data.chatChannel !== undefined && data.chatChannel !== null) {
1921
- contents.chatChannel = deserializeAws_restJson1ChatChannel(data.chatChannel, context);
1926
+ contents.chatChannel = deserializeAws_restJson1ChatChannel(__expectUnion(data.chatChannel), context);
1922
1927
  }
1923
1928
  if (data.displayName !== undefined && data.displayName !== null) {
1924
1929
  contents.displayName = __expectString(data.displayName);
@@ -2015,7 +2020,7 @@ export const deserializeAws_restJson1GetTimelineEventCommand = async (
2015
2020
  $metadata: deserializeMetadata(output),
2016
2021
  event: undefined,
2017
2022
  };
2018
- const data: any = await parseBody(output.body, context);
2023
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2019
2024
  if (data.event !== undefined && data.event !== null) {
2020
2025
  contents.event = deserializeAws_restJson1TimelineEvent(data.event, context);
2021
2026
  }
@@ -2103,7 +2108,7 @@ export const deserializeAws_restJson1ListIncidentRecordsCommand = async (
2103
2108
  incidentRecordSummaries: undefined,
2104
2109
  nextToken: undefined,
2105
2110
  };
2106
- const data: any = await parseBody(output.body, context);
2111
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2107
2112
  if (data.incidentRecordSummaries !== undefined && data.incidentRecordSummaries !== null) {
2108
2113
  contents.incidentRecordSummaries = deserializeAws_restJson1IncidentRecordSummaryList(
2109
2114
  data.incidentRecordSummaries,
@@ -2189,7 +2194,7 @@ export const deserializeAws_restJson1ListRelatedItemsCommand = async (
2189
2194
  nextToken: undefined,
2190
2195
  relatedItems: undefined,
2191
2196
  };
2192
- const data: any = await parseBody(output.body, context);
2197
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2193
2198
  if (data.nextToken !== undefined && data.nextToken !== null) {
2194
2199
  contents.nextToken = __expectString(data.nextToken);
2195
2200
  }
@@ -2272,7 +2277,7 @@ export const deserializeAws_restJson1ListReplicationSetsCommand = async (
2272
2277
  nextToken: undefined,
2273
2278
  replicationSetArns: undefined,
2274
2279
  };
2275
- const data: any = await parseBody(output.body, context);
2280
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2276
2281
  if (data.nextToken !== undefined && data.nextToken !== null) {
2277
2282
  contents.nextToken = __expectString(data.nextToken);
2278
2283
  }
@@ -2355,7 +2360,7 @@ export const deserializeAws_restJson1ListResponsePlansCommand = async (
2355
2360
  nextToken: undefined,
2356
2361
  responsePlanSummaries: undefined,
2357
2362
  };
2358
- const data: any = await parseBody(output.body, context);
2363
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2359
2364
  if (data.nextToken !== undefined && data.nextToken !== null) {
2360
2365
  contents.nextToken = __expectString(data.nextToken);
2361
2366
  }
@@ -2440,7 +2445,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
2440
2445
  $metadata: deserializeMetadata(output),
2441
2446
  tags: undefined,
2442
2447
  };
2443
- const data: any = await parseBody(output.body, context);
2448
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2444
2449
  if (data.tags !== undefined && data.tags !== null) {
2445
2450
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
2446
2451
  }
@@ -2528,7 +2533,7 @@ export const deserializeAws_restJson1ListTimelineEventsCommand = async (
2528
2533
  eventSummaries: undefined,
2529
2534
  nextToken: undefined,
2530
2535
  };
2531
- const data: any = await parseBody(output.body, context);
2536
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2532
2537
  if (data.eventSummaries !== undefined && data.eventSummaries !== null) {
2533
2538
  contents.eventSummaries = deserializeAws_restJson1EventSummaryList(data.eventSummaries, context);
2534
2539
  }
@@ -2610,7 +2615,7 @@ export const deserializeAws_restJson1PutResourcePolicyCommand = async (
2610
2615
  $metadata: deserializeMetadata(output),
2611
2616
  policyId: undefined,
2612
2617
  };
2613
- const data: any = await parseBody(output.body, context);
2618
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2614
2619
  if (data.policyId !== undefined && data.policyId !== null) {
2615
2620
  contents.policyId = __expectString(data.policyId);
2616
2621
  }
@@ -2697,7 +2702,7 @@ export const deserializeAws_restJson1StartIncidentCommand = async (
2697
2702
  $metadata: deserializeMetadata(output),
2698
2703
  incidentRecordArn: undefined,
2699
2704
  };
2700
- const data: any = await parseBody(output.body, context);
2705
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2701
2706
  if (data.incidentRecordArn !== undefined && data.incidentRecordArn !== null) {
2702
2707
  contents.incidentRecordArn = __expectString(data.incidentRecordArn);
2703
2708
  }
@@ -3974,7 +3979,7 @@ const deserializeAws_restJson1ActionsList = (output: any, context: __SerdeContex
3974
3979
  if (entry === null) {
3975
3980
  return null as any;
3976
3981
  }
3977
- return deserializeAws_restJson1Action(entry, context);
3982
+ return deserializeAws_restJson1Action(__expectUnion(entry), context);
3978
3983
  });
3979
3984
  };
3980
3985
 
@@ -3989,24 +3994,42 @@ const deserializeAws_restJson1AutomationExecutionSet = (
3989
3994
  output: any,
3990
3995
  context: __SerdeContext
3991
3996
  ): AutomationExecution[] => {
3997
+ const uniqueValues = new Set<any>();
3992
3998
  return (output || [])
3993
3999
  .filter((e: any) => e != null)
3994
4000
  .map((entry: any) => {
3995
4001
  if (entry === null) {
3996
4002
  return null as any;
3997
4003
  }
3998
- return deserializeAws_restJson1AutomationExecution(entry, context);
4004
+ const parsedEntry = deserializeAws_restJson1AutomationExecution(__expectUnion(entry), context);
4005
+ if (uniqueValues.has(parsedEntry)) {
4006
+ throw new TypeError(
4007
+ 'All elements of the set "com.amazonaws.ssmincidents#AutomationExecutionSet" must be unique.'
4008
+ );
4009
+ } else {
4010
+ uniqueValues.add(parsedEntry);
4011
+ return parsedEntry;
4012
+ }
3999
4013
  });
4000
4014
  };
4001
4015
 
4002
4016
  const deserializeAws_restJson1ChatbotSnsConfigurationSet = (output: any, context: __SerdeContext): string[] => {
4017
+ const uniqueValues = new Set<any>();
4003
4018
  return (output || [])
4004
4019
  .filter((e: any) => e != null)
4005
4020
  .map((entry: any) => {
4006
4021
  if (entry === null) {
4007
4022
  return null as any;
4008
4023
  }
4009
- return __expectString(entry) as any;
4024
+ const parsedEntry = __expectString(entry) as any;
4025
+ if (uniqueValues.has(parsedEntry)) {
4026
+ throw new TypeError(
4027
+ 'All elements of the set "com.amazonaws.ssmincidents#ChatbotSnsConfigurationSet" must be unique.'
4028
+ );
4029
+ } else {
4030
+ uniqueValues.add(parsedEntry);
4031
+ return parsedEntry;
4032
+ }
4010
4033
  });
4011
4034
  };
4012
4035
 
@@ -4029,13 +4052,20 @@ const deserializeAws_restJson1EmptyChatChannel = (output: any, context: __SerdeC
4029
4052
  };
4030
4053
 
4031
4054
  const deserializeAws_restJson1EngagementSet = (output: any, context: __SerdeContext): string[] => {
4055
+ const uniqueValues = new Set<any>();
4032
4056
  return (output || [])
4033
4057
  .filter((e: any) => e != null)
4034
4058
  .map((entry: any) => {
4035
4059
  if (entry === null) {
4036
4060
  return null as any;
4037
4061
  }
4038
- return __expectString(entry) as any;
4062
+ const parsedEntry = __expectString(entry) as any;
4063
+ if (uniqueValues.has(parsedEntry)) {
4064
+ throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#EngagementSet" must be unique.');
4065
+ } else {
4066
+ uniqueValues.add(parsedEntry);
4067
+ return parsedEntry;
4068
+ }
4039
4069
  });
4040
4070
  };
4041
4071
 
@@ -4044,12 +4074,12 @@ const deserializeAws_restJson1EventSummary = (output: any, context: __SerdeConte
4044
4074
  eventId: __expectString(output.eventId),
4045
4075
  eventTime:
4046
4076
  output.eventTime !== undefined && output.eventTime !== null
4047
- ? new Date(Math.round(output.eventTime * 1000))
4077
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
4048
4078
  : undefined,
4049
4079
  eventType: __expectString(output.eventType),
4050
4080
  eventUpdatedTime:
4051
4081
  output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
4052
- ? new Date(Math.round(output.eventUpdatedTime * 1000))
4082
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventUpdatedTime)))
4053
4083
  : undefined,
4054
4084
  incidentRecordArn: __expectString(output.incidentRecordArn),
4055
4085
  } as any;
@@ -4075,14 +4105,14 @@ const deserializeAws_restJson1IncidentRecord = (output: any, context: __SerdeCon
4075
4105
  : undefined,
4076
4106
  chatChannel:
4077
4107
  output.chatChannel !== undefined && output.chatChannel !== null
4078
- ? deserializeAws_restJson1ChatChannel(output.chatChannel, context)
4108
+ ? deserializeAws_restJson1ChatChannel(__expectUnion(output.chatChannel), context)
4079
4109
  : undefined,
4080
4110
  creationTime:
4081
4111
  output.creationTime !== undefined && output.creationTime !== null
4082
- ? new Date(Math.round(output.creationTime * 1000))
4112
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
4083
4113
  : undefined,
4084
4114
  dedupeString: __expectString(output.dedupeString),
4085
- impact: __expectInt(output.impact),
4115
+ impact: __expectInt32(output.impact),
4086
4116
  incidentRecordSource:
4087
4117
  output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
4088
4118
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
@@ -4090,7 +4120,7 @@ const deserializeAws_restJson1IncidentRecord = (output: any, context: __SerdeCon
4090
4120
  lastModifiedBy: __expectString(output.lastModifiedBy),
4091
4121
  lastModifiedTime:
4092
4122
  output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
4093
- ? new Date(Math.round(output.lastModifiedTime * 1000))
4123
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
4094
4124
  : undefined,
4095
4125
  notificationTargets:
4096
4126
  output.notificationTargets !== undefined && output.notificationTargets !== null
@@ -4098,7 +4128,7 @@ const deserializeAws_restJson1IncidentRecord = (output: any, context: __SerdeCon
4098
4128
  : undefined,
4099
4129
  resolvedTime:
4100
4130
  output.resolvedTime !== undefined && output.resolvedTime !== null
4101
- ? new Date(Math.round(output.resolvedTime * 1000))
4131
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
4102
4132
  : undefined,
4103
4133
  status: __expectString(output.status),
4104
4134
  summary: __expectString(output.summary),
@@ -4120,16 +4150,16 @@ const deserializeAws_restJson1IncidentRecordSummary = (output: any, context: __S
4120
4150
  arn: __expectString(output.arn),
4121
4151
  creationTime:
4122
4152
  output.creationTime !== undefined && output.creationTime !== null
4123
- ? new Date(Math.round(output.creationTime * 1000))
4153
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
4124
4154
  : undefined,
4125
- impact: __expectInt(output.impact),
4155
+ impact: __expectInt32(output.impact),
4126
4156
  incidentRecordSource:
4127
4157
  output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
4128
4158
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
4129
4159
  : undefined,
4130
4160
  resolvedTime:
4131
4161
  output.resolvedTime !== undefined && output.resolvedTime !== null
4132
- ? new Date(Math.round(output.resolvedTime * 1000))
4162
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
4133
4163
  : undefined,
4134
4164
  status: __expectString(output.status),
4135
4165
  title: __expectString(output.title),
@@ -4153,7 +4183,7 @@ const deserializeAws_restJson1IncidentRecordSummaryList = (
4153
4183
  const deserializeAws_restJson1IncidentTemplate = (output: any, context: __SerdeContext): IncidentTemplate => {
4154
4184
  return {
4155
4185
  dedupeString: __expectString(output.dedupeString),
4156
- impact: __expectInt(output.impact),
4186
+ impact: __expectInt32(output.impact),
4157
4187
  notificationTargets:
4158
4188
  output.notificationTargets !== undefined && output.notificationTargets !== null
4159
4189
  ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
@@ -4168,7 +4198,7 @@ const deserializeAws_restJson1ItemIdentifier = (output: any, context: __SerdeCon
4168
4198
  type: __expectString(output.type),
4169
4199
  value:
4170
4200
  output.value !== undefined && output.value !== null
4171
- ? deserializeAws_restJson1ItemValue(output.value, context)
4201
+ ? deserializeAws_restJson1ItemValue(__expectUnion(output.value), context)
4172
4202
  : undefined,
4173
4203
  } as any;
4174
4204
  };
@@ -4200,13 +4230,22 @@ const deserializeAws_restJson1NotificationTargetSet = (
4200
4230
  output: any,
4201
4231
  context: __SerdeContext
4202
4232
  ): NotificationTargetItem[] => {
4233
+ const uniqueValues = new Set<any>();
4203
4234
  return (output || [])
4204
4235
  .filter((e: any) => e != null)
4205
4236
  .map((entry: any) => {
4206
4237
  if (entry === null) {
4207
4238
  return null as any;
4208
4239
  }
4209
- return deserializeAws_restJson1NotificationTargetItem(entry, context);
4240
+ const parsedEntry = deserializeAws_restJson1NotificationTargetItem(__expectUnion(entry), context);
4241
+ if (uniqueValues.has(parsedEntry)) {
4242
+ throw new TypeError(
4243
+ 'All elements of the set "com.amazonaws.ssmincidents#NotificationTargetSet" must be unique.'
4244
+ );
4245
+ } else {
4246
+ uniqueValues.add(parsedEntry);
4247
+ return parsedEntry;
4248
+ }
4210
4249
  });
4211
4250
  };
4212
4251
 
@@ -4217,7 +4256,7 @@ const deserializeAws_restJson1RegionInfo = (output: any, context: __SerdeContext
4217
4256
  statusMessage: __expectString(output.statusMessage),
4218
4257
  statusUpdateDateTime:
4219
4258
  output.statusUpdateDateTime !== undefined && output.statusUpdateDateTime !== null
4220
- ? new Date(Math.round(output.statusUpdateDateTime * 1000))
4259
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.statusUpdateDateTime)))
4221
4260
  : undefined,
4222
4261
  } as any;
4223
4262
  };
@@ -4261,13 +4300,13 @@ const deserializeAws_restJson1ReplicationSet = (output: any, context: __SerdeCon
4261
4300
  createdBy: __expectString(output.createdBy),
4262
4301
  createdTime:
4263
4302
  output.createdTime !== undefined && output.createdTime !== null
4264
- ? new Date(Math.round(output.createdTime * 1000))
4303
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdTime)))
4265
4304
  : undefined,
4266
4305
  deletionProtected: __expectBoolean(output.deletionProtected),
4267
4306
  lastModifiedBy: __expectString(output.lastModifiedBy),
4268
4307
  lastModifiedTime:
4269
4308
  output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
4270
- ? new Date(Math.round(output.lastModifiedTime * 1000))
4309
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
4271
4310
  : undefined,
4272
4311
  regionMap:
4273
4312
  output.regionMap !== undefined && output.regionMap !== null
@@ -4383,12 +4422,12 @@ const deserializeAws_restJson1TimelineEvent = (output: any, context: __SerdeCont
4383
4422
  eventId: __expectString(output.eventId),
4384
4423
  eventTime:
4385
4424
  output.eventTime !== undefined && output.eventTime !== null
4386
- ? new Date(Math.round(output.eventTime * 1000))
4425
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
4387
4426
  : undefined,
4388
4427
  eventType: __expectString(output.eventType),
4389
4428
  eventUpdatedTime:
4390
4429
  output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
4391
- ? new Date(Math.round(output.eventUpdatedTime * 1000))
4430
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventUpdatedTime)))
4392
4431
  : undefined,
4393
4432
  incidentRecordArn: __expectString(output.incidentRecordArn),
4394
4433
  } as any;