@aws-sdk/client-lex-models-v2 3.121.0 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/models/models_0.js +9 -4
- package/dist-cjs/protocols/Aws_restJson1.js +457 -673
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +282 -499
- package/dist-types/models/models_0.d.ts +11 -3
- package/dist-types/ts3.4/models/models_0.d.ts +6 -0
- package/package.json +27 -27
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
204
|
-
input.botVersionLocaleSpecification !== null && {
|
|
194
|
+
body = JSON.stringify(__assign(__assign({}, (input.botVersionLocaleSpecification != null && {
|
|
205
195
|
botVersionLocaleSpecification: serializeAws_restJson1BotVersionLocaleSpecification(input.botVersionLocaleSpecification, context),
|
|
206
|
-
})), (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
|
|
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
|
|
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
|
|
292
|
-
input.fulfillmentCodeHook !== null && {
|
|
279
|
+
})), (input.fulfillmentCodeHook != null && {
|
|
293
280
|
fulfillmentCodeHook: serializeAws_restJson1FulfillmentCodeHookSettings(input.fulfillmentCodeHook, context),
|
|
294
|
-
})), (input.inputContexts
|
|
295
|
-
input.inputContexts !== null && {
|
|
281
|
+
})), (input.inputContexts != null && {
|
|
296
282
|
inputContexts: serializeAws_restJson1InputContextsList(input.inputContexts, context),
|
|
297
|
-
})), (input.intentClosingSetting
|
|
298
|
-
input.intentClosingSetting !== null && {
|
|
283
|
+
})), (input.intentClosingSetting != null && {
|
|
299
284
|
intentClosingSetting: serializeAws_restJson1IntentClosingSetting(input.intentClosingSetting, context),
|
|
300
|
-
})), (input.intentConfirmationSetting
|
|
301
|
-
input.intentConfirmationSetting !== null && {
|
|
285
|
+
})), (input.intentConfirmationSetting != null && {
|
|
302
286
|
intentConfirmationSetting: serializeAws_restJson1IntentConfirmationSetting(input.intentConfirmationSetting, context),
|
|
303
|
-
})), (input.intentName
|
|
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
|
|
307
|
-
input.outputContexts !== null && {
|
|
289
|
+
})), (input.outputContexts != null && {
|
|
308
290
|
outputContexts: serializeAws_restJson1OutputContextsList(input.outputContexts, context),
|
|
309
|
-
})), (input.parentIntentSignature
|
|
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
|
|
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
|
|
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
|
|
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
|
|
455
|
-
input.obfuscationSetting !== null && {
|
|
430
|
+
})), (input.obfuscationSetting != null && {
|
|
456
431
|
obfuscationSetting: serializeAws_restJson1ObfuscationSetting(input.obfuscationSetting, context),
|
|
457
|
-
})), (input.slotName
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1756
|
-
|
|
1757
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2419
|
-
|
|
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
|
|
2475
|
-
input.encryptionSetting !== null && {
|
|
2427
|
+
body = JSON.stringify(__assign(__assign({}, (input.encryptionSetting != null && {
|
|
2476
2428
|
encryptionSetting: serializeAws_restJson1EncryptionSetting(input.encryptionSetting, context),
|
|
2477
|
-
})), (input.transcriptSourceSetting
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2895
|
-
input.fulfillmentCodeHook !== null && {
|
|
2835
|
+
})), (input.fulfillmentCodeHook != null && {
|
|
2896
2836
|
fulfillmentCodeHook: serializeAws_restJson1FulfillmentCodeHookSettings(input.fulfillmentCodeHook, context),
|
|
2897
|
-
})), (input.inputContexts
|
|
2898
|
-
input.inputContexts !== null && {
|
|
2837
|
+
})), (input.inputContexts != null && {
|
|
2899
2838
|
inputContexts: serializeAws_restJson1InputContextsList(input.inputContexts, context),
|
|
2900
|
-
})), (input.intentClosingSetting
|
|
2901
|
-
input.intentClosingSetting !== null && {
|
|
2839
|
+
})), (input.intentClosingSetting != null && {
|
|
2902
2840
|
intentClosingSetting: serializeAws_restJson1IntentClosingSetting(input.intentClosingSetting, context),
|
|
2903
|
-
})), (input.intentConfirmationSetting
|
|
2904
|
-
input.intentConfirmationSetting !== null && {
|
|
2841
|
+
})), (input.intentConfirmationSetting != null && {
|
|
2905
2842
|
intentConfirmationSetting: serializeAws_restJson1IntentConfirmationSetting(input.intentConfirmationSetting, context),
|
|
2906
|
-
})), (input.intentName
|
|
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
|
|
2910
|
-
input.outputContexts !== null && {
|
|
2845
|
+
})), (input.outputContexts != null && {
|
|
2911
2846
|
outputContexts: serializeAws_restJson1OutputContextsList(input.outputContexts, context),
|
|
2912
|
-
})), (input.parentIntentSignature
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3034
|
-
input.obfuscationSetting !== null && {
|
|
2964
|
+
})), (input.obfuscationSetting != null && {
|
|
3035
2965
|
obfuscationSetting: serializeAws_restJson1ObfuscationSetting(input.obfuscationSetting, context),
|
|
3036
|
-
})), (input.slotName
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9501
|
-
input.destination !== null && {
|
|
9421
|
+
return __assign(__assign({}, (input.destination != null && {
|
|
9502
9422
|
destination: serializeAws_restJson1AudioLogDestination(input.destination, context),
|
|
9503
|
-
})), (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
|
|
9517
|
-
input.codeHookSpecification !== null && {
|
|
9436
|
+
return __assign(__assign({}, (input.codeHookSpecification != null && {
|
|
9518
9437
|
codeHookSpecification: serializeAws_restJson1CodeHookSpecification(input.codeHookSpecification, context),
|
|
9519
|
-
})), (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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9657
|
-
input.audioLogSettings !== null && {
|
|
9564
|
+
return __assign(__assign({}, (input.audioLogSettings != null && {
|
|
9658
9565
|
audioLogSettings: serializeAws_restJson1AudioLogSettingsList(input.audioLogSettings, context),
|
|
9659
|
-
})), (input.textLogSettings
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9686
|
-
input.associatedTranscriptsPassword !== null && {
|
|
9589
|
+
return __assign(__assign(__assign({}, (input.associatedTranscriptsPassword != null && {
|
|
9687
9590
|
associatedTranscriptsPassword: input.associatedTranscriptsPassword,
|
|
9688
|
-
})), (input.botLocaleExportPassword
|
|
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
|
|
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
|
|
9707
|
-
input.botExportSpecification !== null && {
|
|
9607
|
+
return __assign(__assign(__assign({}, (input.botExportSpecification != null && {
|
|
9708
9608
|
botExportSpecification: serializeAws_restJson1BotExportSpecification(input.botExportSpecification, context),
|
|
9709
|
-
})), (input.botLocaleExportSpecification
|
|
9710
|
-
input.botLocaleExportSpecification !== null && {
|
|
9609
|
+
})), (input.botLocaleExportSpecification != null && {
|
|
9711
9610
|
botLocaleExportSpecification: serializeAws_restJson1BotLocaleExportSpecification(input.botLocaleExportSpecification, context),
|
|
9712
|
-
})), (input.customVocabularyExportSpecification
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9798
|
-
input.botImportSpecification !== null && {
|
|
9680
|
+
return __assign(__assign(__assign({}, (input.botImportSpecification != null && {
|
|
9799
9681
|
botImportSpecification: serializeAws_restJson1BotImportSpecification(input.botImportSpecification, context),
|
|
9800
|
-
})), (input.botLocaleImportSpecification
|
|
9801
|
-
input.botLocaleImportSpecification !== null && {
|
|
9682
|
+
})), (input.botLocaleImportSpecification != null && {
|
|
9802
9683
|
botLocaleImportSpecification: serializeAws_restJson1BotLocaleImportSpecification(input.botLocaleImportSpecification, context),
|
|
9803
|
-
})), (input.customVocabularyImportSpecification
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9873
|
-
input.customPayload !== null && {
|
|
9744
|
+
return __assign(__assign(__assign(__assign({}, (input.customPayload != null && {
|
|
9874
9745
|
customPayload: serializeAws_restJson1CustomPayload(input.customPayload, context),
|
|
9875
|
-
})), (input.imageResponseCard
|
|
9876
|
-
input.imageResponseCard !== null && {
|
|
9746
|
+
})), (input.imageResponseCard != null && {
|
|
9877
9747
|
imageResponseCard: serializeAws_restJson1ImageResponseCard(input.imageResponseCard, context),
|
|
9878
|
-
})), (input.plainTextMessage
|
|
9879
|
-
input.plainTextMessage !== null && {
|
|
9748
|
+
})), (input.plainTextMessage != null && {
|
|
9880
9749
|
plainTextMessage: serializeAws_restJson1PlainTextMessage(input.plainTextMessage, context),
|
|
9881
|
-
})), (input.ssmlMessage
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9964
|
-
input.failureResponse !== null && {
|
|
9825
|
+
return __assign(__assign(__assign({}, (input.failureResponse != null && {
|
|
9965
9826
|
failureResponse: serializeAws_restJson1ResponseSpecification(input.failureResponse, context),
|
|
9966
|
-
})), (input.successResponse
|
|
9967
|
-
input.successResponse !== null && {
|
|
9827
|
+
})), (input.successResponse != null && {
|
|
9968
9828
|
successResponse: serializeAws_restJson1ResponseSpecification(input.successResponse, context),
|
|
9969
|
-
})), (input.timeoutResponse
|
|
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
|
|
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,35 +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({}, (input.allowInterrupt
|
|
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
|
-
}));
|
|
9849
|
+
})), (input.messageSelectionStrategy != null && { messageSelectionStrategy: input.messageSelectionStrategy }));
|
|
9993
9850
|
};
|
|
9994
9851
|
var serializeAws_restJson1RelativeAggregationDuration = function (input, context) {
|
|
9995
|
-
return __assign(__assign({}, (input.timeDimension
|
|
9852
|
+
return __assign(__assign({}, (input.timeDimension != null && { timeDimension: input.timeDimension })), (input.timeValue != null && { timeValue: input.timeValue }));
|
|
9996
9853
|
};
|
|
9997
9854
|
var serializeAws_restJson1ResponseSpecification = function (input, context) {
|
|
9998
|
-
return __assign(__assign({}, (input.allowInterrupt
|
|
9999
|
-
input.allowInterrupt !== null && { allowInterrupt: input.allowInterrupt })), (input.messageGroups !== undefined &&
|
|
10000
|
-
input.messageGroups !== null && {
|
|
9855
|
+
return __assign(__assign({}, (input.allowInterrupt != null && { allowInterrupt: input.allowInterrupt })), (input.messageGroups != null && {
|
|
10001
9856
|
messageGroups: serializeAws_restJson1MessageGroupsList(input.messageGroups, context),
|
|
10002
9857
|
}));
|
|
10003
9858
|
};
|
|
10004
9859
|
var serializeAws_restJson1S3BucketLogDestination = function (input, context) {
|
|
10005
|
-
return __assign(__assign(__assign({}, (input.kmsKeyArn
|
|
9860
|
+
return __assign(__assign(__assign({}, (input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn })), (input.logPrefix != null && { logPrefix: input.logPrefix })), (input.s3BucketArn != null && { s3BucketArn: input.s3BucketArn }));
|
|
10006
9861
|
};
|
|
10007
9862
|
var serializeAws_restJson1S3BucketTranscriptSource = function (input, context) {
|
|
10008
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.kmsKeyArn
|
|
10009
|
-
input.pathFormat !== null && { pathFormat: serializeAws_restJson1PathFormat(input.pathFormat, context) })), (input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName })), (input.transcriptFilter !== undefined &&
|
|
10010
|
-
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 && {
|
|
10011
9864
|
transcriptFilter: serializeAws_restJson1TranscriptFilter(input.transcriptFilter, context),
|
|
10012
|
-
})), (input.transcriptFormat
|
|
10013
|
-
input.transcriptFormat !== null && { transcriptFormat: input.transcriptFormat }));
|
|
9865
|
+
})), (input.transcriptFormat != null && { transcriptFormat: input.transcriptFormat }));
|
|
10014
9866
|
};
|
|
10015
9867
|
var serializeAws_restJson1SampleUtterance = function (input, context) {
|
|
10016
|
-
return __assign({}, (input.utterance
|
|
9868
|
+
return __assign({}, (input.utterance != null && { utterance: input.utterance }));
|
|
10017
9869
|
};
|
|
10018
9870
|
var serializeAws_restJson1SampleUtterancesList = function (input, context) {
|
|
10019
9871
|
return input
|
|
@@ -10026,14 +9878,13 @@ var serializeAws_restJson1SampleUtterancesList = function (input, context) {
|
|
|
10026
9878
|
});
|
|
10027
9879
|
};
|
|
10028
9880
|
var serializeAws_restJson1SampleValue = function (input, context) {
|
|
10029
|
-
return __assign({}, (input.value
|
|
9881
|
+
return __assign({}, (input.value != null && { value: input.value }));
|
|
10030
9882
|
};
|
|
10031
9883
|
var serializeAws_restJson1SentimentAnalysisSettings = function (input, context) {
|
|
10032
|
-
return __assign({}, (input.detectSentiment
|
|
10033
|
-
input.detectSentiment !== null && { detectSentiment: input.detectSentiment }));
|
|
9884
|
+
return __assign({}, (input.detectSentiment != null && { detectSentiment: input.detectSentiment }));
|
|
10034
9885
|
};
|
|
10035
9886
|
var serializeAws_restJson1SlotDefaultValue = function (input, context) {
|
|
10036
|
-
return __assign({}, (input.defaultValue
|
|
9887
|
+
return __assign({}, (input.defaultValue != null && { defaultValue: input.defaultValue }));
|
|
10037
9888
|
};
|
|
10038
9889
|
var serializeAws_restJson1SlotDefaultValueList = function (input, context) {
|
|
10039
9890
|
return input
|
|
@@ -10046,14 +9897,12 @@ var serializeAws_restJson1SlotDefaultValueList = function (input, context) {
|
|
|
10046
9897
|
});
|
|
10047
9898
|
};
|
|
10048
9899
|
var serializeAws_restJson1SlotDefaultValueSpecification = function (input, context) {
|
|
10049
|
-
return __assign({}, (input.defaultValueList
|
|
10050
|
-
input.defaultValueList !== null && {
|
|
9900
|
+
return __assign({}, (input.defaultValueList != null && {
|
|
10051
9901
|
defaultValueList: serializeAws_restJson1SlotDefaultValueList(input.defaultValueList, context),
|
|
10052
9902
|
}));
|
|
10053
9903
|
};
|
|
10054
9904
|
var serializeAws_restJson1SlotFilter = function (input, context) {
|
|
10055
|
-
return __assign(__assign(__assign({}, (input.name
|
|
10056
|
-
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) }));
|
|
10057
9906
|
};
|
|
10058
9907
|
var serializeAws_restJson1SlotFilters = function (input, context) {
|
|
10059
9908
|
return input
|
|
@@ -10076,14 +9925,13 @@ var serializeAws_restJson1SlotPrioritiesList = function (input, context) {
|
|
|
10076
9925
|
});
|
|
10077
9926
|
};
|
|
10078
9927
|
var serializeAws_restJson1SlotPriority = function (input, context) {
|
|
10079
|
-
return __assign(__assign({}, (input.priority
|
|
9928
|
+
return __assign(__assign({}, (input.priority != null && { priority: input.priority })), (input.slotId != null && { slotId: input.slotId }));
|
|
10080
9929
|
};
|
|
10081
9930
|
var serializeAws_restJson1SlotSortBy = function (input, context) {
|
|
10082
|
-
return __assign(__assign({}, (input.attribute
|
|
9931
|
+
return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
|
|
10083
9932
|
};
|
|
10084
9933
|
var serializeAws_restJson1SlotTypeFilter = function (input, context) {
|
|
10085
|
-
return __assign(__assign(__assign({}, (input.name
|
|
10086
|
-
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) }));
|
|
10087
9935
|
};
|
|
10088
9936
|
var serializeAws_restJson1SlotTypeFilters = function (input, context) {
|
|
10089
9937
|
return input
|
|
@@ -10096,12 +9944,10 @@ var serializeAws_restJson1SlotTypeFilters = function (input, context) {
|
|
|
10096
9944
|
});
|
|
10097
9945
|
};
|
|
10098
9946
|
var serializeAws_restJson1SlotTypeSortBy = function (input, context) {
|
|
10099
|
-
return __assign(__assign({}, (input.attribute
|
|
9947
|
+
return __assign(__assign({}, (input.attribute != null && { attribute: input.attribute })), (input.order != null && { order: input.order }));
|
|
10100
9948
|
};
|
|
10101
9949
|
var serializeAws_restJson1SlotTypeValue = function (input, context) {
|
|
10102
|
-
return __assign(__assign({}, (input.sampleValue
|
|
10103
|
-
input.sampleValue !== null && { sampleValue: serializeAws_restJson1SampleValue(input.sampleValue, context) })), (input.synonyms !== undefined &&
|
|
10104
|
-
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) }));
|
|
10105
9951
|
};
|
|
10106
9952
|
var serializeAws_restJson1SlotTypeValues = function (input, context) {
|
|
10107
9953
|
return input
|
|
@@ -10114,45 +9960,33 @@ var serializeAws_restJson1SlotTypeValues = function (input, context) {
|
|
|
10114
9960
|
});
|
|
10115
9961
|
};
|
|
10116
9962
|
var serializeAws_restJson1SlotValueElicitationSetting = function (input, context) {
|
|
10117
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.defaultValueSpecification
|
|
10118
|
-
input.defaultValueSpecification !== null && {
|
|
9963
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.defaultValueSpecification != null && {
|
|
10119
9964
|
defaultValueSpecification: serializeAws_restJson1SlotDefaultValueSpecification(input.defaultValueSpecification, context),
|
|
10120
|
-
})), (input.promptSpecification
|
|
10121
|
-
input.promptSpecification !== null && {
|
|
9965
|
+
})), (input.promptSpecification != null && {
|
|
10122
9966
|
promptSpecification: serializeAws_restJson1PromptSpecification(input.promptSpecification, context),
|
|
10123
|
-
})), (input.sampleUtterances
|
|
10124
|
-
input.sampleUtterances !== null && {
|
|
9967
|
+
})), (input.sampleUtterances != null && {
|
|
10125
9968
|
sampleUtterances: serializeAws_restJson1SampleUtterancesList(input.sampleUtterances, context),
|
|
10126
|
-
})), (input.slotConstraint
|
|
10127
|
-
input.slotConstraint !== null && { slotConstraint: input.slotConstraint })), (input.waitAndContinueSpecification !== undefined &&
|
|
10128
|
-
input.waitAndContinueSpecification !== null && {
|
|
9969
|
+
})), (input.slotConstraint != null && { slotConstraint: input.slotConstraint })), (input.waitAndContinueSpecification != null && {
|
|
10129
9970
|
waitAndContinueSpecification: serializeAws_restJson1WaitAndContinueSpecification(input.waitAndContinueSpecification, context),
|
|
10130
9971
|
}));
|
|
10131
9972
|
};
|
|
10132
9973
|
var serializeAws_restJson1SlotValueRegexFilter = function (input, context) {
|
|
10133
|
-
return __assign({}, (input.pattern
|
|
9974
|
+
return __assign({}, (input.pattern != null && { pattern: input.pattern }));
|
|
10134
9975
|
};
|
|
10135
9976
|
var serializeAws_restJson1SlotValueSelectionSetting = function (input, context) {
|
|
10136
|
-
return __assign(__assign(__assign({}, (input.advancedRecognitionSetting
|
|
10137
|
-
input.advancedRecognitionSetting !== null && {
|
|
9977
|
+
return __assign(__assign(__assign({}, (input.advancedRecognitionSetting != null && {
|
|
10138
9978
|
advancedRecognitionSetting: serializeAws_restJson1AdvancedRecognitionSetting(input.advancedRecognitionSetting, context),
|
|
10139
|
-
})), (input.regexFilter
|
|
10140
|
-
input.regexFilter !== null && {
|
|
9979
|
+
})), (input.regexFilter != null && {
|
|
10141
9980
|
regexFilter: serializeAws_restJson1SlotValueRegexFilter(input.regexFilter, context),
|
|
10142
|
-
})), (input.resolutionStrategy
|
|
10143
|
-
input.resolutionStrategy !== null && { resolutionStrategy: input.resolutionStrategy }));
|
|
9981
|
+
})), (input.resolutionStrategy != null && { resolutionStrategy: input.resolutionStrategy }));
|
|
10144
9982
|
};
|
|
10145
9983
|
var serializeAws_restJson1SSMLMessage = function (input, context) {
|
|
10146
|
-
return __assign({}, (input.value
|
|
9984
|
+
return __assign({}, (input.value != null && { value: input.value }));
|
|
10147
9985
|
};
|
|
10148
9986
|
var serializeAws_restJson1StillWaitingResponseSpecification = function (input, context) {
|
|
10149
|
-
return __assign(__assign(__assign(__assign({}, (input.allowInterrupt
|
|
10150
|
-
input.allowInterrupt !== null && { allowInterrupt: input.allowInterrupt })), (input.frequencyInSeconds !== undefined &&
|
|
10151
|
-
input.frequencyInSeconds !== null && { frequencyInSeconds: input.frequencyInSeconds })), (input.messageGroups !== undefined &&
|
|
10152
|
-
input.messageGroups !== null && {
|
|
9987
|
+
return __assign(__assign(__assign(__assign({}, (input.allowInterrupt != null && { allowInterrupt: input.allowInterrupt })), (input.frequencyInSeconds != null && { frequencyInSeconds: input.frequencyInSeconds })), (input.messageGroups != null && {
|
|
10153
9988
|
messageGroups: serializeAws_restJson1MessageGroupsList(input.messageGroups, context),
|
|
10154
|
-
})), (input.timeoutInSeconds
|
|
10155
|
-
input.timeoutInSeconds !== null && { timeoutInSeconds: input.timeoutInSeconds }));
|
|
9989
|
+
})), (input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }));
|
|
10156
9990
|
};
|
|
10157
9991
|
var serializeAws_restJson1SynonymList = function (input, context) {
|
|
10158
9992
|
return input
|
|
@@ -10175,16 +10009,14 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
10175
10009
|
}, {});
|
|
10176
10010
|
};
|
|
10177
10011
|
var serializeAws_restJson1TextLogDestination = function (input, context) {
|
|
10178
|
-
return __assign({}, (input.cloudWatch
|
|
10179
|
-
input.cloudWatch !== null && {
|
|
10012
|
+
return __assign({}, (input.cloudWatch != null && {
|
|
10180
10013
|
cloudWatch: serializeAws_restJson1CloudWatchLogGroupLogDestination(input.cloudWatch, context),
|
|
10181
10014
|
}));
|
|
10182
10015
|
};
|
|
10183
10016
|
var serializeAws_restJson1TextLogSetting = function (input, context) {
|
|
10184
|
-
return __assign(__assign({}, (input.destination
|
|
10185
|
-
input.destination !== null && {
|
|
10017
|
+
return __assign(__assign({}, (input.destination != null && {
|
|
10186
10018
|
destination: serializeAws_restJson1TextLogDestination(input.destination, context),
|
|
10187
|
-
})), (input.enabled
|
|
10019
|
+
})), (input.enabled != null && { enabled: input.enabled }));
|
|
10188
10020
|
};
|
|
10189
10021
|
var serializeAws_restJson1TextLogSettingsList = function (input, context) {
|
|
10190
10022
|
return input
|
|
@@ -10197,35 +10029,29 @@ var serializeAws_restJson1TextLogSettingsList = function (input, context) {
|
|
|
10197
10029
|
});
|
|
10198
10030
|
};
|
|
10199
10031
|
var serializeAws_restJson1TranscriptFilter = function (input, context) {
|
|
10200
|
-
return __assign({}, (input.lexTranscriptFilter
|
|
10201
|
-
input.lexTranscriptFilter !== null && {
|
|
10032
|
+
return __assign({}, (input.lexTranscriptFilter != null && {
|
|
10202
10033
|
lexTranscriptFilter: serializeAws_restJson1LexTranscriptFilter(input.lexTranscriptFilter, context),
|
|
10203
10034
|
}));
|
|
10204
10035
|
};
|
|
10205
10036
|
var serializeAws_restJson1TranscriptSourceSetting = function (input, context) {
|
|
10206
|
-
return __assign({}, (input.s3BucketTranscriptSource
|
|
10207
|
-
input.s3BucketTranscriptSource !== null && {
|
|
10037
|
+
return __assign({}, (input.s3BucketTranscriptSource != null && {
|
|
10208
10038
|
s3BucketTranscriptSource: serializeAws_restJson1S3BucketTranscriptSource(input.s3BucketTranscriptSource, context),
|
|
10209
10039
|
}));
|
|
10210
10040
|
};
|
|
10211
10041
|
var serializeAws_restJson1UtteranceAggregationDuration = function (input, context) {
|
|
10212
|
-
return __assign({}, (input.relativeAggregationDuration
|
|
10213
|
-
input.relativeAggregationDuration !== null && {
|
|
10042
|
+
return __assign({}, (input.relativeAggregationDuration != null && {
|
|
10214
10043
|
relativeAggregationDuration: serializeAws_restJson1RelativeAggregationDuration(input.relativeAggregationDuration, context),
|
|
10215
10044
|
}));
|
|
10216
10045
|
};
|
|
10217
10046
|
var serializeAws_restJson1VoiceSettings = function (input, context) {
|
|
10218
|
-
return __assign(__assign({}, (input.engine
|
|
10047
|
+
return __assign(__assign({}, (input.engine != null && { engine: input.engine })), (input.voiceId != null && { voiceId: input.voiceId }));
|
|
10219
10048
|
};
|
|
10220
10049
|
var serializeAws_restJson1WaitAndContinueSpecification = function (input, context) {
|
|
10221
|
-
return __assign(__assign(__assign(__assign({}, (input.active
|
|
10222
|
-
input.continueResponse !== null && {
|
|
10050
|
+
return __assign(__assign(__assign(__assign({}, (input.active != null && { active: input.active })), (input.continueResponse != null && {
|
|
10223
10051
|
continueResponse: serializeAws_restJson1ResponseSpecification(input.continueResponse, context),
|
|
10224
|
-
})), (input.stillWaitingResponse
|
|
10225
|
-
input.stillWaitingResponse !== null && {
|
|
10052
|
+
})), (input.stillWaitingResponse != null && {
|
|
10226
10053
|
stillWaitingResponse: serializeAws_restJson1StillWaitingResponseSpecification(input.stillWaitingResponse, context),
|
|
10227
|
-
})), (input.waitingResponse
|
|
10228
|
-
input.waitingResponse !== null && {
|
|
10054
|
+
})), (input.waitingResponse != null && {
|
|
10229
10055
|
waitingResponse: serializeAws_restJson1ResponseSpecification(input.waitingResponse, context),
|
|
10230
10056
|
}));
|
|
10231
10057
|
};
|
|
@@ -10240,12 +10066,10 @@ var deserializeAws_restJson1AggregatedUtterancesSummary = function (output, cont
|
|
|
10240
10066
|
hitCount: __expectInt32(output.hitCount),
|
|
10241
10067
|
missedCount: __expectInt32(output.missedCount),
|
|
10242
10068
|
utterance: __expectString(output.utterance),
|
|
10243
|
-
utteranceFirstRecordedInAggregationDuration: output.utteranceFirstRecordedInAggregationDuration
|
|
10244
|
-
output.utteranceFirstRecordedInAggregationDuration !== null
|
|
10069
|
+
utteranceFirstRecordedInAggregationDuration: output.utteranceFirstRecordedInAggregationDuration != null
|
|
10245
10070
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.utteranceFirstRecordedInAggregationDuration)))
|
|
10246
10071
|
: undefined,
|
|
10247
|
-
utteranceLastRecordedInAggregationDuration: output.utteranceLastRecordedInAggregationDuration
|
|
10248
|
-
output.utteranceLastRecordedInAggregationDuration !== null
|
|
10072
|
+
utteranceLastRecordedInAggregationDuration: output.utteranceLastRecordedInAggregationDuration != null
|
|
10249
10073
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.utteranceLastRecordedInAggregationDuration)))
|
|
10250
10074
|
: undefined,
|
|
10251
10075
|
};
|
|
@@ -10279,16 +10103,12 @@ var deserializeAws_restJson1AssociatedTranscriptList = function (output, context
|
|
|
10279
10103
|
};
|
|
10280
10104
|
var deserializeAws_restJson1AudioLogDestination = function (output, context) {
|
|
10281
10105
|
return {
|
|
10282
|
-
s3Bucket: output.s3Bucket
|
|
10283
|
-
? deserializeAws_restJson1S3BucketLogDestination(output.s3Bucket, context)
|
|
10284
|
-
: undefined,
|
|
10106
|
+
s3Bucket: output.s3Bucket != null ? deserializeAws_restJson1S3BucketLogDestination(output.s3Bucket, context) : undefined,
|
|
10285
10107
|
};
|
|
10286
10108
|
};
|
|
10287
10109
|
var deserializeAws_restJson1AudioLogSetting = function (output, context) {
|
|
10288
10110
|
return {
|
|
10289
|
-
destination: output.destination
|
|
10290
|
-
? deserializeAws_restJson1AudioLogDestination(output.destination, context)
|
|
10291
|
-
: undefined,
|
|
10111
|
+
destination: output.destination != null ? deserializeAws_restJson1AudioLogDestination(output.destination, context) : undefined,
|
|
10292
10112
|
enabled: __expectBoolean(output.enabled),
|
|
10293
10113
|
};
|
|
10294
10114
|
};
|
|
@@ -10306,12 +10126,8 @@ var deserializeAws_restJson1AudioLogSettingsList = function (output, context) {
|
|
|
10306
10126
|
var deserializeAws_restJson1BotAliasHistoryEvent = function (output, context) {
|
|
10307
10127
|
return {
|
|
10308
10128
|
botVersion: __expectString(output.botVersion),
|
|
10309
|
-
endDate: output.endDate
|
|
10310
|
-
|
|
10311
|
-
: undefined,
|
|
10312
|
-
startDate: output.startDate !== undefined && output.startDate !== null
|
|
10313
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
|
|
10314
|
-
: undefined,
|
|
10129
|
+
endDate: output.endDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endDate))) : undefined,
|
|
10130
|
+
startDate: output.startDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate))) : undefined,
|
|
10315
10131
|
};
|
|
10316
10132
|
};
|
|
10317
10133
|
var deserializeAws_restJson1BotAliasHistoryEventsList = function (output, context) {
|
|
@@ -10327,7 +10143,7 @@ var deserializeAws_restJson1BotAliasHistoryEventsList = function (output, contex
|
|
|
10327
10143
|
};
|
|
10328
10144
|
var deserializeAws_restJson1BotAliasLocaleSettings = function (output, context) {
|
|
10329
10145
|
return {
|
|
10330
|
-
codeHookSpecification: output.codeHookSpecification
|
|
10146
|
+
codeHookSpecification: output.codeHookSpecification != null
|
|
10331
10147
|
? deserializeAws_restJson1CodeHookSpecification(output.codeHookSpecification, context)
|
|
10332
10148
|
: undefined,
|
|
10333
10149
|
enabled: __expectBoolean(output.enabled),
|
|
@@ -10349,11 +10165,11 @@ var deserializeAws_restJson1BotAliasSummary = function (output, context) {
|
|
|
10349
10165
|
botAliasName: __expectString(output.botAliasName),
|
|
10350
10166
|
botAliasStatus: __expectString(output.botAliasStatus),
|
|
10351
10167
|
botVersion: __expectString(output.botVersion),
|
|
10352
|
-
creationDateTime: output.creationDateTime
|
|
10168
|
+
creationDateTime: output.creationDateTime != null
|
|
10353
10169
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
10354
10170
|
: undefined,
|
|
10355
10171
|
description: __expectString(output.description),
|
|
10356
|
-
lastUpdatedDateTime: output.lastUpdatedDateTime
|
|
10172
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime != null
|
|
10357
10173
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
10358
10174
|
: undefined,
|
|
10359
10175
|
};
|
|
@@ -10378,17 +10194,11 @@ var deserializeAws_restJson1BotExportSpecification = function (output, context)
|
|
|
10378
10194
|
var deserializeAws_restJson1BotImportSpecification = function (output, context) {
|
|
10379
10195
|
return {
|
|
10380
10196
|
botName: __expectString(output.botName),
|
|
10381
|
-
botTags: output.botTags
|
|
10382
|
-
|
|
10383
|
-
: undefined,
|
|
10384
|
-
dataPrivacy: output.dataPrivacy !== undefined && output.dataPrivacy !== null
|
|
10385
|
-
? deserializeAws_restJson1DataPrivacy(output.dataPrivacy, context)
|
|
10386
|
-
: undefined,
|
|
10197
|
+
botTags: output.botTags != null ? deserializeAws_restJson1TagMap(output.botTags, context) : undefined,
|
|
10198
|
+
dataPrivacy: output.dataPrivacy != null ? deserializeAws_restJson1DataPrivacy(output.dataPrivacy, context) : undefined,
|
|
10387
10199
|
idleSessionTTLInSeconds: __expectInt32(output.idleSessionTTLInSeconds),
|
|
10388
10200
|
roleArn: __expectString(output.roleArn),
|
|
10389
|
-
testBotAliasTags: output.testBotAliasTags
|
|
10390
|
-
? deserializeAws_restJson1TagMap(output.testBotAliasTags, context)
|
|
10391
|
-
: undefined,
|
|
10201
|
+
testBotAliasTags: output.testBotAliasTags != null ? deserializeAws_restJson1TagMap(output.testBotAliasTags, context) : undefined,
|
|
10392
10202
|
};
|
|
10393
10203
|
};
|
|
10394
10204
|
var deserializeAws_restJson1BotLocaleExportSpecification = function (output, context) {
|
|
@@ -10401,9 +10211,7 @@ var deserializeAws_restJson1BotLocaleExportSpecification = function (output, con
|
|
|
10401
10211
|
var deserializeAws_restJson1BotLocaleHistoryEvent = function (output, context) {
|
|
10402
10212
|
return {
|
|
10403
10213
|
event: __expectString(output.event),
|
|
10404
|
-
eventDate: output.eventDate
|
|
10405
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventDate)))
|
|
10406
|
-
: undefined,
|
|
10214
|
+
eventDate: output.eventDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventDate))) : undefined,
|
|
10407
10215
|
};
|
|
10408
10216
|
};
|
|
10409
10217
|
var deserializeAws_restJson1BotLocaleHistoryEventsList = function (output, context) {
|
|
@@ -10423,19 +10231,17 @@ var deserializeAws_restJson1BotLocaleImportSpecification = function (output, con
|
|
|
10423
10231
|
botVersion: __expectString(output.botVersion),
|
|
10424
10232
|
localeId: __expectString(output.localeId),
|
|
10425
10233
|
nluIntentConfidenceThreshold: __limitedParseDouble(output.nluIntentConfidenceThreshold),
|
|
10426
|
-
voiceSettings: output.voiceSettings
|
|
10427
|
-
? deserializeAws_restJson1VoiceSettings(output.voiceSettings, context)
|
|
10428
|
-
: undefined,
|
|
10234
|
+
voiceSettings: output.voiceSettings != null ? deserializeAws_restJson1VoiceSettings(output.voiceSettings, context) : undefined,
|
|
10429
10235
|
};
|
|
10430
10236
|
};
|
|
10431
10237
|
var deserializeAws_restJson1BotLocaleSummary = function (output, context) {
|
|
10432
10238
|
return {
|
|
10433
10239
|
botLocaleStatus: __expectString(output.botLocaleStatus),
|
|
10434
10240
|
description: __expectString(output.description),
|
|
10435
|
-
lastBuildSubmittedDateTime: output.lastBuildSubmittedDateTime
|
|
10241
|
+
lastBuildSubmittedDateTime: output.lastBuildSubmittedDateTime != null
|
|
10436
10242
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastBuildSubmittedDateTime)))
|
|
10437
10243
|
: undefined,
|
|
10438
|
-
lastUpdatedDateTime: output.lastUpdatedDateTime
|
|
10244
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime != null
|
|
10439
10245
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
10440
10246
|
: undefined,
|
|
10441
10247
|
localeId: __expectString(output.localeId),
|
|
@@ -10457,29 +10263,25 @@ var deserializeAws_restJson1BotRecommendationResults = function (output, context
|
|
|
10457
10263
|
return {
|
|
10458
10264
|
associatedTranscriptsUrl: __expectString(output.associatedTranscriptsUrl),
|
|
10459
10265
|
botLocaleExportUrl: __expectString(output.botLocaleExportUrl),
|
|
10460
|
-
statistics: output.statistics
|
|
10266
|
+
statistics: output.statistics != null
|
|
10461
10267
|
? deserializeAws_restJson1BotRecommendationResultStatistics(output.statistics, context)
|
|
10462
10268
|
: undefined,
|
|
10463
10269
|
};
|
|
10464
10270
|
};
|
|
10465
10271
|
var deserializeAws_restJson1BotRecommendationResultStatistics = function (output, context) {
|
|
10466
10272
|
return {
|
|
10467
|
-
intents: output.intents
|
|
10468
|
-
|
|
10469
|
-
: undefined,
|
|
10470
|
-
slotTypes: output.slotTypes !== undefined && output.slotTypes !== null
|
|
10471
|
-
? deserializeAws_restJson1SlotTypeStatistics(output.slotTypes, context)
|
|
10472
|
-
: undefined,
|
|
10273
|
+
intents: output.intents != null ? deserializeAws_restJson1IntentStatistics(output.intents, context) : undefined,
|
|
10274
|
+
slotTypes: output.slotTypes != null ? deserializeAws_restJson1SlotTypeStatistics(output.slotTypes, context) : undefined,
|
|
10473
10275
|
};
|
|
10474
10276
|
};
|
|
10475
10277
|
var deserializeAws_restJson1BotRecommendationSummary = function (output, context) {
|
|
10476
10278
|
return {
|
|
10477
10279
|
botRecommendationId: __expectString(output.botRecommendationId),
|
|
10478
10280
|
botRecommendationStatus: __expectString(output.botRecommendationStatus),
|
|
10479
|
-
creationDateTime: output.creationDateTime
|
|
10281
|
+
creationDateTime: output.creationDateTime != null
|
|
10480
10282
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
10481
10283
|
: undefined,
|
|
10482
|
-
lastUpdatedDateTime: output.lastUpdatedDateTime
|
|
10284
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime != null
|
|
10483
10285
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
10484
10286
|
: undefined,
|
|
10485
10287
|
};
|
|
@@ -10501,7 +10303,7 @@ var deserializeAws_restJson1BotSummary = function (output, context) {
|
|
|
10501
10303
|
botName: __expectString(output.botName),
|
|
10502
10304
|
botStatus: __expectString(output.botStatus),
|
|
10503
10305
|
description: __expectString(output.description),
|
|
10504
|
-
lastUpdatedDateTime: output.lastUpdatedDateTime
|
|
10306
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime != null
|
|
10505
10307
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
10506
10308
|
: undefined,
|
|
10507
10309
|
latestBotVersion: __expectString(output.latestBotVersion),
|
|
@@ -10538,7 +10340,7 @@ var deserializeAws_restJson1BotVersionSummary = function (output, context) {
|
|
|
10538
10340
|
botName: __expectString(output.botName),
|
|
10539
10341
|
botStatus: __expectString(output.botStatus),
|
|
10540
10342
|
botVersion: __expectString(output.botVersion),
|
|
10541
|
-
creationDateTime: output.creationDateTime
|
|
10343
|
+
creationDateTime: output.creationDateTime != null
|
|
10542
10344
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
10543
10345
|
: undefined,
|
|
10544
10346
|
description: __expectString(output.description),
|
|
@@ -10614,17 +10416,17 @@ var deserializeAws_restJson1CloudWatchLogGroupLogDestination = function (output,
|
|
|
10614
10416
|
};
|
|
10615
10417
|
var deserializeAws_restJson1CodeHookSpecification = function (output, context) {
|
|
10616
10418
|
return {
|
|
10617
|
-
lambdaCodeHook: output.lambdaCodeHook
|
|
10419
|
+
lambdaCodeHook: output.lambdaCodeHook != null
|
|
10618
10420
|
? deserializeAws_restJson1LambdaCodeHook(output.lambdaCodeHook, context)
|
|
10619
10421
|
: undefined,
|
|
10620
10422
|
};
|
|
10621
10423
|
};
|
|
10622
10424
|
var deserializeAws_restJson1ConversationLogSettings = function (output, context) {
|
|
10623
10425
|
return {
|
|
10624
|
-
audioLogSettings: output.audioLogSettings
|
|
10426
|
+
audioLogSettings: output.audioLogSettings != null
|
|
10625
10427
|
? deserializeAws_restJson1AudioLogSettingsList(output.audioLogSettings, context)
|
|
10626
10428
|
: undefined,
|
|
10627
|
-
textLogSettings: output.textLogSettings
|
|
10429
|
+
textLogSettings: output.textLogSettings != null
|
|
10628
10430
|
? deserializeAws_restJson1TextLogSettingsList(output.textLogSettings, context)
|
|
10629
10431
|
: undefined,
|
|
10630
10432
|
};
|
|
@@ -10655,10 +10457,10 @@ var deserializeAws_restJson1DataPrivacy = function (output, context) {
|
|
|
10655
10457
|
};
|
|
10656
10458
|
var deserializeAws_restJson1DateRangeFilter = function (output, context) {
|
|
10657
10459
|
return {
|
|
10658
|
-
endDateTime: output.endDateTime
|
|
10460
|
+
endDateTime: output.endDateTime != null
|
|
10659
10461
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endDateTime)))
|
|
10660
10462
|
: undefined,
|
|
10661
|
-
startDateTime: output.startDateTime
|
|
10463
|
+
startDateTime: output.startDateTime != null
|
|
10662
10464
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDateTime)))
|
|
10663
10465
|
: undefined,
|
|
10664
10466
|
};
|
|
@@ -10677,29 +10479,29 @@ var deserializeAws_restJson1EncryptionSetting = function (output, context) {
|
|
|
10677
10479
|
};
|
|
10678
10480
|
var deserializeAws_restJson1ExportResourceSpecification = function (output, context) {
|
|
10679
10481
|
return {
|
|
10680
|
-
botExportSpecification: output.botExportSpecification
|
|
10482
|
+
botExportSpecification: output.botExportSpecification != null
|
|
10681
10483
|
? deserializeAws_restJson1BotExportSpecification(output.botExportSpecification, context)
|
|
10682
10484
|
: undefined,
|
|
10683
|
-
botLocaleExportSpecification: output.botLocaleExportSpecification
|
|
10485
|
+
botLocaleExportSpecification: output.botLocaleExportSpecification != null
|
|
10684
10486
|
? deserializeAws_restJson1BotLocaleExportSpecification(output.botLocaleExportSpecification, context)
|
|
10685
10487
|
: undefined,
|
|
10686
|
-
customVocabularyExportSpecification: output.customVocabularyExportSpecification
|
|
10488
|
+
customVocabularyExportSpecification: output.customVocabularyExportSpecification != null
|
|
10687
10489
|
? deserializeAws_restJson1CustomVocabularyExportSpecification(output.customVocabularyExportSpecification, context)
|
|
10688
10490
|
: undefined,
|
|
10689
10491
|
};
|
|
10690
10492
|
};
|
|
10691
10493
|
var deserializeAws_restJson1ExportSummary = function (output, context) {
|
|
10692
10494
|
return {
|
|
10693
|
-
creationDateTime: output.creationDateTime
|
|
10495
|
+
creationDateTime: output.creationDateTime != null
|
|
10694
10496
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
10695
10497
|
: undefined,
|
|
10696
10498
|
exportId: __expectString(output.exportId),
|
|
10697
10499
|
exportStatus: __expectString(output.exportStatus),
|
|
10698
10500
|
fileFormat: __expectString(output.fileFormat),
|
|
10699
|
-
lastUpdatedDateTime: output.lastUpdatedDateTime
|
|
10501
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime != null
|
|
10700
10502
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
10701
10503
|
: undefined,
|
|
10702
|
-
resourceSpecification: output.resourceSpecification
|
|
10504
|
+
resourceSpecification: output.resourceSpecification != null
|
|
10703
10505
|
? deserializeAws_restJson1ExportResourceSpecification(output.resourceSpecification, context)
|
|
10704
10506
|
: undefined,
|
|
10705
10507
|
};
|
|
@@ -10717,7 +10519,7 @@ var deserializeAws_restJson1ExportSummaryList = function (output, context) {
|
|
|
10717
10519
|
};
|
|
10718
10520
|
var deserializeAws_restJson1ExternalSourceSetting = function (output, context) {
|
|
10719
10521
|
return {
|
|
10720
|
-
grammarSlotTypeSetting: output.grammarSlotTypeSetting
|
|
10522
|
+
grammarSlotTypeSetting: output.grammarSlotTypeSetting != null
|
|
10721
10523
|
? deserializeAws_restJson1GrammarSlotTypeSetting(output.grammarSlotTypeSetting, context)
|
|
10722
10524
|
: undefined,
|
|
10723
10525
|
};
|
|
@@ -10736,10 +10538,10 @@ var deserializeAws_restJson1FailureReasons = function (output, context) {
|
|
|
10736
10538
|
var deserializeAws_restJson1FulfillmentCodeHookSettings = function (output, context) {
|
|
10737
10539
|
return {
|
|
10738
10540
|
enabled: __expectBoolean(output.enabled),
|
|
10739
|
-
fulfillmentUpdatesSpecification: output.fulfillmentUpdatesSpecification
|
|
10541
|
+
fulfillmentUpdatesSpecification: output.fulfillmentUpdatesSpecification != null
|
|
10740
10542
|
? deserializeAws_restJson1FulfillmentUpdatesSpecification(output.fulfillmentUpdatesSpecification, context)
|
|
10741
10543
|
: undefined,
|
|
10742
|
-
postFulfillmentStatusSpecification: output.postFulfillmentStatusSpecification
|
|
10544
|
+
postFulfillmentStatusSpecification: output.postFulfillmentStatusSpecification != null
|
|
10743
10545
|
? deserializeAws_restJson1PostFulfillmentStatusSpecification(output.postFulfillmentStatusSpecification, context)
|
|
10744
10546
|
: undefined,
|
|
10745
10547
|
};
|
|
@@ -10748,7 +10550,7 @@ var deserializeAws_restJson1FulfillmentStartResponseSpecification = function (ou
|
|
|
10748
10550
|
return {
|
|
10749
10551
|
allowInterrupt: __expectBoolean(output.allowInterrupt),
|
|
10750
10552
|
delayInSeconds: __expectInt32(output.delayInSeconds),
|
|
10751
|
-
messageGroups: output.messageGroups
|
|
10553
|
+
messageGroups: output.messageGroups != null
|
|
10752
10554
|
? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
|
|
10753
10555
|
: undefined,
|
|
10754
10556
|
};
|
|
@@ -10757,7 +10559,7 @@ var deserializeAws_restJson1FulfillmentUpdateResponseSpecification = function (o
|
|
|
10757
10559
|
return {
|
|
10758
10560
|
allowInterrupt: __expectBoolean(output.allowInterrupt),
|
|
10759
10561
|
frequencyInSeconds: __expectInt32(output.frequencyInSeconds),
|
|
10760
|
-
messageGroups: output.messageGroups
|
|
10562
|
+
messageGroups: output.messageGroups != null
|
|
10761
10563
|
? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
|
|
10762
10564
|
: undefined,
|
|
10763
10565
|
};
|
|
@@ -10765,20 +10567,18 @@ var deserializeAws_restJson1FulfillmentUpdateResponseSpecification = function (o
|
|
|
10765
10567
|
var deserializeAws_restJson1FulfillmentUpdatesSpecification = function (output, context) {
|
|
10766
10568
|
return {
|
|
10767
10569
|
active: __expectBoolean(output.active),
|
|
10768
|
-
startResponse: output.startResponse
|
|
10570
|
+
startResponse: output.startResponse != null
|
|
10769
10571
|
? deserializeAws_restJson1FulfillmentStartResponseSpecification(output.startResponse, context)
|
|
10770
10572
|
: undefined,
|
|
10771
10573
|
timeoutInSeconds: __expectInt32(output.timeoutInSeconds),
|
|
10772
|
-
updateResponse: output.updateResponse
|
|
10574
|
+
updateResponse: output.updateResponse != null
|
|
10773
10575
|
? deserializeAws_restJson1FulfillmentUpdateResponseSpecification(output.updateResponse, context)
|
|
10774
10576
|
: undefined,
|
|
10775
10577
|
};
|
|
10776
10578
|
};
|
|
10777
10579
|
var deserializeAws_restJson1GrammarSlotTypeSetting = function (output, context) {
|
|
10778
10580
|
return {
|
|
10779
|
-
source: output.source
|
|
10780
|
-
? deserializeAws_restJson1GrammarSlotTypeSource(output.source, context)
|
|
10781
|
-
: undefined,
|
|
10581
|
+
source: output.source != null ? deserializeAws_restJson1GrammarSlotTypeSource(output.source, context) : undefined,
|
|
10782
10582
|
};
|
|
10783
10583
|
};
|
|
10784
10584
|
var deserializeAws_restJson1GrammarSlotTypeSource = function (output, context) {
|
|
@@ -10790,9 +10590,7 @@ var deserializeAws_restJson1GrammarSlotTypeSource = function (output, context) {
|
|
|
10790
10590
|
};
|
|
10791
10591
|
var deserializeAws_restJson1ImageResponseCard = function (output, context) {
|
|
10792
10592
|
return {
|
|
10793
|
-
buttons: output.buttons
|
|
10794
|
-
? deserializeAws_restJson1ButtonsList(output.buttons, context)
|
|
10795
|
-
: undefined,
|
|
10593
|
+
buttons: output.buttons != null ? deserializeAws_restJson1ButtonsList(output.buttons, context) : undefined,
|
|
10796
10594
|
imageUrl: __expectString(output.imageUrl),
|
|
10797
10595
|
subtitle: __expectString(output.subtitle),
|
|
10798
10596
|
title: __expectString(output.title),
|
|
@@ -10800,20 +10598,20 @@ var deserializeAws_restJson1ImageResponseCard = function (output, context) {
|
|
|
10800
10598
|
};
|
|
10801
10599
|
var deserializeAws_restJson1ImportResourceSpecification = function (output, context) {
|
|
10802
10600
|
return {
|
|
10803
|
-
botImportSpecification: output.botImportSpecification
|
|
10601
|
+
botImportSpecification: output.botImportSpecification != null
|
|
10804
10602
|
? deserializeAws_restJson1BotImportSpecification(output.botImportSpecification, context)
|
|
10805
10603
|
: undefined,
|
|
10806
|
-
botLocaleImportSpecification: output.botLocaleImportSpecification
|
|
10604
|
+
botLocaleImportSpecification: output.botLocaleImportSpecification != null
|
|
10807
10605
|
? deserializeAws_restJson1BotLocaleImportSpecification(output.botLocaleImportSpecification, context)
|
|
10808
10606
|
: undefined,
|
|
10809
|
-
customVocabularyImportSpecification: output.customVocabularyImportSpecification
|
|
10607
|
+
customVocabularyImportSpecification: output.customVocabularyImportSpecification != null
|
|
10810
10608
|
? deserializeAws_restJson1CustomVocabularyImportSpecification(output.customVocabularyImportSpecification, context)
|
|
10811
10609
|
: undefined,
|
|
10812
10610
|
};
|
|
10813
10611
|
};
|
|
10814
10612
|
var deserializeAws_restJson1ImportSummary = function (output, context) {
|
|
10815
10613
|
return {
|
|
10816
|
-
creationDateTime: output.creationDateTime
|
|
10614
|
+
creationDateTime: output.creationDateTime != null
|
|
10817
10615
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
10818
10616
|
: undefined,
|
|
10819
10617
|
importId: __expectString(output.importId),
|
|
@@ -10821,7 +10619,7 @@ var deserializeAws_restJson1ImportSummary = function (output, context) {
|
|
|
10821
10619
|
importedResourceId: __expectString(output.importedResourceId),
|
|
10822
10620
|
importedResourceName: __expectString(output.importedResourceName),
|
|
10823
10621
|
importedResourceType: __expectString(output.importedResourceType),
|
|
10824
|
-
lastUpdatedDateTime: output.lastUpdatedDateTime
|
|
10622
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime != null
|
|
10825
10623
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
10826
10624
|
: undefined,
|
|
10827
10625
|
mergeStrategy: __expectString(output.mergeStrategy),
|
|
@@ -10857,7 +10655,7 @@ var deserializeAws_restJson1InputContextsList = function (output, context) {
|
|
|
10857
10655
|
var deserializeAws_restJson1IntentClosingSetting = function (output, context) {
|
|
10858
10656
|
return {
|
|
10859
10657
|
active: __expectBoolean(output.active),
|
|
10860
|
-
closingResponse: output.closingResponse
|
|
10658
|
+
closingResponse: output.closingResponse != null
|
|
10861
10659
|
? deserializeAws_restJson1ResponseSpecification(output.closingResponse, context)
|
|
10862
10660
|
: undefined,
|
|
10863
10661
|
};
|
|
@@ -10865,10 +10663,10 @@ var deserializeAws_restJson1IntentClosingSetting = function (output, context) {
|
|
|
10865
10663
|
var deserializeAws_restJson1IntentConfirmationSetting = function (output, context) {
|
|
10866
10664
|
return {
|
|
10867
10665
|
active: __expectBoolean(output.active),
|
|
10868
|
-
declinationResponse: output.declinationResponse
|
|
10666
|
+
declinationResponse: output.declinationResponse != null
|
|
10869
10667
|
? deserializeAws_restJson1ResponseSpecification(output.declinationResponse, context)
|
|
10870
10668
|
: undefined,
|
|
10871
|
-
promptSpecification: output.promptSpecification
|
|
10669
|
+
promptSpecification: output.promptSpecification != null
|
|
10872
10670
|
? deserializeAws_restJson1PromptSpecification(output.promptSpecification, context)
|
|
10873
10671
|
: undefined,
|
|
10874
10672
|
};
|
|
@@ -10881,15 +10679,15 @@ var deserializeAws_restJson1IntentStatistics = function (output, context) {
|
|
|
10881
10679
|
var deserializeAws_restJson1IntentSummary = function (output, context) {
|
|
10882
10680
|
return {
|
|
10883
10681
|
description: __expectString(output.description),
|
|
10884
|
-
inputContexts: output.inputContexts
|
|
10682
|
+
inputContexts: output.inputContexts != null
|
|
10885
10683
|
? deserializeAws_restJson1InputContextsList(output.inputContexts, context)
|
|
10886
10684
|
: undefined,
|
|
10887
10685
|
intentId: __expectString(output.intentId),
|
|
10888
10686
|
intentName: __expectString(output.intentName),
|
|
10889
|
-
lastUpdatedDateTime: output.lastUpdatedDateTime
|
|
10687
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime != null
|
|
10890
10688
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
10891
10689
|
: undefined,
|
|
10892
|
-
outputContexts: output.outputContexts
|
|
10690
|
+
outputContexts: output.outputContexts != null
|
|
10893
10691
|
? deserializeAws_restJson1OutputContextsList(output.outputContexts, context)
|
|
10894
10692
|
: undefined,
|
|
10895
10693
|
parentIntentSignature: __expectString(output.parentIntentSignature),
|
|
@@ -10921,35 +10719,27 @@ var deserializeAws_restJson1LambdaCodeHook = function (output, context) {
|
|
|
10921
10719
|
};
|
|
10922
10720
|
var deserializeAws_restJson1LexTranscriptFilter = function (output, context) {
|
|
10923
10721
|
return {
|
|
10924
|
-
dateRangeFilter: output.dateRangeFilter
|
|
10722
|
+
dateRangeFilter: output.dateRangeFilter != null
|
|
10925
10723
|
? deserializeAws_restJson1DateRangeFilter(output.dateRangeFilter, context)
|
|
10926
10724
|
: undefined,
|
|
10927
10725
|
};
|
|
10928
10726
|
};
|
|
10929
10727
|
var deserializeAws_restJson1Message = function (output, context) {
|
|
10930
10728
|
return {
|
|
10931
|
-
customPayload: output.customPayload
|
|
10932
|
-
|
|
10933
|
-
: undefined,
|
|
10934
|
-
imageResponseCard: output.imageResponseCard !== undefined && output.imageResponseCard !== null
|
|
10729
|
+
customPayload: output.customPayload != null ? deserializeAws_restJson1CustomPayload(output.customPayload, context) : undefined,
|
|
10730
|
+
imageResponseCard: output.imageResponseCard != null
|
|
10935
10731
|
? deserializeAws_restJson1ImageResponseCard(output.imageResponseCard, context)
|
|
10936
10732
|
: undefined,
|
|
10937
|
-
plainTextMessage: output.plainTextMessage
|
|
10733
|
+
plainTextMessage: output.plainTextMessage != null
|
|
10938
10734
|
? deserializeAws_restJson1PlainTextMessage(output.plainTextMessage, context)
|
|
10939
10735
|
: undefined,
|
|
10940
|
-
ssmlMessage: output.ssmlMessage
|
|
10941
|
-
? deserializeAws_restJson1SSMLMessage(output.ssmlMessage, context)
|
|
10942
|
-
: undefined,
|
|
10736
|
+
ssmlMessage: output.ssmlMessage != null ? deserializeAws_restJson1SSMLMessage(output.ssmlMessage, context) : undefined,
|
|
10943
10737
|
};
|
|
10944
10738
|
};
|
|
10945
10739
|
var deserializeAws_restJson1MessageGroup = function (output, context) {
|
|
10946
10740
|
return {
|
|
10947
|
-
message: output.message
|
|
10948
|
-
|
|
10949
|
-
: undefined,
|
|
10950
|
-
variations: output.variations !== undefined && output.variations !== null
|
|
10951
|
-
? deserializeAws_restJson1MessageVariationsList(output.variations, context)
|
|
10952
|
-
: undefined,
|
|
10741
|
+
message: output.message != null ? deserializeAws_restJson1Message(output.message, context) : undefined,
|
|
10742
|
+
variations: output.variations != null ? deserializeAws_restJson1MessageVariationsList(output.variations, context) : undefined,
|
|
10953
10743
|
};
|
|
10954
10744
|
};
|
|
10955
10745
|
var deserializeAws_restJson1MessageGroupsList = function (output, context) {
|
|
@@ -11015,7 +10805,7 @@ var deserializeAws_restJson1OutputContextsList = function (output, context) {
|
|
|
11015
10805
|
};
|
|
11016
10806
|
var deserializeAws_restJson1PathFormat = function (output, context) {
|
|
11017
10807
|
return {
|
|
11018
|
-
objectPrefixes: output.objectPrefixes
|
|
10808
|
+
objectPrefixes: output.objectPrefixes != null
|
|
11019
10809
|
? deserializeAws_restJson1ObjectPrefixes(output.objectPrefixes, context)
|
|
11020
10810
|
: undefined,
|
|
11021
10811
|
};
|
|
@@ -11027,13 +10817,13 @@ var deserializeAws_restJson1PlainTextMessage = function (output, context) {
|
|
|
11027
10817
|
};
|
|
11028
10818
|
var deserializeAws_restJson1PostFulfillmentStatusSpecification = function (output, context) {
|
|
11029
10819
|
return {
|
|
11030
|
-
failureResponse: output.failureResponse
|
|
10820
|
+
failureResponse: output.failureResponse != null
|
|
11031
10821
|
? deserializeAws_restJson1ResponseSpecification(output.failureResponse, context)
|
|
11032
10822
|
: undefined,
|
|
11033
|
-
successResponse: output.successResponse
|
|
10823
|
+
successResponse: output.successResponse != null
|
|
11034
10824
|
? deserializeAws_restJson1ResponseSpecification(output.successResponse, context)
|
|
11035
10825
|
: undefined,
|
|
11036
|
-
timeoutResponse: output.timeoutResponse
|
|
10826
|
+
timeoutResponse: output.timeoutResponse != null
|
|
11037
10827
|
? deserializeAws_restJson1ResponseSpecification(output.timeoutResponse, context)
|
|
11038
10828
|
: undefined,
|
|
11039
10829
|
};
|
|
@@ -11042,9 +10832,10 @@ var deserializeAws_restJson1PromptSpecification = function (output, context) {
|
|
|
11042
10832
|
return {
|
|
11043
10833
|
allowInterrupt: __expectBoolean(output.allowInterrupt),
|
|
11044
10834
|
maxRetries: __expectInt32(output.maxRetries),
|
|
11045
|
-
messageGroups: output.messageGroups
|
|
10835
|
+
messageGroups: output.messageGroups != null
|
|
11046
10836
|
? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
|
|
11047
10837
|
: undefined,
|
|
10838
|
+
messageSelectionStrategy: __expectString(output.messageSelectionStrategy),
|
|
11048
10839
|
};
|
|
11049
10840
|
};
|
|
11050
10841
|
var deserializeAws_restJson1RecommendedActions = function (output, context) {
|
|
@@ -11085,7 +10876,7 @@ var deserializeAws_restJson1RelativeAggregationDuration = function (output, cont
|
|
|
11085
10876
|
var deserializeAws_restJson1ResponseSpecification = function (output, context) {
|
|
11086
10877
|
return {
|
|
11087
10878
|
allowInterrupt: __expectBoolean(output.allowInterrupt),
|
|
11088
|
-
messageGroups: output.messageGroups
|
|
10879
|
+
messageGroups: output.messageGroups != null
|
|
11089
10880
|
? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
|
|
11090
10881
|
: undefined,
|
|
11091
10882
|
};
|
|
@@ -11100,11 +10891,9 @@ var deserializeAws_restJson1S3BucketLogDestination = function (output, context)
|
|
|
11100
10891
|
var deserializeAws_restJson1S3BucketTranscriptSource = function (output, context) {
|
|
11101
10892
|
return {
|
|
11102
10893
|
kmsKeyArn: __expectString(output.kmsKeyArn),
|
|
11103
|
-
pathFormat: output.pathFormat
|
|
11104
|
-
? deserializeAws_restJson1PathFormat(output.pathFormat, context)
|
|
11105
|
-
: undefined,
|
|
10894
|
+
pathFormat: output.pathFormat != null ? deserializeAws_restJson1PathFormat(output.pathFormat, context) : undefined,
|
|
11106
10895
|
s3BucketName: __expectString(output.s3BucketName),
|
|
11107
|
-
transcriptFilter: output.transcriptFilter
|
|
10896
|
+
transcriptFilter: output.transcriptFilter != null
|
|
11108
10897
|
? deserializeAws_restJson1TranscriptFilter(output.transcriptFilter, context)
|
|
11109
10898
|
: undefined,
|
|
11110
10899
|
transcriptFormat: __expectString(output.transcriptFormat),
|
|
@@ -11154,7 +10943,7 @@ var deserializeAws_restJson1SlotDefaultValueList = function (output, context) {
|
|
|
11154
10943
|
};
|
|
11155
10944
|
var deserializeAws_restJson1SlotDefaultValueSpecification = function (output, context) {
|
|
11156
10945
|
return {
|
|
11157
|
-
defaultValueList: output.defaultValueList
|
|
10946
|
+
defaultValueList: output.defaultValueList != null
|
|
11158
10947
|
? deserializeAws_restJson1SlotDefaultValueList(output.defaultValueList, context)
|
|
11159
10948
|
: undefined,
|
|
11160
10949
|
};
|
|
@@ -11179,14 +10968,14 @@ var deserializeAws_restJson1SlotPriority = function (output, context) {
|
|
|
11179
10968
|
var deserializeAws_restJson1SlotSummary = function (output, context) {
|
|
11180
10969
|
return {
|
|
11181
10970
|
description: __expectString(output.description),
|
|
11182
|
-
lastUpdatedDateTime: output.lastUpdatedDateTime
|
|
10971
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime != null
|
|
11183
10972
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
11184
10973
|
: undefined,
|
|
11185
10974
|
slotConstraint: __expectString(output.slotConstraint),
|
|
11186
10975
|
slotId: __expectString(output.slotId),
|
|
11187
10976
|
slotName: __expectString(output.slotName),
|
|
11188
10977
|
slotTypeId: __expectString(output.slotTypeId),
|
|
11189
|
-
valueElicitationPromptSpecification: output.valueElicitationPromptSpecification
|
|
10978
|
+
valueElicitationPromptSpecification: output.valueElicitationPromptSpecification != null
|
|
11190
10979
|
? deserializeAws_restJson1PromptSpecification(output.valueElicitationPromptSpecification, context)
|
|
11191
10980
|
: undefined,
|
|
11192
10981
|
};
|
|
@@ -11210,7 +10999,7 @@ var deserializeAws_restJson1SlotTypeStatistics = function (output, context) {
|
|
|
11210
10999
|
var deserializeAws_restJson1SlotTypeSummary = function (output, context) {
|
|
11211
11000
|
return {
|
|
11212
11001
|
description: __expectString(output.description),
|
|
11213
|
-
lastUpdatedDateTime: output.lastUpdatedDateTime
|
|
11002
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime != null
|
|
11214
11003
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
11215
11004
|
: undefined,
|
|
11216
11005
|
parentSlotTypeSignature: __expectString(output.parentSlotTypeSignature),
|
|
@@ -11232,12 +11021,8 @@ var deserializeAws_restJson1SlotTypeSummaryList = function (output, context) {
|
|
|
11232
11021
|
};
|
|
11233
11022
|
var deserializeAws_restJson1SlotTypeValue = function (output, context) {
|
|
11234
11023
|
return {
|
|
11235
|
-
sampleValue: output.sampleValue
|
|
11236
|
-
|
|
11237
|
-
: undefined,
|
|
11238
|
-
synonyms: output.synonyms !== undefined && output.synonyms !== null
|
|
11239
|
-
? deserializeAws_restJson1SynonymList(output.synonyms, context)
|
|
11240
|
-
: undefined,
|
|
11024
|
+
sampleValue: output.sampleValue != null ? deserializeAws_restJson1SampleValue(output.sampleValue, context) : undefined,
|
|
11025
|
+
synonyms: output.synonyms != null ? deserializeAws_restJson1SynonymList(output.synonyms, context) : undefined,
|
|
11241
11026
|
};
|
|
11242
11027
|
};
|
|
11243
11028
|
var deserializeAws_restJson1SlotTypeValues = function (output, context) {
|
|
@@ -11253,17 +11038,17 @@ var deserializeAws_restJson1SlotTypeValues = function (output, context) {
|
|
|
11253
11038
|
};
|
|
11254
11039
|
var deserializeAws_restJson1SlotValueElicitationSetting = function (output, context) {
|
|
11255
11040
|
return {
|
|
11256
|
-
defaultValueSpecification: output.defaultValueSpecification
|
|
11041
|
+
defaultValueSpecification: output.defaultValueSpecification != null
|
|
11257
11042
|
? deserializeAws_restJson1SlotDefaultValueSpecification(output.defaultValueSpecification, context)
|
|
11258
11043
|
: undefined,
|
|
11259
|
-
promptSpecification: output.promptSpecification
|
|
11044
|
+
promptSpecification: output.promptSpecification != null
|
|
11260
11045
|
? deserializeAws_restJson1PromptSpecification(output.promptSpecification, context)
|
|
11261
11046
|
: undefined,
|
|
11262
|
-
sampleUtterances: output.sampleUtterances
|
|
11047
|
+
sampleUtterances: output.sampleUtterances != null
|
|
11263
11048
|
? deserializeAws_restJson1SampleUtterancesList(output.sampleUtterances, context)
|
|
11264
11049
|
: undefined,
|
|
11265
11050
|
slotConstraint: __expectString(output.slotConstraint),
|
|
11266
|
-
waitAndContinueSpecification: output.waitAndContinueSpecification
|
|
11051
|
+
waitAndContinueSpecification: output.waitAndContinueSpecification != null
|
|
11267
11052
|
? deserializeAws_restJson1WaitAndContinueSpecification(output.waitAndContinueSpecification, context)
|
|
11268
11053
|
: undefined,
|
|
11269
11054
|
};
|
|
@@ -11275,10 +11060,10 @@ var deserializeAws_restJson1SlotValueRegexFilter = function (output, context) {
|
|
|
11275
11060
|
};
|
|
11276
11061
|
var deserializeAws_restJson1SlotValueSelectionSetting = function (output, context) {
|
|
11277
11062
|
return {
|
|
11278
|
-
advancedRecognitionSetting: output.advancedRecognitionSetting
|
|
11063
|
+
advancedRecognitionSetting: output.advancedRecognitionSetting != null
|
|
11279
11064
|
? deserializeAws_restJson1AdvancedRecognitionSetting(output.advancedRecognitionSetting, context)
|
|
11280
11065
|
: undefined,
|
|
11281
|
-
regexFilter: output.regexFilter
|
|
11066
|
+
regexFilter: output.regexFilter != null
|
|
11282
11067
|
? deserializeAws_restJson1SlotValueRegexFilter(output.regexFilter, context)
|
|
11283
11068
|
: undefined,
|
|
11284
11069
|
resolutionStrategy: __expectString(output.resolutionStrategy),
|
|
@@ -11293,7 +11078,7 @@ var deserializeAws_restJson1StillWaitingResponseSpecification = function (output
|
|
|
11293
11078
|
return {
|
|
11294
11079
|
allowInterrupt: __expectBoolean(output.allowInterrupt),
|
|
11295
11080
|
frequencyInSeconds: __expectInt32(output.frequencyInSeconds),
|
|
11296
|
-
messageGroups: output.messageGroups
|
|
11081
|
+
messageGroups: output.messageGroups != null
|
|
11297
11082
|
? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
|
|
11298
11083
|
: undefined,
|
|
11299
11084
|
timeoutInSeconds: __expectInt32(output.timeoutInSeconds),
|
|
@@ -11322,16 +11107,14 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
11322
11107
|
};
|
|
11323
11108
|
var deserializeAws_restJson1TextLogDestination = function (output, context) {
|
|
11324
11109
|
return {
|
|
11325
|
-
cloudWatch: output.cloudWatch
|
|
11110
|
+
cloudWatch: output.cloudWatch != null
|
|
11326
11111
|
? deserializeAws_restJson1CloudWatchLogGroupLogDestination(output.cloudWatch, context)
|
|
11327
11112
|
: undefined,
|
|
11328
11113
|
};
|
|
11329
11114
|
};
|
|
11330
11115
|
var deserializeAws_restJson1TextLogSetting = function (output, context) {
|
|
11331
11116
|
return {
|
|
11332
|
-
destination: output.destination
|
|
11333
|
-
? deserializeAws_restJson1TextLogDestination(output.destination, context)
|
|
11334
|
-
: undefined,
|
|
11117
|
+
destination: output.destination != null ? deserializeAws_restJson1TextLogDestination(output.destination, context) : undefined,
|
|
11335
11118
|
enabled: __expectBoolean(output.enabled),
|
|
11336
11119
|
};
|
|
11337
11120
|
};
|
|
@@ -11348,21 +11131,21 @@ var deserializeAws_restJson1TextLogSettingsList = function (output, context) {
|
|
|
11348
11131
|
};
|
|
11349
11132
|
var deserializeAws_restJson1TranscriptFilter = function (output, context) {
|
|
11350
11133
|
return {
|
|
11351
|
-
lexTranscriptFilter: output.lexTranscriptFilter
|
|
11134
|
+
lexTranscriptFilter: output.lexTranscriptFilter != null
|
|
11352
11135
|
? deserializeAws_restJson1LexTranscriptFilter(output.lexTranscriptFilter, context)
|
|
11353
11136
|
: undefined,
|
|
11354
11137
|
};
|
|
11355
11138
|
};
|
|
11356
11139
|
var deserializeAws_restJson1TranscriptSourceSetting = function (output, context) {
|
|
11357
11140
|
return {
|
|
11358
|
-
s3BucketTranscriptSource: output.s3BucketTranscriptSource
|
|
11141
|
+
s3BucketTranscriptSource: output.s3BucketTranscriptSource != null
|
|
11359
11142
|
? deserializeAws_restJson1S3BucketTranscriptSource(output.s3BucketTranscriptSource, context)
|
|
11360
11143
|
: undefined,
|
|
11361
11144
|
};
|
|
11362
11145
|
};
|
|
11363
11146
|
var deserializeAws_restJson1UtteranceAggregationDuration = function (output, context) {
|
|
11364
11147
|
return {
|
|
11365
|
-
relativeAggregationDuration: output.relativeAggregationDuration
|
|
11148
|
+
relativeAggregationDuration: output.relativeAggregationDuration != null
|
|
11366
11149
|
? deserializeAws_restJson1RelativeAggregationDuration(output.relativeAggregationDuration, context)
|
|
11367
11150
|
: undefined,
|
|
11368
11151
|
};
|
|
@@ -11376,13 +11159,13 @@ var deserializeAws_restJson1VoiceSettings = function (output, context) {
|
|
|
11376
11159
|
var deserializeAws_restJson1WaitAndContinueSpecification = function (output, context) {
|
|
11377
11160
|
return {
|
|
11378
11161
|
active: __expectBoolean(output.active),
|
|
11379
|
-
continueResponse: output.continueResponse
|
|
11162
|
+
continueResponse: output.continueResponse != null
|
|
11380
11163
|
? deserializeAws_restJson1ResponseSpecification(output.continueResponse, context)
|
|
11381
11164
|
: undefined,
|
|
11382
|
-
stillWaitingResponse: output.stillWaitingResponse
|
|
11165
|
+
stillWaitingResponse: output.stillWaitingResponse != null
|
|
11383
11166
|
? deserializeAws_restJson1StillWaitingResponseSpecification(output.stillWaitingResponse, context)
|
|
11384
11167
|
: undefined,
|
|
11385
|
-
waitingResponse: output.waitingResponse
|
|
11168
|
+
waitingResponse: output.waitingResponse != null
|
|
11386
11169
|
? deserializeAws_restJson1ResponseSpecification(output.waitingResponse, context)
|
|
11387
11170
|
: undefined,
|
|
11388
11171
|
};
|