@aws-sdk/client-lex-models-v2 3.123.0 → 3.127.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.
@@ -66,11 +66,7 @@ export var serializeAws_restJson1CreateBotCommand = function (input, context) {
66
66
  "content-type": "application/json",
67
67
  };
68
68
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/bots";
69
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botName !== undefined && input.botName !== null && { botName: input.botName })), (input.botTags !== undefined &&
70
- input.botTags !== null && { botTags: serializeAws_restJson1TagMap(input.botTags, context) })), (input.dataPrivacy !== undefined &&
71
- input.dataPrivacy !== null && { dataPrivacy: serializeAws_restJson1DataPrivacy(input.dataPrivacy, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.idleSessionTTLInSeconds !== undefined &&
72
- input.idleSessionTTLInSeconds !== null && { idleSessionTTLInSeconds: input.idleSessionTTLInSeconds })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.testBotAliasTags !== undefined &&
73
- input.testBotAliasTags !== null && {
69
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botName != null && { botName: input.botName })), (input.botTags != null && { botTags: serializeAws_restJson1TagMap(input.botTags, context) })), (input.dataPrivacy != null && { dataPrivacy: serializeAws_restJson1DataPrivacy(input.dataPrivacy, context) })), (input.description != null && { description: input.description })), (input.idleSessionTTLInSeconds != null && { idleSessionTTLInSeconds: input.idleSessionTTLInSeconds })), (input.roleArn != null && { roleArn: input.roleArn })), (input.testBotAliasTags != null && {
74
70
  testBotAliasTags: serializeAws_restJson1TagMap(input.testBotAliasTags, context),
75
71
  })));
76
72
  return [2, new __HttpRequest({
@@ -106,16 +102,13 @@ export var serializeAws_restJson1CreateBotAliasCommand = function (input, contex
106
102
  else {
107
103
  throw new Error("No value provided for input HTTP label: botId.");
108
104
  }
109
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botAliasLocaleSettings !== undefined &&
110
- input.botAliasLocaleSettings !== null && {
105
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botAliasLocaleSettings != null && {
111
106
  botAliasLocaleSettings: serializeAws_restJson1BotAliasLocaleSettingsMap(input.botAliasLocaleSettings, context),
112
- })), (input.botAliasName !== undefined && input.botAliasName !== null && { botAliasName: input.botAliasName })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.conversationLogSettings !== undefined &&
113
- input.conversationLogSettings !== null && {
107
+ })), (input.botAliasName != null && { botAliasName: input.botAliasName })), (input.botVersion != null && { botVersion: input.botVersion })), (input.conversationLogSettings != null && {
114
108
  conversationLogSettings: serializeAws_restJson1ConversationLogSettings(input.conversationLogSettings, context),
115
- })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.sentimentAnalysisSettings !== undefined &&
116
- input.sentimentAnalysisSettings !== null && {
109
+ })), (input.description != null && { description: input.description })), (input.sentimentAnalysisSettings != null && {
117
110
  sentimentAnalysisSettings: serializeAws_restJson1SentimentAnalysisSettings(input.sentimentAnalysisSettings, context),
118
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
111
+ })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
119
112
  return [2, new __HttpRequest({
120
113
  protocol: protocol,
121
114
  hostname: hostname,
@@ -160,11 +153,9 @@ export var serializeAws_restJson1CreateBotLocaleCommand = function (input, conte
160
153
  else {
161
154
  throw new Error("No value provided for input HTTP label: botVersion.");
162
155
  }
163
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId })), (input.nluIntentConfidenceThreshold !== undefined &&
164
- input.nluIntentConfidenceThreshold !== null && {
156
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.localeId != null && { localeId: input.localeId })), (input.nluIntentConfidenceThreshold != null && {
165
157
  nluIntentConfidenceThreshold: __serializeFloat(input.nluIntentConfidenceThreshold),
166
- })), (input.voiceSettings !== undefined &&
167
- input.voiceSettings !== null && {
158
+ })), (input.voiceSettings != null && {
168
159
  voiceSettings: serializeAws_restJson1VoiceSettings(input.voiceSettings, context),
169
160
  })));
170
161
  return [2, new __HttpRequest({
@@ -200,10 +191,9 @@ export var serializeAws_restJson1CreateBotVersionCommand = function (input, cont
200
191
  else {
201
192
  throw new Error("No value provided for input HTTP label: botId.");
202
193
  }
203
- body = JSON.stringify(__assign(__assign({}, (input.botVersionLocaleSpecification !== undefined &&
204
- input.botVersionLocaleSpecification !== null && {
194
+ body = JSON.stringify(__assign(__assign({}, (input.botVersionLocaleSpecification != null && {
205
195
  botVersionLocaleSpecification: serializeAws_restJson1BotVersionLocaleSpecification(input.botVersionLocaleSpecification, context),
206
- })), (input.description !== undefined && input.description !== null && { description: input.description })));
196
+ })), (input.description != null && { description: input.description })));
207
197
  return [2, new __HttpRequest({
208
198
  protocol: protocol,
209
199
  hostname: hostname,
@@ -227,8 +217,7 @@ export var serializeAws_restJson1CreateExportCommand = function (input, context)
227
217
  "content-type": "application/json",
228
218
  };
229
219
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/exports";
230
- body = JSON.stringify(__assign(__assign(__assign({}, (input.fileFormat !== undefined && input.fileFormat !== null && { fileFormat: input.fileFormat })), (input.filePassword !== undefined && input.filePassword !== null && { filePassword: input.filePassword })), (input.resourceSpecification !== undefined &&
231
- input.resourceSpecification !== null && {
220
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.fileFormat != null && { fileFormat: input.fileFormat })), (input.filePassword != null && { filePassword: input.filePassword })), (input.resourceSpecification != null && {
232
221
  resourceSpecification: serializeAws_restJson1ExportResourceSpecification(input.resourceSpecification, context),
233
222
  })));
234
223
  return [2, new __HttpRequest({
@@ -285,30 +274,21 @@ export var serializeAws_restJson1CreateIntentCommand = function (input, context)
285
274
  else {
286
275
  throw new Error("No value provided for input HTTP label: localeId.");
287
276
  }
288
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.dialogCodeHook !== undefined &&
289
- input.dialogCodeHook !== null && {
277
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.dialogCodeHook != null && {
290
278
  dialogCodeHook: serializeAws_restJson1DialogCodeHookSettings(input.dialogCodeHook, context),
291
- })), (input.fulfillmentCodeHook !== undefined &&
292
- input.fulfillmentCodeHook !== null && {
279
+ })), (input.fulfillmentCodeHook != null && {
293
280
  fulfillmentCodeHook: serializeAws_restJson1FulfillmentCodeHookSettings(input.fulfillmentCodeHook, context),
294
- })), (input.inputContexts !== undefined &&
295
- input.inputContexts !== null && {
281
+ })), (input.inputContexts != null && {
296
282
  inputContexts: serializeAws_restJson1InputContextsList(input.inputContexts, context),
297
- })), (input.intentClosingSetting !== undefined &&
298
- input.intentClosingSetting !== null && {
283
+ })), (input.intentClosingSetting != null && {
299
284
  intentClosingSetting: serializeAws_restJson1IntentClosingSetting(input.intentClosingSetting, context),
300
- })), (input.intentConfirmationSetting !== undefined &&
301
- input.intentConfirmationSetting !== null && {
285
+ })), (input.intentConfirmationSetting != null && {
302
286
  intentConfirmationSetting: serializeAws_restJson1IntentConfirmationSetting(input.intentConfirmationSetting, context),
303
- })), (input.intentName !== undefined && input.intentName !== null && { intentName: input.intentName })), (input.kendraConfiguration !== undefined &&
304
- input.kendraConfiguration !== null && {
287
+ })), (input.intentName != null && { intentName: input.intentName })), (input.kendraConfiguration != null && {
305
288
  kendraConfiguration: serializeAws_restJson1KendraConfiguration(input.kendraConfiguration, context),
306
- })), (input.outputContexts !== undefined &&
307
- input.outputContexts !== null && {
289
+ })), (input.outputContexts != null && {
308
290
  outputContexts: serializeAws_restJson1OutputContextsList(input.outputContexts, context),
309
- })), (input.parentIntentSignature !== undefined &&
310
- input.parentIntentSignature !== null && { parentIntentSignature: input.parentIntentSignature })), (input.sampleUtterances !== undefined &&
311
- input.sampleUtterances !== null && {
291
+ })), (input.parentIntentSignature != null && { parentIntentSignature: input.parentIntentSignature })), (input.sampleUtterances != null && {
312
292
  sampleUtterances: serializeAws_restJson1SampleUtterancesList(input.sampleUtterances, context),
313
293
  })));
314
294
  return [2, new __HttpRequest({
@@ -344,7 +324,7 @@ export var serializeAws_restJson1CreateResourcePolicyCommand = function (input,
344
324
  else {
345
325
  throw new Error("No value provided for input HTTP label: resourceArn.");
346
326
  }
347
- body = JSON.stringify(__assign({}, (input.policy !== undefined && input.policy !== null && { policy: input.policy })));
327
+ body = JSON.stringify(__assign({}, (input.policy != null && { policy: input.policy })));
348
328
  return [2, new __HttpRequest({
349
329
  protocol: protocol,
350
330
  hostname: hostname,
@@ -379,10 +359,7 @@ export var serializeAws_restJson1CreateResourcePolicyStatementCommand = function
379
359
  throw new Error("No value provided for input HTTP label: resourceArn.");
380
360
  }
381
361
  query = __assign({}, (input.expectedRevisionId !== undefined && { expectedRevisionId: input.expectedRevisionId }));
382
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.action !== undefined &&
383
- input.action !== null && { action: serializeAws_restJson1OperationList(input.action, context) })), (input.condition !== undefined &&
384
- input.condition !== null && { condition: serializeAws_restJson1ConditionMap(input.condition, context) })), (input.effect !== undefined && input.effect !== null && { effect: input.effect })), (input.principal !== undefined &&
385
- input.principal !== null && { principal: serializeAws_restJson1PrincipalList(input.principal, context) })), (input.statementId !== undefined && input.statementId !== null && { statementId: input.statementId })));
362
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.action != null && { action: serializeAws_restJson1OperationList(input.action, context) })), (input.condition != null && { condition: serializeAws_restJson1ConditionMap(input.condition, context) })), (input.effect != null && { effect: input.effect })), (input.principal != null && { principal: serializeAws_restJson1PrincipalList(input.principal, context) })), (input.statementId != null && { statementId: input.statementId })));
386
363
  return [2, new __HttpRequest({
387
364
  protocol: protocol,
388
365
  hostname: hostname,
@@ -448,14 +425,11 @@ export var serializeAws_restJson1CreateSlotCommand = function (input, context) {
448
425
  else {
449
426
  throw new Error("No value provided for input HTTP label: intentId.");
450
427
  }
451
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.multipleValuesSetting !== undefined &&
452
- input.multipleValuesSetting !== null && {
428
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.multipleValuesSetting != null && {
453
429
  multipleValuesSetting: serializeAws_restJson1MultipleValuesSetting(input.multipleValuesSetting, context),
454
- })), (input.obfuscationSetting !== undefined &&
455
- input.obfuscationSetting !== null && {
430
+ })), (input.obfuscationSetting != null && {
456
431
  obfuscationSetting: serializeAws_restJson1ObfuscationSetting(input.obfuscationSetting, context),
457
- })), (input.slotName !== undefined && input.slotName !== null && { slotName: input.slotName })), (input.slotTypeId !== undefined && input.slotTypeId !== null && { slotTypeId: input.slotTypeId })), (input.valueElicitationSetting !== undefined &&
458
- input.valueElicitationSetting !== null && {
432
+ })), (input.slotName != null && { slotName: input.slotName })), (input.slotTypeId != null && { slotTypeId: input.slotTypeId })), (input.valueElicitationSetting != null && {
459
433
  valueElicitationSetting: serializeAws_restJson1SlotValueElicitationSetting(input.valueElicitationSetting, context),
460
434
  })));
461
435
  return [2, new __HttpRequest({
@@ -512,15 +486,11 @@ export var serializeAws_restJson1CreateSlotTypeCommand = function (input, contex
512
486
  else {
513
487
  throw new Error("No value provided for input HTTP label: localeId.");
514
488
  }
515
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.externalSourceSetting !== undefined &&
516
- input.externalSourceSetting !== null && {
489
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.externalSourceSetting != null && {
517
490
  externalSourceSetting: serializeAws_restJson1ExternalSourceSetting(input.externalSourceSetting, context),
518
- })), (input.parentSlotTypeSignature !== undefined &&
519
- input.parentSlotTypeSignature !== null && { parentSlotTypeSignature: input.parentSlotTypeSignature })), (input.slotTypeName !== undefined && input.slotTypeName !== null && { slotTypeName: input.slotTypeName })), (input.slotTypeValues !== undefined &&
520
- input.slotTypeValues !== null && {
491
+ })), (input.parentSlotTypeSignature != null && { parentSlotTypeSignature: input.parentSlotTypeSignature })), (input.slotTypeName != null && { slotTypeName: input.slotTypeName })), (input.slotTypeValues != null && {
521
492
  slotTypeValues: serializeAws_restJson1SlotTypeValues(input.slotTypeValues, context),
522
- })), (input.valueSelectionSetting !== undefined &&
523
- input.valueSelectionSetting !== null && {
493
+ })), (input.valueSelectionSetting != null && {
524
494
  valueSelectionSetting: serializeAws_restJson1SlotValueSelectionSetting(input.valueSelectionSetting, context),
525
495
  })));
526
496
  return [2, new __HttpRequest({
@@ -1749,12 +1719,11 @@ export var serializeAws_restJson1ListAggregatedUtterancesCommand = function (inp
1749
1719
  else {
1750
1720
  throw new Error("No value provided for input HTTP label: botId.");
1751
1721
  }
1752
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationDuration !== undefined &&
1753
- input.aggregationDuration !== null && {
1722
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationDuration != null && {
1754
1723
  aggregationDuration: serializeAws_restJson1UtteranceAggregationDuration(input.aggregationDuration, context),
1755
- })), (input.botAliasId !== undefined && input.botAliasId !== null && { botAliasId: input.botAliasId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.filters !== undefined &&
1756
- input.filters !== null && { filters: serializeAws_restJson1AggregatedUtterancesFilters(input.filters, context) })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
1757
- input.sortBy !== null && { sortBy: serializeAws_restJson1AggregatedUtterancesSortBy(input.sortBy, context) })));
1724
+ })), (input.botAliasId != null && { botAliasId: input.botAliasId })), (input.botVersion != null && { botVersion: input.botVersion })), (input.filters != null && {
1725
+ filters: serializeAws_restJson1AggregatedUtterancesFilters(input.filters, context),
1726
+ })), (input.localeId != null && { localeId: input.localeId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1AggregatedUtterancesSortBy(input.sortBy, context) })));
1758
1727
  return [2, new __HttpRequest({
1759
1728
  protocol: protocol,
1760
1729
  hostname: hostname,
@@ -1788,7 +1757,7 @@ export var serializeAws_restJson1ListBotAliasesCommand = function (input, contex
1788
1757
  else {
1789
1758
  throw new Error("No value provided for input HTTP label: botId.");
1790
1759
  }
1791
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
1760
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
1792
1761
  return [2, new __HttpRequest({
1793
1762
  protocol: protocol,
1794
1763
  hostname: hostname,
@@ -1833,9 +1802,7 @@ export var serializeAws_restJson1ListBotLocalesCommand = function (input, contex
1833
1802
  else {
1834
1803
  throw new Error("No value provided for input HTTP label: botVersion.");
1835
1804
  }
1836
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
1837
- input.filters !== null && { filters: serializeAws_restJson1BotLocaleFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
1838
- input.sortBy !== null && { sortBy: serializeAws_restJson1BotLocaleSortBy(input.sortBy, context) })));
1805
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1BotLocaleFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1BotLocaleSortBy(input.sortBy, context) })));
1839
1806
  return [2, new __HttpRequest({
1840
1807
  protocol: protocol,
1841
1808
  hostname: hostname,
@@ -1890,7 +1857,7 @@ export var serializeAws_restJson1ListBotRecommendationsCommand = function (input
1890
1857
  else {
1891
1858
  throw new Error("No value provided for input HTTP label: localeId.");
1892
1859
  }
1893
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
1860
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
1894
1861
  return [2, new __HttpRequest({
1895
1862
  protocol: protocol,
1896
1863
  hostname: hostname,
@@ -1914,9 +1881,7 @@ export var serializeAws_restJson1ListBotsCommand = function (input, context) { r
1914
1881
  "content-type": "application/json",
1915
1882
  };
1916
1883
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/bots";
1917
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
1918
- input.filters !== null && { filters: serializeAws_restJson1BotFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
1919
- input.sortBy !== null && { sortBy: serializeAws_restJson1BotSortBy(input.sortBy, context) })));
1884
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1BotFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1BotSortBy(input.sortBy, context) })));
1920
1885
  return [2, new __HttpRequest({
1921
1886
  protocol: protocol,
1922
1887
  hostname: hostname,
@@ -1950,8 +1915,7 @@ export var serializeAws_restJson1ListBotVersionsCommand = function (input, conte
1950
1915
  else {
1951
1916
  throw new Error("No value provided for input HTTP label: botId.");
1952
1917
  }
1953
- body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
1954
- input.sortBy !== null && { sortBy: serializeAws_restJson1BotVersionSortBy(input.sortBy, context) })));
1918
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1BotVersionSortBy(input.sortBy, context) })));
1955
1919
  return [2, new __HttpRequest({
1956
1920
  protocol: protocol,
1957
1921
  hostname: hostname,
@@ -1985,8 +1949,7 @@ export var serializeAws_restJson1ListBuiltInIntentsCommand = function (input, co
1985
1949
  else {
1986
1950
  throw new Error("No value provided for input HTTP label: localeId.");
1987
1951
  }
1988
- body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
1989
- input.sortBy !== null && { sortBy: serializeAws_restJson1BuiltInIntentSortBy(input.sortBy, context) })));
1952
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1BuiltInIntentSortBy(input.sortBy, context) })));
1990
1953
  return [2, new __HttpRequest({
1991
1954
  protocol: protocol,
1992
1955
  hostname: hostname,
@@ -2020,8 +1983,7 @@ export var serializeAws_restJson1ListBuiltInSlotTypesCommand = function (input,
2020
1983
  else {
2021
1984
  throw new Error("No value provided for input HTTP label: localeId.");
2022
1985
  }
2023
- body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
2024
- input.sortBy !== null && { sortBy: serializeAws_restJson1BuiltInSlotTypeSortBy(input.sortBy, context) })));
1986
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1BuiltInSlotTypeSortBy(input.sortBy, context) })));
2025
1987
  return [2, new __HttpRequest({
2026
1988
  protocol: protocol,
2027
1989
  hostname: hostname,
@@ -2045,9 +2007,7 @@ export var serializeAws_restJson1ListExportsCommand = function (input, context)
2045
2007
  "content-type": "application/json",
2046
2008
  };
2047
2009
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/exports";
2048
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.filters !== undefined &&
2049
- input.filters !== null && { filters: serializeAws_restJson1ExportFilters(input.filters, context) })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
2050
- input.sortBy !== null && { sortBy: serializeAws_restJson1ExportSortBy(input.sortBy, context) })));
2010
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botId != null && { botId: input.botId })), (input.botVersion != null && { botVersion: input.botVersion })), (input.filters != null && { filters: serializeAws_restJson1ExportFilters(input.filters, context) })), (input.localeId != null && { localeId: input.localeId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1ExportSortBy(input.sortBy, context) })));
2051
2011
  return [2, new __HttpRequest({
2052
2012
  protocol: protocol,
2053
2013
  hostname: hostname,
@@ -2071,9 +2031,7 @@ export var serializeAws_restJson1ListImportsCommand = function (input, context)
2071
2031
  "content-type": "application/json",
2072
2032
  };
2073
2033
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/imports";
2074
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.filters !== undefined &&
2075
- input.filters !== null && { filters: serializeAws_restJson1ImportFilters(input.filters, context) })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
2076
- input.sortBy !== null && { sortBy: serializeAws_restJson1ImportSortBy(input.sortBy, context) })));
2034
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botId != null && { botId: input.botId })), (input.botVersion != null && { botVersion: input.botVersion })), (input.filters != null && { filters: serializeAws_restJson1ImportFilters(input.filters, context) })), (input.localeId != null && { localeId: input.localeId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1ImportSortBy(input.sortBy, context) })));
2077
2035
  return [2, new __HttpRequest({
2078
2036
  protocol: protocol,
2079
2037
  hostname: hostname,
@@ -2128,9 +2086,7 @@ export var serializeAws_restJson1ListIntentsCommand = function (input, context)
2128
2086
  else {
2129
2087
  throw new Error("No value provided for input HTTP label: localeId.");
2130
2088
  }
2131
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
2132
- input.filters !== null && { filters: serializeAws_restJson1IntentFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
2133
- input.sortBy !== null && { sortBy: serializeAws_restJson1IntentSortBy(input.sortBy, context) })));
2089
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1IntentFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1IntentSortBy(input.sortBy, context) })));
2134
2090
  return [2, new __HttpRequest({
2135
2091
  protocol: protocol,
2136
2092
  hostname: hostname,
@@ -2195,7 +2151,7 @@ export var serializeAws_restJson1ListRecommendedIntentsCommand = function (input
2195
2151
  else {
2196
2152
  throw new Error("No value provided for input HTTP label: botRecommendationId.");
2197
2153
  }
2198
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
2154
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
2199
2155
  return [2, new __HttpRequest({
2200
2156
  protocol: protocol,
2201
2157
  hostname: hostname,
@@ -2260,9 +2216,7 @@ export var serializeAws_restJson1ListSlotsCommand = function (input, context) {
2260
2216
  else {
2261
2217
  throw new Error("No value provided for input HTTP label: intentId.");
2262
2218
  }
2263
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
2264
- input.filters !== null && { filters: serializeAws_restJson1SlotFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
2265
- input.sortBy !== null && { sortBy: serializeAws_restJson1SlotSortBy(input.sortBy, context) })));
2219
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1SlotFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1SlotSortBy(input.sortBy, context) })));
2266
2220
  return [2, new __HttpRequest({
2267
2221
  protocol: protocol,
2268
2222
  hostname: hostname,
@@ -2317,9 +2271,7 @@ export var serializeAws_restJson1ListSlotTypesCommand = function (input, context
2317
2271
  else {
2318
2272
  throw new Error("No value provided for input HTTP label: localeId.");
2319
2273
  }
2320
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
2321
- input.filters !== null && { filters: serializeAws_restJson1SlotTypeFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
2322
- input.sortBy !== null && { sortBy: serializeAws_restJson1SlotTypeSortBy(input.sortBy, context) })));
2274
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1SlotTypeFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1SlotTypeSortBy(input.sortBy, context) })));
2323
2275
  return [2, new __HttpRequest({
2324
2276
  protocol: protocol,
2325
2277
  hostname: hostname,
@@ -2415,8 +2367,9 @@ export var serializeAws_restJson1SearchAssociatedTranscriptsCommand = function (
2415
2367
  else {
2416
2368
  throw new Error("No value provided for input HTTP label: botRecommendationId.");
2417
2369
  }
2418
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
2419
- input.filters !== null && { filters: serializeAws_restJson1AssociatedTranscriptFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextIndex !== undefined && input.nextIndex !== null && { nextIndex: input.nextIndex })), (input.searchOrder !== undefined && input.searchOrder !== null && { searchOrder: input.searchOrder })));
2370
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && {
2371
+ filters: serializeAws_restJson1AssociatedTranscriptFilters(input.filters, context),
2372
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextIndex != null && { nextIndex: input.nextIndex })), (input.searchOrder != null && { searchOrder: input.searchOrder })));
2420
2373
  return [2, new __HttpRequest({
2421
2374
  protocol: protocol,
2422
2375
  hostname: hostname,
@@ -2471,11 +2424,9 @@ export var serializeAws_restJson1StartBotRecommendationCommand = function (input
2471
2424
  else {
2472
2425
  throw new Error("No value provided for input HTTP label: localeId.");
2473
2426
  }
2474
- body = JSON.stringify(__assign(__assign({}, (input.encryptionSetting !== undefined &&
2475
- input.encryptionSetting !== null && {
2427
+ body = JSON.stringify(__assign(__assign({}, (input.encryptionSetting != null && {
2476
2428
  encryptionSetting: serializeAws_restJson1EncryptionSetting(input.encryptionSetting, context),
2477
- })), (input.transcriptSourceSetting !== undefined &&
2478
- input.transcriptSourceSetting !== null && {
2429
+ })), (input.transcriptSourceSetting != null && {
2479
2430
  transcriptSourceSetting: serializeAws_restJson1TranscriptSourceSetting(input.transcriptSourceSetting, context),
2480
2431
  })));
2481
2432
  return [2, new __HttpRequest({
@@ -2501,8 +2452,7 @@ export var serializeAws_restJson1StartImportCommand = function (input, context)
2501
2452
  "content-type": "application/json",
2502
2453
  };
2503
2454
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/imports";
2504
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filePassword !== undefined && input.filePassword !== null && { filePassword: input.filePassword })), (input.importId !== undefined && input.importId !== null && { importId: input.importId })), (input.mergeStrategy !== undefined && input.mergeStrategy !== null && { mergeStrategy: input.mergeStrategy })), (input.resourceSpecification !== undefined &&
2505
- input.resourceSpecification !== null && {
2455
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filePassword != null && { filePassword: input.filePassword })), (input.importId != null && { importId: input.importId })), (input.mergeStrategy != null && { mergeStrategy: input.mergeStrategy })), (input.resourceSpecification != null && {
2506
2456
  resourceSpecification: serializeAws_restJson1ImportResourceSpecification(input.resourceSpecification, context),
2507
2457
  })));
2508
2458
  return [2, new __HttpRequest({
@@ -2538,7 +2488,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
2538
2488
  else {
2539
2489
  throw new Error("No value provided for input HTTP label: resourceARN.");
2540
2490
  }
2541
- body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
2491
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
2542
2492
  return [2, new __HttpRequest({
2543
2493
  protocol: protocol,
2544
2494
  hostname: hostname,
@@ -2605,9 +2555,7 @@ export var serializeAws_restJson1UpdateBotCommand = function (input, context) {
2605
2555
  else {
2606
2556
  throw new Error("No value provided for input HTTP label: botId.");
2607
2557
  }
2608
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.botName !== undefined && input.botName !== null && { botName: input.botName })), (input.dataPrivacy !== undefined &&
2609
- input.dataPrivacy !== null && { dataPrivacy: serializeAws_restJson1DataPrivacy(input.dataPrivacy, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.idleSessionTTLInSeconds !== undefined &&
2610
- input.idleSessionTTLInSeconds !== null && { idleSessionTTLInSeconds: input.idleSessionTTLInSeconds })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })));
2558
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.botName != null && { botName: input.botName })), (input.dataPrivacy != null && { dataPrivacy: serializeAws_restJson1DataPrivacy(input.dataPrivacy, context) })), (input.description != null && { description: input.description })), (input.idleSessionTTLInSeconds != null && { idleSessionTTLInSeconds: input.idleSessionTTLInSeconds })), (input.roleArn != null && { roleArn: input.roleArn })));
2611
2559
  return [2, new __HttpRequest({
2612
2560
  protocol: protocol,
2613
2561
  hostname: hostname,
@@ -2651,14 +2599,11 @@ export var serializeAws_restJson1UpdateBotAliasCommand = function (input, contex
2651
2599
  else {
2652
2600
  throw new Error("No value provided for input HTTP label: botId.");
2653
2601
  }
2654
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botAliasLocaleSettings !== undefined &&
2655
- input.botAliasLocaleSettings !== null && {
2602
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botAliasLocaleSettings != null && {
2656
2603
  botAliasLocaleSettings: serializeAws_restJson1BotAliasLocaleSettingsMap(input.botAliasLocaleSettings, context),
2657
- })), (input.botAliasName !== undefined && input.botAliasName !== null && { botAliasName: input.botAliasName })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.conversationLogSettings !== undefined &&
2658
- input.conversationLogSettings !== null && {
2604
+ })), (input.botAliasName != null && { botAliasName: input.botAliasName })), (input.botVersion != null && { botVersion: input.botVersion })), (input.conversationLogSettings != null && {
2659
2605
  conversationLogSettings: serializeAws_restJson1ConversationLogSettings(input.conversationLogSettings, context),
2660
- })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.sentimentAnalysisSettings !== undefined &&
2661
- input.sentimentAnalysisSettings !== null && {
2606
+ })), (input.description != null && { description: input.description })), (input.sentimentAnalysisSettings != null && {
2662
2607
  sentimentAnalysisSettings: serializeAws_restJson1SentimentAnalysisSettings(input.sentimentAnalysisSettings, context),
2663
2608
  })));
2664
2609
  return [2, new __HttpRequest({
@@ -2715,11 +2660,9 @@ export var serializeAws_restJson1UpdateBotLocaleCommand = function (input, conte
2715
2660
  else {
2716
2661
  throw new Error("No value provided for input HTTP label: localeId.");
2717
2662
  }
2718
- body = JSON.stringify(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.nluIntentConfidenceThreshold !== undefined &&
2719
- input.nluIntentConfidenceThreshold !== null && {
2663
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.nluIntentConfidenceThreshold != null && {
2720
2664
  nluIntentConfidenceThreshold: __serializeFloat(input.nluIntentConfidenceThreshold),
2721
- })), (input.voiceSettings !== undefined &&
2722
- input.voiceSettings !== null && {
2665
+ })), (input.voiceSettings != null && {
2723
2666
  voiceSettings: serializeAws_restJson1VoiceSettings(input.voiceSettings, context),
2724
2667
  })));
2725
2668
  return [2, new __HttpRequest({
@@ -2786,8 +2729,7 @@ export var serializeAws_restJson1UpdateBotRecommendationCommand = function (inpu
2786
2729
  else {
2787
2730
  throw new Error("No value provided for input HTTP label: botRecommendationId.");
2788
2731
  }
2789
- body = JSON.stringify(__assign({}, (input.encryptionSetting !== undefined &&
2790
- input.encryptionSetting !== null && {
2732
+ body = JSON.stringify(__assign({}, (input.encryptionSetting != null && {
2791
2733
  encryptionSetting: serializeAws_restJson1EncryptionSetting(input.encryptionSetting, context),
2792
2734
  })));
2793
2735
  return [2, new __HttpRequest({
@@ -2823,7 +2765,7 @@ export var serializeAws_restJson1UpdateExportCommand = function (input, context)
2823
2765
  else {
2824
2766
  throw new Error("No value provided for input HTTP label: exportId.");
2825
2767
  }
2826
- body = JSON.stringify(__assign({}, (input.filePassword !== undefined && input.filePassword !== null && { filePassword: input.filePassword })));
2768
+ body = JSON.stringify(__assign({}, (input.filePassword != null && { filePassword: input.filePassword })));
2827
2769
  return [2, new __HttpRequest({
2828
2770
  protocol: protocol,
2829
2771
  hostname: hostname,
@@ -2888,33 +2830,23 @@ export var serializeAws_restJson1UpdateIntentCommand = function (input, context)
2888
2830
  else {
2889
2831
  throw new Error("No value provided for input HTTP label: localeId.");
2890
2832
  }
2891
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.dialogCodeHook !== undefined &&
2892
- input.dialogCodeHook !== null && {
2833
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.dialogCodeHook != null && {
2893
2834
  dialogCodeHook: serializeAws_restJson1DialogCodeHookSettings(input.dialogCodeHook, context),
2894
- })), (input.fulfillmentCodeHook !== undefined &&
2895
- input.fulfillmentCodeHook !== null && {
2835
+ })), (input.fulfillmentCodeHook != null && {
2896
2836
  fulfillmentCodeHook: serializeAws_restJson1FulfillmentCodeHookSettings(input.fulfillmentCodeHook, context),
2897
- })), (input.inputContexts !== undefined &&
2898
- input.inputContexts !== null && {
2837
+ })), (input.inputContexts != null && {
2899
2838
  inputContexts: serializeAws_restJson1InputContextsList(input.inputContexts, context),
2900
- })), (input.intentClosingSetting !== undefined &&
2901
- input.intentClosingSetting !== null && {
2839
+ })), (input.intentClosingSetting != null && {
2902
2840
  intentClosingSetting: serializeAws_restJson1IntentClosingSetting(input.intentClosingSetting, context),
2903
- })), (input.intentConfirmationSetting !== undefined &&
2904
- input.intentConfirmationSetting !== null && {
2841
+ })), (input.intentConfirmationSetting != null && {
2905
2842
  intentConfirmationSetting: serializeAws_restJson1IntentConfirmationSetting(input.intentConfirmationSetting, context),
2906
- })), (input.intentName !== undefined && input.intentName !== null && { intentName: input.intentName })), (input.kendraConfiguration !== undefined &&
2907
- input.kendraConfiguration !== null && {
2843
+ })), (input.intentName != null && { intentName: input.intentName })), (input.kendraConfiguration != null && {
2908
2844
  kendraConfiguration: serializeAws_restJson1KendraConfiguration(input.kendraConfiguration, context),
2909
- })), (input.outputContexts !== undefined &&
2910
- input.outputContexts !== null && {
2845
+ })), (input.outputContexts != null && {
2911
2846
  outputContexts: serializeAws_restJson1OutputContextsList(input.outputContexts, context),
2912
- })), (input.parentIntentSignature !== undefined &&
2913
- input.parentIntentSignature !== null && { parentIntentSignature: input.parentIntentSignature })), (input.sampleUtterances !== undefined &&
2914
- input.sampleUtterances !== null && {
2847
+ })), (input.parentIntentSignature != null && { parentIntentSignature: input.parentIntentSignature })), (input.sampleUtterances != null && {
2915
2848
  sampleUtterances: serializeAws_restJson1SampleUtterancesList(input.sampleUtterances, context),
2916
- })), (input.slotPriorities !== undefined &&
2917
- input.slotPriorities !== null && {
2849
+ })), (input.slotPriorities != null && {
2918
2850
  slotPriorities: serializeAws_restJson1SlotPrioritiesList(input.slotPriorities, context),
2919
2851
  })));
2920
2852
  return [2, new __HttpRequest({
@@ -2951,7 +2883,7 @@ export var serializeAws_restJson1UpdateResourcePolicyCommand = function (input,
2951
2883
  throw new Error("No value provided for input HTTP label: resourceArn.");
2952
2884
  }
2953
2885
  query = __assign({}, (input.expectedRevisionId !== undefined && { expectedRevisionId: input.expectedRevisionId }));
2954
- body = JSON.stringify(__assign({}, (input.policy !== undefined && input.policy !== null && { policy: input.policy })));
2886
+ body = JSON.stringify(__assign({}, (input.policy != null && { policy: input.policy })));
2955
2887
  return [2, new __HttpRequest({
2956
2888
  protocol: protocol,
2957
2889
  hostname: hostname,
@@ -3027,14 +2959,11 @@ export var serializeAws_restJson1UpdateSlotCommand = function (input, context) {
3027
2959
  else {
3028
2960
  throw new Error("No value provided for input HTTP label: intentId.");
3029
2961
  }
3030
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.multipleValuesSetting !== undefined &&
3031
- input.multipleValuesSetting !== null && {
2962
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.multipleValuesSetting != null && {
3032
2963
  multipleValuesSetting: serializeAws_restJson1MultipleValuesSetting(input.multipleValuesSetting, context),
3033
- })), (input.obfuscationSetting !== undefined &&
3034
- input.obfuscationSetting !== null && {
2964
+ })), (input.obfuscationSetting != null && {
3035
2965
  obfuscationSetting: serializeAws_restJson1ObfuscationSetting(input.obfuscationSetting, context),
3036
- })), (input.slotName !== undefined && input.slotName !== null && { slotName: input.slotName })), (input.slotTypeId !== undefined && input.slotTypeId !== null && { slotTypeId: input.slotTypeId })), (input.valueElicitationSetting !== undefined &&
3037
- input.valueElicitationSetting !== null && {
2966
+ })), (input.slotName != null && { slotName: input.slotName })), (input.slotTypeId != null && { slotTypeId: input.slotTypeId })), (input.valueElicitationSetting != null && {
3038
2967
  valueElicitationSetting: serializeAws_restJson1SlotValueElicitationSetting(input.valueElicitationSetting, context),
3039
2968
  })));
3040
2969
  return [2, new __HttpRequest({
@@ -3101,15 +3030,11 @@ export var serializeAws_restJson1UpdateSlotTypeCommand = function (input, contex
3101
3030
  else {
3102
3031
  throw new Error("No value provided for input HTTP label: localeId.");
3103
3032
  }
3104
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.externalSourceSetting !== undefined &&
3105
- input.externalSourceSetting !== null && {
3033
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.externalSourceSetting != null && {
3106
3034
  externalSourceSetting: serializeAws_restJson1ExternalSourceSetting(input.externalSourceSetting, context),
3107
- })), (input.parentSlotTypeSignature !== undefined &&
3108
- input.parentSlotTypeSignature !== null && { parentSlotTypeSignature: input.parentSlotTypeSignature })), (input.slotTypeName !== undefined && input.slotTypeName !== null && { slotTypeName: input.slotTypeName })), (input.slotTypeValues !== undefined &&
3109
- input.slotTypeValues !== null && {
3035
+ })), (input.parentSlotTypeSignature != null && { parentSlotTypeSignature: input.parentSlotTypeSignature })), (input.slotTypeName != null && { slotTypeName: input.slotTypeName })), (input.slotTypeValues != null && {
3110
3036
  slotTypeValues: serializeAws_restJson1SlotTypeValues(input.slotTypeValues, context),
3111
- })), (input.valueSelectionSetting !== undefined &&
3112
- input.valueSelectionSetting !== null && {
3037
+ })), (input.valueSelectionSetting != null && {
3113
3038
  valueSelectionSetting: serializeAws_restJson1SlotValueSelectionSetting(input.valueSelectionSetting, context),
3114
3039
  })));
3115
3040
  return [2, new __HttpRequest({
@@ -9458,12 +9383,10 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
9458
9383
  });
9459
9384
  }); };
9460
9385
  var serializeAws_restJson1AdvancedRecognitionSetting = function (input, context) {
9461
- return __assign({}, (input.audioRecognitionStrategy !== undefined &&
9462
- input.audioRecognitionStrategy !== null && { audioRecognitionStrategy: input.audioRecognitionStrategy }));
9386
+ return __assign({}, (input.audioRecognitionStrategy != null && { audioRecognitionStrategy: input.audioRecognitionStrategy }));
9463
9387
  };
9464
9388
  var serializeAws_restJson1AggregatedUtterancesFilter = function (input, context) {
9465
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.values !== undefined &&
9466
- input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9389
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9467
9390
  };
9468
9391
  var serializeAws_restJson1AggregatedUtterancesFilters = function (input, context) {
9469
9392
  return input
@@ -9476,11 +9399,10 @@ var serializeAws_restJson1AggregatedUtterancesFilters = function (input, context
9476
9399
  });
9477
9400
  };
9478
9401
  var serializeAws_restJson1AggregatedUtterancesSortBy = function (input, context) {
9479
- return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
9402
+ return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
9480
9403
  };
9481
9404
  var serializeAws_restJson1AssociatedTranscriptFilter = function (input, context) {
9482
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.values !== undefined &&
9483
- input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9405
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9484
9406
  };
9485
9407
  var serializeAws_restJson1AssociatedTranscriptFilters = function (input, context) {
9486
9408
  return input
@@ -9493,14 +9415,12 @@ var serializeAws_restJson1AssociatedTranscriptFilters = function (input, context
9493
9415
  });
9494
9416
  };
9495
9417
  var serializeAws_restJson1AudioLogDestination = function (input, context) {
9496
- return __assign({}, (input.s3Bucket !== undefined &&
9497
- input.s3Bucket !== null && { s3Bucket: serializeAws_restJson1S3BucketLogDestination(input.s3Bucket, context) }));
9418
+ return __assign({}, (input.s3Bucket != null && { s3Bucket: serializeAws_restJson1S3BucketLogDestination(input.s3Bucket, context) }));
9498
9419
  };
9499
9420
  var serializeAws_restJson1AudioLogSetting = function (input, context) {
9500
- return __assign(__assign({}, (input.destination !== undefined &&
9501
- input.destination !== null && {
9421
+ return __assign(__assign({}, (input.destination != null && {
9502
9422
  destination: serializeAws_restJson1AudioLogDestination(input.destination, context),
9503
- })), (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }));
9423
+ })), (input.enabled != null && { enabled: input.enabled }));
9504
9424
  };
9505
9425
  var serializeAws_restJson1AudioLogSettingsList = function (input, context) {
9506
9426
  return input
@@ -9513,10 +9433,9 @@ var serializeAws_restJson1AudioLogSettingsList = function (input, context) {
9513
9433
  });
9514
9434
  };
9515
9435
  var serializeAws_restJson1BotAliasLocaleSettings = function (input, context) {
9516
- return __assign(__assign({}, (input.codeHookSpecification !== undefined &&
9517
- input.codeHookSpecification !== null && {
9436
+ return __assign(__assign({}, (input.codeHookSpecification != null && {
9518
9437
  codeHookSpecification: serializeAws_restJson1CodeHookSpecification(input.codeHookSpecification, context),
9519
- })), (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }));
9438
+ })), (input.enabled != null && { enabled: input.enabled }));
9520
9439
  };
9521
9440
  var serializeAws_restJson1BotAliasLocaleSettingsMap = function (input, context) {
9522
9441
  return Object.entries(input).reduce(function (acc, _a) {
@@ -9529,11 +9448,10 @@ var serializeAws_restJson1BotAliasLocaleSettingsMap = function (input, context)
9529
9448
  }, {});
9530
9449
  };
9531
9450
  var serializeAws_restJson1BotExportSpecification = function (input, context) {
9532
- return __assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion }));
9451
+ return __assign(__assign({}, (input.botId != null && { botId: input.botId })), (input.botVersion != null && { botVersion: input.botVersion }));
9533
9452
  };
9534
9453
  var serializeAws_restJson1BotFilter = function (input, context) {
9535
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.values !== undefined &&
9536
- input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9454
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9537
9455
  };
9538
9456
  var serializeAws_restJson1BotFilters = function (input, context) {
9539
9457
  return input
@@ -9546,20 +9464,15 @@ var serializeAws_restJson1BotFilters = function (input, context) {
9546
9464
  });
9547
9465
  };
9548
9466
  var serializeAws_restJson1BotImportSpecification = function (input, context) {
9549
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.botName !== undefined && input.botName !== null && { botName: input.botName })), (input.botTags !== undefined &&
9550
- input.botTags !== null && { botTags: serializeAws_restJson1TagMap(input.botTags, context) })), (input.dataPrivacy !== undefined &&
9551
- input.dataPrivacy !== null && { dataPrivacy: serializeAws_restJson1DataPrivacy(input.dataPrivacy, context) })), (input.idleSessionTTLInSeconds !== undefined &&
9552
- input.idleSessionTTLInSeconds !== null && { idleSessionTTLInSeconds: input.idleSessionTTLInSeconds })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.testBotAliasTags !== undefined &&
9553
- input.testBotAliasTags !== null && {
9467
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.botName != null && { botName: input.botName })), (input.botTags != null && { botTags: serializeAws_restJson1TagMap(input.botTags, context) })), (input.dataPrivacy != null && { dataPrivacy: serializeAws_restJson1DataPrivacy(input.dataPrivacy, context) })), (input.idleSessionTTLInSeconds != null && { idleSessionTTLInSeconds: input.idleSessionTTLInSeconds })), (input.roleArn != null && { roleArn: input.roleArn })), (input.testBotAliasTags != null && {
9554
9468
  testBotAliasTags: serializeAws_restJson1TagMap(input.testBotAliasTags, context),
9555
9469
  }));
9556
9470
  };
9557
9471
  var serializeAws_restJson1BotLocaleExportSpecification = function (input, context) {
9558
- return __assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId }));
9472
+ return __assign(__assign(__assign({}, (input.botId != null && { botId: input.botId })), (input.botVersion != null && { botVersion: input.botVersion })), (input.localeId != null && { localeId: input.localeId }));
9559
9473
  };
9560
9474
  var serializeAws_restJson1BotLocaleFilter = function (input, context) {
9561
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.values !== undefined &&
9562
- input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9475
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9563
9476
  };
9564
9477
  var serializeAws_restJson1BotLocaleFilters = function (input, context) {
9565
9478
  return input
@@ -9572,23 +9485,20 @@ var serializeAws_restJson1BotLocaleFilters = function (input, context) {
9572
9485
  });
9573
9486
  };
9574
9487
  var serializeAws_restJson1BotLocaleImportSpecification = function (input, context) {
9575
- return __assign(__assign(__assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId })), (input.nluIntentConfidenceThreshold !== undefined &&
9576
- input.nluIntentConfidenceThreshold !== null && {
9488
+ return __assign(__assign(__assign(__assign(__assign({}, (input.botId != null && { botId: input.botId })), (input.botVersion != null && { botVersion: input.botVersion })), (input.localeId != null && { localeId: input.localeId })), (input.nluIntentConfidenceThreshold != null && {
9577
9489
  nluIntentConfidenceThreshold: __serializeFloat(input.nluIntentConfidenceThreshold),
9578
- })), (input.voiceSettings !== undefined &&
9579
- input.voiceSettings !== null && {
9490
+ })), (input.voiceSettings != null && {
9580
9491
  voiceSettings: serializeAws_restJson1VoiceSettings(input.voiceSettings, context),
9581
9492
  }));
9582
9493
  };
9583
9494
  var serializeAws_restJson1BotLocaleSortBy = function (input, context) {
9584
- return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
9495
+ return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
9585
9496
  };
9586
9497
  var serializeAws_restJson1BotSortBy = function (input, context) {
9587
- return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
9498
+ return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
9588
9499
  };
9589
9500
  var serializeAws_restJson1BotVersionLocaleDetails = function (input, context) {
9590
- return __assign({}, (input.sourceBotVersion !== undefined &&
9591
- input.sourceBotVersion !== null && { sourceBotVersion: input.sourceBotVersion }));
9501
+ return __assign({}, (input.sourceBotVersion != null && { sourceBotVersion: input.sourceBotVersion }));
9592
9502
  };
9593
9503
  var serializeAws_restJson1BotVersionLocaleSpecification = function (input, context) {
9594
9504
  return Object.entries(input).reduce(function (acc, _a) {
@@ -9601,16 +9511,16 @@ var serializeAws_restJson1BotVersionLocaleSpecification = function (input, conte
9601
9511
  }, {});
9602
9512
  };
9603
9513
  var serializeAws_restJson1BotVersionSortBy = function (input, context) {
9604
- return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
9514
+ return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
9605
9515
  };
9606
9516
  var serializeAws_restJson1BuiltInIntentSortBy = function (input, context) {
9607
- return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
9517
+ return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
9608
9518
  };
9609
9519
  var serializeAws_restJson1BuiltInSlotTypeSortBy = function (input, context) {
9610
- return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
9520
+ return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
9611
9521
  };
9612
9522
  var serializeAws_restJson1Button = function (input, context) {
9613
- return __assign(__assign({}, (input.text !== undefined && input.text !== null && { text: input.text })), (input.value !== undefined && input.value !== null && { value: input.value }));
9523
+ return __assign(__assign({}, (input.text != null && { text: input.text })), (input.value != null && { value: input.value }));
9614
9524
  };
9615
9525
  var serializeAws_restJson1ButtonsList = function (input, context) {
9616
9526
  return input
@@ -9623,12 +9533,10 @@ var serializeAws_restJson1ButtonsList = function (input, context) {
9623
9533
  });
9624
9534
  };
9625
9535
  var serializeAws_restJson1CloudWatchLogGroupLogDestination = function (input, context) {
9626
- return __assign(__assign({}, (input.cloudWatchLogGroupArn !== undefined &&
9627
- input.cloudWatchLogGroupArn !== null && { cloudWatchLogGroupArn: input.cloudWatchLogGroupArn })), (input.logPrefix !== undefined && input.logPrefix !== null && { logPrefix: input.logPrefix }));
9536
+ return __assign(__assign({}, (input.cloudWatchLogGroupArn != null && { cloudWatchLogGroupArn: input.cloudWatchLogGroupArn })), (input.logPrefix != null && { logPrefix: input.logPrefix }));
9628
9537
  };
9629
9538
  var serializeAws_restJson1CodeHookSpecification = function (input, context) {
9630
- return __assign({}, (input.lambdaCodeHook !== undefined &&
9631
- input.lambdaCodeHook !== null && {
9539
+ return __assign({}, (input.lambdaCodeHook != null && {
9632
9540
  lambdaCodeHook: serializeAws_restJson1LambdaCodeHook(input.lambdaCodeHook, context),
9633
9541
  }));
9634
9542
  };
@@ -9653,44 +9561,37 @@ var serializeAws_restJson1ConditionMap = function (input, context) {
9653
9561
  }, {});
9654
9562
  };
9655
9563
  var serializeAws_restJson1ConversationLogSettings = function (input, context) {
9656
- return __assign(__assign({}, (input.audioLogSettings !== undefined &&
9657
- input.audioLogSettings !== null && {
9564
+ return __assign(__assign({}, (input.audioLogSettings != null && {
9658
9565
  audioLogSettings: serializeAws_restJson1AudioLogSettingsList(input.audioLogSettings, context),
9659
- })), (input.textLogSettings !== undefined &&
9660
- input.textLogSettings !== null && {
9566
+ })), (input.textLogSettings != null && {
9661
9567
  textLogSettings: serializeAws_restJson1TextLogSettingsList(input.textLogSettings, context),
9662
9568
  }));
9663
9569
  };
9664
9570
  var serializeAws_restJson1CustomPayload = function (input, context) {
9665
- return __assign({}, (input.value !== undefined && input.value !== null && { value: input.value }));
9571
+ return __assign({}, (input.value != null && { value: input.value }));
9666
9572
  };
9667
9573
  var serializeAws_restJson1CustomVocabularyExportSpecification = function (input, context) {
9668
- return __assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId }));
9574
+ return __assign(__assign(__assign({}, (input.botId != null && { botId: input.botId })), (input.botVersion != null && { botVersion: input.botVersion })), (input.localeId != null && { localeId: input.localeId }));
9669
9575
  };
9670
9576
  var serializeAws_restJson1CustomVocabularyImportSpecification = function (input, context) {
9671
- return __assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId }));
9577
+ return __assign(__assign(__assign({}, (input.botId != null && { botId: input.botId })), (input.botVersion != null && { botVersion: input.botVersion })), (input.localeId != null && { localeId: input.localeId }));
9672
9578
  };
9673
9579
  var serializeAws_restJson1DataPrivacy = function (input, context) {
9674
- return __assign({}, (input.childDirected !== undefined && input.childDirected !== null && { childDirected: input.childDirected }));
9580
+ return __assign({}, (input.childDirected != null && { childDirected: input.childDirected }));
9675
9581
  };
9676
9582
  var serializeAws_restJson1DateRangeFilter = function (input, context) {
9677
- return __assign(__assign({}, (input.endDateTime !== undefined &&
9678
- input.endDateTime !== null && { endDateTime: Math.round(input.endDateTime.getTime() / 1000) })), (input.startDateTime !== undefined &&
9679
- input.startDateTime !== null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) }));
9583
+ return __assign(__assign({}, (input.endDateTime != null && { endDateTime: Math.round(input.endDateTime.getTime() / 1000) })), (input.startDateTime != null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) }));
9680
9584
  };
9681
9585
  var serializeAws_restJson1DialogCodeHookSettings = function (input, context) {
9682
- return __assign({}, (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }));
9586
+ return __assign({}, (input.enabled != null && { enabled: input.enabled }));
9683
9587
  };
9684
9588
  var serializeAws_restJson1EncryptionSetting = function (input, context) {
9685
- return __assign(__assign(__assign({}, (input.associatedTranscriptsPassword !== undefined &&
9686
- input.associatedTranscriptsPassword !== null && {
9589
+ return __assign(__assign(__assign({}, (input.associatedTranscriptsPassword != null && {
9687
9590
  associatedTranscriptsPassword: input.associatedTranscriptsPassword,
9688
- })), (input.botLocaleExportPassword !== undefined &&
9689
- input.botLocaleExportPassword !== null && { botLocaleExportPassword: input.botLocaleExportPassword })), (input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }));
9591
+ })), (input.botLocaleExportPassword != null && { botLocaleExportPassword: input.botLocaleExportPassword })), (input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }));
9690
9592
  };
9691
9593
  var serializeAws_restJson1ExportFilter = function (input, context) {
9692
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.values !== undefined &&
9693
- input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9594
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9694
9595
  };
9695
9596
  var serializeAws_restJson1ExportFilters = function (input, context) {
9696
9597
  return input
@@ -9703,23 +9604,19 @@ var serializeAws_restJson1ExportFilters = function (input, context) {
9703
9604
  });
9704
9605
  };
9705
9606
  var serializeAws_restJson1ExportResourceSpecification = function (input, context) {
9706
- return __assign(__assign(__assign({}, (input.botExportSpecification !== undefined &&
9707
- input.botExportSpecification !== null && {
9607
+ return __assign(__assign(__assign({}, (input.botExportSpecification != null && {
9708
9608
  botExportSpecification: serializeAws_restJson1BotExportSpecification(input.botExportSpecification, context),
9709
- })), (input.botLocaleExportSpecification !== undefined &&
9710
- input.botLocaleExportSpecification !== null && {
9609
+ })), (input.botLocaleExportSpecification != null && {
9711
9610
  botLocaleExportSpecification: serializeAws_restJson1BotLocaleExportSpecification(input.botLocaleExportSpecification, context),
9712
- })), (input.customVocabularyExportSpecification !== undefined &&
9713
- input.customVocabularyExportSpecification !== null && {
9611
+ })), (input.customVocabularyExportSpecification != null && {
9714
9612
  customVocabularyExportSpecification: serializeAws_restJson1CustomVocabularyExportSpecification(input.customVocabularyExportSpecification, context),
9715
9613
  }));
9716
9614
  };
9717
9615
  var serializeAws_restJson1ExportSortBy = function (input, context) {
9718
- return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
9616
+ return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
9719
9617
  };
9720
9618
  var serializeAws_restJson1ExternalSourceSetting = function (input, context) {
9721
- return __assign({}, (input.grammarSlotTypeSetting !== undefined &&
9722
- input.grammarSlotTypeSetting !== null && {
9619
+ return __assign({}, (input.grammarSlotTypeSetting != null && {
9723
9620
  grammarSlotTypeSetting: serializeAws_restJson1GrammarSlotTypeSetting(input.grammarSlotTypeSetting, context),
9724
9621
  }));
9725
9622
  };
@@ -9734,54 +9631,40 @@ var serializeAws_restJson1FilterValues = function (input, context) {
9734
9631
  });
9735
9632
  };
9736
9633
  var serializeAws_restJson1FulfillmentCodeHookSettings = function (input, context) {
9737
- return __assign(__assign(__assign({}, (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.fulfillmentUpdatesSpecification !== undefined &&
9738
- input.fulfillmentUpdatesSpecification !== null && {
9634
+ return __assign(__assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.fulfillmentUpdatesSpecification != null && {
9739
9635
  fulfillmentUpdatesSpecification: serializeAws_restJson1FulfillmentUpdatesSpecification(input.fulfillmentUpdatesSpecification, context),
9740
- })), (input.postFulfillmentStatusSpecification !== undefined &&
9741
- input.postFulfillmentStatusSpecification !== null && {
9636
+ })), (input.postFulfillmentStatusSpecification != null && {
9742
9637
  postFulfillmentStatusSpecification: serializeAws_restJson1PostFulfillmentStatusSpecification(input.postFulfillmentStatusSpecification, context),
9743
9638
  }));
9744
9639
  };
9745
9640
  var serializeAws_restJson1FulfillmentStartResponseSpecification = function (input, context) {
9746
- return __assign(__assign(__assign({}, (input.allowInterrupt !== undefined &&
9747
- input.allowInterrupt !== null && { allowInterrupt: input.allowInterrupt })), (input.delayInSeconds !== undefined &&
9748
- input.delayInSeconds !== null && { delayInSeconds: input.delayInSeconds })), (input.messageGroups !== undefined &&
9749
- input.messageGroups !== null && {
9641
+ return __assign(__assign(__assign({}, (input.allowInterrupt != null && { allowInterrupt: input.allowInterrupt })), (input.delayInSeconds != null && { delayInSeconds: input.delayInSeconds })), (input.messageGroups != null && {
9750
9642
  messageGroups: serializeAws_restJson1MessageGroupsList(input.messageGroups, context),
9751
9643
  }));
9752
9644
  };
9753
9645
  var serializeAws_restJson1FulfillmentUpdateResponseSpecification = function (input, context) {
9754
- return __assign(__assign(__assign({}, (input.allowInterrupt !== undefined &&
9755
- input.allowInterrupt !== null && { allowInterrupt: input.allowInterrupt })), (input.frequencyInSeconds !== undefined &&
9756
- input.frequencyInSeconds !== null && { frequencyInSeconds: input.frequencyInSeconds })), (input.messageGroups !== undefined &&
9757
- input.messageGroups !== null && {
9646
+ return __assign(__assign(__assign({}, (input.allowInterrupt != null && { allowInterrupt: input.allowInterrupt })), (input.frequencyInSeconds != null && { frequencyInSeconds: input.frequencyInSeconds })), (input.messageGroups != null && {
9758
9647
  messageGroups: serializeAws_restJson1MessageGroupsList(input.messageGroups, context),
9759
9648
  }));
9760
9649
  };
9761
9650
  var serializeAws_restJson1FulfillmentUpdatesSpecification = function (input, context) {
9762
- return __assign(__assign(__assign(__assign({}, (input.active !== undefined && input.active !== null && { active: input.active })), (input.startResponse !== undefined &&
9763
- input.startResponse !== null && {
9651
+ return __assign(__assign(__assign(__assign({}, (input.active != null && { active: input.active })), (input.startResponse != null && {
9764
9652
  startResponse: serializeAws_restJson1FulfillmentStartResponseSpecification(input.startResponse, context),
9765
- })), (input.timeoutInSeconds !== undefined &&
9766
- input.timeoutInSeconds !== null && { timeoutInSeconds: input.timeoutInSeconds })), (input.updateResponse !== undefined &&
9767
- input.updateResponse !== null && {
9653
+ })), (input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds })), (input.updateResponse != null && {
9768
9654
  updateResponse: serializeAws_restJson1FulfillmentUpdateResponseSpecification(input.updateResponse, context),
9769
9655
  }));
9770
9656
  };
9771
9657
  var serializeAws_restJson1GrammarSlotTypeSetting = function (input, context) {
9772
- return __assign({}, (input.source !== undefined &&
9773
- input.source !== null && { source: serializeAws_restJson1GrammarSlotTypeSource(input.source, context) }));
9658
+ return __assign({}, (input.source != null && { source: serializeAws_restJson1GrammarSlotTypeSource(input.source, context) }));
9774
9659
  };
9775
9660
  var serializeAws_restJson1GrammarSlotTypeSource = function (input, context) {
9776
- return __assign(__assign(__assign({}, (input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn })), (input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName })), (input.s3ObjectKey !== undefined && input.s3ObjectKey !== null && { s3ObjectKey: input.s3ObjectKey }));
9661
+ return __assign(__assign(__assign({}, (input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn })), (input.s3BucketName != null && { s3BucketName: input.s3BucketName })), (input.s3ObjectKey != null && { s3ObjectKey: input.s3ObjectKey }));
9777
9662
  };
9778
9663
  var serializeAws_restJson1ImageResponseCard = function (input, context) {
9779
- return __assign(__assign(__assign(__assign({}, (input.buttons !== undefined &&
9780
- input.buttons !== null && { buttons: serializeAws_restJson1ButtonsList(input.buttons, context) })), (input.imageUrl !== undefined && input.imageUrl !== null && { imageUrl: input.imageUrl })), (input.subtitle !== undefined && input.subtitle !== null && { subtitle: input.subtitle })), (input.title !== undefined && input.title !== null && { title: input.title }));
9664
+ return __assign(__assign(__assign(__assign({}, (input.buttons != null && { buttons: serializeAws_restJson1ButtonsList(input.buttons, context) })), (input.imageUrl != null && { imageUrl: input.imageUrl })), (input.subtitle != null && { subtitle: input.subtitle })), (input.title != null && { title: input.title }));
9781
9665
  };
9782
9666
  var serializeAws_restJson1ImportFilter = function (input, context) {
9783
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.values !== undefined &&
9784
- input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9667
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9785
9668
  };
9786
9669
  var serializeAws_restJson1ImportFilters = function (input, context) {
9787
9670
  return input
@@ -9794,22 +9677,19 @@ var serializeAws_restJson1ImportFilters = function (input, context) {
9794
9677
  });
9795
9678
  };
9796
9679
  var serializeAws_restJson1ImportResourceSpecification = function (input, context) {
9797
- return __assign(__assign(__assign({}, (input.botImportSpecification !== undefined &&
9798
- input.botImportSpecification !== null && {
9680
+ return __assign(__assign(__assign({}, (input.botImportSpecification != null && {
9799
9681
  botImportSpecification: serializeAws_restJson1BotImportSpecification(input.botImportSpecification, context),
9800
- })), (input.botLocaleImportSpecification !== undefined &&
9801
- input.botLocaleImportSpecification !== null && {
9682
+ })), (input.botLocaleImportSpecification != null && {
9802
9683
  botLocaleImportSpecification: serializeAws_restJson1BotLocaleImportSpecification(input.botLocaleImportSpecification, context),
9803
- })), (input.customVocabularyImportSpecification !== undefined &&
9804
- input.customVocabularyImportSpecification !== null && {
9684
+ })), (input.customVocabularyImportSpecification != null && {
9805
9685
  customVocabularyImportSpecification: serializeAws_restJson1CustomVocabularyImportSpecification(input.customVocabularyImportSpecification, context),
9806
9686
  }));
9807
9687
  };
9808
9688
  var serializeAws_restJson1ImportSortBy = function (input, context) {
9809
- return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
9689
+ return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
9810
9690
  };
9811
9691
  var serializeAws_restJson1InputContext = function (input, context) {
9812
- return __assign({}, (input.name !== undefined && input.name !== null && { name: input.name }));
9692
+ return __assign({}, (input.name != null && { name: input.name }));
9813
9693
  };
9814
9694
  var serializeAws_restJson1InputContextsList = function (input, context) {
9815
9695
  return input
@@ -9822,23 +9702,19 @@ var serializeAws_restJson1InputContextsList = function (input, context) {
9822
9702
  });
9823
9703
  };
9824
9704
  var serializeAws_restJson1IntentClosingSetting = function (input, context) {
9825
- return __assign(__assign({}, (input.active !== undefined && input.active !== null && { active: input.active })), (input.closingResponse !== undefined &&
9826
- input.closingResponse !== null && {
9705
+ return __assign(__assign({}, (input.active != null && { active: input.active })), (input.closingResponse != null && {
9827
9706
  closingResponse: serializeAws_restJson1ResponseSpecification(input.closingResponse, context),
9828
9707
  }));
9829
9708
  };
9830
9709
  var serializeAws_restJson1IntentConfirmationSetting = function (input, context) {
9831
- return __assign(__assign(__assign({}, (input.active !== undefined && input.active !== null && { active: input.active })), (input.declinationResponse !== undefined &&
9832
- input.declinationResponse !== null && {
9710
+ return __assign(__assign(__assign({}, (input.active != null && { active: input.active })), (input.declinationResponse != null && {
9833
9711
  declinationResponse: serializeAws_restJson1ResponseSpecification(input.declinationResponse, context),
9834
- })), (input.promptSpecification !== undefined &&
9835
- input.promptSpecification !== null && {
9712
+ })), (input.promptSpecification != null && {
9836
9713
  promptSpecification: serializeAws_restJson1PromptSpecification(input.promptSpecification, context),
9837
9714
  }));
9838
9715
  };
9839
9716
  var serializeAws_restJson1IntentFilter = function (input, context) {
9840
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.values !== undefined &&
9841
- input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9717
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9842
9718
  };
9843
9719
  var serializeAws_restJson1IntentFilters = function (input, context) {
9844
9720
  return input
@@ -9851,40 +9727,30 @@ var serializeAws_restJson1IntentFilters = function (input, context) {
9851
9727
  });
9852
9728
  };
9853
9729
  var serializeAws_restJson1IntentSortBy = function (input, context) {
9854
- return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
9730
+ return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
9855
9731
  };
9856
9732
  var serializeAws_restJson1KendraConfiguration = function (input, context) {
9857
- return __assign(__assign(__assign({}, (input.kendraIndex !== undefined && input.kendraIndex !== null && { kendraIndex: input.kendraIndex })), (input.queryFilterString !== undefined &&
9858
- input.queryFilterString !== null && { queryFilterString: input.queryFilterString })), (input.queryFilterStringEnabled !== undefined &&
9859
- input.queryFilterStringEnabled !== null && { queryFilterStringEnabled: input.queryFilterStringEnabled }));
9733
+ return __assign(__assign(__assign({}, (input.kendraIndex != null && { kendraIndex: input.kendraIndex })), (input.queryFilterString != null && { queryFilterString: input.queryFilterString })), (input.queryFilterStringEnabled != null && { queryFilterStringEnabled: input.queryFilterStringEnabled }));
9860
9734
  };
9861
9735
  var serializeAws_restJson1LambdaCodeHook = function (input, context) {
9862
- return __assign(__assign({}, (input.codeHookInterfaceVersion !== undefined &&
9863
- input.codeHookInterfaceVersion !== null && { codeHookInterfaceVersion: input.codeHookInterfaceVersion })), (input.lambdaARN !== undefined && input.lambdaARN !== null && { lambdaARN: input.lambdaARN }));
9736
+ return __assign(__assign({}, (input.codeHookInterfaceVersion != null && { codeHookInterfaceVersion: input.codeHookInterfaceVersion })), (input.lambdaARN != null && { lambdaARN: input.lambdaARN }));
9864
9737
  };
9865
9738
  var serializeAws_restJson1LexTranscriptFilter = function (input, context) {
9866
- return __assign({}, (input.dateRangeFilter !== undefined &&
9867
- input.dateRangeFilter !== null && {
9739
+ return __assign({}, (input.dateRangeFilter != null && {
9868
9740
  dateRangeFilter: serializeAws_restJson1DateRangeFilter(input.dateRangeFilter, context),
9869
9741
  }));
9870
9742
  };
9871
9743
  var serializeAws_restJson1Message = function (input, context) {
9872
- return __assign(__assign(__assign(__assign({}, (input.customPayload !== undefined &&
9873
- input.customPayload !== null && {
9744
+ return __assign(__assign(__assign(__assign({}, (input.customPayload != null && {
9874
9745
  customPayload: serializeAws_restJson1CustomPayload(input.customPayload, context),
9875
- })), (input.imageResponseCard !== undefined &&
9876
- input.imageResponseCard !== null && {
9746
+ })), (input.imageResponseCard != null && {
9877
9747
  imageResponseCard: serializeAws_restJson1ImageResponseCard(input.imageResponseCard, context),
9878
- })), (input.plainTextMessage !== undefined &&
9879
- input.plainTextMessage !== null && {
9748
+ })), (input.plainTextMessage != null && {
9880
9749
  plainTextMessage: serializeAws_restJson1PlainTextMessage(input.plainTextMessage, context),
9881
- })), (input.ssmlMessage !== undefined &&
9882
- input.ssmlMessage !== null && { ssmlMessage: serializeAws_restJson1SSMLMessage(input.ssmlMessage, context) }));
9750
+ })), (input.ssmlMessage != null && { ssmlMessage: serializeAws_restJson1SSMLMessage(input.ssmlMessage, context) }));
9883
9751
  };
9884
9752
  var serializeAws_restJson1MessageGroup = function (input, context) {
9885
- return __assign(__assign({}, (input.message !== undefined &&
9886
- input.message !== null && { message: serializeAws_restJson1Message(input.message, context) })), (input.variations !== undefined &&
9887
- input.variations !== null && {
9753
+ return __assign(__assign({}, (input.message != null && { message: serializeAws_restJson1Message(input.message, context) })), (input.variations != null && {
9888
9754
  variations: serializeAws_restJson1MessageVariationsList(input.variations, context),
9889
9755
  }));
9890
9756
  };
@@ -9909,12 +9775,10 @@ var serializeAws_restJson1MessageVariationsList = function (input, context) {
9909
9775
  });
9910
9776
  };
9911
9777
  var serializeAws_restJson1MultipleValuesSetting = function (input, context) {
9912
- return __assign({}, (input.allowMultipleValues !== undefined &&
9913
- input.allowMultipleValues !== null && { allowMultipleValues: input.allowMultipleValues }));
9778
+ return __assign({}, (input.allowMultipleValues != null && { allowMultipleValues: input.allowMultipleValues }));
9914
9779
  };
9915
9780
  var serializeAws_restJson1ObfuscationSetting = function (input, context) {
9916
- return __assign({}, (input.obfuscationSettingType !== undefined &&
9917
- input.obfuscationSettingType !== null && { obfuscationSettingType: input.obfuscationSettingType }));
9781
+ return __assign({}, (input.obfuscationSettingType != null && { obfuscationSettingType: input.obfuscationSettingType }));
9918
9782
  };
9919
9783
  var serializeAws_restJson1ObjectPrefixes = function (input, context) {
9920
9784
  return input
@@ -9937,8 +9801,7 @@ var serializeAws_restJson1OperationList = function (input, context) {
9937
9801
  });
9938
9802
  };
9939
9803
  var serializeAws_restJson1OutputContext = function (input, context) {
9940
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.timeToLiveInSeconds !== undefined &&
9941
- input.timeToLiveInSeconds !== null && { timeToLiveInSeconds: input.timeToLiveInSeconds })), (input.turnsToLive !== undefined && input.turnsToLive !== null && { turnsToLive: input.turnsToLive }));
9804
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.timeToLiveInSeconds != null && { timeToLiveInSeconds: input.timeToLiveInSeconds })), (input.turnsToLive != null && { turnsToLive: input.turnsToLive }));
9942
9805
  };
9943
9806
  var serializeAws_restJson1OutputContextsList = function (input, context) {
9944
9807
  return input
@@ -9951,28 +9814,24 @@ var serializeAws_restJson1OutputContextsList = function (input, context) {
9951
9814
  });
9952
9815
  };
9953
9816
  var serializeAws_restJson1PathFormat = function (input, context) {
9954
- return __assign({}, (input.objectPrefixes !== undefined &&
9955
- input.objectPrefixes !== null && {
9817
+ return __assign({}, (input.objectPrefixes != null && {
9956
9818
  objectPrefixes: serializeAws_restJson1ObjectPrefixes(input.objectPrefixes, context),
9957
9819
  }));
9958
9820
  };
9959
9821
  var serializeAws_restJson1PlainTextMessage = function (input, context) {
9960
- return __assign({}, (input.value !== undefined && input.value !== null && { value: input.value }));
9822
+ return __assign({}, (input.value != null && { value: input.value }));
9961
9823
  };
9962
9824
  var serializeAws_restJson1PostFulfillmentStatusSpecification = function (input, context) {
9963
- return __assign(__assign(__assign({}, (input.failureResponse !== undefined &&
9964
- input.failureResponse !== null && {
9825
+ return __assign(__assign(__assign({}, (input.failureResponse != null && {
9965
9826
  failureResponse: serializeAws_restJson1ResponseSpecification(input.failureResponse, context),
9966
- })), (input.successResponse !== undefined &&
9967
- input.successResponse !== null && {
9827
+ })), (input.successResponse != null && {
9968
9828
  successResponse: serializeAws_restJson1ResponseSpecification(input.successResponse, context),
9969
- })), (input.timeoutResponse !== undefined &&
9970
- input.timeoutResponse !== null && {
9829
+ })), (input.timeoutResponse != null && {
9971
9830
  timeoutResponse: serializeAws_restJson1ResponseSpecification(input.timeoutResponse, context),
9972
9831
  }));
9973
9832
  };
9974
9833
  var serializeAws_restJson1Principal = function (input, context) {
9975
- return __assign(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.service !== undefined && input.service !== null && { service: input.service }));
9834
+ return __assign(__assign({}, (input.arn != null && { arn: input.arn })), (input.service != null && { service: input.service }));
9976
9835
  };
9977
9836
  var serializeAws_restJson1PrincipalList = function (input, context) {
9978
9837
  return input
@@ -9985,36 +9844,28 @@ var serializeAws_restJson1PrincipalList = function (input, context) {
9985
9844
  });
9986
9845
  };
9987
9846
  var serializeAws_restJson1PromptSpecification = function (input, context) {
9988
- return __assign(__assign(__assign(__assign({}, (input.allowInterrupt !== undefined &&
9989
- input.allowInterrupt !== null && { allowInterrupt: input.allowInterrupt })), (input.maxRetries !== undefined && input.maxRetries !== null && { maxRetries: input.maxRetries })), (input.messageGroups !== undefined &&
9990
- input.messageGroups !== null && {
9847
+ return __assign(__assign(__assign(__assign({}, (input.allowInterrupt != null && { allowInterrupt: input.allowInterrupt })), (input.maxRetries != null && { maxRetries: input.maxRetries })), (input.messageGroups != null && {
9991
9848
  messageGroups: serializeAws_restJson1MessageGroupsList(input.messageGroups, context),
9992
- })), (input.messageSelectionStrategy !== undefined &&
9993
- input.messageSelectionStrategy !== null && { messageSelectionStrategy: input.messageSelectionStrategy }));
9849
+ })), (input.messageSelectionStrategy != null && { messageSelectionStrategy: input.messageSelectionStrategy }));
9994
9850
  };
9995
9851
  var serializeAws_restJson1RelativeAggregationDuration = function (input, context) {
9996
- return __assign(__assign({}, (input.timeDimension !== undefined && input.timeDimension !== null && { timeDimension: input.timeDimension })), (input.timeValue !== undefined && input.timeValue !== null && { timeValue: input.timeValue }));
9852
+ return __assign(__assign({}, (input.timeDimension != null && { timeDimension: input.timeDimension })), (input.timeValue != null && { timeValue: input.timeValue }));
9997
9853
  };
9998
9854
  var serializeAws_restJson1ResponseSpecification = function (input, context) {
9999
- return __assign(__assign({}, (input.allowInterrupt !== undefined &&
10000
- input.allowInterrupt !== null && { allowInterrupt: input.allowInterrupt })), (input.messageGroups !== undefined &&
10001
- input.messageGroups !== null && {
9855
+ return __assign(__assign({}, (input.allowInterrupt != null && { allowInterrupt: input.allowInterrupt })), (input.messageGroups != null && {
10002
9856
  messageGroups: serializeAws_restJson1MessageGroupsList(input.messageGroups, context),
10003
9857
  }));
10004
9858
  };
10005
9859
  var serializeAws_restJson1S3BucketLogDestination = function (input, context) {
10006
- return __assign(__assign(__assign({}, (input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn })), (input.logPrefix !== undefined && input.logPrefix !== null && { logPrefix: input.logPrefix })), (input.s3BucketArn !== undefined && input.s3BucketArn !== null && { s3BucketArn: input.s3BucketArn }));
9860
+ return __assign(__assign(__assign({}, (input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn })), (input.logPrefix != null && { logPrefix: input.logPrefix })), (input.s3BucketArn != null && { s3BucketArn: input.s3BucketArn }));
10007
9861
  };
10008
9862
  var serializeAws_restJson1S3BucketTranscriptSource = function (input, context) {
10009
- return __assign(__assign(__assign(__assign(__assign({}, (input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn })), (input.pathFormat !== undefined &&
10010
- input.pathFormat !== null && { pathFormat: serializeAws_restJson1PathFormat(input.pathFormat, context) })), (input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName })), (input.transcriptFilter !== undefined &&
10011
- input.transcriptFilter !== null && {
9863
+ return __assign(__assign(__assign(__assign(__assign({}, (input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn })), (input.pathFormat != null && { pathFormat: serializeAws_restJson1PathFormat(input.pathFormat, context) })), (input.s3BucketName != null && { s3BucketName: input.s3BucketName })), (input.transcriptFilter != null && {
10012
9864
  transcriptFilter: serializeAws_restJson1TranscriptFilter(input.transcriptFilter, context),
10013
- })), (input.transcriptFormat !== undefined &&
10014
- input.transcriptFormat !== null && { transcriptFormat: input.transcriptFormat }));
9865
+ })), (input.transcriptFormat != null && { transcriptFormat: input.transcriptFormat }));
10015
9866
  };
10016
9867
  var serializeAws_restJson1SampleUtterance = function (input, context) {
10017
- return __assign({}, (input.utterance !== undefined && input.utterance !== null && { utterance: input.utterance }));
9868
+ return __assign({}, (input.utterance != null && { utterance: input.utterance }));
10018
9869
  };
10019
9870
  var serializeAws_restJson1SampleUtterancesList = function (input, context) {
10020
9871
  return input
@@ -10027,14 +9878,13 @@ var serializeAws_restJson1SampleUtterancesList = function (input, context) {
10027
9878
  });
10028
9879
  };
10029
9880
  var serializeAws_restJson1SampleValue = function (input, context) {
10030
- return __assign({}, (input.value !== undefined && input.value !== null && { value: input.value }));
9881
+ return __assign({}, (input.value != null && { value: input.value }));
10031
9882
  };
10032
9883
  var serializeAws_restJson1SentimentAnalysisSettings = function (input, context) {
10033
- return __assign({}, (input.detectSentiment !== undefined &&
10034
- input.detectSentiment !== null && { detectSentiment: input.detectSentiment }));
9884
+ return __assign({}, (input.detectSentiment != null && { detectSentiment: input.detectSentiment }));
10035
9885
  };
10036
9886
  var serializeAws_restJson1SlotDefaultValue = function (input, context) {
10037
- return __assign({}, (input.defaultValue !== undefined && input.defaultValue !== null && { defaultValue: input.defaultValue }));
9887
+ return __assign({}, (input.defaultValue != null && { defaultValue: input.defaultValue }));
10038
9888
  };
10039
9889
  var serializeAws_restJson1SlotDefaultValueList = function (input, context) {
10040
9890
  return input
@@ -10047,14 +9897,12 @@ var serializeAws_restJson1SlotDefaultValueList = function (input, context) {
10047
9897
  });
10048
9898
  };
10049
9899
  var serializeAws_restJson1SlotDefaultValueSpecification = function (input, context) {
10050
- return __assign({}, (input.defaultValueList !== undefined &&
10051
- input.defaultValueList !== null && {
9900
+ return __assign({}, (input.defaultValueList != null && {
10052
9901
  defaultValueList: serializeAws_restJson1SlotDefaultValueList(input.defaultValueList, context),
10053
9902
  }));
10054
9903
  };
10055
9904
  var serializeAws_restJson1SlotFilter = function (input, context) {
10056
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.values !== undefined &&
10057
- input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9905
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
10058
9906
  };
10059
9907
  var serializeAws_restJson1SlotFilters = function (input, context) {
10060
9908
  return input
@@ -10077,14 +9925,13 @@ var serializeAws_restJson1SlotPrioritiesList = function (input, context) {
10077
9925
  });
10078
9926
  };
10079
9927
  var serializeAws_restJson1SlotPriority = function (input, context) {
10080
- return __assign(__assign({}, (input.priority !== undefined && input.priority !== null && { priority: input.priority })), (input.slotId !== undefined && input.slotId !== null && { slotId: input.slotId }));
9928
+ return __assign(__assign({}, (input.priority != null && { priority: input.priority })), (input.slotId != null && { slotId: input.slotId }));
10081
9929
  };
10082
9930
  var serializeAws_restJson1SlotSortBy = function (input, context) {
10083
- return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
9931
+ return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
10084
9932
  };
10085
9933
  var serializeAws_restJson1SlotTypeFilter = function (input, context) {
10086
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.values !== undefined &&
10087
- input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
9934
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
10088
9935
  };
10089
9936
  var serializeAws_restJson1SlotTypeFilters = function (input, context) {
10090
9937
  return input
@@ -10097,12 +9944,10 @@ var serializeAws_restJson1SlotTypeFilters = function (input, context) {
10097
9944
  });
10098
9945
  };
10099
9946
  var serializeAws_restJson1SlotTypeSortBy = function (input, context) {
10100
- return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
9947
+ return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
10101
9948
  };
10102
9949
  var serializeAws_restJson1SlotTypeValue = function (input, context) {
10103
- return __assign(__assign({}, (input.sampleValue !== undefined &&
10104
- input.sampleValue !== null && { sampleValue: serializeAws_restJson1SampleValue(input.sampleValue, context) })), (input.synonyms !== undefined &&
10105
- input.synonyms !== null && { synonyms: serializeAws_restJson1SynonymList(input.synonyms, context) }));
9950
+ return __assign(__assign({}, (input.sampleValue != null && { sampleValue: serializeAws_restJson1SampleValue(input.sampleValue, context) })), (input.synonyms != null && { synonyms: serializeAws_restJson1SynonymList(input.synonyms, context) }));
10106
9951
  };
10107
9952
  var serializeAws_restJson1SlotTypeValues = function (input, context) {
10108
9953
  return input
@@ -10115,45 +9960,33 @@ var serializeAws_restJson1SlotTypeValues = function (input, context) {
10115
9960
  });
10116
9961
  };
10117
9962
  var serializeAws_restJson1SlotValueElicitationSetting = function (input, context) {
10118
- return __assign(__assign(__assign(__assign(__assign({}, (input.defaultValueSpecification !== undefined &&
10119
- input.defaultValueSpecification !== null && {
9963
+ return __assign(__assign(__assign(__assign(__assign({}, (input.defaultValueSpecification != null && {
10120
9964
  defaultValueSpecification: serializeAws_restJson1SlotDefaultValueSpecification(input.defaultValueSpecification, context),
10121
- })), (input.promptSpecification !== undefined &&
10122
- input.promptSpecification !== null && {
9965
+ })), (input.promptSpecification != null && {
10123
9966
  promptSpecification: serializeAws_restJson1PromptSpecification(input.promptSpecification, context),
10124
- })), (input.sampleUtterances !== undefined &&
10125
- input.sampleUtterances !== null && {
9967
+ })), (input.sampleUtterances != null && {
10126
9968
  sampleUtterances: serializeAws_restJson1SampleUtterancesList(input.sampleUtterances, context),
10127
- })), (input.slotConstraint !== undefined &&
10128
- input.slotConstraint !== null && { slotConstraint: input.slotConstraint })), (input.waitAndContinueSpecification !== undefined &&
10129
- input.waitAndContinueSpecification !== null && {
9969
+ })), (input.slotConstraint != null && { slotConstraint: input.slotConstraint })), (input.waitAndContinueSpecification != null && {
10130
9970
  waitAndContinueSpecification: serializeAws_restJson1WaitAndContinueSpecification(input.waitAndContinueSpecification, context),
10131
9971
  }));
10132
9972
  };
10133
9973
  var serializeAws_restJson1SlotValueRegexFilter = function (input, context) {
10134
- return __assign({}, (input.pattern !== undefined && input.pattern !== null && { pattern: input.pattern }));
9974
+ return __assign({}, (input.pattern != null && { pattern: input.pattern }));
10135
9975
  };
10136
9976
  var serializeAws_restJson1SlotValueSelectionSetting = function (input, context) {
10137
- return __assign(__assign(__assign({}, (input.advancedRecognitionSetting !== undefined &&
10138
- input.advancedRecognitionSetting !== null && {
9977
+ return __assign(__assign(__assign({}, (input.advancedRecognitionSetting != null && {
10139
9978
  advancedRecognitionSetting: serializeAws_restJson1AdvancedRecognitionSetting(input.advancedRecognitionSetting, context),
10140
- })), (input.regexFilter !== undefined &&
10141
- input.regexFilter !== null && {
9979
+ })), (input.regexFilter != null && {
10142
9980
  regexFilter: serializeAws_restJson1SlotValueRegexFilter(input.regexFilter, context),
10143
- })), (input.resolutionStrategy !== undefined &&
10144
- input.resolutionStrategy !== null && { resolutionStrategy: input.resolutionStrategy }));
9981
+ })), (input.resolutionStrategy != null && { resolutionStrategy: input.resolutionStrategy }));
10145
9982
  };
10146
9983
  var serializeAws_restJson1SSMLMessage = function (input, context) {
10147
- return __assign({}, (input.value !== undefined && input.value !== null && { value: input.value }));
9984
+ return __assign({}, (input.value != null && { value: input.value }));
10148
9985
  };
10149
9986
  var serializeAws_restJson1StillWaitingResponseSpecification = function (input, context) {
10150
- return __assign(__assign(__assign(__assign({}, (input.allowInterrupt !== undefined &&
10151
- input.allowInterrupt !== null && { allowInterrupt: input.allowInterrupt })), (input.frequencyInSeconds !== undefined &&
10152
- input.frequencyInSeconds !== null && { frequencyInSeconds: input.frequencyInSeconds })), (input.messageGroups !== undefined &&
10153
- input.messageGroups !== null && {
9987
+ return __assign(__assign(__assign(__assign({}, (input.allowInterrupt != null && { allowInterrupt: input.allowInterrupt })), (input.frequencyInSeconds != null && { frequencyInSeconds: input.frequencyInSeconds })), (input.messageGroups != null && {
10154
9988
  messageGroups: serializeAws_restJson1MessageGroupsList(input.messageGroups, context),
10155
- })), (input.timeoutInSeconds !== undefined &&
10156
- input.timeoutInSeconds !== null && { timeoutInSeconds: input.timeoutInSeconds }));
9989
+ })), (input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }));
10157
9990
  };
10158
9991
  var serializeAws_restJson1SynonymList = function (input, context) {
10159
9992
  return input
@@ -10176,16 +10009,14 @@ var serializeAws_restJson1TagMap = function (input, context) {
10176
10009
  }, {});
10177
10010
  };
10178
10011
  var serializeAws_restJson1TextLogDestination = function (input, context) {
10179
- return __assign({}, (input.cloudWatch !== undefined &&
10180
- input.cloudWatch !== null && {
10012
+ return __assign({}, (input.cloudWatch != null && {
10181
10013
  cloudWatch: serializeAws_restJson1CloudWatchLogGroupLogDestination(input.cloudWatch, context),
10182
10014
  }));
10183
10015
  };
10184
10016
  var serializeAws_restJson1TextLogSetting = function (input, context) {
10185
- return __assign(__assign({}, (input.destination !== undefined &&
10186
- input.destination !== null && {
10017
+ return __assign(__assign({}, (input.destination != null && {
10187
10018
  destination: serializeAws_restJson1TextLogDestination(input.destination, context),
10188
- })), (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }));
10019
+ })), (input.enabled != null && { enabled: input.enabled }));
10189
10020
  };
10190
10021
  var serializeAws_restJson1TextLogSettingsList = function (input, context) {
10191
10022
  return input
@@ -10198,35 +10029,29 @@ var serializeAws_restJson1TextLogSettingsList = function (input, context) {
10198
10029
  });
10199
10030
  };
10200
10031
  var serializeAws_restJson1TranscriptFilter = function (input, context) {
10201
- return __assign({}, (input.lexTranscriptFilter !== undefined &&
10202
- input.lexTranscriptFilter !== null && {
10032
+ return __assign({}, (input.lexTranscriptFilter != null && {
10203
10033
  lexTranscriptFilter: serializeAws_restJson1LexTranscriptFilter(input.lexTranscriptFilter, context),
10204
10034
  }));
10205
10035
  };
10206
10036
  var serializeAws_restJson1TranscriptSourceSetting = function (input, context) {
10207
- return __assign({}, (input.s3BucketTranscriptSource !== undefined &&
10208
- input.s3BucketTranscriptSource !== null && {
10037
+ return __assign({}, (input.s3BucketTranscriptSource != null && {
10209
10038
  s3BucketTranscriptSource: serializeAws_restJson1S3BucketTranscriptSource(input.s3BucketTranscriptSource, context),
10210
10039
  }));
10211
10040
  };
10212
10041
  var serializeAws_restJson1UtteranceAggregationDuration = function (input, context) {
10213
- return __assign({}, (input.relativeAggregationDuration !== undefined &&
10214
- input.relativeAggregationDuration !== null && {
10042
+ return __assign({}, (input.relativeAggregationDuration != null && {
10215
10043
  relativeAggregationDuration: serializeAws_restJson1RelativeAggregationDuration(input.relativeAggregationDuration, context),
10216
10044
  }));
10217
10045
  };
10218
10046
  var serializeAws_restJson1VoiceSettings = function (input, context) {
10219
- return __assign(__assign({}, (input.engine !== undefined && input.engine !== null && { engine: input.engine })), (input.voiceId !== undefined && input.voiceId !== null && { voiceId: input.voiceId }));
10047
+ return __assign(__assign({}, (input.engine != null && { engine: input.engine })), (input.voiceId != null && { voiceId: input.voiceId }));
10220
10048
  };
10221
10049
  var serializeAws_restJson1WaitAndContinueSpecification = function (input, context) {
10222
- return __assign(__assign(__assign(__assign({}, (input.active !== undefined && input.active !== null && { active: input.active })), (input.continueResponse !== undefined &&
10223
- input.continueResponse !== null && {
10050
+ return __assign(__assign(__assign(__assign({}, (input.active != null && { active: input.active })), (input.continueResponse != null && {
10224
10051
  continueResponse: serializeAws_restJson1ResponseSpecification(input.continueResponse, context),
10225
- })), (input.stillWaitingResponse !== undefined &&
10226
- input.stillWaitingResponse !== null && {
10052
+ })), (input.stillWaitingResponse != null && {
10227
10053
  stillWaitingResponse: serializeAws_restJson1StillWaitingResponseSpecification(input.stillWaitingResponse, context),
10228
- })), (input.waitingResponse !== undefined &&
10229
- input.waitingResponse !== null && {
10054
+ })), (input.waitingResponse != null && {
10230
10055
  waitingResponse: serializeAws_restJson1ResponseSpecification(input.waitingResponse, context),
10231
10056
  }));
10232
10057
  };
@@ -10241,12 +10066,10 @@ var deserializeAws_restJson1AggregatedUtterancesSummary = function (output, cont
10241
10066
  hitCount: __expectInt32(output.hitCount),
10242
10067
  missedCount: __expectInt32(output.missedCount),
10243
10068
  utterance: __expectString(output.utterance),
10244
- utteranceFirstRecordedInAggregationDuration: output.utteranceFirstRecordedInAggregationDuration !== undefined &&
10245
- output.utteranceFirstRecordedInAggregationDuration !== null
10069
+ utteranceFirstRecordedInAggregationDuration: output.utteranceFirstRecordedInAggregationDuration != null
10246
10070
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.utteranceFirstRecordedInAggregationDuration)))
10247
10071
  : undefined,
10248
- utteranceLastRecordedInAggregationDuration: output.utteranceLastRecordedInAggregationDuration !== undefined &&
10249
- output.utteranceLastRecordedInAggregationDuration !== null
10072
+ utteranceLastRecordedInAggregationDuration: output.utteranceLastRecordedInAggregationDuration != null
10250
10073
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.utteranceLastRecordedInAggregationDuration)))
10251
10074
  : undefined,
10252
10075
  };
@@ -10280,16 +10103,12 @@ var deserializeAws_restJson1AssociatedTranscriptList = function (output, context
10280
10103
  };
10281
10104
  var deserializeAws_restJson1AudioLogDestination = function (output, context) {
10282
10105
  return {
10283
- s3Bucket: output.s3Bucket !== undefined && output.s3Bucket !== null
10284
- ? deserializeAws_restJson1S3BucketLogDestination(output.s3Bucket, context)
10285
- : undefined,
10106
+ s3Bucket: output.s3Bucket != null ? deserializeAws_restJson1S3BucketLogDestination(output.s3Bucket, context) : undefined,
10286
10107
  };
10287
10108
  };
10288
10109
  var deserializeAws_restJson1AudioLogSetting = function (output, context) {
10289
10110
  return {
10290
- destination: output.destination !== undefined && output.destination !== null
10291
- ? deserializeAws_restJson1AudioLogDestination(output.destination, context)
10292
- : undefined,
10111
+ destination: output.destination != null ? deserializeAws_restJson1AudioLogDestination(output.destination, context) : undefined,
10293
10112
  enabled: __expectBoolean(output.enabled),
10294
10113
  };
10295
10114
  };
@@ -10307,12 +10126,8 @@ var deserializeAws_restJson1AudioLogSettingsList = function (output, context) {
10307
10126
  var deserializeAws_restJson1BotAliasHistoryEvent = function (output, context) {
10308
10127
  return {
10309
10128
  botVersion: __expectString(output.botVersion),
10310
- endDate: output.endDate !== undefined && output.endDate !== null
10311
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endDate)))
10312
- : undefined,
10313
- startDate: output.startDate !== undefined && output.startDate !== null
10314
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
10315
- : undefined,
10129
+ endDate: output.endDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endDate))) : undefined,
10130
+ startDate: output.startDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate))) : undefined,
10316
10131
  };
10317
10132
  };
10318
10133
  var deserializeAws_restJson1BotAliasHistoryEventsList = function (output, context) {
@@ -10328,7 +10143,7 @@ var deserializeAws_restJson1BotAliasHistoryEventsList = function (output, contex
10328
10143
  };
10329
10144
  var deserializeAws_restJson1BotAliasLocaleSettings = function (output, context) {
10330
10145
  return {
10331
- codeHookSpecification: output.codeHookSpecification !== undefined && output.codeHookSpecification !== null
10146
+ codeHookSpecification: output.codeHookSpecification != null
10332
10147
  ? deserializeAws_restJson1CodeHookSpecification(output.codeHookSpecification, context)
10333
10148
  : undefined,
10334
10149
  enabled: __expectBoolean(output.enabled),
@@ -10350,11 +10165,11 @@ var deserializeAws_restJson1BotAliasSummary = function (output, context) {
10350
10165
  botAliasName: __expectString(output.botAliasName),
10351
10166
  botAliasStatus: __expectString(output.botAliasStatus),
10352
10167
  botVersion: __expectString(output.botVersion),
10353
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
10168
+ creationDateTime: output.creationDateTime != null
10354
10169
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
10355
10170
  : undefined,
10356
10171
  description: __expectString(output.description),
10357
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
10172
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
10358
10173
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
10359
10174
  : undefined,
10360
10175
  };
@@ -10379,17 +10194,11 @@ var deserializeAws_restJson1BotExportSpecification = function (output, context)
10379
10194
  var deserializeAws_restJson1BotImportSpecification = function (output, context) {
10380
10195
  return {
10381
10196
  botName: __expectString(output.botName),
10382
- botTags: output.botTags !== undefined && output.botTags !== null
10383
- ? deserializeAws_restJson1TagMap(output.botTags, context)
10384
- : undefined,
10385
- dataPrivacy: output.dataPrivacy !== undefined && output.dataPrivacy !== null
10386
- ? deserializeAws_restJson1DataPrivacy(output.dataPrivacy, context)
10387
- : undefined,
10197
+ botTags: output.botTags != null ? deserializeAws_restJson1TagMap(output.botTags, context) : undefined,
10198
+ dataPrivacy: output.dataPrivacy != null ? deserializeAws_restJson1DataPrivacy(output.dataPrivacy, context) : undefined,
10388
10199
  idleSessionTTLInSeconds: __expectInt32(output.idleSessionTTLInSeconds),
10389
10200
  roleArn: __expectString(output.roleArn),
10390
- testBotAliasTags: output.testBotAliasTags !== undefined && output.testBotAliasTags !== null
10391
- ? deserializeAws_restJson1TagMap(output.testBotAliasTags, context)
10392
- : undefined,
10201
+ testBotAliasTags: output.testBotAliasTags != null ? deserializeAws_restJson1TagMap(output.testBotAliasTags, context) : undefined,
10393
10202
  };
10394
10203
  };
10395
10204
  var deserializeAws_restJson1BotLocaleExportSpecification = function (output, context) {
@@ -10402,9 +10211,7 @@ var deserializeAws_restJson1BotLocaleExportSpecification = function (output, con
10402
10211
  var deserializeAws_restJson1BotLocaleHistoryEvent = function (output, context) {
10403
10212
  return {
10404
10213
  event: __expectString(output.event),
10405
- eventDate: output.eventDate !== undefined && output.eventDate !== null
10406
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventDate)))
10407
- : undefined,
10214
+ eventDate: output.eventDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventDate))) : undefined,
10408
10215
  };
10409
10216
  };
10410
10217
  var deserializeAws_restJson1BotLocaleHistoryEventsList = function (output, context) {
@@ -10424,19 +10231,17 @@ var deserializeAws_restJson1BotLocaleImportSpecification = function (output, con
10424
10231
  botVersion: __expectString(output.botVersion),
10425
10232
  localeId: __expectString(output.localeId),
10426
10233
  nluIntentConfidenceThreshold: __limitedParseDouble(output.nluIntentConfidenceThreshold),
10427
- voiceSettings: output.voiceSettings !== undefined && output.voiceSettings !== null
10428
- ? deserializeAws_restJson1VoiceSettings(output.voiceSettings, context)
10429
- : undefined,
10234
+ voiceSettings: output.voiceSettings != null ? deserializeAws_restJson1VoiceSettings(output.voiceSettings, context) : undefined,
10430
10235
  };
10431
10236
  };
10432
10237
  var deserializeAws_restJson1BotLocaleSummary = function (output, context) {
10433
10238
  return {
10434
10239
  botLocaleStatus: __expectString(output.botLocaleStatus),
10435
10240
  description: __expectString(output.description),
10436
- lastBuildSubmittedDateTime: output.lastBuildSubmittedDateTime !== undefined && output.lastBuildSubmittedDateTime !== null
10241
+ lastBuildSubmittedDateTime: output.lastBuildSubmittedDateTime != null
10437
10242
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastBuildSubmittedDateTime)))
10438
10243
  : undefined,
10439
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
10244
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
10440
10245
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
10441
10246
  : undefined,
10442
10247
  localeId: __expectString(output.localeId),
@@ -10458,29 +10263,25 @@ var deserializeAws_restJson1BotRecommendationResults = function (output, context
10458
10263
  return {
10459
10264
  associatedTranscriptsUrl: __expectString(output.associatedTranscriptsUrl),
10460
10265
  botLocaleExportUrl: __expectString(output.botLocaleExportUrl),
10461
- statistics: output.statistics !== undefined && output.statistics !== null
10266
+ statistics: output.statistics != null
10462
10267
  ? deserializeAws_restJson1BotRecommendationResultStatistics(output.statistics, context)
10463
10268
  : undefined,
10464
10269
  };
10465
10270
  };
10466
10271
  var deserializeAws_restJson1BotRecommendationResultStatistics = function (output, context) {
10467
10272
  return {
10468
- intents: output.intents !== undefined && output.intents !== null
10469
- ? deserializeAws_restJson1IntentStatistics(output.intents, context)
10470
- : undefined,
10471
- slotTypes: output.slotTypes !== undefined && output.slotTypes !== null
10472
- ? deserializeAws_restJson1SlotTypeStatistics(output.slotTypes, context)
10473
- : undefined,
10273
+ intents: output.intents != null ? deserializeAws_restJson1IntentStatistics(output.intents, context) : undefined,
10274
+ slotTypes: output.slotTypes != null ? deserializeAws_restJson1SlotTypeStatistics(output.slotTypes, context) : undefined,
10474
10275
  };
10475
10276
  };
10476
10277
  var deserializeAws_restJson1BotRecommendationSummary = function (output, context) {
10477
10278
  return {
10478
10279
  botRecommendationId: __expectString(output.botRecommendationId),
10479
10280
  botRecommendationStatus: __expectString(output.botRecommendationStatus),
10480
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
10281
+ creationDateTime: output.creationDateTime != null
10481
10282
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
10482
10283
  : undefined,
10483
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
10284
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
10484
10285
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
10485
10286
  : undefined,
10486
10287
  };
@@ -10502,7 +10303,7 @@ var deserializeAws_restJson1BotSummary = function (output, context) {
10502
10303
  botName: __expectString(output.botName),
10503
10304
  botStatus: __expectString(output.botStatus),
10504
10305
  description: __expectString(output.description),
10505
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
10306
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
10506
10307
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
10507
10308
  : undefined,
10508
10309
  latestBotVersion: __expectString(output.latestBotVersion),
@@ -10539,7 +10340,7 @@ var deserializeAws_restJson1BotVersionSummary = function (output, context) {
10539
10340
  botName: __expectString(output.botName),
10540
10341
  botStatus: __expectString(output.botStatus),
10541
10342
  botVersion: __expectString(output.botVersion),
10542
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
10343
+ creationDateTime: output.creationDateTime != null
10543
10344
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
10544
10345
  : undefined,
10545
10346
  description: __expectString(output.description),
@@ -10615,17 +10416,17 @@ var deserializeAws_restJson1CloudWatchLogGroupLogDestination = function (output,
10615
10416
  };
10616
10417
  var deserializeAws_restJson1CodeHookSpecification = function (output, context) {
10617
10418
  return {
10618
- lambdaCodeHook: output.lambdaCodeHook !== undefined && output.lambdaCodeHook !== null
10419
+ lambdaCodeHook: output.lambdaCodeHook != null
10619
10420
  ? deserializeAws_restJson1LambdaCodeHook(output.lambdaCodeHook, context)
10620
10421
  : undefined,
10621
10422
  };
10622
10423
  };
10623
10424
  var deserializeAws_restJson1ConversationLogSettings = function (output, context) {
10624
10425
  return {
10625
- audioLogSettings: output.audioLogSettings !== undefined && output.audioLogSettings !== null
10426
+ audioLogSettings: output.audioLogSettings != null
10626
10427
  ? deserializeAws_restJson1AudioLogSettingsList(output.audioLogSettings, context)
10627
10428
  : undefined,
10628
- textLogSettings: output.textLogSettings !== undefined && output.textLogSettings !== null
10429
+ textLogSettings: output.textLogSettings != null
10629
10430
  ? deserializeAws_restJson1TextLogSettingsList(output.textLogSettings, context)
10630
10431
  : undefined,
10631
10432
  };
@@ -10656,10 +10457,10 @@ var deserializeAws_restJson1DataPrivacy = function (output, context) {
10656
10457
  };
10657
10458
  var deserializeAws_restJson1DateRangeFilter = function (output, context) {
10658
10459
  return {
10659
- endDateTime: output.endDateTime !== undefined && output.endDateTime !== null
10460
+ endDateTime: output.endDateTime != null
10660
10461
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endDateTime)))
10661
10462
  : undefined,
10662
- startDateTime: output.startDateTime !== undefined && output.startDateTime !== null
10463
+ startDateTime: output.startDateTime != null
10663
10464
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDateTime)))
10664
10465
  : undefined,
10665
10466
  };
@@ -10678,29 +10479,29 @@ var deserializeAws_restJson1EncryptionSetting = function (output, context) {
10678
10479
  };
10679
10480
  var deserializeAws_restJson1ExportResourceSpecification = function (output, context) {
10680
10481
  return {
10681
- botExportSpecification: output.botExportSpecification !== undefined && output.botExportSpecification !== null
10482
+ botExportSpecification: output.botExportSpecification != null
10682
10483
  ? deserializeAws_restJson1BotExportSpecification(output.botExportSpecification, context)
10683
10484
  : undefined,
10684
- botLocaleExportSpecification: output.botLocaleExportSpecification !== undefined && output.botLocaleExportSpecification !== null
10485
+ botLocaleExportSpecification: output.botLocaleExportSpecification != null
10685
10486
  ? deserializeAws_restJson1BotLocaleExportSpecification(output.botLocaleExportSpecification, context)
10686
10487
  : undefined,
10687
- customVocabularyExportSpecification: output.customVocabularyExportSpecification !== undefined && output.customVocabularyExportSpecification !== null
10488
+ customVocabularyExportSpecification: output.customVocabularyExportSpecification != null
10688
10489
  ? deserializeAws_restJson1CustomVocabularyExportSpecification(output.customVocabularyExportSpecification, context)
10689
10490
  : undefined,
10690
10491
  };
10691
10492
  };
10692
10493
  var deserializeAws_restJson1ExportSummary = function (output, context) {
10693
10494
  return {
10694
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
10495
+ creationDateTime: output.creationDateTime != null
10695
10496
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
10696
10497
  : undefined,
10697
10498
  exportId: __expectString(output.exportId),
10698
10499
  exportStatus: __expectString(output.exportStatus),
10699
10500
  fileFormat: __expectString(output.fileFormat),
10700
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
10501
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
10701
10502
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
10702
10503
  : undefined,
10703
- resourceSpecification: output.resourceSpecification !== undefined && output.resourceSpecification !== null
10504
+ resourceSpecification: output.resourceSpecification != null
10704
10505
  ? deserializeAws_restJson1ExportResourceSpecification(output.resourceSpecification, context)
10705
10506
  : undefined,
10706
10507
  };
@@ -10718,7 +10519,7 @@ var deserializeAws_restJson1ExportSummaryList = function (output, context) {
10718
10519
  };
10719
10520
  var deserializeAws_restJson1ExternalSourceSetting = function (output, context) {
10720
10521
  return {
10721
- grammarSlotTypeSetting: output.grammarSlotTypeSetting !== undefined && output.grammarSlotTypeSetting !== null
10522
+ grammarSlotTypeSetting: output.grammarSlotTypeSetting != null
10722
10523
  ? deserializeAws_restJson1GrammarSlotTypeSetting(output.grammarSlotTypeSetting, context)
10723
10524
  : undefined,
10724
10525
  };
@@ -10737,10 +10538,10 @@ var deserializeAws_restJson1FailureReasons = function (output, context) {
10737
10538
  var deserializeAws_restJson1FulfillmentCodeHookSettings = function (output, context) {
10738
10539
  return {
10739
10540
  enabled: __expectBoolean(output.enabled),
10740
- fulfillmentUpdatesSpecification: output.fulfillmentUpdatesSpecification !== undefined && output.fulfillmentUpdatesSpecification !== null
10541
+ fulfillmentUpdatesSpecification: output.fulfillmentUpdatesSpecification != null
10741
10542
  ? deserializeAws_restJson1FulfillmentUpdatesSpecification(output.fulfillmentUpdatesSpecification, context)
10742
10543
  : undefined,
10743
- postFulfillmentStatusSpecification: output.postFulfillmentStatusSpecification !== undefined && output.postFulfillmentStatusSpecification !== null
10544
+ postFulfillmentStatusSpecification: output.postFulfillmentStatusSpecification != null
10744
10545
  ? deserializeAws_restJson1PostFulfillmentStatusSpecification(output.postFulfillmentStatusSpecification, context)
10745
10546
  : undefined,
10746
10547
  };
@@ -10749,7 +10550,7 @@ var deserializeAws_restJson1FulfillmentStartResponseSpecification = function (ou
10749
10550
  return {
10750
10551
  allowInterrupt: __expectBoolean(output.allowInterrupt),
10751
10552
  delayInSeconds: __expectInt32(output.delayInSeconds),
10752
- messageGroups: output.messageGroups !== undefined && output.messageGroups !== null
10553
+ messageGroups: output.messageGroups != null
10753
10554
  ? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
10754
10555
  : undefined,
10755
10556
  };
@@ -10758,7 +10559,7 @@ var deserializeAws_restJson1FulfillmentUpdateResponseSpecification = function (o
10758
10559
  return {
10759
10560
  allowInterrupt: __expectBoolean(output.allowInterrupt),
10760
10561
  frequencyInSeconds: __expectInt32(output.frequencyInSeconds),
10761
- messageGroups: output.messageGroups !== undefined && output.messageGroups !== null
10562
+ messageGroups: output.messageGroups != null
10762
10563
  ? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
10763
10564
  : undefined,
10764
10565
  };
@@ -10766,20 +10567,18 @@ var deserializeAws_restJson1FulfillmentUpdateResponseSpecification = function (o
10766
10567
  var deserializeAws_restJson1FulfillmentUpdatesSpecification = function (output, context) {
10767
10568
  return {
10768
10569
  active: __expectBoolean(output.active),
10769
- startResponse: output.startResponse !== undefined && output.startResponse !== null
10570
+ startResponse: output.startResponse != null
10770
10571
  ? deserializeAws_restJson1FulfillmentStartResponseSpecification(output.startResponse, context)
10771
10572
  : undefined,
10772
10573
  timeoutInSeconds: __expectInt32(output.timeoutInSeconds),
10773
- updateResponse: output.updateResponse !== undefined && output.updateResponse !== null
10574
+ updateResponse: output.updateResponse != null
10774
10575
  ? deserializeAws_restJson1FulfillmentUpdateResponseSpecification(output.updateResponse, context)
10775
10576
  : undefined,
10776
10577
  };
10777
10578
  };
10778
10579
  var deserializeAws_restJson1GrammarSlotTypeSetting = function (output, context) {
10779
10580
  return {
10780
- source: output.source !== undefined && output.source !== null
10781
- ? deserializeAws_restJson1GrammarSlotTypeSource(output.source, context)
10782
- : undefined,
10581
+ source: output.source != null ? deserializeAws_restJson1GrammarSlotTypeSource(output.source, context) : undefined,
10783
10582
  };
10784
10583
  };
10785
10584
  var deserializeAws_restJson1GrammarSlotTypeSource = function (output, context) {
@@ -10791,9 +10590,7 @@ var deserializeAws_restJson1GrammarSlotTypeSource = function (output, context) {
10791
10590
  };
10792
10591
  var deserializeAws_restJson1ImageResponseCard = function (output, context) {
10793
10592
  return {
10794
- buttons: output.buttons !== undefined && output.buttons !== null
10795
- ? deserializeAws_restJson1ButtonsList(output.buttons, context)
10796
- : undefined,
10593
+ buttons: output.buttons != null ? deserializeAws_restJson1ButtonsList(output.buttons, context) : undefined,
10797
10594
  imageUrl: __expectString(output.imageUrl),
10798
10595
  subtitle: __expectString(output.subtitle),
10799
10596
  title: __expectString(output.title),
@@ -10801,20 +10598,20 @@ var deserializeAws_restJson1ImageResponseCard = function (output, context) {
10801
10598
  };
10802
10599
  var deserializeAws_restJson1ImportResourceSpecification = function (output, context) {
10803
10600
  return {
10804
- botImportSpecification: output.botImportSpecification !== undefined && output.botImportSpecification !== null
10601
+ botImportSpecification: output.botImportSpecification != null
10805
10602
  ? deserializeAws_restJson1BotImportSpecification(output.botImportSpecification, context)
10806
10603
  : undefined,
10807
- botLocaleImportSpecification: output.botLocaleImportSpecification !== undefined && output.botLocaleImportSpecification !== null
10604
+ botLocaleImportSpecification: output.botLocaleImportSpecification != null
10808
10605
  ? deserializeAws_restJson1BotLocaleImportSpecification(output.botLocaleImportSpecification, context)
10809
10606
  : undefined,
10810
- customVocabularyImportSpecification: output.customVocabularyImportSpecification !== undefined && output.customVocabularyImportSpecification !== null
10607
+ customVocabularyImportSpecification: output.customVocabularyImportSpecification != null
10811
10608
  ? deserializeAws_restJson1CustomVocabularyImportSpecification(output.customVocabularyImportSpecification, context)
10812
10609
  : undefined,
10813
10610
  };
10814
10611
  };
10815
10612
  var deserializeAws_restJson1ImportSummary = function (output, context) {
10816
10613
  return {
10817
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
10614
+ creationDateTime: output.creationDateTime != null
10818
10615
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
10819
10616
  : undefined,
10820
10617
  importId: __expectString(output.importId),
@@ -10822,7 +10619,7 @@ var deserializeAws_restJson1ImportSummary = function (output, context) {
10822
10619
  importedResourceId: __expectString(output.importedResourceId),
10823
10620
  importedResourceName: __expectString(output.importedResourceName),
10824
10621
  importedResourceType: __expectString(output.importedResourceType),
10825
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
10622
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
10826
10623
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
10827
10624
  : undefined,
10828
10625
  mergeStrategy: __expectString(output.mergeStrategy),
@@ -10858,7 +10655,7 @@ var deserializeAws_restJson1InputContextsList = function (output, context) {
10858
10655
  var deserializeAws_restJson1IntentClosingSetting = function (output, context) {
10859
10656
  return {
10860
10657
  active: __expectBoolean(output.active),
10861
- closingResponse: output.closingResponse !== undefined && output.closingResponse !== null
10658
+ closingResponse: output.closingResponse != null
10862
10659
  ? deserializeAws_restJson1ResponseSpecification(output.closingResponse, context)
10863
10660
  : undefined,
10864
10661
  };
@@ -10866,10 +10663,10 @@ var deserializeAws_restJson1IntentClosingSetting = function (output, context) {
10866
10663
  var deserializeAws_restJson1IntentConfirmationSetting = function (output, context) {
10867
10664
  return {
10868
10665
  active: __expectBoolean(output.active),
10869
- declinationResponse: output.declinationResponse !== undefined && output.declinationResponse !== null
10666
+ declinationResponse: output.declinationResponse != null
10870
10667
  ? deserializeAws_restJson1ResponseSpecification(output.declinationResponse, context)
10871
10668
  : undefined,
10872
- promptSpecification: output.promptSpecification !== undefined && output.promptSpecification !== null
10669
+ promptSpecification: output.promptSpecification != null
10873
10670
  ? deserializeAws_restJson1PromptSpecification(output.promptSpecification, context)
10874
10671
  : undefined,
10875
10672
  };
@@ -10882,15 +10679,15 @@ var deserializeAws_restJson1IntentStatistics = function (output, context) {
10882
10679
  var deserializeAws_restJson1IntentSummary = function (output, context) {
10883
10680
  return {
10884
10681
  description: __expectString(output.description),
10885
- inputContexts: output.inputContexts !== undefined && output.inputContexts !== null
10682
+ inputContexts: output.inputContexts != null
10886
10683
  ? deserializeAws_restJson1InputContextsList(output.inputContexts, context)
10887
10684
  : undefined,
10888
10685
  intentId: __expectString(output.intentId),
10889
10686
  intentName: __expectString(output.intentName),
10890
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
10687
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
10891
10688
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
10892
10689
  : undefined,
10893
- outputContexts: output.outputContexts !== undefined && output.outputContexts !== null
10690
+ outputContexts: output.outputContexts != null
10894
10691
  ? deserializeAws_restJson1OutputContextsList(output.outputContexts, context)
10895
10692
  : undefined,
10896
10693
  parentIntentSignature: __expectString(output.parentIntentSignature),
@@ -10922,35 +10719,27 @@ var deserializeAws_restJson1LambdaCodeHook = function (output, context) {
10922
10719
  };
10923
10720
  var deserializeAws_restJson1LexTranscriptFilter = function (output, context) {
10924
10721
  return {
10925
- dateRangeFilter: output.dateRangeFilter !== undefined && output.dateRangeFilter !== null
10722
+ dateRangeFilter: output.dateRangeFilter != null
10926
10723
  ? deserializeAws_restJson1DateRangeFilter(output.dateRangeFilter, context)
10927
10724
  : undefined,
10928
10725
  };
10929
10726
  };
10930
10727
  var deserializeAws_restJson1Message = function (output, context) {
10931
10728
  return {
10932
- customPayload: output.customPayload !== undefined && output.customPayload !== null
10933
- ? deserializeAws_restJson1CustomPayload(output.customPayload, context)
10934
- : undefined,
10935
- imageResponseCard: output.imageResponseCard !== undefined && output.imageResponseCard !== null
10729
+ customPayload: output.customPayload != null ? deserializeAws_restJson1CustomPayload(output.customPayload, context) : undefined,
10730
+ imageResponseCard: output.imageResponseCard != null
10936
10731
  ? deserializeAws_restJson1ImageResponseCard(output.imageResponseCard, context)
10937
10732
  : undefined,
10938
- plainTextMessage: output.plainTextMessage !== undefined && output.plainTextMessage !== null
10733
+ plainTextMessage: output.plainTextMessage != null
10939
10734
  ? deserializeAws_restJson1PlainTextMessage(output.plainTextMessage, context)
10940
10735
  : undefined,
10941
- ssmlMessage: output.ssmlMessage !== undefined && output.ssmlMessage !== null
10942
- ? deserializeAws_restJson1SSMLMessage(output.ssmlMessage, context)
10943
- : undefined,
10736
+ ssmlMessage: output.ssmlMessage != null ? deserializeAws_restJson1SSMLMessage(output.ssmlMessage, context) : undefined,
10944
10737
  };
10945
10738
  };
10946
10739
  var deserializeAws_restJson1MessageGroup = function (output, context) {
10947
10740
  return {
10948
- message: output.message !== undefined && output.message !== null
10949
- ? deserializeAws_restJson1Message(output.message, context)
10950
- : undefined,
10951
- variations: output.variations !== undefined && output.variations !== null
10952
- ? deserializeAws_restJson1MessageVariationsList(output.variations, context)
10953
- : undefined,
10741
+ message: output.message != null ? deserializeAws_restJson1Message(output.message, context) : undefined,
10742
+ variations: output.variations != null ? deserializeAws_restJson1MessageVariationsList(output.variations, context) : undefined,
10954
10743
  };
10955
10744
  };
10956
10745
  var deserializeAws_restJson1MessageGroupsList = function (output, context) {
@@ -11016,7 +10805,7 @@ var deserializeAws_restJson1OutputContextsList = function (output, context) {
11016
10805
  };
11017
10806
  var deserializeAws_restJson1PathFormat = function (output, context) {
11018
10807
  return {
11019
- objectPrefixes: output.objectPrefixes !== undefined && output.objectPrefixes !== null
10808
+ objectPrefixes: output.objectPrefixes != null
11020
10809
  ? deserializeAws_restJson1ObjectPrefixes(output.objectPrefixes, context)
11021
10810
  : undefined,
11022
10811
  };
@@ -11028,13 +10817,13 @@ var deserializeAws_restJson1PlainTextMessage = function (output, context) {
11028
10817
  };
11029
10818
  var deserializeAws_restJson1PostFulfillmentStatusSpecification = function (output, context) {
11030
10819
  return {
11031
- failureResponse: output.failureResponse !== undefined && output.failureResponse !== null
10820
+ failureResponse: output.failureResponse != null
11032
10821
  ? deserializeAws_restJson1ResponseSpecification(output.failureResponse, context)
11033
10822
  : undefined,
11034
- successResponse: output.successResponse !== undefined && output.successResponse !== null
10823
+ successResponse: output.successResponse != null
11035
10824
  ? deserializeAws_restJson1ResponseSpecification(output.successResponse, context)
11036
10825
  : undefined,
11037
- timeoutResponse: output.timeoutResponse !== undefined && output.timeoutResponse !== null
10826
+ timeoutResponse: output.timeoutResponse != null
11038
10827
  ? deserializeAws_restJson1ResponseSpecification(output.timeoutResponse, context)
11039
10828
  : undefined,
11040
10829
  };
@@ -11043,7 +10832,7 @@ var deserializeAws_restJson1PromptSpecification = function (output, context) {
11043
10832
  return {
11044
10833
  allowInterrupt: __expectBoolean(output.allowInterrupt),
11045
10834
  maxRetries: __expectInt32(output.maxRetries),
11046
- messageGroups: output.messageGroups !== undefined && output.messageGroups !== null
10835
+ messageGroups: output.messageGroups != null
11047
10836
  ? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
11048
10837
  : undefined,
11049
10838
  messageSelectionStrategy: __expectString(output.messageSelectionStrategy),
@@ -11087,7 +10876,7 @@ var deserializeAws_restJson1RelativeAggregationDuration = function (output, cont
11087
10876
  var deserializeAws_restJson1ResponseSpecification = function (output, context) {
11088
10877
  return {
11089
10878
  allowInterrupt: __expectBoolean(output.allowInterrupt),
11090
- messageGroups: output.messageGroups !== undefined && output.messageGroups !== null
10879
+ messageGroups: output.messageGroups != null
11091
10880
  ? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
11092
10881
  : undefined,
11093
10882
  };
@@ -11102,11 +10891,9 @@ var deserializeAws_restJson1S3BucketLogDestination = function (output, context)
11102
10891
  var deserializeAws_restJson1S3BucketTranscriptSource = function (output, context) {
11103
10892
  return {
11104
10893
  kmsKeyArn: __expectString(output.kmsKeyArn),
11105
- pathFormat: output.pathFormat !== undefined && output.pathFormat !== null
11106
- ? deserializeAws_restJson1PathFormat(output.pathFormat, context)
11107
- : undefined,
10894
+ pathFormat: output.pathFormat != null ? deserializeAws_restJson1PathFormat(output.pathFormat, context) : undefined,
11108
10895
  s3BucketName: __expectString(output.s3BucketName),
11109
- transcriptFilter: output.transcriptFilter !== undefined && output.transcriptFilter !== null
10896
+ transcriptFilter: output.transcriptFilter != null
11110
10897
  ? deserializeAws_restJson1TranscriptFilter(output.transcriptFilter, context)
11111
10898
  : undefined,
11112
10899
  transcriptFormat: __expectString(output.transcriptFormat),
@@ -11156,7 +10943,7 @@ var deserializeAws_restJson1SlotDefaultValueList = function (output, context) {
11156
10943
  };
11157
10944
  var deserializeAws_restJson1SlotDefaultValueSpecification = function (output, context) {
11158
10945
  return {
11159
- defaultValueList: output.defaultValueList !== undefined && output.defaultValueList !== null
10946
+ defaultValueList: output.defaultValueList != null
11160
10947
  ? deserializeAws_restJson1SlotDefaultValueList(output.defaultValueList, context)
11161
10948
  : undefined,
11162
10949
  };
@@ -11181,14 +10968,14 @@ var deserializeAws_restJson1SlotPriority = function (output, context) {
11181
10968
  var deserializeAws_restJson1SlotSummary = function (output, context) {
11182
10969
  return {
11183
10970
  description: __expectString(output.description),
11184
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
10971
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
11185
10972
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
11186
10973
  : undefined,
11187
10974
  slotConstraint: __expectString(output.slotConstraint),
11188
10975
  slotId: __expectString(output.slotId),
11189
10976
  slotName: __expectString(output.slotName),
11190
10977
  slotTypeId: __expectString(output.slotTypeId),
11191
- valueElicitationPromptSpecification: output.valueElicitationPromptSpecification !== undefined && output.valueElicitationPromptSpecification !== null
10978
+ valueElicitationPromptSpecification: output.valueElicitationPromptSpecification != null
11192
10979
  ? deserializeAws_restJson1PromptSpecification(output.valueElicitationPromptSpecification, context)
11193
10980
  : undefined,
11194
10981
  };
@@ -11212,7 +10999,7 @@ var deserializeAws_restJson1SlotTypeStatistics = function (output, context) {
11212
10999
  var deserializeAws_restJson1SlotTypeSummary = function (output, context) {
11213
11000
  return {
11214
11001
  description: __expectString(output.description),
11215
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
11002
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
11216
11003
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
11217
11004
  : undefined,
11218
11005
  parentSlotTypeSignature: __expectString(output.parentSlotTypeSignature),
@@ -11234,12 +11021,8 @@ var deserializeAws_restJson1SlotTypeSummaryList = function (output, context) {
11234
11021
  };
11235
11022
  var deserializeAws_restJson1SlotTypeValue = function (output, context) {
11236
11023
  return {
11237
- sampleValue: output.sampleValue !== undefined && output.sampleValue !== null
11238
- ? deserializeAws_restJson1SampleValue(output.sampleValue, context)
11239
- : undefined,
11240
- synonyms: output.synonyms !== undefined && output.synonyms !== null
11241
- ? deserializeAws_restJson1SynonymList(output.synonyms, context)
11242
- : undefined,
11024
+ sampleValue: output.sampleValue != null ? deserializeAws_restJson1SampleValue(output.sampleValue, context) : undefined,
11025
+ synonyms: output.synonyms != null ? deserializeAws_restJson1SynonymList(output.synonyms, context) : undefined,
11243
11026
  };
11244
11027
  };
11245
11028
  var deserializeAws_restJson1SlotTypeValues = function (output, context) {
@@ -11255,17 +11038,17 @@ var deserializeAws_restJson1SlotTypeValues = function (output, context) {
11255
11038
  };
11256
11039
  var deserializeAws_restJson1SlotValueElicitationSetting = function (output, context) {
11257
11040
  return {
11258
- defaultValueSpecification: output.defaultValueSpecification !== undefined && output.defaultValueSpecification !== null
11041
+ defaultValueSpecification: output.defaultValueSpecification != null
11259
11042
  ? deserializeAws_restJson1SlotDefaultValueSpecification(output.defaultValueSpecification, context)
11260
11043
  : undefined,
11261
- promptSpecification: output.promptSpecification !== undefined && output.promptSpecification !== null
11044
+ promptSpecification: output.promptSpecification != null
11262
11045
  ? deserializeAws_restJson1PromptSpecification(output.promptSpecification, context)
11263
11046
  : undefined,
11264
- sampleUtterances: output.sampleUtterances !== undefined && output.sampleUtterances !== null
11047
+ sampleUtterances: output.sampleUtterances != null
11265
11048
  ? deserializeAws_restJson1SampleUtterancesList(output.sampleUtterances, context)
11266
11049
  : undefined,
11267
11050
  slotConstraint: __expectString(output.slotConstraint),
11268
- waitAndContinueSpecification: output.waitAndContinueSpecification !== undefined && output.waitAndContinueSpecification !== null
11051
+ waitAndContinueSpecification: output.waitAndContinueSpecification != null
11269
11052
  ? deserializeAws_restJson1WaitAndContinueSpecification(output.waitAndContinueSpecification, context)
11270
11053
  : undefined,
11271
11054
  };
@@ -11277,10 +11060,10 @@ var deserializeAws_restJson1SlotValueRegexFilter = function (output, context) {
11277
11060
  };
11278
11061
  var deserializeAws_restJson1SlotValueSelectionSetting = function (output, context) {
11279
11062
  return {
11280
- advancedRecognitionSetting: output.advancedRecognitionSetting !== undefined && output.advancedRecognitionSetting !== null
11063
+ advancedRecognitionSetting: output.advancedRecognitionSetting != null
11281
11064
  ? deserializeAws_restJson1AdvancedRecognitionSetting(output.advancedRecognitionSetting, context)
11282
11065
  : undefined,
11283
- regexFilter: output.regexFilter !== undefined && output.regexFilter !== null
11066
+ regexFilter: output.regexFilter != null
11284
11067
  ? deserializeAws_restJson1SlotValueRegexFilter(output.regexFilter, context)
11285
11068
  : undefined,
11286
11069
  resolutionStrategy: __expectString(output.resolutionStrategy),
@@ -11295,7 +11078,7 @@ var deserializeAws_restJson1StillWaitingResponseSpecification = function (output
11295
11078
  return {
11296
11079
  allowInterrupt: __expectBoolean(output.allowInterrupt),
11297
11080
  frequencyInSeconds: __expectInt32(output.frequencyInSeconds),
11298
- messageGroups: output.messageGroups !== undefined && output.messageGroups !== null
11081
+ messageGroups: output.messageGroups != null
11299
11082
  ? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
11300
11083
  : undefined,
11301
11084
  timeoutInSeconds: __expectInt32(output.timeoutInSeconds),
@@ -11324,16 +11107,14 @@ var deserializeAws_restJson1TagMap = function (output, context) {
11324
11107
  };
11325
11108
  var deserializeAws_restJson1TextLogDestination = function (output, context) {
11326
11109
  return {
11327
- cloudWatch: output.cloudWatch !== undefined && output.cloudWatch !== null
11110
+ cloudWatch: output.cloudWatch != null
11328
11111
  ? deserializeAws_restJson1CloudWatchLogGroupLogDestination(output.cloudWatch, context)
11329
11112
  : undefined,
11330
11113
  };
11331
11114
  };
11332
11115
  var deserializeAws_restJson1TextLogSetting = function (output, context) {
11333
11116
  return {
11334
- destination: output.destination !== undefined && output.destination !== null
11335
- ? deserializeAws_restJson1TextLogDestination(output.destination, context)
11336
- : undefined,
11117
+ destination: output.destination != null ? deserializeAws_restJson1TextLogDestination(output.destination, context) : undefined,
11337
11118
  enabled: __expectBoolean(output.enabled),
11338
11119
  };
11339
11120
  };
@@ -11350,21 +11131,21 @@ var deserializeAws_restJson1TextLogSettingsList = function (output, context) {
11350
11131
  };
11351
11132
  var deserializeAws_restJson1TranscriptFilter = function (output, context) {
11352
11133
  return {
11353
- lexTranscriptFilter: output.lexTranscriptFilter !== undefined && output.lexTranscriptFilter !== null
11134
+ lexTranscriptFilter: output.lexTranscriptFilter != null
11354
11135
  ? deserializeAws_restJson1LexTranscriptFilter(output.lexTranscriptFilter, context)
11355
11136
  : undefined,
11356
11137
  };
11357
11138
  };
11358
11139
  var deserializeAws_restJson1TranscriptSourceSetting = function (output, context) {
11359
11140
  return {
11360
- s3BucketTranscriptSource: output.s3BucketTranscriptSource !== undefined && output.s3BucketTranscriptSource !== null
11141
+ s3BucketTranscriptSource: output.s3BucketTranscriptSource != null
11361
11142
  ? deserializeAws_restJson1S3BucketTranscriptSource(output.s3BucketTranscriptSource, context)
11362
11143
  : undefined,
11363
11144
  };
11364
11145
  };
11365
11146
  var deserializeAws_restJson1UtteranceAggregationDuration = function (output, context) {
11366
11147
  return {
11367
- relativeAggregationDuration: output.relativeAggregationDuration !== undefined && output.relativeAggregationDuration !== null
11148
+ relativeAggregationDuration: output.relativeAggregationDuration != null
11368
11149
  ? deserializeAws_restJson1RelativeAggregationDuration(output.relativeAggregationDuration, context)
11369
11150
  : undefined,
11370
11151
  };
@@ -11378,13 +11159,13 @@ var deserializeAws_restJson1VoiceSettings = function (output, context) {
11378
11159
  var deserializeAws_restJson1WaitAndContinueSpecification = function (output, context) {
11379
11160
  return {
11380
11161
  active: __expectBoolean(output.active),
11381
- continueResponse: output.continueResponse !== undefined && output.continueResponse !== null
11162
+ continueResponse: output.continueResponse != null
11382
11163
  ? deserializeAws_restJson1ResponseSpecification(output.continueResponse, context)
11383
11164
  : undefined,
11384
- stillWaitingResponse: output.stillWaitingResponse !== undefined && output.stillWaitingResponse !== null
11165
+ stillWaitingResponse: output.stillWaitingResponse != null
11385
11166
  ? deserializeAws_restJson1StillWaitingResponseSpecification(output.stillWaitingResponse, context)
11386
11167
  : undefined,
11387
- waitingResponse: output.waitingResponse !== undefined && output.waitingResponse !== null
11168
+ waitingResponse: output.waitingResponse != null
11388
11169
  ? deserializeAws_restJson1ResponseSpecification(output.waitingResponse, context)
11389
11170
  : undefined,
11390
11171
  };