@aws-sdk/client-lex-models-v2 3.31.0 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/LexModelsV2Client.js +13 -13
- package/dist/cjs/LexModelsV2Client.js.map +1 -1
- package/dist/cjs/commands/BuildBotLocaleCommand.js +3 -3
- package/dist/cjs/commands/BuildBotLocaleCommand.js.map +1 -1
- package/dist/cjs/commands/CreateBotAliasCommand.js +3 -3
- package/dist/cjs/commands/CreateBotAliasCommand.js.map +1 -1
- package/dist/cjs/commands/CreateBotCommand.js +3 -3
- package/dist/cjs/commands/CreateBotCommand.js.map +1 -1
- package/dist/cjs/commands/CreateBotLocaleCommand.js +3 -3
- package/dist/cjs/commands/CreateBotLocaleCommand.js.map +1 -1
- package/dist/cjs/commands/CreateBotVersionCommand.js +3 -3
- package/dist/cjs/commands/CreateBotVersionCommand.js.map +1 -1
- package/dist/cjs/commands/CreateExportCommand.js +3 -3
- package/dist/cjs/commands/CreateExportCommand.js.map +1 -1
- package/dist/cjs/commands/CreateIntentCommand.js +3 -3
- package/dist/cjs/commands/CreateIntentCommand.js.map +1 -1
- package/dist/cjs/commands/CreateResourcePolicyCommand.js +3 -3
- package/dist/cjs/commands/CreateResourcePolicyCommand.js.map +1 -1
- package/dist/cjs/commands/CreateResourcePolicyStatementCommand.js +3 -3
- package/dist/cjs/commands/CreateResourcePolicyStatementCommand.js.map +1 -1
- package/dist/cjs/commands/CreateSlotCommand.js +3 -3
- package/dist/cjs/commands/CreateSlotCommand.js.map +1 -1
- package/dist/cjs/commands/CreateSlotTypeCommand.js +3 -3
- package/dist/cjs/commands/CreateSlotTypeCommand.js.map +1 -1
- package/dist/cjs/commands/CreateUploadUrlCommand.js +3 -3
- package/dist/cjs/commands/CreateUploadUrlCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBotAliasCommand.js +3 -3
- package/dist/cjs/commands/DeleteBotAliasCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBotCommand.js +3 -3
- package/dist/cjs/commands/DeleteBotCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBotLocaleCommand.js +3 -3
- package/dist/cjs/commands/DeleteBotLocaleCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBotVersionCommand.js +3 -3
- package/dist/cjs/commands/DeleteBotVersionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteExportCommand.js +3 -3
- package/dist/cjs/commands/DeleteExportCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteImportCommand.js +3 -3
- package/dist/cjs/commands/DeleteImportCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteIntentCommand.js +3 -3
- package/dist/cjs/commands/DeleteIntentCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteResourcePolicyCommand.js +3 -3
- package/dist/cjs/commands/DeleteResourcePolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteResourcePolicyStatementCommand.js +3 -3
- package/dist/cjs/commands/DeleteResourcePolicyStatementCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteSlotCommand.js +3 -3
- package/dist/cjs/commands/DeleteSlotCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteSlotTypeCommand.js +3 -3
- package/dist/cjs/commands/DeleteSlotTypeCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBotAliasCommand.js +3 -3
- package/dist/cjs/commands/DescribeBotAliasCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBotCommand.js +3 -3
- package/dist/cjs/commands/DescribeBotCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBotLocaleCommand.js +3 -3
- package/dist/cjs/commands/DescribeBotLocaleCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBotVersionCommand.js +3 -3
- package/dist/cjs/commands/DescribeBotVersionCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeExportCommand.js +3 -3
- package/dist/cjs/commands/DescribeExportCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeImportCommand.js +3 -3
- package/dist/cjs/commands/DescribeImportCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeIntentCommand.js +3 -3
- package/dist/cjs/commands/DescribeIntentCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeResourcePolicyCommand.js +3 -3
- package/dist/cjs/commands/DescribeResourcePolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeSlotCommand.js +3 -3
- package/dist/cjs/commands/DescribeSlotCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeSlotTypeCommand.js +3 -3
- package/dist/cjs/commands/DescribeSlotTypeCommand.js.map +1 -1
- package/dist/cjs/commands/ListBotAliasesCommand.js +3 -3
- package/dist/cjs/commands/ListBotAliasesCommand.js.map +1 -1
- package/dist/cjs/commands/ListBotLocalesCommand.js +3 -3
- package/dist/cjs/commands/ListBotLocalesCommand.js.map +1 -1
- package/dist/cjs/commands/ListBotVersionsCommand.js +3 -3
- package/dist/cjs/commands/ListBotVersionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListBotsCommand.js +3 -3
- package/dist/cjs/commands/ListBotsCommand.js.map +1 -1
- package/dist/cjs/commands/ListBuiltInIntentsCommand.js +3 -3
- package/dist/cjs/commands/ListBuiltInIntentsCommand.js.map +1 -1
- package/dist/cjs/commands/ListBuiltInSlotTypesCommand.js +3 -3
- package/dist/cjs/commands/ListBuiltInSlotTypesCommand.js.map +1 -1
- package/dist/cjs/commands/ListExportsCommand.js +3 -3
- package/dist/cjs/commands/ListExportsCommand.js.map +1 -1
- package/dist/cjs/commands/ListImportsCommand.js +3 -3
- package/dist/cjs/commands/ListImportsCommand.js.map +1 -1
- package/dist/cjs/commands/ListIntentsCommand.js +3 -3
- package/dist/cjs/commands/ListIntentsCommand.js.map +1 -1
- package/dist/cjs/commands/ListSlotTypesCommand.js +3 -3
- package/dist/cjs/commands/ListSlotTypesCommand.js.map +1 -1
- package/dist/cjs/commands/ListSlotsCommand.js +3 -3
- package/dist/cjs/commands/ListSlotsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/StartImportCommand.js +3 -3
- package/dist/cjs/commands/StartImportCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBotAliasCommand.js +3 -3
- package/dist/cjs/commands/UpdateBotAliasCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBotCommand.js +3 -3
- package/dist/cjs/commands/UpdateBotCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBotLocaleCommand.js +3 -3
- package/dist/cjs/commands/UpdateBotLocaleCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateExportCommand.js +3 -3
- package/dist/cjs/commands/UpdateExportCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateIntentCommand.js +3 -3
- package/dist/cjs/commands/UpdateIntentCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateResourcePolicyCommand.js +3 -3
- package/dist/cjs/commands/UpdateResourcePolicyCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateSlotCommand.js +3 -3
- package/dist/cjs/commands/UpdateSlotCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateSlotTypeCommand.js +3 -3
- package/dist/cjs/commands/UpdateSlotTypeCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +79 -79
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +32 -32
- package/dist/cjs/protocols/Aws_restJson1.js +558 -558
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForBotAliasAvailable.js +3 -3
- package/dist/cjs/waiters/waitForBotAliasAvailable.js.map +1 -1
- package/dist/cjs/waiters/waitForBotAvailable.js +3 -3
- package/dist/cjs/waiters/waitForBotAvailable.js.map +1 -1
- package/dist/cjs/waiters/waitForBotExportCompleted.js +3 -3
- package/dist/cjs/waiters/waitForBotExportCompleted.js.map +1 -1
- package/dist/cjs/waiters/waitForBotImportCompleted.js +3 -3
- package/dist/cjs/waiters/waitForBotImportCompleted.js.map +1 -1
- package/dist/cjs/waiters/waitForBotLocaleBuilt.js +3 -3
- package/dist/cjs/waiters/waitForBotLocaleBuilt.js.map +1 -1
- package/dist/cjs/waiters/waitForBotLocaleCreated.js +3 -3
- package/dist/cjs/waiters/waitForBotLocaleCreated.js.map +1 -1
- package/dist/cjs/waiters/waitForBotLocaleExpressTestingAvailable.js +3 -3
- package/dist/cjs/waiters/waitForBotLocaleExpressTestingAvailable.js.map +1 -1
- package/dist/cjs/waiters/waitForBotVersionAvailable.js +3 -3
- package/dist/cjs/waiters/waitForBotVersionAvailable.js.map +1 -1
- package/dist/es/package.json +32 -32
- package/dist/es/pagination/ListBotAliasesPaginator.js +4 -4
- package/dist/es/pagination/ListBotAliasesPaginator.js.map +1 -1
- package/dist/es/pagination/ListBotLocalesPaginator.js +4 -4
- package/dist/es/pagination/ListBotLocalesPaginator.js.map +1 -1
- package/dist/es/pagination/ListBotVersionsPaginator.js +4 -4
- package/dist/es/pagination/ListBotVersionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListBotsPaginator.js +4 -4
- package/dist/es/pagination/ListBotsPaginator.js.map +1 -1
- package/dist/es/pagination/ListBuiltInIntentsPaginator.js +4 -4
- package/dist/es/pagination/ListBuiltInIntentsPaginator.js.map +1 -1
- package/dist/es/pagination/ListBuiltInSlotTypesPaginator.js +4 -4
- package/dist/es/pagination/ListBuiltInSlotTypesPaginator.js.map +1 -1
- package/dist/es/pagination/ListExportsPaginator.js +4 -4
- package/dist/es/pagination/ListExportsPaginator.js.map +1 -1
- package/dist/es/pagination/ListImportsPaginator.js +4 -4
- package/dist/es/pagination/ListImportsPaginator.js.map +1 -1
- package/dist/es/pagination/ListIntentsPaginator.js +4 -4
- package/dist/es/pagination/ListIntentsPaginator.js.map +1 -1
- package/dist/es/pagination/ListSlotTypesPaginator.js +4 -4
- package/dist/es/pagination/ListSlotTypesPaginator.js.map +1 -1
- package/dist/es/pagination/ListSlotsPaginator.js +4 -4
- package/dist/es/pagination/ListSlotsPaginator.js.map +1 -1
- package/package.json +32 -32
- package/tsconfig.json +1 -2
|
@@ -15,7 +15,7 @@ const serializeAws_restJson1BuildBotLocaleCommand = async (input, context) => {
|
|
|
15
15
|
if (labelValue.length <= 0) {
|
|
16
16
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
17
17
|
}
|
|
18
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
18
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
21
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -25,7 +25,7 @@ const serializeAws_restJson1BuildBotLocaleCommand = async (input, context) => {
|
|
|
25
25
|
if (labelValue.length <= 0) {
|
|
26
26
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
27
27
|
}
|
|
28
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
28
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
29
29
|
}
|
|
30
30
|
else {
|
|
31
31
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -35,7 +35,7 @@ const serializeAws_restJson1BuildBotLocaleCommand = async (input, context) => {
|
|
|
35
35
|
if (labelValue.length <= 0) {
|
|
36
36
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
37
37
|
}
|
|
38
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
38
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
41
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -96,7 +96,7 @@ const serializeAws_restJson1CreateBotAliasCommand = async (input, context) => {
|
|
|
96
96
|
if (labelValue.length <= 0) {
|
|
97
97
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
98
98
|
}
|
|
99
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
99
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
102
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -143,7 +143,7 @@ const serializeAws_restJson1CreateBotLocaleCommand = async (input, context) => {
|
|
|
143
143
|
if (labelValue.length <= 0) {
|
|
144
144
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
145
145
|
}
|
|
146
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
146
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
147
147
|
}
|
|
148
148
|
else {
|
|
149
149
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -153,7 +153,7 @@ const serializeAws_restJson1CreateBotLocaleCommand = async (input, context) => {
|
|
|
153
153
|
if (labelValue.length <= 0) {
|
|
154
154
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
155
155
|
}
|
|
156
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
156
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
157
157
|
}
|
|
158
158
|
else {
|
|
159
159
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -164,7 +164,7 @@ const serializeAws_restJson1CreateBotLocaleCommand = async (input, context) => {
|
|
|
164
164
|
...(input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId }),
|
|
165
165
|
...(input.nluIntentConfidenceThreshold !== undefined &&
|
|
166
166
|
input.nluIntentConfidenceThreshold !== null && {
|
|
167
|
-
nluIntentConfidenceThreshold:
|
|
167
|
+
nluIntentConfidenceThreshold: smithy_client_1.serializeFloat(input.nluIntentConfidenceThreshold),
|
|
168
168
|
}),
|
|
169
169
|
...(input.voiceSettings !== undefined &&
|
|
170
170
|
input.voiceSettings !== null && {
|
|
@@ -193,7 +193,7 @@ const serializeAws_restJson1CreateBotVersionCommand = async (input, context) =>
|
|
|
193
193
|
if (labelValue.length <= 0) {
|
|
194
194
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
195
195
|
}
|
|
196
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
196
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
197
197
|
}
|
|
198
198
|
else {
|
|
199
199
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -255,7 +255,7 @@ const serializeAws_restJson1CreateIntentCommand = async (input, context) => {
|
|
|
255
255
|
if (labelValue.length <= 0) {
|
|
256
256
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
257
257
|
}
|
|
258
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
258
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
259
259
|
}
|
|
260
260
|
else {
|
|
261
261
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -265,7 +265,7 @@ const serializeAws_restJson1CreateIntentCommand = async (input, context) => {
|
|
|
265
265
|
if (labelValue.length <= 0) {
|
|
266
266
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
267
267
|
}
|
|
268
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
268
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
269
269
|
}
|
|
270
270
|
else {
|
|
271
271
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -275,7 +275,7 @@ const serializeAws_restJson1CreateIntentCommand = async (input, context) => {
|
|
|
275
275
|
if (labelValue.length <= 0) {
|
|
276
276
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
277
277
|
}
|
|
278
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
278
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
279
279
|
}
|
|
280
280
|
else {
|
|
281
281
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -341,7 +341,7 @@ const serializeAws_restJson1CreateResourcePolicyCommand = async (input, context)
|
|
|
341
341
|
if (labelValue.length <= 0) {
|
|
342
342
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
343
343
|
}
|
|
344
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
344
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
345
345
|
}
|
|
346
346
|
else {
|
|
347
347
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -372,7 +372,7 @@ const serializeAws_restJson1CreateResourcePolicyStatementCommand = async (input,
|
|
|
372
372
|
if (labelValue.length <= 0) {
|
|
373
373
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
374
374
|
}
|
|
375
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
375
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
376
376
|
}
|
|
377
377
|
else {
|
|
378
378
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -415,7 +415,7 @@ const serializeAws_restJson1CreateSlotCommand = async (input, context) => {
|
|
|
415
415
|
if (labelValue.length <= 0) {
|
|
416
416
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
417
417
|
}
|
|
418
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
418
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
419
419
|
}
|
|
420
420
|
else {
|
|
421
421
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -425,7 +425,7 @@ const serializeAws_restJson1CreateSlotCommand = async (input, context) => {
|
|
|
425
425
|
if (labelValue.length <= 0) {
|
|
426
426
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
427
427
|
}
|
|
428
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
428
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
429
429
|
}
|
|
430
430
|
else {
|
|
431
431
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -435,7 +435,7 @@ const serializeAws_restJson1CreateSlotCommand = async (input, context) => {
|
|
|
435
435
|
if (labelValue.length <= 0) {
|
|
436
436
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
437
437
|
}
|
|
438
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
438
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
439
439
|
}
|
|
440
440
|
else {
|
|
441
441
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -445,7 +445,7 @@ const serializeAws_restJson1CreateSlotCommand = async (input, context) => {
|
|
|
445
445
|
if (labelValue.length <= 0) {
|
|
446
446
|
throw new Error("Empty value provided for input HTTP label: intentId.");
|
|
447
447
|
}
|
|
448
|
-
resolvedPath = resolvedPath.replace("{intentId}",
|
|
448
|
+
resolvedPath = resolvedPath.replace("{intentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
449
449
|
}
|
|
450
450
|
else {
|
|
451
451
|
throw new Error("No value provided for input HTTP label: intentId.");
|
|
@@ -491,7 +491,7 @@ const serializeAws_restJson1CreateSlotTypeCommand = async (input, context) => {
|
|
|
491
491
|
if (labelValue.length <= 0) {
|
|
492
492
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
493
493
|
}
|
|
494
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
494
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
495
495
|
}
|
|
496
496
|
else {
|
|
497
497
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -501,7 +501,7 @@ const serializeAws_restJson1CreateSlotTypeCommand = async (input, context) => {
|
|
|
501
501
|
if (labelValue.length <= 0) {
|
|
502
502
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
503
503
|
}
|
|
504
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
504
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
505
505
|
}
|
|
506
506
|
else {
|
|
507
507
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -511,7 +511,7 @@ const serializeAws_restJson1CreateSlotTypeCommand = async (input, context) => {
|
|
|
511
511
|
if (labelValue.length <= 0) {
|
|
512
512
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
513
513
|
}
|
|
514
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
514
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
515
515
|
}
|
|
516
516
|
else {
|
|
517
517
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -570,7 +570,7 @@ const serializeAws_restJson1DeleteBotCommand = async (input, context) => {
|
|
|
570
570
|
if (labelValue.length <= 0) {
|
|
571
571
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
572
572
|
}
|
|
573
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
573
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
574
574
|
}
|
|
575
575
|
else {
|
|
576
576
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -602,7 +602,7 @@ const serializeAws_restJson1DeleteBotAliasCommand = async (input, context) => {
|
|
|
602
602
|
if (labelValue.length <= 0) {
|
|
603
603
|
throw new Error("Empty value provided for input HTTP label: botAliasId.");
|
|
604
604
|
}
|
|
605
|
-
resolvedPath = resolvedPath.replace("{botAliasId}",
|
|
605
|
+
resolvedPath = resolvedPath.replace("{botAliasId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
606
606
|
}
|
|
607
607
|
else {
|
|
608
608
|
throw new Error("No value provided for input HTTP label: botAliasId.");
|
|
@@ -612,7 +612,7 @@ const serializeAws_restJson1DeleteBotAliasCommand = async (input, context) => {
|
|
|
612
612
|
if (labelValue.length <= 0) {
|
|
613
613
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
614
614
|
}
|
|
615
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
615
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
616
616
|
}
|
|
617
617
|
else {
|
|
618
618
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -645,7 +645,7 @@ const serializeAws_restJson1DeleteBotLocaleCommand = async (input, context) => {
|
|
|
645
645
|
if (labelValue.length <= 0) {
|
|
646
646
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
647
647
|
}
|
|
648
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
648
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
649
649
|
}
|
|
650
650
|
else {
|
|
651
651
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -655,7 +655,7 @@ const serializeAws_restJson1DeleteBotLocaleCommand = async (input, context) => {
|
|
|
655
655
|
if (labelValue.length <= 0) {
|
|
656
656
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
657
657
|
}
|
|
658
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
658
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
659
659
|
}
|
|
660
660
|
else {
|
|
661
661
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -665,7 +665,7 @@ const serializeAws_restJson1DeleteBotLocaleCommand = async (input, context) => {
|
|
|
665
665
|
if (labelValue.length <= 0) {
|
|
666
666
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
667
667
|
}
|
|
668
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
668
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
669
669
|
}
|
|
670
670
|
else {
|
|
671
671
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -691,7 +691,7 @@ const serializeAws_restJson1DeleteBotVersionCommand = async (input, context) =>
|
|
|
691
691
|
if (labelValue.length <= 0) {
|
|
692
692
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
693
693
|
}
|
|
694
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
694
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
695
695
|
}
|
|
696
696
|
else {
|
|
697
697
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -701,7 +701,7 @@ const serializeAws_restJson1DeleteBotVersionCommand = async (input, context) =>
|
|
|
701
701
|
if (labelValue.length <= 0) {
|
|
702
702
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
703
703
|
}
|
|
704
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
704
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
705
705
|
}
|
|
706
706
|
else {
|
|
707
707
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -733,7 +733,7 @@ const serializeAws_restJson1DeleteExportCommand = async (input, context) => {
|
|
|
733
733
|
if (labelValue.length <= 0) {
|
|
734
734
|
throw new Error("Empty value provided for input HTTP label: exportId.");
|
|
735
735
|
}
|
|
736
|
-
resolvedPath = resolvedPath.replace("{exportId}",
|
|
736
|
+
resolvedPath = resolvedPath.replace("{exportId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
737
737
|
}
|
|
738
738
|
else {
|
|
739
739
|
throw new Error("No value provided for input HTTP label: exportId.");
|
|
@@ -759,7 +759,7 @@ const serializeAws_restJson1DeleteImportCommand = async (input, context) => {
|
|
|
759
759
|
if (labelValue.length <= 0) {
|
|
760
760
|
throw new Error("Empty value provided for input HTTP label: importId.");
|
|
761
761
|
}
|
|
762
|
-
resolvedPath = resolvedPath.replace("{importId}",
|
|
762
|
+
resolvedPath = resolvedPath.replace("{importId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
763
763
|
}
|
|
764
764
|
else {
|
|
765
765
|
throw new Error("No value provided for input HTTP label: importId.");
|
|
@@ -786,7 +786,7 @@ const serializeAws_restJson1DeleteIntentCommand = async (input, context) => {
|
|
|
786
786
|
if (labelValue.length <= 0) {
|
|
787
787
|
throw new Error("Empty value provided for input HTTP label: intentId.");
|
|
788
788
|
}
|
|
789
|
-
resolvedPath = resolvedPath.replace("{intentId}",
|
|
789
|
+
resolvedPath = resolvedPath.replace("{intentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
790
790
|
}
|
|
791
791
|
else {
|
|
792
792
|
throw new Error("No value provided for input HTTP label: intentId.");
|
|
@@ -796,7 +796,7 @@ const serializeAws_restJson1DeleteIntentCommand = async (input, context) => {
|
|
|
796
796
|
if (labelValue.length <= 0) {
|
|
797
797
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
798
798
|
}
|
|
799
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
799
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
800
800
|
}
|
|
801
801
|
else {
|
|
802
802
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -806,7 +806,7 @@ const serializeAws_restJson1DeleteIntentCommand = async (input, context) => {
|
|
|
806
806
|
if (labelValue.length <= 0) {
|
|
807
807
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
808
808
|
}
|
|
809
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
809
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
810
810
|
}
|
|
811
811
|
else {
|
|
812
812
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -816,7 +816,7 @@ const serializeAws_restJson1DeleteIntentCommand = async (input, context) => {
|
|
|
816
816
|
if (labelValue.length <= 0) {
|
|
817
817
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
818
818
|
}
|
|
819
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
819
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
820
820
|
}
|
|
821
821
|
else {
|
|
822
822
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -842,7 +842,7 @@ const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, context)
|
|
|
842
842
|
if (labelValue.length <= 0) {
|
|
843
843
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
844
844
|
}
|
|
845
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
845
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
846
846
|
}
|
|
847
847
|
else {
|
|
848
848
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -873,7 +873,7 @@ const serializeAws_restJson1DeleteResourcePolicyStatementCommand = async (input,
|
|
|
873
873
|
if (labelValue.length <= 0) {
|
|
874
874
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
875
875
|
}
|
|
876
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
876
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
877
877
|
}
|
|
878
878
|
else {
|
|
879
879
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -883,7 +883,7 @@ const serializeAws_restJson1DeleteResourcePolicyStatementCommand = async (input,
|
|
|
883
883
|
if (labelValue.length <= 0) {
|
|
884
884
|
throw new Error("Empty value provided for input HTTP label: statementId.");
|
|
885
885
|
}
|
|
886
|
-
resolvedPath = resolvedPath.replace("{statementId}",
|
|
886
|
+
resolvedPath = resolvedPath.replace("{statementId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
887
887
|
}
|
|
888
888
|
else {
|
|
889
889
|
throw new Error("No value provided for input HTTP label: statementId.");
|
|
@@ -914,7 +914,7 @@ const serializeAws_restJson1DeleteSlotCommand = async (input, context) => {
|
|
|
914
914
|
if (labelValue.length <= 0) {
|
|
915
915
|
throw new Error("Empty value provided for input HTTP label: slotId.");
|
|
916
916
|
}
|
|
917
|
-
resolvedPath = resolvedPath.replace("{slotId}",
|
|
917
|
+
resolvedPath = resolvedPath.replace("{slotId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
918
918
|
}
|
|
919
919
|
else {
|
|
920
920
|
throw new Error("No value provided for input HTTP label: slotId.");
|
|
@@ -924,7 +924,7 @@ const serializeAws_restJson1DeleteSlotCommand = async (input, context) => {
|
|
|
924
924
|
if (labelValue.length <= 0) {
|
|
925
925
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
926
926
|
}
|
|
927
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
927
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
928
928
|
}
|
|
929
929
|
else {
|
|
930
930
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -934,7 +934,7 @@ const serializeAws_restJson1DeleteSlotCommand = async (input, context) => {
|
|
|
934
934
|
if (labelValue.length <= 0) {
|
|
935
935
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
936
936
|
}
|
|
937
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
937
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
938
938
|
}
|
|
939
939
|
else {
|
|
940
940
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -944,7 +944,7 @@ const serializeAws_restJson1DeleteSlotCommand = async (input, context) => {
|
|
|
944
944
|
if (labelValue.length <= 0) {
|
|
945
945
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
946
946
|
}
|
|
947
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
947
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
948
948
|
}
|
|
949
949
|
else {
|
|
950
950
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -954,7 +954,7 @@ const serializeAws_restJson1DeleteSlotCommand = async (input, context) => {
|
|
|
954
954
|
if (labelValue.length <= 0) {
|
|
955
955
|
throw new Error("Empty value provided for input HTTP label: intentId.");
|
|
956
956
|
}
|
|
957
|
-
resolvedPath = resolvedPath.replace("{intentId}",
|
|
957
|
+
resolvedPath = resolvedPath.replace("{intentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
958
958
|
}
|
|
959
959
|
else {
|
|
960
960
|
throw new Error("No value provided for input HTTP label: intentId.");
|
|
@@ -981,7 +981,7 @@ const serializeAws_restJson1DeleteSlotTypeCommand = async (input, context) => {
|
|
|
981
981
|
if (labelValue.length <= 0) {
|
|
982
982
|
throw new Error("Empty value provided for input HTTP label: slotTypeId.");
|
|
983
983
|
}
|
|
984
|
-
resolvedPath = resolvedPath.replace("{slotTypeId}",
|
|
984
|
+
resolvedPath = resolvedPath.replace("{slotTypeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
985
985
|
}
|
|
986
986
|
else {
|
|
987
987
|
throw new Error("No value provided for input HTTP label: slotTypeId.");
|
|
@@ -991,7 +991,7 @@ const serializeAws_restJson1DeleteSlotTypeCommand = async (input, context) => {
|
|
|
991
991
|
if (labelValue.length <= 0) {
|
|
992
992
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
993
993
|
}
|
|
994
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
994
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
995
995
|
}
|
|
996
996
|
else {
|
|
997
997
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1001,7 +1001,7 @@ const serializeAws_restJson1DeleteSlotTypeCommand = async (input, context) => {
|
|
|
1001
1001
|
if (labelValue.length <= 0) {
|
|
1002
1002
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
1003
1003
|
}
|
|
1004
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
1004
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1005
1005
|
}
|
|
1006
1006
|
else {
|
|
1007
1007
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -1011,7 +1011,7 @@ const serializeAws_restJson1DeleteSlotTypeCommand = async (input, context) => {
|
|
|
1011
1011
|
if (labelValue.length <= 0) {
|
|
1012
1012
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
1013
1013
|
}
|
|
1014
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
1014
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1015
1015
|
}
|
|
1016
1016
|
else {
|
|
1017
1017
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -1043,7 +1043,7 @@ const serializeAws_restJson1DescribeBotCommand = async (input, context) => {
|
|
|
1043
1043
|
if (labelValue.length <= 0) {
|
|
1044
1044
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1045
1045
|
}
|
|
1046
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1046
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1047
1047
|
}
|
|
1048
1048
|
else {
|
|
1049
1049
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1069,7 +1069,7 @@ const serializeAws_restJson1DescribeBotAliasCommand = async (input, context) =>
|
|
|
1069
1069
|
if (labelValue.length <= 0) {
|
|
1070
1070
|
throw new Error("Empty value provided for input HTTP label: botAliasId.");
|
|
1071
1071
|
}
|
|
1072
|
-
resolvedPath = resolvedPath.replace("{botAliasId}",
|
|
1072
|
+
resolvedPath = resolvedPath.replace("{botAliasId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1073
1073
|
}
|
|
1074
1074
|
else {
|
|
1075
1075
|
throw new Error("No value provided for input HTTP label: botAliasId.");
|
|
@@ -1079,7 +1079,7 @@ const serializeAws_restJson1DescribeBotAliasCommand = async (input, context) =>
|
|
|
1079
1079
|
if (labelValue.length <= 0) {
|
|
1080
1080
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1081
1081
|
}
|
|
1082
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1082
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1083
1083
|
}
|
|
1084
1084
|
else {
|
|
1085
1085
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1106,7 +1106,7 @@ const serializeAws_restJson1DescribeBotLocaleCommand = async (input, context) =>
|
|
|
1106
1106
|
if (labelValue.length <= 0) {
|
|
1107
1107
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1108
1108
|
}
|
|
1109
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1109
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1110
1110
|
}
|
|
1111
1111
|
else {
|
|
1112
1112
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1116,7 +1116,7 @@ const serializeAws_restJson1DescribeBotLocaleCommand = async (input, context) =>
|
|
|
1116
1116
|
if (labelValue.length <= 0) {
|
|
1117
1117
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
1118
1118
|
}
|
|
1119
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
1119
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1120
1120
|
}
|
|
1121
1121
|
else {
|
|
1122
1122
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -1126,7 +1126,7 @@ const serializeAws_restJson1DescribeBotLocaleCommand = async (input, context) =>
|
|
|
1126
1126
|
if (labelValue.length <= 0) {
|
|
1127
1127
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
1128
1128
|
}
|
|
1129
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
1129
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1130
1130
|
}
|
|
1131
1131
|
else {
|
|
1132
1132
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -1152,7 +1152,7 @@ const serializeAws_restJson1DescribeBotVersionCommand = async (input, context) =
|
|
|
1152
1152
|
if (labelValue.length <= 0) {
|
|
1153
1153
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1154
1154
|
}
|
|
1155
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1155
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1156
1156
|
}
|
|
1157
1157
|
else {
|
|
1158
1158
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1162,7 +1162,7 @@ const serializeAws_restJson1DescribeBotVersionCommand = async (input, context) =
|
|
|
1162
1162
|
if (labelValue.length <= 0) {
|
|
1163
1163
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
1164
1164
|
}
|
|
1165
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
1165
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1166
1166
|
}
|
|
1167
1167
|
else {
|
|
1168
1168
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -1188,7 +1188,7 @@ const serializeAws_restJson1DescribeExportCommand = async (input, context) => {
|
|
|
1188
1188
|
if (labelValue.length <= 0) {
|
|
1189
1189
|
throw new Error("Empty value provided for input HTTP label: exportId.");
|
|
1190
1190
|
}
|
|
1191
|
-
resolvedPath = resolvedPath.replace("{exportId}",
|
|
1191
|
+
resolvedPath = resolvedPath.replace("{exportId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1192
1192
|
}
|
|
1193
1193
|
else {
|
|
1194
1194
|
throw new Error("No value provided for input HTTP label: exportId.");
|
|
@@ -1214,7 +1214,7 @@ const serializeAws_restJson1DescribeImportCommand = async (input, context) => {
|
|
|
1214
1214
|
if (labelValue.length <= 0) {
|
|
1215
1215
|
throw new Error("Empty value provided for input HTTP label: importId.");
|
|
1216
1216
|
}
|
|
1217
|
-
resolvedPath = resolvedPath.replace("{importId}",
|
|
1217
|
+
resolvedPath = resolvedPath.replace("{importId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1218
1218
|
}
|
|
1219
1219
|
else {
|
|
1220
1220
|
throw new Error("No value provided for input HTTP label: importId.");
|
|
@@ -1241,7 +1241,7 @@ const serializeAws_restJson1DescribeIntentCommand = async (input, context) => {
|
|
|
1241
1241
|
if (labelValue.length <= 0) {
|
|
1242
1242
|
throw new Error("Empty value provided for input HTTP label: intentId.");
|
|
1243
1243
|
}
|
|
1244
|
-
resolvedPath = resolvedPath.replace("{intentId}",
|
|
1244
|
+
resolvedPath = resolvedPath.replace("{intentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1245
1245
|
}
|
|
1246
1246
|
else {
|
|
1247
1247
|
throw new Error("No value provided for input HTTP label: intentId.");
|
|
@@ -1251,7 +1251,7 @@ const serializeAws_restJson1DescribeIntentCommand = async (input, context) => {
|
|
|
1251
1251
|
if (labelValue.length <= 0) {
|
|
1252
1252
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1253
1253
|
}
|
|
1254
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1254
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1255
1255
|
}
|
|
1256
1256
|
else {
|
|
1257
1257
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1261,7 +1261,7 @@ const serializeAws_restJson1DescribeIntentCommand = async (input, context) => {
|
|
|
1261
1261
|
if (labelValue.length <= 0) {
|
|
1262
1262
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
1263
1263
|
}
|
|
1264
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
1264
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1265
1265
|
}
|
|
1266
1266
|
else {
|
|
1267
1267
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -1271,7 +1271,7 @@ const serializeAws_restJson1DescribeIntentCommand = async (input, context) => {
|
|
|
1271
1271
|
if (labelValue.length <= 0) {
|
|
1272
1272
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
1273
1273
|
}
|
|
1274
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
1274
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1275
1275
|
}
|
|
1276
1276
|
else {
|
|
1277
1277
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -1297,7 +1297,7 @@ const serializeAws_restJson1DescribeResourcePolicyCommand = async (input, contex
|
|
|
1297
1297
|
if (labelValue.length <= 0) {
|
|
1298
1298
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1299
1299
|
}
|
|
1300
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
1300
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1301
1301
|
}
|
|
1302
1302
|
else {
|
|
1303
1303
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -1324,7 +1324,7 @@ const serializeAws_restJson1DescribeSlotCommand = async (input, context) => {
|
|
|
1324
1324
|
if (labelValue.length <= 0) {
|
|
1325
1325
|
throw new Error("Empty value provided for input HTTP label: slotId.");
|
|
1326
1326
|
}
|
|
1327
|
-
resolvedPath = resolvedPath.replace("{slotId}",
|
|
1327
|
+
resolvedPath = resolvedPath.replace("{slotId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1328
1328
|
}
|
|
1329
1329
|
else {
|
|
1330
1330
|
throw new Error("No value provided for input HTTP label: slotId.");
|
|
@@ -1334,7 +1334,7 @@ const serializeAws_restJson1DescribeSlotCommand = async (input, context) => {
|
|
|
1334
1334
|
if (labelValue.length <= 0) {
|
|
1335
1335
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1336
1336
|
}
|
|
1337
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1337
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1338
1338
|
}
|
|
1339
1339
|
else {
|
|
1340
1340
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1344,7 +1344,7 @@ const serializeAws_restJson1DescribeSlotCommand = async (input, context) => {
|
|
|
1344
1344
|
if (labelValue.length <= 0) {
|
|
1345
1345
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
1346
1346
|
}
|
|
1347
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
1347
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1348
1348
|
}
|
|
1349
1349
|
else {
|
|
1350
1350
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -1354,7 +1354,7 @@ const serializeAws_restJson1DescribeSlotCommand = async (input, context) => {
|
|
|
1354
1354
|
if (labelValue.length <= 0) {
|
|
1355
1355
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
1356
1356
|
}
|
|
1357
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
1357
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1358
1358
|
}
|
|
1359
1359
|
else {
|
|
1360
1360
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -1364,7 +1364,7 @@ const serializeAws_restJson1DescribeSlotCommand = async (input, context) => {
|
|
|
1364
1364
|
if (labelValue.length <= 0) {
|
|
1365
1365
|
throw new Error("Empty value provided for input HTTP label: intentId.");
|
|
1366
1366
|
}
|
|
1367
|
-
resolvedPath = resolvedPath.replace("{intentId}",
|
|
1367
|
+
resolvedPath = resolvedPath.replace("{intentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1368
1368
|
}
|
|
1369
1369
|
else {
|
|
1370
1370
|
throw new Error("No value provided for input HTTP label: intentId.");
|
|
@@ -1391,7 +1391,7 @@ const serializeAws_restJson1DescribeSlotTypeCommand = async (input, context) =>
|
|
|
1391
1391
|
if (labelValue.length <= 0) {
|
|
1392
1392
|
throw new Error("Empty value provided for input HTTP label: slotTypeId.");
|
|
1393
1393
|
}
|
|
1394
|
-
resolvedPath = resolvedPath.replace("{slotTypeId}",
|
|
1394
|
+
resolvedPath = resolvedPath.replace("{slotTypeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1395
1395
|
}
|
|
1396
1396
|
else {
|
|
1397
1397
|
throw new Error("No value provided for input HTTP label: slotTypeId.");
|
|
@@ -1401,7 +1401,7 @@ const serializeAws_restJson1DescribeSlotTypeCommand = async (input, context) =>
|
|
|
1401
1401
|
if (labelValue.length <= 0) {
|
|
1402
1402
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1403
1403
|
}
|
|
1404
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1404
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1405
1405
|
}
|
|
1406
1406
|
else {
|
|
1407
1407
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1411,7 +1411,7 @@ const serializeAws_restJson1DescribeSlotTypeCommand = async (input, context) =>
|
|
|
1411
1411
|
if (labelValue.length <= 0) {
|
|
1412
1412
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
1413
1413
|
}
|
|
1414
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
1414
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1415
1415
|
}
|
|
1416
1416
|
else {
|
|
1417
1417
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -1421,7 +1421,7 @@ const serializeAws_restJson1DescribeSlotTypeCommand = async (input, context) =>
|
|
|
1421
1421
|
if (labelValue.length <= 0) {
|
|
1422
1422
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
1423
1423
|
}
|
|
1424
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
1424
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1425
1425
|
}
|
|
1426
1426
|
else {
|
|
1427
1427
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -1449,7 +1449,7 @@ const serializeAws_restJson1ListBotAliasesCommand = async (input, context) => {
|
|
|
1449
1449
|
if (labelValue.length <= 0) {
|
|
1450
1450
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1451
1451
|
}
|
|
1452
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1452
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1453
1453
|
}
|
|
1454
1454
|
else {
|
|
1455
1455
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1482,7 +1482,7 @@ const serializeAws_restJson1ListBotLocalesCommand = async (input, context) => {
|
|
|
1482
1482
|
if (labelValue.length <= 0) {
|
|
1483
1483
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1484
1484
|
}
|
|
1485
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1485
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1486
1486
|
}
|
|
1487
1487
|
else {
|
|
1488
1488
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1492,7 +1492,7 @@ const serializeAws_restJson1ListBotLocalesCommand = async (input, context) => {
|
|
|
1492
1492
|
if (labelValue.length <= 0) {
|
|
1493
1493
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
1494
1494
|
}
|
|
1495
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
1495
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1496
1496
|
}
|
|
1497
1497
|
else {
|
|
1498
1498
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -1554,7 +1554,7 @@ const serializeAws_restJson1ListBotVersionsCommand = async (input, context) => {
|
|
|
1554
1554
|
if (labelValue.length <= 0) {
|
|
1555
1555
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1556
1556
|
}
|
|
1557
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1557
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1558
1558
|
}
|
|
1559
1559
|
else {
|
|
1560
1560
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1588,7 +1588,7 @@ const serializeAws_restJson1ListBuiltInIntentsCommand = async (input, context) =
|
|
|
1588
1588
|
if (labelValue.length <= 0) {
|
|
1589
1589
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
1590
1590
|
}
|
|
1591
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
1591
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1592
1592
|
}
|
|
1593
1593
|
else {
|
|
1594
1594
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -1622,7 +1622,7 @@ const serializeAws_restJson1ListBuiltInSlotTypesCommand = async (input, context)
|
|
|
1622
1622
|
if (labelValue.length <= 0) {
|
|
1623
1623
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
1624
1624
|
}
|
|
1625
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
1625
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1626
1626
|
}
|
|
1627
1627
|
else {
|
|
1628
1628
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -1713,7 +1713,7 @@ const serializeAws_restJson1ListIntentsCommand = async (input, context) => {
|
|
|
1713
1713
|
if (labelValue.length <= 0) {
|
|
1714
1714
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1715
1715
|
}
|
|
1716
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1716
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1717
1717
|
}
|
|
1718
1718
|
else {
|
|
1719
1719
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1723,7 +1723,7 @@ const serializeAws_restJson1ListIntentsCommand = async (input, context) => {
|
|
|
1723
1723
|
if (labelValue.length <= 0) {
|
|
1724
1724
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
1725
1725
|
}
|
|
1726
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
1726
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1727
1727
|
}
|
|
1728
1728
|
else {
|
|
1729
1729
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -1733,7 +1733,7 @@ const serializeAws_restJson1ListIntentsCommand = async (input, context) => {
|
|
|
1733
1733
|
if (labelValue.length <= 0) {
|
|
1734
1734
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
1735
1735
|
}
|
|
1736
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
1736
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1737
1737
|
}
|
|
1738
1738
|
else {
|
|
1739
1739
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -1770,7 +1770,7 @@ const serializeAws_restJson1ListSlotsCommand = async (input, context) => {
|
|
|
1770
1770
|
if (labelValue.length <= 0) {
|
|
1771
1771
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1772
1772
|
}
|
|
1773
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1773
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1774
1774
|
}
|
|
1775
1775
|
else {
|
|
1776
1776
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1780,7 +1780,7 @@ const serializeAws_restJson1ListSlotsCommand = async (input, context) => {
|
|
|
1780
1780
|
if (labelValue.length <= 0) {
|
|
1781
1781
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
1782
1782
|
}
|
|
1783
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
1783
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1784
1784
|
}
|
|
1785
1785
|
else {
|
|
1786
1786
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -1790,7 +1790,7 @@ const serializeAws_restJson1ListSlotsCommand = async (input, context) => {
|
|
|
1790
1790
|
if (labelValue.length <= 0) {
|
|
1791
1791
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
1792
1792
|
}
|
|
1793
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
1793
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1794
1794
|
}
|
|
1795
1795
|
else {
|
|
1796
1796
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -1800,7 +1800,7 @@ const serializeAws_restJson1ListSlotsCommand = async (input, context) => {
|
|
|
1800
1800
|
if (labelValue.length <= 0) {
|
|
1801
1801
|
throw new Error("Empty value provided for input HTTP label: intentId.");
|
|
1802
1802
|
}
|
|
1803
|
-
resolvedPath = resolvedPath.replace("{intentId}",
|
|
1803
|
+
resolvedPath = resolvedPath.replace("{intentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1804
1804
|
}
|
|
1805
1805
|
else {
|
|
1806
1806
|
throw new Error("No value provided for input HTTP label: intentId.");
|
|
@@ -1837,7 +1837,7 @@ const serializeAws_restJson1ListSlotTypesCommand = async (input, context) => {
|
|
|
1837
1837
|
if (labelValue.length <= 0) {
|
|
1838
1838
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1839
1839
|
}
|
|
1840
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
1840
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1841
1841
|
}
|
|
1842
1842
|
else {
|
|
1843
1843
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -1847,7 +1847,7 @@ const serializeAws_restJson1ListSlotTypesCommand = async (input, context) => {
|
|
|
1847
1847
|
if (labelValue.length <= 0) {
|
|
1848
1848
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
1849
1849
|
}
|
|
1850
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
1850
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1851
1851
|
}
|
|
1852
1852
|
else {
|
|
1853
1853
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -1857,7 +1857,7 @@ const serializeAws_restJson1ListSlotTypesCommand = async (input, context) => {
|
|
|
1857
1857
|
if (labelValue.length <= 0) {
|
|
1858
1858
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
1859
1859
|
}
|
|
1860
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
1860
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1861
1861
|
}
|
|
1862
1862
|
else {
|
|
1863
1863
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -1891,7 +1891,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1891
1891
|
if (labelValue.length <= 0) {
|
|
1892
1892
|
throw new Error("Empty value provided for input HTTP label: resourceARN.");
|
|
1893
1893
|
}
|
|
1894
|
-
resolvedPath = resolvedPath.replace("{resourceARN}",
|
|
1894
|
+
resolvedPath = resolvedPath.replace("{resourceARN}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1895
1895
|
}
|
|
1896
1896
|
else {
|
|
1897
1897
|
throw new Error("No value provided for input HTTP label: resourceARN.");
|
|
@@ -1946,7 +1946,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1946
1946
|
if (labelValue.length <= 0) {
|
|
1947
1947
|
throw new Error("Empty value provided for input HTTP label: resourceARN.");
|
|
1948
1948
|
}
|
|
1949
|
-
resolvedPath = resolvedPath.replace("{resourceARN}",
|
|
1949
|
+
resolvedPath = resolvedPath.replace("{resourceARN}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1950
1950
|
}
|
|
1951
1951
|
else {
|
|
1952
1952
|
throw new Error("No value provided for input HTTP label: resourceARN.");
|
|
@@ -1975,7 +1975,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1975
1975
|
if (labelValue.length <= 0) {
|
|
1976
1976
|
throw new Error("Empty value provided for input HTTP label: resourceARN.");
|
|
1977
1977
|
}
|
|
1978
|
-
resolvedPath = resolvedPath.replace("{resourceARN}",
|
|
1978
|
+
resolvedPath = resolvedPath.replace("{resourceARN}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1979
1979
|
}
|
|
1980
1980
|
else {
|
|
1981
1981
|
throw new Error("No value provided for input HTTP label: resourceARN.");
|
|
@@ -2007,7 +2007,7 @@ const serializeAws_restJson1UpdateBotCommand = async (input, context) => {
|
|
|
2007
2007
|
if (labelValue.length <= 0) {
|
|
2008
2008
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
2009
2009
|
}
|
|
2010
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
2010
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2011
2011
|
}
|
|
2012
2012
|
else {
|
|
2013
2013
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -2044,7 +2044,7 @@ const serializeAws_restJson1UpdateBotAliasCommand = async (input, context) => {
|
|
|
2044
2044
|
if (labelValue.length <= 0) {
|
|
2045
2045
|
throw new Error("Empty value provided for input HTTP label: botAliasId.");
|
|
2046
2046
|
}
|
|
2047
|
-
resolvedPath = resolvedPath.replace("{botAliasId}",
|
|
2047
|
+
resolvedPath = resolvedPath.replace("{botAliasId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2048
2048
|
}
|
|
2049
2049
|
else {
|
|
2050
2050
|
throw new Error("No value provided for input HTTP label: botAliasId.");
|
|
@@ -2054,7 +2054,7 @@ const serializeAws_restJson1UpdateBotAliasCommand = async (input, context) => {
|
|
|
2054
2054
|
if (labelValue.length <= 0) {
|
|
2055
2055
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
2056
2056
|
}
|
|
2057
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
2057
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2058
2058
|
}
|
|
2059
2059
|
else {
|
|
2060
2060
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -2100,7 +2100,7 @@ const serializeAws_restJson1UpdateBotLocaleCommand = async (input, context) => {
|
|
|
2100
2100
|
if (labelValue.length <= 0) {
|
|
2101
2101
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
2102
2102
|
}
|
|
2103
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
2103
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2104
2104
|
}
|
|
2105
2105
|
else {
|
|
2106
2106
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -2110,7 +2110,7 @@ const serializeAws_restJson1UpdateBotLocaleCommand = async (input, context) => {
|
|
|
2110
2110
|
if (labelValue.length <= 0) {
|
|
2111
2111
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
2112
2112
|
}
|
|
2113
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
2113
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2114
2114
|
}
|
|
2115
2115
|
else {
|
|
2116
2116
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -2120,7 +2120,7 @@ const serializeAws_restJson1UpdateBotLocaleCommand = async (input, context) => {
|
|
|
2120
2120
|
if (labelValue.length <= 0) {
|
|
2121
2121
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
2122
2122
|
}
|
|
2123
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
2123
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2124
2124
|
}
|
|
2125
2125
|
else {
|
|
2126
2126
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -2130,7 +2130,7 @@ const serializeAws_restJson1UpdateBotLocaleCommand = async (input, context) => {
|
|
|
2130
2130
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
2131
2131
|
...(input.nluIntentConfidenceThreshold !== undefined &&
|
|
2132
2132
|
input.nluIntentConfidenceThreshold !== null && {
|
|
2133
|
-
nluIntentConfidenceThreshold:
|
|
2133
|
+
nluIntentConfidenceThreshold: smithy_client_1.serializeFloat(input.nluIntentConfidenceThreshold),
|
|
2134
2134
|
}),
|
|
2135
2135
|
...(input.voiceSettings !== undefined &&
|
|
2136
2136
|
input.voiceSettings !== null && {
|
|
@@ -2159,7 +2159,7 @@ const serializeAws_restJson1UpdateExportCommand = async (input, context) => {
|
|
|
2159
2159
|
if (labelValue.length <= 0) {
|
|
2160
2160
|
throw new Error("Empty value provided for input HTTP label: exportId.");
|
|
2161
2161
|
}
|
|
2162
|
-
resolvedPath = resolvedPath.replace("{exportId}",
|
|
2162
|
+
resolvedPath = resolvedPath.replace("{exportId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2163
2163
|
}
|
|
2164
2164
|
else {
|
|
2165
2165
|
throw new Error("No value provided for input HTTP label: exportId.");
|
|
@@ -2191,7 +2191,7 @@ const serializeAws_restJson1UpdateIntentCommand = async (input, context) => {
|
|
|
2191
2191
|
if (labelValue.length <= 0) {
|
|
2192
2192
|
throw new Error("Empty value provided for input HTTP label: intentId.");
|
|
2193
2193
|
}
|
|
2194
|
-
resolvedPath = resolvedPath.replace("{intentId}",
|
|
2194
|
+
resolvedPath = resolvedPath.replace("{intentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2195
2195
|
}
|
|
2196
2196
|
else {
|
|
2197
2197
|
throw new Error("No value provided for input HTTP label: intentId.");
|
|
@@ -2201,7 +2201,7 @@ const serializeAws_restJson1UpdateIntentCommand = async (input, context) => {
|
|
|
2201
2201
|
if (labelValue.length <= 0) {
|
|
2202
2202
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
2203
2203
|
}
|
|
2204
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
2204
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2205
2205
|
}
|
|
2206
2206
|
else {
|
|
2207
2207
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -2211,7 +2211,7 @@ const serializeAws_restJson1UpdateIntentCommand = async (input, context) => {
|
|
|
2211
2211
|
if (labelValue.length <= 0) {
|
|
2212
2212
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
2213
2213
|
}
|
|
2214
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
2214
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2215
2215
|
}
|
|
2216
2216
|
else {
|
|
2217
2217
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -2221,7 +2221,7 @@ const serializeAws_restJson1UpdateIntentCommand = async (input, context) => {
|
|
|
2221
2221
|
if (labelValue.length <= 0) {
|
|
2222
2222
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
2223
2223
|
}
|
|
2224
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
2224
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2225
2225
|
}
|
|
2226
2226
|
else {
|
|
2227
2227
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -2291,7 +2291,7 @@ const serializeAws_restJson1UpdateResourcePolicyCommand = async (input, context)
|
|
|
2291
2291
|
if (labelValue.length <= 0) {
|
|
2292
2292
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
2293
2293
|
}
|
|
2294
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
2294
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2295
2295
|
}
|
|
2296
2296
|
else {
|
|
2297
2297
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -2327,7 +2327,7 @@ const serializeAws_restJson1UpdateSlotCommand = async (input, context) => {
|
|
|
2327
2327
|
if (labelValue.length <= 0) {
|
|
2328
2328
|
throw new Error("Empty value provided for input HTTP label: slotId.");
|
|
2329
2329
|
}
|
|
2330
|
-
resolvedPath = resolvedPath.replace("{slotId}",
|
|
2330
|
+
resolvedPath = resolvedPath.replace("{slotId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2331
2331
|
}
|
|
2332
2332
|
else {
|
|
2333
2333
|
throw new Error("No value provided for input HTTP label: slotId.");
|
|
@@ -2337,7 +2337,7 @@ const serializeAws_restJson1UpdateSlotCommand = async (input, context) => {
|
|
|
2337
2337
|
if (labelValue.length <= 0) {
|
|
2338
2338
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
2339
2339
|
}
|
|
2340
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
2340
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2341
2341
|
}
|
|
2342
2342
|
else {
|
|
2343
2343
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -2347,7 +2347,7 @@ const serializeAws_restJson1UpdateSlotCommand = async (input, context) => {
|
|
|
2347
2347
|
if (labelValue.length <= 0) {
|
|
2348
2348
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
2349
2349
|
}
|
|
2350
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
2350
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2351
2351
|
}
|
|
2352
2352
|
else {
|
|
2353
2353
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -2357,7 +2357,7 @@ const serializeAws_restJson1UpdateSlotCommand = async (input, context) => {
|
|
|
2357
2357
|
if (labelValue.length <= 0) {
|
|
2358
2358
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
2359
2359
|
}
|
|
2360
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
2360
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2361
2361
|
}
|
|
2362
2362
|
else {
|
|
2363
2363
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -2367,7 +2367,7 @@ const serializeAws_restJson1UpdateSlotCommand = async (input, context) => {
|
|
|
2367
2367
|
if (labelValue.length <= 0) {
|
|
2368
2368
|
throw new Error("Empty value provided for input HTTP label: intentId.");
|
|
2369
2369
|
}
|
|
2370
|
-
resolvedPath = resolvedPath.replace("{intentId}",
|
|
2370
|
+
resolvedPath = resolvedPath.replace("{intentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2371
2371
|
}
|
|
2372
2372
|
else {
|
|
2373
2373
|
throw new Error("No value provided for input HTTP label: intentId.");
|
|
@@ -2413,7 +2413,7 @@ const serializeAws_restJson1UpdateSlotTypeCommand = async (input, context) => {
|
|
|
2413
2413
|
if (labelValue.length <= 0) {
|
|
2414
2414
|
throw new Error("Empty value provided for input HTTP label: slotTypeId.");
|
|
2415
2415
|
}
|
|
2416
|
-
resolvedPath = resolvedPath.replace("{slotTypeId}",
|
|
2416
|
+
resolvedPath = resolvedPath.replace("{slotTypeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2417
2417
|
}
|
|
2418
2418
|
else {
|
|
2419
2419
|
throw new Error("No value provided for input HTTP label: slotTypeId.");
|
|
@@ -2423,7 +2423,7 @@ const serializeAws_restJson1UpdateSlotTypeCommand = async (input, context) => {
|
|
|
2423
2423
|
if (labelValue.length <= 0) {
|
|
2424
2424
|
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
2425
2425
|
}
|
|
2426
|
-
resolvedPath = resolvedPath.replace("{botId}",
|
|
2426
|
+
resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2427
2427
|
}
|
|
2428
2428
|
else {
|
|
2429
2429
|
throw new Error("No value provided for input HTTP label: botId.");
|
|
@@ -2433,7 +2433,7 @@ const serializeAws_restJson1UpdateSlotTypeCommand = async (input, context) => {
|
|
|
2433
2433
|
if (labelValue.length <= 0) {
|
|
2434
2434
|
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
2435
2435
|
}
|
|
2436
|
-
resolvedPath = resolvedPath.replace("{botVersion}",
|
|
2436
|
+
resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2437
2437
|
}
|
|
2438
2438
|
else {
|
|
2439
2439
|
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
@@ -2443,7 +2443,7 @@ const serializeAws_restJson1UpdateSlotTypeCommand = async (input, context) => {
|
|
|
2443
2443
|
if (labelValue.length <= 0) {
|
|
2444
2444
|
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
2445
2445
|
}
|
|
2446
|
-
resolvedPath = resolvedPath.replace("{localeId}",
|
|
2446
|
+
resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2447
2447
|
}
|
|
2448
2448
|
else {
|
|
2449
2449
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
@@ -2486,21 +2486,21 @@ const deserializeAws_restJson1BuildBotLocaleCommand = async (output, context) =>
|
|
|
2486
2486
|
lastBuildSubmittedDateTime: undefined,
|
|
2487
2487
|
localeId: undefined,
|
|
2488
2488
|
};
|
|
2489
|
-
const data =
|
|
2489
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2490
2490
|
if (data.botId !== undefined && data.botId !== null) {
|
|
2491
|
-
contents.botId =
|
|
2491
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
2492
2492
|
}
|
|
2493
2493
|
if (data.botLocaleStatus !== undefined && data.botLocaleStatus !== null) {
|
|
2494
|
-
contents.botLocaleStatus =
|
|
2494
|
+
contents.botLocaleStatus = smithy_client_1.expectString(data.botLocaleStatus);
|
|
2495
2495
|
}
|
|
2496
2496
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
2497
|
-
contents.botVersion =
|
|
2497
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
2498
2498
|
}
|
|
2499
2499
|
if (data.lastBuildSubmittedDateTime !== undefined && data.lastBuildSubmittedDateTime !== null) {
|
|
2500
|
-
contents.lastBuildSubmittedDateTime =
|
|
2500
|
+
contents.lastBuildSubmittedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastBuildSubmittedDateTime)));
|
|
2501
2501
|
}
|
|
2502
2502
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
2503
|
-
contents.localeId =
|
|
2503
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
2504
2504
|
}
|
|
2505
2505
|
return Promise.resolve(contents);
|
|
2506
2506
|
};
|
|
@@ -2595,33 +2595,33 @@ const deserializeAws_restJson1CreateBotCommand = async (output, context) => {
|
|
|
2595
2595
|
roleArn: undefined,
|
|
2596
2596
|
testBotAliasTags: undefined,
|
|
2597
2597
|
};
|
|
2598
|
-
const data =
|
|
2598
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2599
2599
|
if (data.botId !== undefined && data.botId !== null) {
|
|
2600
|
-
contents.botId =
|
|
2600
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
2601
2601
|
}
|
|
2602
2602
|
if (data.botName !== undefined && data.botName !== null) {
|
|
2603
|
-
contents.botName =
|
|
2603
|
+
contents.botName = smithy_client_1.expectString(data.botName);
|
|
2604
2604
|
}
|
|
2605
2605
|
if (data.botStatus !== undefined && data.botStatus !== null) {
|
|
2606
|
-
contents.botStatus =
|
|
2606
|
+
contents.botStatus = smithy_client_1.expectString(data.botStatus);
|
|
2607
2607
|
}
|
|
2608
2608
|
if (data.botTags !== undefined && data.botTags !== null) {
|
|
2609
2609
|
contents.botTags = deserializeAws_restJson1TagMap(data.botTags, context);
|
|
2610
2610
|
}
|
|
2611
2611
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
2612
|
-
contents.creationDateTime =
|
|
2612
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
2613
2613
|
}
|
|
2614
2614
|
if (data.dataPrivacy !== undefined && data.dataPrivacy !== null) {
|
|
2615
2615
|
contents.dataPrivacy = deserializeAws_restJson1DataPrivacy(data.dataPrivacy, context);
|
|
2616
2616
|
}
|
|
2617
2617
|
if (data.description !== undefined && data.description !== null) {
|
|
2618
|
-
contents.description =
|
|
2618
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
2619
2619
|
}
|
|
2620
2620
|
if (data.idleSessionTTLInSeconds !== undefined && data.idleSessionTTLInSeconds !== null) {
|
|
2621
|
-
contents.idleSessionTTLInSeconds =
|
|
2621
|
+
contents.idleSessionTTLInSeconds = smithy_client_1.expectInt32(data.idleSessionTTLInSeconds);
|
|
2622
2622
|
}
|
|
2623
2623
|
if (data.roleArn !== undefined && data.roleArn !== null) {
|
|
2624
|
-
contents.roleArn =
|
|
2624
|
+
contents.roleArn = smithy_client_1.expectString(data.roleArn);
|
|
2625
2625
|
}
|
|
2626
2626
|
if (data.testBotAliasTags !== undefined && data.testBotAliasTags !== null) {
|
|
2627
2627
|
contents.testBotAliasTags = deserializeAws_restJson1TagMap(data.testBotAliasTags, context);
|
|
@@ -2720,33 +2720,33 @@ const deserializeAws_restJson1CreateBotAliasCommand = async (output, context) =>
|
|
|
2720
2720
|
sentimentAnalysisSettings: undefined,
|
|
2721
2721
|
tags: undefined,
|
|
2722
2722
|
};
|
|
2723
|
-
const data =
|
|
2723
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2724
2724
|
if (data.botAliasId !== undefined && data.botAliasId !== null) {
|
|
2725
|
-
contents.botAliasId =
|
|
2725
|
+
contents.botAliasId = smithy_client_1.expectString(data.botAliasId);
|
|
2726
2726
|
}
|
|
2727
2727
|
if (data.botAliasLocaleSettings !== undefined && data.botAliasLocaleSettings !== null) {
|
|
2728
2728
|
contents.botAliasLocaleSettings = deserializeAws_restJson1BotAliasLocaleSettingsMap(data.botAliasLocaleSettings, context);
|
|
2729
2729
|
}
|
|
2730
2730
|
if (data.botAliasName !== undefined && data.botAliasName !== null) {
|
|
2731
|
-
contents.botAliasName =
|
|
2731
|
+
contents.botAliasName = smithy_client_1.expectString(data.botAliasName);
|
|
2732
2732
|
}
|
|
2733
2733
|
if (data.botAliasStatus !== undefined && data.botAliasStatus !== null) {
|
|
2734
|
-
contents.botAliasStatus =
|
|
2734
|
+
contents.botAliasStatus = smithy_client_1.expectString(data.botAliasStatus);
|
|
2735
2735
|
}
|
|
2736
2736
|
if (data.botId !== undefined && data.botId !== null) {
|
|
2737
|
-
contents.botId =
|
|
2737
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
2738
2738
|
}
|
|
2739
2739
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
2740
|
-
contents.botVersion =
|
|
2740
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
2741
2741
|
}
|
|
2742
2742
|
if (data.conversationLogSettings !== undefined && data.conversationLogSettings !== null) {
|
|
2743
2743
|
contents.conversationLogSettings = deserializeAws_restJson1ConversationLogSettings(data.conversationLogSettings, context);
|
|
2744
2744
|
}
|
|
2745
2745
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
2746
|
-
contents.creationDateTime =
|
|
2746
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
2747
2747
|
}
|
|
2748
2748
|
if (data.description !== undefined && data.description !== null) {
|
|
2749
|
-
contents.description =
|
|
2749
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
2750
2750
|
}
|
|
2751
2751
|
if (data.sentimentAnalysisSettings !== undefined && data.sentimentAnalysisSettings !== null) {
|
|
2752
2752
|
contents.sentimentAnalysisSettings = deserializeAws_restJson1SentimentAnalysisSettings(data.sentimentAnalysisSettings, context);
|
|
@@ -2846,30 +2846,30 @@ const deserializeAws_restJson1CreateBotLocaleCommand = async (output, context) =
|
|
|
2846
2846
|
nluIntentConfidenceThreshold: undefined,
|
|
2847
2847
|
voiceSettings: undefined,
|
|
2848
2848
|
};
|
|
2849
|
-
const data =
|
|
2849
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2850
2850
|
if (data.botId !== undefined && data.botId !== null) {
|
|
2851
|
-
contents.botId =
|
|
2851
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
2852
2852
|
}
|
|
2853
2853
|
if (data.botLocaleStatus !== undefined && data.botLocaleStatus !== null) {
|
|
2854
|
-
contents.botLocaleStatus =
|
|
2854
|
+
contents.botLocaleStatus = smithy_client_1.expectString(data.botLocaleStatus);
|
|
2855
2855
|
}
|
|
2856
2856
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
2857
|
-
contents.botVersion =
|
|
2857
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
2858
2858
|
}
|
|
2859
2859
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
2860
|
-
contents.creationDateTime =
|
|
2860
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
2861
2861
|
}
|
|
2862
2862
|
if (data.description !== undefined && data.description !== null) {
|
|
2863
|
-
contents.description =
|
|
2863
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
2864
2864
|
}
|
|
2865
2865
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
2866
|
-
contents.localeId =
|
|
2866
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
2867
2867
|
}
|
|
2868
2868
|
if (data.localeName !== undefined && data.localeName !== null) {
|
|
2869
|
-
contents.localeName =
|
|
2869
|
+
contents.localeName = smithy_client_1.expectString(data.localeName);
|
|
2870
2870
|
}
|
|
2871
2871
|
if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) {
|
|
2872
|
-
contents.nluIntentConfidenceThreshold =
|
|
2872
|
+
contents.nluIntentConfidenceThreshold = smithy_client_1.limitedParseDouble(data.nluIntentConfidenceThreshold);
|
|
2873
2873
|
}
|
|
2874
2874
|
if (data.voiceSettings !== undefined && data.voiceSettings !== null) {
|
|
2875
2875
|
contents.voiceSettings = deserializeAws_restJson1VoiceSettings(data.voiceSettings, context);
|
|
@@ -2963,24 +2963,24 @@ const deserializeAws_restJson1CreateBotVersionCommand = async (output, context)
|
|
|
2963
2963
|
creationDateTime: undefined,
|
|
2964
2964
|
description: undefined,
|
|
2965
2965
|
};
|
|
2966
|
-
const data =
|
|
2966
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2967
2967
|
if (data.botId !== undefined && data.botId !== null) {
|
|
2968
|
-
contents.botId =
|
|
2968
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
2969
2969
|
}
|
|
2970
2970
|
if (data.botStatus !== undefined && data.botStatus !== null) {
|
|
2971
|
-
contents.botStatus =
|
|
2971
|
+
contents.botStatus = smithy_client_1.expectString(data.botStatus);
|
|
2972
2972
|
}
|
|
2973
2973
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
2974
|
-
contents.botVersion =
|
|
2974
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
2975
2975
|
}
|
|
2976
2976
|
if (data.botVersionLocaleSpecification !== undefined && data.botVersionLocaleSpecification !== null) {
|
|
2977
2977
|
contents.botVersionLocaleSpecification = deserializeAws_restJson1BotVersionLocaleSpecification(data.botVersionLocaleSpecification, context);
|
|
2978
2978
|
}
|
|
2979
2979
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
2980
|
-
contents.creationDateTime =
|
|
2980
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
2981
2981
|
}
|
|
2982
2982
|
if (data.description !== undefined && data.description !== null) {
|
|
2983
|
-
contents.description =
|
|
2983
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
2984
2984
|
}
|
|
2985
2985
|
return Promise.resolve(contents);
|
|
2986
2986
|
};
|
|
@@ -3070,18 +3070,18 @@ const deserializeAws_restJson1CreateExportCommand = async (output, context) => {
|
|
|
3070
3070
|
fileFormat: undefined,
|
|
3071
3071
|
resourceSpecification: undefined,
|
|
3072
3072
|
};
|
|
3073
|
-
const data =
|
|
3073
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3074
3074
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
3075
|
-
contents.creationDateTime =
|
|
3075
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
3076
3076
|
}
|
|
3077
3077
|
if (data.exportId !== undefined && data.exportId !== null) {
|
|
3078
|
-
contents.exportId =
|
|
3078
|
+
contents.exportId = smithy_client_1.expectString(data.exportId);
|
|
3079
3079
|
}
|
|
3080
3080
|
if (data.exportStatus !== undefined && data.exportStatus !== null) {
|
|
3081
|
-
contents.exportStatus =
|
|
3081
|
+
contents.exportStatus = smithy_client_1.expectString(data.exportStatus);
|
|
3082
3082
|
}
|
|
3083
3083
|
if (data.fileFormat !== undefined && data.fileFormat !== null) {
|
|
3084
|
-
contents.fileFormat =
|
|
3084
|
+
contents.fileFormat = smithy_client_1.expectString(data.fileFormat);
|
|
3085
3085
|
}
|
|
3086
3086
|
if (data.resourceSpecification !== undefined && data.resourceSpecification !== null) {
|
|
3087
3087
|
contents.resourceSpecification = deserializeAws_restJson1ExportResourceSpecification(data.resourceSpecification, context);
|
|
@@ -3185,18 +3185,18 @@ const deserializeAws_restJson1CreateIntentCommand = async (output, context) => {
|
|
|
3185
3185
|
parentIntentSignature: undefined,
|
|
3186
3186
|
sampleUtterances: undefined,
|
|
3187
3187
|
};
|
|
3188
|
-
const data =
|
|
3188
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3189
3189
|
if (data.botId !== undefined && data.botId !== null) {
|
|
3190
|
-
contents.botId =
|
|
3190
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
3191
3191
|
}
|
|
3192
3192
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
3193
|
-
contents.botVersion =
|
|
3193
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
3194
3194
|
}
|
|
3195
3195
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
3196
|
-
contents.creationDateTime =
|
|
3196
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
3197
3197
|
}
|
|
3198
3198
|
if (data.description !== undefined && data.description !== null) {
|
|
3199
|
-
contents.description =
|
|
3199
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
3200
3200
|
}
|
|
3201
3201
|
if (data.dialogCodeHook !== undefined && data.dialogCodeHook !== null) {
|
|
3202
3202
|
contents.dialogCodeHook = deserializeAws_restJson1DialogCodeHookSettings(data.dialogCodeHook, context);
|
|
@@ -3214,22 +3214,22 @@ const deserializeAws_restJson1CreateIntentCommand = async (output, context) => {
|
|
|
3214
3214
|
contents.intentConfirmationSetting = deserializeAws_restJson1IntentConfirmationSetting(data.intentConfirmationSetting, context);
|
|
3215
3215
|
}
|
|
3216
3216
|
if (data.intentId !== undefined && data.intentId !== null) {
|
|
3217
|
-
contents.intentId =
|
|
3217
|
+
contents.intentId = smithy_client_1.expectString(data.intentId);
|
|
3218
3218
|
}
|
|
3219
3219
|
if (data.intentName !== undefined && data.intentName !== null) {
|
|
3220
|
-
contents.intentName =
|
|
3220
|
+
contents.intentName = smithy_client_1.expectString(data.intentName);
|
|
3221
3221
|
}
|
|
3222
3222
|
if (data.kendraConfiguration !== undefined && data.kendraConfiguration !== null) {
|
|
3223
3223
|
contents.kendraConfiguration = deserializeAws_restJson1KendraConfiguration(data.kendraConfiguration, context);
|
|
3224
3224
|
}
|
|
3225
3225
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
3226
|
-
contents.localeId =
|
|
3226
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
3227
3227
|
}
|
|
3228
3228
|
if (data.outputContexts !== undefined && data.outputContexts !== null) {
|
|
3229
3229
|
contents.outputContexts = deserializeAws_restJson1OutputContextsList(data.outputContexts, context);
|
|
3230
3230
|
}
|
|
3231
3231
|
if (data.parentIntentSignature !== undefined && data.parentIntentSignature !== null) {
|
|
3232
|
-
contents.parentIntentSignature =
|
|
3232
|
+
contents.parentIntentSignature = smithy_client_1.expectString(data.parentIntentSignature);
|
|
3233
3233
|
}
|
|
3234
3234
|
if (data.sampleUtterances !== undefined && data.sampleUtterances !== null) {
|
|
3235
3235
|
contents.sampleUtterances = deserializeAws_restJson1SampleUtterancesList(data.sampleUtterances, context);
|
|
@@ -3319,12 +3319,12 @@ const deserializeAws_restJson1CreateResourcePolicyCommand = async (output, conte
|
|
|
3319
3319
|
resourceArn: undefined,
|
|
3320
3320
|
revisionId: undefined,
|
|
3321
3321
|
};
|
|
3322
|
-
const data =
|
|
3322
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3323
3323
|
if (data.resourceArn !== undefined && data.resourceArn !== null) {
|
|
3324
|
-
contents.resourceArn =
|
|
3324
|
+
contents.resourceArn = smithy_client_1.expectString(data.resourceArn);
|
|
3325
3325
|
}
|
|
3326
3326
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
3327
|
-
contents.revisionId =
|
|
3327
|
+
contents.revisionId = smithy_client_1.expectString(data.revisionId);
|
|
3328
3328
|
}
|
|
3329
3329
|
return Promise.resolve(contents);
|
|
3330
3330
|
};
|
|
@@ -3411,12 +3411,12 @@ const deserializeAws_restJson1CreateResourcePolicyStatementCommand = async (outp
|
|
|
3411
3411
|
resourceArn: undefined,
|
|
3412
3412
|
revisionId: undefined,
|
|
3413
3413
|
};
|
|
3414
|
-
const data =
|
|
3414
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3415
3415
|
if (data.resourceArn !== undefined && data.resourceArn !== null) {
|
|
3416
|
-
contents.resourceArn =
|
|
3416
|
+
contents.resourceArn = smithy_client_1.expectString(data.resourceArn);
|
|
3417
3417
|
}
|
|
3418
3418
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
3419
|
-
contents.revisionId =
|
|
3419
|
+
contents.revisionId = smithy_client_1.expectString(data.revisionId);
|
|
3420
3420
|
}
|
|
3421
3421
|
return Promise.resolve(contents);
|
|
3422
3422
|
};
|
|
@@ -3521,24 +3521,24 @@ const deserializeAws_restJson1CreateSlotCommand = async (output, context) => {
|
|
|
3521
3521
|
slotTypeId: undefined,
|
|
3522
3522
|
valueElicitationSetting: undefined,
|
|
3523
3523
|
};
|
|
3524
|
-
const data =
|
|
3524
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3525
3525
|
if (data.botId !== undefined && data.botId !== null) {
|
|
3526
|
-
contents.botId =
|
|
3526
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
3527
3527
|
}
|
|
3528
3528
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
3529
|
-
contents.botVersion =
|
|
3529
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
3530
3530
|
}
|
|
3531
3531
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
3532
|
-
contents.creationDateTime =
|
|
3532
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
3533
3533
|
}
|
|
3534
3534
|
if (data.description !== undefined && data.description !== null) {
|
|
3535
|
-
contents.description =
|
|
3535
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
3536
3536
|
}
|
|
3537
3537
|
if (data.intentId !== undefined && data.intentId !== null) {
|
|
3538
|
-
contents.intentId =
|
|
3538
|
+
contents.intentId = smithy_client_1.expectString(data.intentId);
|
|
3539
3539
|
}
|
|
3540
3540
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
3541
|
-
contents.localeId =
|
|
3541
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
3542
3542
|
}
|
|
3543
3543
|
if (data.multipleValuesSetting !== undefined && data.multipleValuesSetting !== null) {
|
|
3544
3544
|
contents.multipleValuesSetting = deserializeAws_restJson1MultipleValuesSetting(data.multipleValuesSetting, context);
|
|
@@ -3547,13 +3547,13 @@ const deserializeAws_restJson1CreateSlotCommand = async (output, context) => {
|
|
|
3547
3547
|
contents.obfuscationSetting = deserializeAws_restJson1ObfuscationSetting(data.obfuscationSetting, context);
|
|
3548
3548
|
}
|
|
3549
3549
|
if (data.slotId !== undefined && data.slotId !== null) {
|
|
3550
|
-
contents.slotId =
|
|
3550
|
+
contents.slotId = smithy_client_1.expectString(data.slotId);
|
|
3551
3551
|
}
|
|
3552
3552
|
if (data.slotName !== undefined && data.slotName !== null) {
|
|
3553
|
-
contents.slotName =
|
|
3553
|
+
contents.slotName = smithy_client_1.expectString(data.slotName);
|
|
3554
3554
|
}
|
|
3555
3555
|
if (data.slotTypeId !== undefined && data.slotTypeId !== null) {
|
|
3556
|
-
contents.slotTypeId =
|
|
3556
|
+
contents.slotTypeId = smithy_client_1.expectString(data.slotTypeId);
|
|
3557
3557
|
}
|
|
3558
3558
|
if (data.valueElicitationSetting !== undefined && data.valueElicitationSetting !== null) {
|
|
3559
3559
|
contents.valueElicitationSetting = deserializeAws_restJson1SlotValueElicitationSetting(data.valueElicitationSetting, context);
|
|
@@ -3651,30 +3651,30 @@ const deserializeAws_restJson1CreateSlotTypeCommand = async (output, context) =>
|
|
|
3651
3651
|
slotTypeValues: undefined,
|
|
3652
3652
|
valueSelectionSetting: undefined,
|
|
3653
3653
|
};
|
|
3654
|
-
const data =
|
|
3654
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3655
3655
|
if (data.botId !== undefined && data.botId !== null) {
|
|
3656
|
-
contents.botId =
|
|
3656
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
3657
3657
|
}
|
|
3658
3658
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
3659
|
-
contents.botVersion =
|
|
3659
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
3660
3660
|
}
|
|
3661
3661
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
3662
|
-
contents.creationDateTime =
|
|
3662
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
3663
3663
|
}
|
|
3664
3664
|
if (data.description !== undefined && data.description !== null) {
|
|
3665
|
-
contents.description =
|
|
3665
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
3666
3666
|
}
|
|
3667
3667
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
3668
|
-
contents.localeId =
|
|
3668
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
3669
3669
|
}
|
|
3670
3670
|
if (data.parentSlotTypeSignature !== undefined && data.parentSlotTypeSignature !== null) {
|
|
3671
|
-
contents.parentSlotTypeSignature =
|
|
3671
|
+
contents.parentSlotTypeSignature = smithy_client_1.expectString(data.parentSlotTypeSignature);
|
|
3672
3672
|
}
|
|
3673
3673
|
if (data.slotTypeId !== undefined && data.slotTypeId !== null) {
|
|
3674
|
-
contents.slotTypeId =
|
|
3674
|
+
contents.slotTypeId = smithy_client_1.expectString(data.slotTypeId);
|
|
3675
3675
|
}
|
|
3676
3676
|
if (data.slotTypeName !== undefined && data.slotTypeName !== null) {
|
|
3677
|
-
contents.slotTypeName =
|
|
3677
|
+
contents.slotTypeName = smithy_client_1.expectString(data.slotTypeName);
|
|
3678
3678
|
}
|
|
3679
3679
|
if (data.slotTypeValues !== undefined && data.slotTypeValues !== null) {
|
|
3680
3680
|
contents.slotTypeValues = deserializeAws_restJson1SlotTypeValues(data.slotTypeValues, context);
|
|
@@ -3767,12 +3767,12 @@ const deserializeAws_restJson1CreateUploadUrlCommand = async (output, context) =
|
|
|
3767
3767
|
importId: undefined,
|
|
3768
3768
|
uploadUrl: undefined,
|
|
3769
3769
|
};
|
|
3770
|
-
const data =
|
|
3770
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3771
3771
|
if (data.importId !== undefined && data.importId !== null) {
|
|
3772
|
-
contents.importId =
|
|
3772
|
+
contents.importId = smithy_client_1.expectString(data.importId);
|
|
3773
3773
|
}
|
|
3774
3774
|
if (data.uploadUrl !== undefined && data.uploadUrl !== null) {
|
|
3775
|
-
contents.uploadUrl =
|
|
3775
|
+
contents.uploadUrl = smithy_client_1.expectString(data.uploadUrl);
|
|
3776
3776
|
}
|
|
3777
3777
|
return Promise.resolve(contents);
|
|
3778
3778
|
};
|
|
@@ -3851,12 +3851,12 @@ const deserializeAws_restJson1DeleteBotCommand = async (output, context) => {
|
|
|
3851
3851
|
botId: undefined,
|
|
3852
3852
|
botStatus: undefined,
|
|
3853
3853
|
};
|
|
3854
|
-
const data =
|
|
3854
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3855
3855
|
if (data.botId !== undefined && data.botId !== null) {
|
|
3856
|
-
contents.botId =
|
|
3856
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
3857
3857
|
}
|
|
3858
3858
|
if (data.botStatus !== undefined && data.botStatus !== null) {
|
|
3859
|
-
contents.botStatus =
|
|
3859
|
+
contents.botStatus = smithy_client_1.expectString(data.botStatus);
|
|
3860
3860
|
}
|
|
3861
3861
|
return Promise.resolve(contents);
|
|
3862
3862
|
};
|
|
@@ -3944,15 +3944,15 @@ const deserializeAws_restJson1DeleteBotAliasCommand = async (output, context) =>
|
|
|
3944
3944
|
botAliasStatus: undefined,
|
|
3945
3945
|
botId: undefined,
|
|
3946
3946
|
};
|
|
3947
|
-
const data =
|
|
3947
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3948
3948
|
if (data.botAliasId !== undefined && data.botAliasId !== null) {
|
|
3949
|
-
contents.botAliasId =
|
|
3949
|
+
contents.botAliasId = smithy_client_1.expectString(data.botAliasId);
|
|
3950
3950
|
}
|
|
3951
3951
|
if (data.botAliasStatus !== undefined && data.botAliasStatus !== null) {
|
|
3952
|
-
contents.botAliasStatus =
|
|
3952
|
+
contents.botAliasStatus = smithy_client_1.expectString(data.botAliasStatus);
|
|
3953
3953
|
}
|
|
3954
3954
|
if (data.botId !== undefined && data.botId !== null) {
|
|
3955
|
-
contents.botId =
|
|
3955
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
3956
3956
|
}
|
|
3957
3957
|
return Promise.resolve(contents);
|
|
3958
3958
|
};
|
|
@@ -4041,18 +4041,18 @@ const deserializeAws_restJson1DeleteBotLocaleCommand = async (output, context) =
|
|
|
4041
4041
|
botVersion: undefined,
|
|
4042
4042
|
localeId: undefined,
|
|
4043
4043
|
};
|
|
4044
|
-
const data =
|
|
4044
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4045
4045
|
if (data.botId !== undefined && data.botId !== null) {
|
|
4046
|
-
contents.botId =
|
|
4046
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
4047
4047
|
}
|
|
4048
4048
|
if (data.botLocaleStatus !== undefined && data.botLocaleStatus !== null) {
|
|
4049
|
-
contents.botLocaleStatus =
|
|
4049
|
+
contents.botLocaleStatus = smithy_client_1.expectString(data.botLocaleStatus);
|
|
4050
4050
|
}
|
|
4051
4051
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
4052
|
-
contents.botVersion =
|
|
4052
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
4053
4053
|
}
|
|
4054
4054
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
4055
|
-
contents.localeId =
|
|
4055
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
4056
4056
|
}
|
|
4057
4057
|
return Promise.resolve(contents);
|
|
4058
4058
|
};
|
|
@@ -4140,15 +4140,15 @@ const deserializeAws_restJson1DeleteBotVersionCommand = async (output, context)
|
|
|
4140
4140
|
botStatus: undefined,
|
|
4141
4141
|
botVersion: undefined,
|
|
4142
4142
|
};
|
|
4143
|
-
const data =
|
|
4143
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4144
4144
|
if (data.botId !== undefined && data.botId !== null) {
|
|
4145
|
-
contents.botId =
|
|
4145
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
4146
4146
|
}
|
|
4147
4147
|
if (data.botStatus !== undefined && data.botStatus !== null) {
|
|
4148
|
-
contents.botStatus =
|
|
4148
|
+
contents.botStatus = smithy_client_1.expectString(data.botStatus);
|
|
4149
4149
|
}
|
|
4150
4150
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
4151
|
-
contents.botVersion =
|
|
4151
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
4152
4152
|
}
|
|
4153
4153
|
return Promise.resolve(contents);
|
|
4154
4154
|
};
|
|
@@ -4235,12 +4235,12 @@ const deserializeAws_restJson1DeleteExportCommand = async (output, context) => {
|
|
|
4235
4235
|
exportId: undefined,
|
|
4236
4236
|
exportStatus: undefined,
|
|
4237
4237
|
};
|
|
4238
|
-
const data =
|
|
4238
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4239
4239
|
if (data.exportId !== undefined && data.exportId !== null) {
|
|
4240
|
-
contents.exportId =
|
|
4240
|
+
contents.exportId = smithy_client_1.expectString(data.exportId);
|
|
4241
4241
|
}
|
|
4242
4242
|
if (data.exportStatus !== undefined && data.exportStatus !== null) {
|
|
4243
|
-
contents.exportStatus =
|
|
4243
|
+
contents.exportStatus = smithy_client_1.expectString(data.exportStatus);
|
|
4244
4244
|
}
|
|
4245
4245
|
return Promise.resolve(contents);
|
|
4246
4246
|
};
|
|
@@ -4319,12 +4319,12 @@ const deserializeAws_restJson1DeleteImportCommand = async (output, context) => {
|
|
|
4319
4319
|
importId: undefined,
|
|
4320
4320
|
importStatus: undefined,
|
|
4321
4321
|
};
|
|
4322
|
-
const data =
|
|
4322
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4323
4323
|
if (data.importId !== undefined && data.importId !== null) {
|
|
4324
|
-
contents.importId =
|
|
4324
|
+
contents.importId = smithy_client_1.expectString(data.importId);
|
|
4325
4325
|
}
|
|
4326
4326
|
if (data.importStatus !== undefined && data.importStatus !== null) {
|
|
4327
|
-
contents.importStatus =
|
|
4327
|
+
contents.importStatus = smithy_client_1.expectString(data.importStatus);
|
|
4328
4328
|
}
|
|
4329
4329
|
return Promise.resolve(contents);
|
|
4330
4330
|
};
|
|
@@ -4487,12 +4487,12 @@ const deserializeAws_restJson1DeleteResourcePolicyCommand = async (output, conte
|
|
|
4487
4487
|
resourceArn: undefined,
|
|
4488
4488
|
revisionId: undefined,
|
|
4489
4489
|
};
|
|
4490
|
-
const data =
|
|
4490
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4491
4491
|
if (data.resourceArn !== undefined && data.resourceArn !== null) {
|
|
4492
|
-
contents.resourceArn =
|
|
4492
|
+
contents.resourceArn = smithy_client_1.expectString(data.resourceArn);
|
|
4493
4493
|
}
|
|
4494
4494
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
4495
|
-
contents.revisionId =
|
|
4495
|
+
contents.revisionId = smithy_client_1.expectString(data.revisionId);
|
|
4496
4496
|
}
|
|
4497
4497
|
return Promise.resolve(contents);
|
|
4498
4498
|
};
|
|
@@ -4563,12 +4563,12 @@ const deserializeAws_restJson1DeleteResourcePolicyStatementCommand = async (outp
|
|
|
4563
4563
|
resourceArn: undefined,
|
|
4564
4564
|
revisionId: undefined,
|
|
4565
4565
|
};
|
|
4566
|
-
const data =
|
|
4566
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4567
4567
|
if (data.resourceArn !== undefined && data.resourceArn !== null) {
|
|
4568
|
-
contents.resourceArn =
|
|
4568
|
+
contents.resourceArn = smithy_client_1.expectString(data.resourceArn);
|
|
4569
4569
|
}
|
|
4570
4570
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
4571
|
-
contents.revisionId =
|
|
4571
|
+
contents.revisionId = smithy_client_1.expectString(data.revisionId);
|
|
4572
4572
|
}
|
|
4573
4573
|
return Promise.resolve(contents);
|
|
4574
4574
|
};
|
|
@@ -4814,33 +4814,33 @@ const deserializeAws_restJson1DescribeBotCommand = async (output, context) => {
|
|
|
4814
4814
|
lastUpdatedDateTime: undefined,
|
|
4815
4815
|
roleArn: undefined,
|
|
4816
4816
|
};
|
|
4817
|
-
const data =
|
|
4817
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4818
4818
|
if (data.botId !== undefined && data.botId !== null) {
|
|
4819
|
-
contents.botId =
|
|
4819
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
4820
4820
|
}
|
|
4821
4821
|
if (data.botName !== undefined && data.botName !== null) {
|
|
4822
|
-
contents.botName =
|
|
4822
|
+
contents.botName = smithy_client_1.expectString(data.botName);
|
|
4823
4823
|
}
|
|
4824
4824
|
if (data.botStatus !== undefined && data.botStatus !== null) {
|
|
4825
|
-
contents.botStatus =
|
|
4825
|
+
contents.botStatus = smithy_client_1.expectString(data.botStatus);
|
|
4826
4826
|
}
|
|
4827
4827
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
4828
|
-
contents.creationDateTime =
|
|
4828
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
4829
4829
|
}
|
|
4830
4830
|
if (data.dataPrivacy !== undefined && data.dataPrivacy !== null) {
|
|
4831
4831
|
contents.dataPrivacy = deserializeAws_restJson1DataPrivacy(data.dataPrivacy, context);
|
|
4832
4832
|
}
|
|
4833
4833
|
if (data.description !== undefined && data.description !== null) {
|
|
4834
|
-
contents.description =
|
|
4834
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
4835
4835
|
}
|
|
4836
4836
|
if (data.idleSessionTTLInSeconds !== undefined && data.idleSessionTTLInSeconds !== null) {
|
|
4837
|
-
contents.idleSessionTTLInSeconds =
|
|
4837
|
+
contents.idleSessionTTLInSeconds = smithy_client_1.expectInt32(data.idleSessionTTLInSeconds);
|
|
4838
4838
|
}
|
|
4839
4839
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
4840
|
-
contents.lastUpdatedDateTime =
|
|
4840
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
4841
4841
|
}
|
|
4842
4842
|
if (data.roleArn !== undefined && data.roleArn !== null) {
|
|
4843
|
-
contents.roleArn =
|
|
4843
|
+
contents.roleArn = smithy_client_1.expectString(data.roleArn);
|
|
4844
4844
|
}
|
|
4845
4845
|
return Promise.resolve(contents);
|
|
4846
4846
|
};
|
|
@@ -4929,39 +4929,39 @@ const deserializeAws_restJson1DescribeBotAliasCommand = async (output, context)
|
|
|
4929
4929
|
lastUpdatedDateTime: undefined,
|
|
4930
4930
|
sentimentAnalysisSettings: undefined,
|
|
4931
4931
|
};
|
|
4932
|
-
const data =
|
|
4932
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4933
4933
|
if (data.botAliasHistoryEvents !== undefined && data.botAliasHistoryEvents !== null) {
|
|
4934
4934
|
contents.botAliasHistoryEvents = deserializeAws_restJson1BotAliasHistoryEventsList(data.botAliasHistoryEvents, context);
|
|
4935
4935
|
}
|
|
4936
4936
|
if (data.botAliasId !== undefined && data.botAliasId !== null) {
|
|
4937
|
-
contents.botAliasId =
|
|
4937
|
+
contents.botAliasId = smithy_client_1.expectString(data.botAliasId);
|
|
4938
4938
|
}
|
|
4939
4939
|
if (data.botAliasLocaleSettings !== undefined && data.botAliasLocaleSettings !== null) {
|
|
4940
4940
|
contents.botAliasLocaleSettings = deserializeAws_restJson1BotAliasLocaleSettingsMap(data.botAliasLocaleSettings, context);
|
|
4941
4941
|
}
|
|
4942
4942
|
if (data.botAliasName !== undefined && data.botAliasName !== null) {
|
|
4943
|
-
contents.botAliasName =
|
|
4943
|
+
contents.botAliasName = smithy_client_1.expectString(data.botAliasName);
|
|
4944
4944
|
}
|
|
4945
4945
|
if (data.botAliasStatus !== undefined && data.botAliasStatus !== null) {
|
|
4946
|
-
contents.botAliasStatus =
|
|
4946
|
+
contents.botAliasStatus = smithy_client_1.expectString(data.botAliasStatus);
|
|
4947
4947
|
}
|
|
4948
4948
|
if (data.botId !== undefined && data.botId !== null) {
|
|
4949
|
-
contents.botId =
|
|
4949
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
4950
4950
|
}
|
|
4951
4951
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
4952
|
-
contents.botVersion =
|
|
4952
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
4953
4953
|
}
|
|
4954
4954
|
if (data.conversationLogSettings !== undefined && data.conversationLogSettings !== null) {
|
|
4955
4955
|
contents.conversationLogSettings = deserializeAws_restJson1ConversationLogSettings(data.conversationLogSettings, context);
|
|
4956
4956
|
}
|
|
4957
4957
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
4958
|
-
contents.creationDateTime =
|
|
4958
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
4959
4959
|
}
|
|
4960
4960
|
if (data.description !== undefined && data.description !== null) {
|
|
4961
|
-
contents.description =
|
|
4961
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
4962
4962
|
}
|
|
4963
4963
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
4964
|
-
contents.lastUpdatedDateTime =
|
|
4964
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
4965
4965
|
}
|
|
4966
4966
|
if (data.sentimentAnalysisSettings !== undefined && data.sentimentAnalysisSettings !== null) {
|
|
4967
4967
|
contents.sentimentAnalysisSettings = deserializeAws_restJson1SentimentAnalysisSettings(data.sentimentAnalysisSettings, context);
|
|
@@ -5056,48 +5056,48 @@ const deserializeAws_restJson1DescribeBotLocaleCommand = async (output, context)
|
|
|
5056
5056
|
slotTypesCount: undefined,
|
|
5057
5057
|
voiceSettings: undefined,
|
|
5058
5058
|
};
|
|
5059
|
-
const data =
|
|
5059
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5060
5060
|
if (data.botId !== undefined && data.botId !== null) {
|
|
5061
|
-
contents.botId =
|
|
5061
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
5062
5062
|
}
|
|
5063
5063
|
if (data.botLocaleHistoryEvents !== undefined && data.botLocaleHistoryEvents !== null) {
|
|
5064
5064
|
contents.botLocaleHistoryEvents = deserializeAws_restJson1BotLocaleHistoryEventsList(data.botLocaleHistoryEvents, context);
|
|
5065
5065
|
}
|
|
5066
5066
|
if (data.botLocaleStatus !== undefined && data.botLocaleStatus !== null) {
|
|
5067
|
-
contents.botLocaleStatus =
|
|
5067
|
+
contents.botLocaleStatus = smithy_client_1.expectString(data.botLocaleStatus);
|
|
5068
5068
|
}
|
|
5069
5069
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
5070
|
-
contents.botVersion =
|
|
5070
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
5071
5071
|
}
|
|
5072
5072
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
5073
|
-
contents.creationDateTime =
|
|
5073
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
5074
5074
|
}
|
|
5075
5075
|
if (data.description !== undefined && data.description !== null) {
|
|
5076
|
-
contents.description =
|
|
5076
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
5077
5077
|
}
|
|
5078
5078
|
if (data.failureReasons !== undefined && data.failureReasons !== null) {
|
|
5079
5079
|
contents.failureReasons = deserializeAws_restJson1FailureReasons(data.failureReasons, context);
|
|
5080
5080
|
}
|
|
5081
5081
|
if (data.intentsCount !== undefined && data.intentsCount !== null) {
|
|
5082
|
-
contents.intentsCount =
|
|
5082
|
+
contents.intentsCount = smithy_client_1.expectInt32(data.intentsCount);
|
|
5083
5083
|
}
|
|
5084
5084
|
if (data.lastBuildSubmittedDateTime !== undefined && data.lastBuildSubmittedDateTime !== null) {
|
|
5085
|
-
contents.lastBuildSubmittedDateTime =
|
|
5085
|
+
contents.lastBuildSubmittedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastBuildSubmittedDateTime)));
|
|
5086
5086
|
}
|
|
5087
5087
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
5088
|
-
contents.lastUpdatedDateTime =
|
|
5088
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
5089
5089
|
}
|
|
5090
5090
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
5091
|
-
contents.localeId =
|
|
5091
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
5092
5092
|
}
|
|
5093
5093
|
if (data.localeName !== undefined && data.localeName !== null) {
|
|
5094
|
-
contents.localeName =
|
|
5094
|
+
contents.localeName = smithy_client_1.expectString(data.localeName);
|
|
5095
5095
|
}
|
|
5096
5096
|
if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) {
|
|
5097
|
-
contents.nluIntentConfidenceThreshold =
|
|
5097
|
+
contents.nluIntentConfidenceThreshold = smithy_client_1.limitedParseDouble(data.nluIntentConfidenceThreshold);
|
|
5098
5098
|
}
|
|
5099
5099
|
if (data.slotTypesCount !== undefined && data.slotTypesCount !== null) {
|
|
5100
|
-
contents.slotTypesCount =
|
|
5100
|
+
contents.slotTypesCount = smithy_client_1.expectInt32(data.slotTypesCount);
|
|
5101
5101
|
}
|
|
5102
5102
|
if (data.voiceSettings !== undefined && data.voiceSettings !== null) {
|
|
5103
5103
|
contents.voiceSettings = deserializeAws_restJson1VoiceSettings(data.voiceSettings, context);
|
|
@@ -5187,36 +5187,36 @@ const deserializeAws_restJson1DescribeBotVersionCommand = async (output, context
|
|
|
5187
5187
|
idleSessionTTLInSeconds: undefined,
|
|
5188
5188
|
roleArn: undefined,
|
|
5189
5189
|
};
|
|
5190
|
-
const data =
|
|
5190
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5191
5191
|
if (data.botId !== undefined && data.botId !== null) {
|
|
5192
|
-
contents.botId =
|
|
5192
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
5193
5193
|
}
|
|
5194
5194
|
if (data.botName !== undefined && data.botName !== null) {
|
|
5195
|
-
contents.botName =
|
|
5195
|
+
contents.botName = smithy_client_1.expectString(data.botName);
|
|
5196
5196
|
}
|
|
5197
5197
|
if (data.botStatus !== undefined && data.botStatus !== null) {
|
|
5198
|
-
contents.botStatus =
|
|
5198
|
+
contents.botStatus = smithy_client_1.expectString(data.botStatus);
|
|
5199
5199
|
}
|
|
5200
5200
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
5201
|
-
contents.botVersion =
|
|
5201
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
5202
5202
|
}
|
|
5203
5203
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
5204
|
-
contents.creationDateTime =
|
|
5204
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
5205
5205
|
}
|
|
5206
5206
|
if (data.dataPrivacy !== undefined && data.dataPrivacy !== null) {
|
|
5207
5207
|
contents.dataPrivacy = deserializeAws_restJson1DataPrivacy(data.dataPrivacy, context);
|
|
5208
5208
|
}
|
|
5209
5209
|
if (data.description !== undefined && data.description !== null) {
|
|
5210
|
-
contents.description =
|
|
5210
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
5211
5211
|
}
|
|
5212
5212
|
if (data.failureReasons !== undefined && data.failureReasons !== null) {
|
|
5213
5213
|
contents.failureReasons = deserializeAws_restJson1FailureReasons(data.failureReasons, context);
|
|
5214
5214
|
}
|
|
5215
5215
|
if (data.idleSessionTTLInSeconds !== undefined && data.idleSessionTTLInSeconds !== null) {
|
|
5216
|
-
contents.idleSessionTTLInSeconds =
|
|
5216
|
+
contents.idleSessionTTLInSeconds = smithy_client_1.expectInt32(data.idleSessionTTLInSeconds);
|
|
5217
5217
|
}
|
|
5218
5218
|
if (data.roleArn !== undefined && data.roleArn !== null) {
|
|
5219
|
-
contents.roleArn =
|
|
5219
|
+
contents.roleArn = smithy_client_1.expectString(data.roleArn);
|
|
5220
5220
|
}
|
|
5221
5221
|
return Promise.resolve(contents);
|
|
5222
5222
|
};
|
|
@@ -5301,27 +5301,27 @@ const deserializeAws_restJson1DescribeExportCommand = async (output, context) =>
|
|
|
5301
5301
|
lastUpdatedDateTime: undefined,
|
|
5302
5302
|
resourceSpecification: undefined,
|
|
5303
5303
|
};
|
|
5304
|
-
const data =
|
|
5304
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5305
5305
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
5306
|
-
contents.creationDateTime =
|
|
5306
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
5307
5307
|
}
|
|
5308
5308
|
if (data.downloadUrl !== undefined && data.downloadUrl !== null) {
|
|
5309
|
-
contents.downloadUrl =
|
|
5309
|
+
contents.downloadUrl = smithy_client_1.expectString(data.downloadUrl);
|
|
5310
5310
|
}
|
|
5311
5311
|
if (data.exportId !== undefined && data.exportId !== null) {
|
|
5312
|
-
contents.exportId =
|
|
5312
|
+
contents.exportId = smithy_client_1.expectString(data.exportId);
|
|
5313
5313
|
}
|
|
5314
5314
|
if (data.exportStatus !== undefined && data.exportStatus !== null) {
|
|
5315
|
-
contents.exportStatus =
|
|
5315
|
+
contents.exportStatus = smithy_client_1.expectString(data.exportStatus);
|
|
5316
5316
|
}
|
|
5317
5317
|
if (data.failureReasons !== undefined && data.failureReasons !== null) {
|
|
5318
5318
|
contents.failureReasons = deserializeAws_restJson1FailureReasons(data.failureReasons, context);
|
|
5319
5319
|
}
|
|
5320
5320
|
if (data.fileFormat !== undefined && data.fileFormat !== null) {
|
|
5321
|
-
contents.fileFormat =
|
|
5321
|
+
contents.fileFormat = smithy_client_1.expectString(data.fileFormat);
|
|
5322
5322
|
}
|
|
5323
5323
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
5324
|
-
contents.lastUpdatedDateTime =
|
|
5324
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
5325
5325
|
}
|
|
5326
5326
|
if (data.resourceSpecification !== undefined && data.resourceSpecification !== null) {
|
|
5327
5327
|
contents.resourceSpecification = deserializeAws_restJson1ExportResourceSpecification(data.resourceSpecification, context);
|
|
@@ -5402,30 +5402,30 @@ const deserializeAws_restJson1DescribeImportCommand = async (output, context) =>
|
|
|
5402
5402
|
mergeStrategy: undefined,
|
|
5403
5403
|
resourceSpecification: undefined,
|
|
5404
5404
|
};
|
|
5405
|
-
const data =
|
|
5405
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5406
5406
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
5407
|
-
contents.creationDateTime =
|
|
5407
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
5408
5408
|
}
|
|
5409
5409
|
if (data.failureReasons !== undefined && data.failureReasons !== null) {
|
|
5410
5410
|
contents.failureReasons = deserializeAws_restJson1FailureReasons(data.failureReasons, context);
|
|
5411
5411
|
}
|
|
5412
5412
|
if (data.importId !== undefined && data.importId !== null) {
|
|
5413
|
-
contents.importId =
|
|
5413
|
+
contents.importId = smithy_client_1.expectString(data.importId);
|
|
5414
5414
|
}
|
|
5415
5415
|
if (data.importStatus !== undefined && data.importStatus !== null) {
|
|
5416
|
-
contents.importStatus =
|
|
5416
|
+
contents.importStatus = smithy_client_1.expectString(data.importStatus);
|
|
5417
5417
|
}
|
|
5418
5418
|
if (data.importedResourceId !== undefined && data.importedResourceId !== null) {
|
|
5419
|
-
contents.importedResourceId =
|
|
5419
|
+
contents.importedResourceId = smithy_client_1.expectString(data.importedResourceId);
|
|
5420
5420
|
}
|
|
5421
5421
|
if (data.importedResourceName !== undefined && data.importedResourceName !== null) {
|
|
5422
|
-
contents.importedResourceName =
|
|
5422
|
+
contents.importedResourceName = smithy_client_1.expectString(data.importedResourceName);
|
|
5423
5423
|
}
|
|
5424
5424
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
5425
|
-
contents.lastUpdatedDateTime =
|
|
5425
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
5426
5426
|
}
|
|
5427
5427
|
if (data.mergeStrategy !== undefined && data.mergeStrategy !== null) {
|
|
5428
|
-
contents.mergeStrategy =
|
|
5428
|
+
contents.mergeStrategy = smithy_client_1.expectString(data.mergeStrategy);
|
|
5429
5429
|
}
|
|
5430
5430
|
if (data.resourceSpecification !== undefined && data.resourceSpecification !== null) {
|
|
5431
5431
|
contents.resourceSpecification = deserializeAws_restJson1ImportResourceSpecification(data.resourceSpecification, context);
|
|
@@ -5515,18 +5515,18 @@ const deserializeAws_restJson1DescribeIntentCommand = async (output, context) =>
|
|
|
5515
5515
|
sampleUtterances: undefined,
|
|
5516
5516
|
slotPriorities: undefined,
|
|
5517
5517
|
};
|
|
5518
|
-
const data =
|
|
5518
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5519
5519
|
if (data.botId !== undefined && data.botId !== null) {
|
|
5520
|
-
contents.botId =
|
|
5520
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
5521
5521
|
}
|
|
5522
5522
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
5523
|
-
contents.botVersion =
|
|
5523
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
5524
5524
|
}
|
|
5525
5525
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
5526
|
-
contents.creationDateTime =
|
|
5526
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
5527
5527
|
}
|
|
5528
5528
|
if (data.description !== undefined && data.description !== null) {
|
|
5529
|
-
contents.description =
|
|
5529
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
5530
5530
|
}
|
|
5531
5531
|
if (data.dialogCodeHook !== undefined && data.dialogCodeHook !== null) {
|
|
5532
5532
|
contents.dialogCodeHook = deserializeAws_restJson1DialogCodeHookSettings(data.dialogCodeHook, context);
|
|
@@ -5544,25 +5544,25 @@ const deserializeAws_restJson1DescribeIntentCommand = async (output, context) =>
|
|
|
5544
5544
|
contents.intentConfirmationSetting = deserializeAws_restJson1IntentConfirmationSetting(data.intentConfirmationSetting, context);
|
|
5545
5545
|
}
|
|
5546
5546
|
if (data.intentId !== undefined && data.intentId !== null) {
|
|
5547
|
-
contents.intentId =
|
|
5547
|
+
contents.intentId = smithy_client_1.expectString(data.intentId);
|
|
5548
5548
|
}
|
|
5549
5549
|
if (data.intentName !== undefined && data.intentName !== null) {
|
|
5550
|
-
contents.intentName =
|
|
5550
|
+
contents.intentName = smithy_client_1.expectString(data.intentName);
|
|
5551
5551
|
}
|
|
5552
5552
|
if (data.kendraConfiguration !== undefined && data.kendraConfiguration !== null) {
|
|
5553
5553
|
contents.kendraConfiguration = deserializeAws_restJson1KendraConfiguration(data.kendraConfiguration, context);
|
|
5554
5554
|
}
|
|
5555
5555
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
5556
|
-
contents.lastUpdatedDateTime =
|
|
5556
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
5557
5557
|
}
|
|
5558
5558
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
5559
|
-
contents.localeId =
|
|
5559
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
5560
5560
|
}
|
|
5561
5561
|
if (data.outputContexts !== undefined && data.outputContexts !== null) {
|
|
5562
5562
|
contents.outputContexts = deserializeAws_restJson1OutputContextsList(data.outputContexts, context);
|
|
5563
5563
|
}
|
|
5564
5564
|
if (data.parentIntentSignature !== undefined && data.parentIntentSignature !== null) {
|
|
5565
|
-
contents.parentIntentSignature =
|
|
5565
|
+
contents.parentIntentSignature = smithy_client_1.expectString(data.parentIntentSignature);
|
|
5566
5566
|
}
|
|
5567
5567
|
if (data.sampleUtterances !== undefined && data.sampleUtterances !== null) {
|
|
5568
5568
|
contents.sampleUtterances = deserializeAws_restJson1SampleUtterancesList(data.sampleUtterances, context);
|
|
@@ -5648,15 +5648,15 @@ const deserializeAws_restJson1DescribeResourcePolicyCommand = async (output, con
|
|
|
5648
5648
|
resourceArn: undefined,
|
|
5649
5649
|
revisionId: undefined,
|
|
5650
5650
|
};
|
|
5651
|
-
const data =
|
|
5651
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5652
5652
|
if (data.policy !== undefined && data.policy !== null) {
|
|
5653
|
-
contents.policy =
|
|
5653
|
+
contents.policy = smithy_client_1.expectString(data.policy);
|
|
5654
5654
|
}
|
|
5655
5655
|
if (data.resourceArn !== undefined && data.resourceArn !== null) {
|
|
5656
|
-
contents.resourceArn =
|
|
5656
|
+
contents.resourceArn = smithy_client_1.expectString(data.resourceArn);
|
|
5657
5657
|
}
|
|
5658
5658
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
5659
|
-
contents.revisionId =
|
|
5659
|
+
contents.revisionId = smithy_client_1.expectString(data.revisionId);
|
|
5660
5660
|
}
|
|
5661
5661
|
return Promise.resolve(contents);
|
|
5662
5662
|
};
|
|
@@ -5730,27 +5730,27 @@ const deserializeAws_restJson1DescribeSlotCommand = async (output, context) => {
|
|
|
5730
5730
|
slotTypeId: undefined,
|
|
5731
5731
|
valueElicitationSetting: undefined,
|
|
5732
5732
|
};
|
|
5733
|
-
const data =
|
|
5733
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5734
5734
|
if (data.botId !== undefined && data.botId !== null) {
|
|
5735
|
-
contents.botId =
|
|
5735
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
5736
5736
|
}
|
|
5737
5737
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
5738
|
-
contents.botVersion =
|
|
5738
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
5739
5739
|
}
|
|
5740
5740
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
5741
|
-
contents.creationDateTime =
|
|
5741
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
5742
5742
|
}
|
|
5743
5743
|
if (data.description !== undefined && data.description !== null) {
|
|
5744
|
-
contents.description =
|
|
5744
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
5745
5745
|
}
|
|
5746
5746
|
if (data.intentId !== undefined && data.intentId !== null) {
|
|
5747
|
-
contents.intentId =
|
|
5747
|
+
contents.intentId = smithy_client_1.expectString(data.intentId);
|
|
5748
5748
|
}
|
|
5749
5749
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
5750
|
-
contents.lastUpdatedDateTime =
|
|
5750
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
5751
5751
|
}
|
|
5752
5752
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
5753
|
-
contents.localeId =
|
|
5753
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
5754
5754
|
}
|
|
5755
5755
|
if (data.multipleValuesSetting !== undefined && data.multipleValuesSetting !== null) {
|
|
5756
5756
|
contents.multipleValuesSetting = deserializeAws_restJson1MultipleValuesSetting(data.multipleValuesSetting, context);
|
|
@@ -5759,13 +5759,13 @@ const deserializeAws_restJson1DescribeSlotCommand = async (output, context) => {
|
|
|
5759
5759
|
contents.obfuscationSetting = deserializeAws_restJson1ObfuscationSetting(data.obfuscationSetting, context);
|
|
5760
5760
|
}
|
|
5761
5761
|
if (data.slotId !== undefined && data.slotId !== null) {
|
|
5762
|
-
contents.slotId =
|
|
5762
|
+
contents.slotId = smithy_client_1.expectString(data.slotId);
|
|
5763
5763
|
}
|
|
5764
5764
|
if (data.slotName !== undefined && data.slotName !== null) {
|
|
5765
|
-
contents.slotName =
|
|
5765
|
+
contents.slotName = smithy_client_1.expectString(data.slotName);
|
|
5766
5766
|
}
|
|
5767
5767
|
if (data.slotTypeId !== undefined && data.slotTypeId !== null) {
|
|
5768
|
-
contents.slotTypeId =
|
|
5768
|
+
contents.slotTypeId = smithy_client_1.expectString(data.slotTypeId);
|
|
5769
5769
|
}
|
|
5770
5770
|
if (data.valueElicitationSetting !== undefined && data.valueElicitationSetting !== null) {
|
|
5771
5771
|
contents.valueElicitationSetting = deserializeAws_restJson1SlotValueElicitationSetting(data.valueElicitationSetting, context);
|
|
@@ -5856,33 +5856,33 @@ const deserializeAws_restJson1DescribeSlotTypeCommand = async (output, context)
|
|
|
5856
5856
|
slotTypeValues: undefined,
|
|
5857
5857
|
valueSelectionSetting: undefined,
|
|
5858
5858
|
};
|
|
5859
|
-
const data =
|
|
5859
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5860
5860
|
if (data.botId !== undefined && data.botId !== null) {
|
|
5861
|
-
contents.botId =
|
|
5861
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
5862
5862
|
}
|
|
5863
5863
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
5864
|
-
contents.botVersion =
|
|
5864
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
5865
5865
|
}
|
|
5866
5866
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
5867
|
-
contents.creationDateTime =
|
|
5867
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
5868
5868
|
}
|
|
5869
5869
|
if (data.description !== undefined && data.description !== null) {
|
|
5870
|
-
contents.description =
|
|
5870
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
5871
5871
|
}
|
|
5872
5872
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
5873
|
-
contents.lastUpdatedDateTime =
|
|
5873
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
5874
5874
|
}
|
|
5875
5875
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
5876
|
-
contents.localeId =
|
|
5876
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
5877
5877
|
}
|
|
5878
5878
|
if (data.parentSlotTypeSignature !== undefined && data.parentSlotTypeSignature !== null) {
|
|
5879
|
-
contents.parentSlotTypeSignature =
|
|
5879
|
+
contents.parentSlotTypeSignature = smithy_client_1.expectString(data.parentSlotTypeSignature);
|
|
5880
5880
|
}
|
|
5881
5881
|
if (data.slotTypeId !== undefined && data.slotTypeId !== null) {
|
|
5882
|
-
contents.slotTypeId =
|
|
5882
|
+
contents.slotTypeId = smithy_client_1.expectString(data.slotTypeId);
|
|
5883
5883
|
}
|
|
5884
5884
|
if (data.slotTypeName !== undefined && data.slotTypeName !== null) {
|
|
5885
|
-
contents.slotTypeName =
|
|
5885
|
+
contents.slotTypeName = smithy_client_1.expectString(data.slotTypeName);
|
|
5886
5886
|
}
|
|
5887
5887
|
if (data.slotTypeValues !== undefined && data.slotTypeValues !== null) {
|
|
5888
5888
|
contents.slotTypeValues = deserializeAws_restJson1SlotTypeValues(data.slotTypeValues, context);
|
|
@@ -5968,15 +5968,15 @@ const deserializeAws_restJson1ListBotAliasesCommand = async (output, context) =>
|
|
|
5968
5968
|
botId: undefined,
|
|
5969
5969
|
nextToken: undefined,
|
|
5970
5970
|
};
|
|
5971
|
-
const data =
|
|
5971
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5972
5972
|
if (data.botAliasSummaries !== undefined && data.botAliasSummaries !== null) {
|
|
5973
5973
|
contents.botAliasSummaries = deserializeAws_restJson1BotAliasSummaryList(data.botAliasSummaries, context);
|
|
5974
5974
|
}
|
|
5975
5975
|
if (data.botId !== undefined && data.botId !== null) {
|
|
5976
|
-
contents.botId =
|
|
5976
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
5977
5977
|
}
|
|
5978
5978
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5979
|
-
contents.nextToken =
|
|
5979
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5980
5980
|
}
|
|
5981
5981
|
return Promise.resolve(contents);
|
|
5982
5982
|
};
|
|
@@ -6049,18 +6049,18 @@ const deserializeAws_restJson1ListBotLocalesCommand = async (output, context) =>
|
|
|
6049
6049
|
botVersion: undefined,
|
|
6050
6050
|
nextToken: undefined,
|
|
6051
6051
|
};
|
|
6052
|
-
const data =
|
|
6052
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6053
6053
|
if (data.botId !== undefined && data.botId !== null) {
|
|
6054
|
-
contents.botId =
|
|
6054
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
6055
6055
|
}
|
|
6056
6056
|
if (data.botLocaleSummaries !== undefined && data.botLocaleSummaries !== null) {
|
|
6057
6057
|
contents.botLocaleSummaries = deserializeAws_restJson1BotLocaleSummaryList(data.botLocaleSummaries, context);
|
|
6058
6058
|
}
|
|
6059
6059
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
6060
|
-
contents.botVersion =
|
|
6060
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
6061
6061
|
}
|
|
6062
6062
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6063
|
-
contents.nextToken =
|
|
6063
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
6064
6064
|
}
|
|
6065
6065
|
return Promise.resolve(contents);
|
|
6066
6066
|
};
|
|
@@ -6131,12 +6131,12 @@ const deserializeAws_restJson1ListBotsCommand = async (output, context) => {
|
|
|
6131
6131
|
botSummaries: undefined,
|
|
6132
6132
|
nextToken: undefined,
|
|
6133
6133
|
};
|
|
6134
|
-
const data =
|
|
6134
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6135
6135
|
if (data.botSummaries !== undefined && data.botSummaries !== null) {
|
|
6136
6136
|
contents.botSummaries = deserializeAws_restJson1BotSummaryList(data.botSummaries, context);
|
|
6137
6137
|
}
|
|
6138
6138
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6139
|
-
contents.nextToken =
|
|
6139
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
6140
6140
|
}
|
|
6141
6141
|
return Promise.resolve(contents);
|
|
6142
6142
|
};
|
|
@@ -6208,15 +6208,15 @@ const deserializeAws_restJson1ListBotVersionsCommand = async (output, context) =
|
|
|
6208
6208
|
botVersionSummaries: undefined,
|
|
6209
6209
|
nextToken: undefined,
|
|
6210
6210
|
};
|
|
6211
|
-
const data =
|
|
6211
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6212
6212
|
if (data.botId !== undefined && data.botId !== null) {
|
|
6213
|
-
contents.botId =
|
|
6213
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
6214
6214
|
}
|
|
6215
6215
|
if (data.botVersionSummaries !== undefined && data.botVersionSummaries !== null) {
|
|
6216
6216
|
contents.botVersionSummaries = deserializeAws_restJson1BotVersionSummaryList(data.botVersionSummaries, context);
|
|
6217
6217
|
}
|
|
6218
6218
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6219
|
-
contents.nextToken =
|
|
6219
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
6220
6220
|
}
|
|
6221
6221
|
return Promise.resolve(contents);
|
|
6222
6222
|
};
|
|
@@ -6288,15 +6288,15 @@ const deserializeAws_restJson1ListBuiltInIntentsCommand = async (output, context
|
|
|
6288
6288
|
localeId: undefined,
|
|
6289
6289
|
nextToken: undefined,
|
|
6290
6290
|
};
|
|
6291
|
-
const data =
|
|
6291
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6292
6292
|
if (data.builtInIntentSummaries !== undefined && data.builtInIntentSummaries !== null) {
|
|
6293
6293
|
contents.builtInIntentSummaries = deserializeAws_restJson1BuiltInIntentSummaryList(data.builtInIntentSummaries, context);
|
|
6294
6294
|
}
|
|
6295
6295
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
6296
|
-
contents.localeId =
|
|
6296
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
6297
6297
|
}
|
|
6298
6298
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6299
|
-
contents.nextToken =
|
|
6299
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
6300
6300
|
}
|
|
6301
6301
|
return Promise.resolve(contents);
|
|
6302
6302
|
};
|
|
@@ -6368,15 +6368,15 @@ const deserializeAws_restJson1ListBuiltInSlotTypesCommand = async (output, conte
|
|
|
6368
6368
|
localeId: undefined,
|
|
6369
6369
|
nextToken: undefined,
|
|
6370
6370
|
};
|
|
6371
|
-
const data =
|
|
6371
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6372
6372
|
if (data.builtInSlotTypeSummaries !== undefined && data.builtInSlotTypeSummaries !== null) {
|
|
6373
6373
|
contents.builtInSlotTypeSummaries = deserializeAws_restJson1BuiltInSlotTypeSummaryList(data.builtInSlotTypeSummaries, context);
|
|
6374
6374
|
}
|
|
6375
6375
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
6376
|
-
contents.localeId =
|
|
6376
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
6377
6377
|
}
|
|
6378
6378
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6379
|
-
contents.nextToken =
|
|
6379
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
6380
6380
|
}
|
|
6381
6381
|
return Promise.resolve(contents);
|
|
6382
6382
|
};
|
|
@@ -6449,18 +6449,18 @@ const deserializeAws_restJson1ListExportsCommand = async (output, context) => {
|
|
|
6449
6449
|
exportSummaries: undefined,
|
|
6450
6450
|
nextToken: undefined,
|
|
6451
6451
|
};
|
|
6452
|
-
const data =
|
|
6452
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6453
6453
|
if (data.botId !== undefined && data.botId !== null) {
|
|
6454
|
-
contents.botId =
|
|
6454
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
6455
6455
|
}
|
|
6456
6456
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
6457
|
-
contents.botVersion =
|
|
6457
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
6458
6458
|
}
|
|
6459
6459
|
if (data.exportSummaries !== undefined && data.exportSummaries !== null) {
|
|
6460
6460
|
contents.exportSummaries = deserializeAws_restJson1ExportSummaryList(data.exportSummaries, context);
|
|
6461
6461
|
}
|
|
6462
6462
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6463
|
-
contents.nextToken =
|
|
6463
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
6464
6464
|
}
|
|
6465
6465
|
return Promise.resolve(contents);
|
|
6466
6466
|
};
|
|
@@ -6525,18 +6525,18 @@ const deserializeAws_restJson1ListImportsCommand = async (output, context) => {
|
|
|
6525
6525
|
importSummaries: undefined,
|
|
6526
6526
|
nextToken: undefined,
|
|
6527
6527
|
};
|
|
6528
|
-
const data =
|
|
6528
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6529
6529
|
if (data.botId !== undefined && data.botId !== null) {
|
|
6530
|
-
contents.botId =
|
|
6530
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
6531
6531
|
}
|
|
6532
6532
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
6533
|
-
contents.botVersion =
|
|
6533
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
6534
6534
|
}
|
|
6535
6535
|
if (data.importSummaries !== undefined && data.importSummaries !== null) {
|
|
6536
6536
|
contents.importSummaries = deserializeAws_restJson1ImportSummaryList(data.importSummaries, context);
|
|
6537
6537
|
}
|
|
6538
6538
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6539
|
-
contents.nextToken =
|
|
6539
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
6540
6540
|
}
|
|
6541
6541
|
return Promise.resolve(contents);
|
|
6542
6542
|
};
|
|
@@ -6602,21 +6602,21 @@ const deserializeAws_restJson1ListIntentsCommand = async (output, context) => {
|
|
|
6602
6602
|
localeId: undefined,
|
|
6603
6603
|
nextToken: undefined,
|
|
6604
6604
|
};
|
|
6605
|
-
const data =
|
|
6605
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6606
6606
|
if (data.botId !== undefined && data.botId !== null) {
|
|
6607
|
-
contents.botId =
|
|
6607
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
6608
6608
|
}
|
|
6609
6609
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
6610
|
-
contents.botVersion =
|
|
6610
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
6611
6611
|
}
|
|
6612
6612
|
if (data.intentSummaries !== undefined && data.intentSummaries !== null) {
|
|
6613
6613
|
contents.intentSummaries = deserializeAws_restJson1IntentSummaryList(data.intentSummaries, context);
|
|
6614
6614
|
}
|
|
6615
6615
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
6616
|
-
contents.localeId =
|
|
6616
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
6617
6617
|
}
|
|
6618
6618
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6619
|
-
contents.nextToken =
|
|
6619
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
6620
6620
|
}
|
|
6621
6621
|
return Promise.resolve(contents);
|
|
6622
6622
|
};
|
|
@@ -6691,21 +6691,21 @@ const deserializeAws_restJson1ListSlotsCommand = async (output, context) => {
|
|
|
6691
6691
|
nextToken: undefined,
|
|
6692
6692
|
slotSummaries: undefined,
|
|
6693
6693
|
};
|
|
6694
|
-
const data =
|
|
6694
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6695
6695
|
if (data.botId !== undefined && data.botId !== null) {
|
|
6696
|
-
contents.botId =
|
|
6696
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
6697
6697
|
}
|
|
6698
6698
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
6699
|
-
contents.botVersion =
|
|
6699
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
6700
6700
|
}
|
|
6701
6701
|
if (data.intentId !== undefined && data.intentId !== null) {
|
|
6702
|
-
contents.intentId =
|
|
6702
|
+
contents.intentId = smithy_client_1.expectString(data.intentId);
|
|
6703
6703
|
}
|
|
6704
6704
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
6705
|
-
contents.localeId =
|
|
6705
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
6706
6706
|
}
|
|
6707
6707
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6708
|
-
contents.nextToken =
|
|
6708
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
6709
6709
|
}
|
|
6710
6710
|
if (data.slotSummaries !== undefined && data.slotSummaries !== null) {
|
|
6711
6711
|
contents.slotSummaries = deserializeAws_restJson1SlotSummaryList(data.slotSummaries, context);
|
|
@@ -6782,18 +6782,18 @@ const deserializeAws_restJson1ListSlotTypesCommand = async (output, context) =>
|
|
|
6782
6782
|
nextToken: undefined,
|
|
6783
6783
|
slotTypeSummaries: undefined,
|
|
6784
6784
|
};
|
|
6785
|
-
const data =
|
|
6785
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6786
6786
|
if (data.botId !== undefined && data.botId !== null) {
|
|
6787
|
-
contents.botId =
|
|
6787
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
6788
6788
|
}
|
|
6789
6789
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
6790
|
-
contents.botVersion =
|
|
6790
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
6791
6791
|
}
|
|
6792
6792
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
6793
|
-
contents.localeId =
|
|
6793
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
6794
6794
|
}
|
|
6795
6795
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6796
|
-
contents.nextToken =
|
|
6796
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
6797
6797
|
}
|
|
6798
6798
|
if (data.slotTypeSummaries !== undefined && data.slotTypeSummaries !== null) {
|
|
6799
6799
|
contents.slotTypeSummaries = deserializeAws_restJson1SlotTypeSummaryList(data.slotTypeSummaries, context);
|
|
@@ -6866,7 +6866,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
6866
6866
|
$metadata: deserializeMetadata(output),
|
|
6867
6867
|
tags: undefined,
|
|
6868
6868
|
};
|
|
6869
|
-
const data =
|
|
6869
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6870
6870
|
if (data.tags !== undefined && data.tags !== null) {
|
|
6871
6871
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
6872
6872
|
}
|
|
@@ -6942,18 +6942,18 @@ const deserializeAws_restJson1StartImportCommand = async (output, context) => {
|
|
|
6942
6942
|
mergeStrategy: undefined,
|
|
6943
6943
|
resourceSpecification: undefined,
|
|
6944
6944
|
};
|
|
6945
|
-
const data =
|
|
6945
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6946
6946
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
6947
|
-
contents.creationDateTime =
|
|
6947
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
6948
6948
|
}
|
|
6949
6949
|
if (data.importId !== undefined && data.importId !== null) {
|
|
6950
|
-
contents.importId =
|
|
6950
|
+
contents.importId = smithy_client_1.expectString(data.importId);
|
|
6951
6951
|
}
|
|
6952
6952
|
if (data.importStatus !== undefined && data.importStatus !== null) {
|
|
6953
|
-
contents.importStatus =
|
|
6953
|
+
contents.importStatus = smithy_client_1.expectString(data.importStatus);
|
|
6954
6954
|
}
|
|
6955
6955
|
if (data.mergeStrategy !== undefined && data.mergeStrategy !== null) {
|
|
6956
|
-
contents.mergeStrategy =
|
|
6956
|
+
contents.mergeStrategy = smithy_client_1.expectString(data.mergeStrategy);
|
|
6957
6957
|
}
|
|
6958
6958
|
if (data.resourceSpecification !== undefined && data.resourceSpecification !== null) {
|
|
6959
6959
|
contents.resourceSpecification = deserializeAws_restJson1ImportResourceSpecification(data.resourceSpecification, context);
|
|
@@ -7186,33 +7186,33 @@ const deserializeAws_restJson1UpdateBotCommand = async (output, context) => {
|
|
|
7186
7186
|
lastUpdatedDateTime: undefined,
|
|
7187
7187
|
roleArn: undefined,
|
|
7188
7188
|
};
|
|
7189
|
-
const data =
|
|
7189
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7190
7190
|
if (data.botId !== undefined && data.botId !== null) {
|
|
7191
|
-
contents.botId =
|
|
7191
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
7192
7192
|
}
|
|
7193
7193
|
if (data.botName !== undefined && data.botName !== null) {
|
|
7194
|
-
contents.botName =
|
|
7194
|
+
contents.botName = smithy_client_1.expectString(data.botName);
|
|
7195
7195
|
}
|
|
7196
7196
|
if (data.botStatus !== undefined && data.botStatus !== null) {
|
|
7197
|
-
contents.botStatus =
|
|
7197
|
+
contents.botStatus = smithy_client_1.expectString(data.botStatus);
|
|
7198
7198
|
}
|
|
7199
7199
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
7200
|
-
contents.creationDateTime =
|
|
7200
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
7201
7201
|
}
|
|
7202
7202
|
if (data.dataPrivacy !== undefined && data.dataPrivacy !== null) {
|
|
7203
7203
|
contents.dataPrivacy = deserializeAws_restJson1DataPrivacy(data.dataPrivacy, context);
|
|
7204
7204
|
}
|
|
7205
7205
|
if (data.description !== undefined && data.description !== null) {
|
|
7206
|
-
contents.description =
|
|
7206
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
7207
7207
|
}
|
|
7208
7208
|
if (data.idleSessionTTLInSeconds !== undefined && data.idleSessionTTLInSeconds !== null) {
|
|
7209
|
-
contents.idleSessionTTLInSeconds =
|
|
7209
|
+
contents.idleSessionTTLInSeconds = smithy_client_1.expectInt32(data.idleSessionTTLInSeconds);
|
|
7210
7210
|
}
|
|
7211
7211
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
7212
|
-
contents.lastUpdatedDateTime =
|
|
7212
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
7213
7213
|
}
|
|
7214
7214
|
if (data.roleArn !== undefined && data.roleArn !== null) {
|
|
7215
|
-
contents.roleArn =
|
|
7215
|
+
contents.roleArn = smithy_client_1.expectString(data.roleArn);
|
|
7216
7216
|
}
|
|
7217
7217
|
return Promise.resolve(contents);
|
|
7218
7218
|
};
|
|
@@ -7308,36 +7308,36 @@ const deserializeAws_restJson1UpdateBotAliasCommand = async (output, context) =>
|
|
|
7308
7308
|
lastUpdatedDateTime: undefined,
|
|
7309
7309
|
sentimentAnalysisSettings: undefined,
|
|
7310
7310
|
};
|
|
7311
|
-
const data =
|
|
7311
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7312
7312
|
if (data.botAliasId !== undefined && data.botAliasId !== null) {
|
|
7313
|
-
contents.botAliasId =
|
|
7313
|
+
contents.botAliasId = smithy_client_1.expectString(data.botAliasId);
|
|
7314
7314
|
}
|
|
7315
7315
|
if (data.botAliasLocaleSettings !== undefined && data.botAliasLocaleSettings !== null) {
|
|
7316
7316
|
contents.botAliasLocaleSettings = deserializeAws_restJson1BotAliasLocaleSettingsMap(data.botAliasLocaleSettings, context);
|
|
7317
7317
|
}
|
|
7318
7318
|
if (data.botAliasName !== undefined && data.botAliasName !== null) {
|
|
7319
|
-
contents.botAliasName =
|
|
7319
|
+
contents.botAliasName = smithy_client_1.expectString(data.botAliasName);
|
|
7320
7320
|
}
|
|
7321
7321
|
if (data.botAliasStatus !== undefined && data.botAliasStatus !== null) {
|
|
7322
|
-
contents.botAliasStatus =
|
|
7322
|
+
contents.botAliasStatus = smithy_client_1.expectString(data.botAliasStatus);
|
|
7323
7323
|
}
|
|
7324
7324
|
if (data.botId !== undefined && data.botId !== null) {
|
|
7325
|
-
contents.botId =
|
|
7325
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
7326
7326
|
}
|
|
7327
7327
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
7328
|
-
contents.botVersion =
|
|
7328
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
7329
7329
|
}
|
|
7330
7330
|
if (data.conversationLogSettings !== undefined && data.conversationLogSettings !== null) {
|
|
7331
7331
|
contents.conversationLogSettings = deserializeAws_restJson1ConversationLogSettings(data.conversationLogSettings, context);
|
|
7332
7332
|
}
|
|
7333
7333
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
7334
|
-
contents.creationDateTime =
|
|
7334
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
7335
7335
|
}
|
|
7336
7336
|
if (data.description !== undefined && data.description !== null) {
|
|
7337
|
-
contents.description =
|
|
7337
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
7338
7338
|
}
|
|
7339
7339
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
7340
|
-
contents.lastUpdatedDateTime =
|
|
7340
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
7341
7341
|
}
|
|
7342
7342
|
if (data.sentimentAnalysisSettings !== undefined && data.sentimentAnalysisSettings !== null) {
|
|
7343
7343
|
contents.sentimentAnalysisSettings = deserializeAws_restJson1SentimentAnalysisSettings(data.sentimentAnalysisSettings, context);
|
|
@@ -7436,36 +7436,36 @@ const deserializeAws_restJson1UpdateBotLocaleCommand = async (output, context) =
|
|
|
7436
7436
|
nluIntentConfidenceThreshold: undefined,
|
|
7437
7437
|
voiceSettings: undefined,
|
|
7438
7438
|
};
|
|
7439
|
-
const data =
|
|
7439
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7440
7440
|
if (data.botId !== undefined && data.botId !== null) {
|
|
7441
|
-
contents.botId =
|
|
7441
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
7442
7442
|
}
|
|
7443
7443
|
if (data.botLocaleStatus !== undefined && data.botLocaleStatus !== null) {
|
|
7444
|
-
contents.botLocaleStatus =
|
|
7444
|
+
contents.botLocaleStatus = smithy_client_1.expectString(data.botLocaleStatus);
|
|
7445
7445
|
}
|
|
7446
7446
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
7447
|
-
contents.botVersion =
|
|
7447
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
7448
7448
|
}
|
|
7449
7449
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
7450
|
-
contents.creationDateTime =
|
|
7450
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
7451
7451
|
}
|
|
7452
7452
|
if (data.description !== undefined && data.description !== null) {
|
|
7453
|
-
contents.description =
|
|
7453
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
7454
7454
|
}
|
|
7455
7455
|
if (data.failureReasons !== undefined && data.failureReasons !== null) {
|
|
7456
7456
|
contents.failureReasons = deserializeAws_restJson1FailureReasons(data.failureReasons, context);
|
|
7457
7457
|
}
|
|
7458
7458
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
7459
|
-
contents.lastUpdatedDateTime =
|
|
7459
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
7460
7460
|
}
|
|
7461
7461
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
7462
|
-
contents.localeId =
|
|
7462
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
7463
7463
|
}
|
|
7464
7464
|
if (data.localeName !== undefined && data.localeName !== null) {
|
|
7465
|
-
contents.localeName =
|
|
7465
|
+
contents.localeName = smithy_client_1.expectString(data.localeName);
|
|
7466
7466
|
}
|
|
7467
7467
|
if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) {
|
|
7468
|
-
contents.nluIntentConfidenceThreshold =
|
|
7468
|
+
contents.nluIntentConfidenceThreshold = smithy_client_1.limitedParseDouble(data.nluIntentConfidenceThreshold);
|
|
7469
7469
|
}
|
|
7470
7470
|
if (data.voiceSettings !== undefined && data.voiceSettings !== null) {
|
|
7471
7471
|
contents.voiceSettings = deserializeAws_restJson1VoiceSettings(data.voiceSettings, context);
|
|
@@ -7559,21 +7559,21 @@ const deserializeAws_restJson1UpdateExportCommand = async (output, context) => {
|
|
|
7559
7559
|
lastUpdatedDateTime: undefined,
|
|
7560
7560
|
resourceSpecification: undefined,
|
|
7561
7561
|
};
|
|
7562
|
-
const data =
|
|
7562
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7563
7563
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
7564
|
-
contents.creationDateTime =
|
|
7564
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
7565
7565
|
}
|
|
7566
7566
|
if (data.exportId !== undefined && data.exportId !== null) {
|
|
7567
|
-
contents.exportId =
|
|
7567
|
+
contents.exportId = smithy_client_1.expectString(data.exportId);
|
|
7568
7568
|
}
|
|
7569
7569
|
if (data.exportStatus !== undefined && data.exportStatus !== null) {
|
|
7570
|
-
contents.exportStatus =
|
|
7570
|
+
contents.exportStatus = smithy_client_1.expectString(data.exportStatus);
|
|
7571
7571
|
}
|
|
7572
7572
|
if (data.fileFormat !== undefined && data.fileFormat !== null) {
|
|
7573
|
-
contents.fileFormat =
|
|
7573
|
+
contents.fileFormat = smithy_client_1.expectString(data.fileFormat);
|
|
7574
7574
|
}
|
|
7575
7575
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
7576
|
-
contents.lastUpdatedDateTime =
|
|
7576
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
7577
7577
|
}
|
|
7578
7578
|
if (data.resourceSpecification !== undefined && data.resourceSpecification !== null) {
|
|
7579
7579
|
contents.resourceSpecification = deserializeAws_restJson1ExportResourceSpecification(data.resourceSpecification, context);
|
|
@@ -7679,18 +7679,18 @@ const deserializeAws_restJson1UpdateIntentCommand = async (output, context) => {
|
|
|
7679
7679
|
sampleUtterances: undefined,
|
|
7680
7680
|
slotPriorities: undefined,
|
|
7681
7681
|
};
|
|
7682
|
-
const data =
|
|
7682
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7683
7683
|
if (data.botId !== undefined && data.botId !== null) {
|
|
7684
|
-
contents.botId =
|
|
7684
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
7685
7685
|
}
|
|
7686
7686
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
7687
|
-
contents.botVersion =
|
|
7687
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
7688
7688
|
}
|
|
7689
7689
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
7690
|
-
contents.creationDateTime =
|
|
7690
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
7691
7691
|
}
|
|
7692
7692
|
if (data.description !== undefined && data.description !== null) {
|
|
7693
|
-
contents.description =
|
|
7693
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
7694
7694
|
}
|
|
7695
7695
|
if (data.dialogCodeHook !== undefined && data.dialogCodeHook !== null) {
|
|
7696
7696
|
contents.dialogCodeHook = deserializeAws_restJson1DialogCodeHookSettings(data.dialogCodeHook, context);
|
|
@@ -7708,25 +7708,25 @@ const deserializeAws_restJson1UpdateIntentCommand = async (output, context) => {
|
|
|
7708
7708
|
contents.intentConfirmationSetting = deserializeAws_restJson1IntentConfirmationSetting(data.intentConfirmationSetting, context);
|
|
7709
7709
|
}
|
|
7710
7710
|
if (data.intentId !== undefined && data.intentId !== null) {
|
|
7711
|
-
contents.intentId =
|
|
7711
|
+
contents.intentId = smithy_client_1.expectString(data.intentId);
|
|
7712
7712
|
}
|
|
7713
7713
|
if (data.intentName !== undefined && data.intentName !== null) {
|
|
7714
|
-
contents.intentName =
|
|
7714
|
+
contents.intentName = smithy_client_1.expectString(data.intentName);
|
|
7715
7715
|
}
|
|
7716
7716
|
if (data.kendraConfiguration !== undefined && data.kendraConfiguration !== null) {
|
|
7717
7717
|
contents.kendraConfiguration = deserializeAws_restJson1KendraConfiguration(data.kendraConfiguration, context);
|
|
7718
7718
|
}
|
|
7719
7719
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
7720
|
-
contents.lastUpdatedDateTime =
|
|
7720
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
7721
7721
|
}
|
|
7722
7722
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
7723
|
-
contents.localeId =
|
|
7723
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
7724
7724
|
}
|
|
7725
7725
|
if (data.outputContexts !== undefined && data.outputContexts !== null) {
|
|
7726
7726
|
contents.outputContexts = deserializeAws_restJson1OutputContextsList(data.outputContexts, context);
|
|
7727
7727
|
}
|
|
7728
7728
|
if (data.parentIntentSignature !== undefined && data.parentIntentSignature !== null) {
|
|
7729
|
-
contents.parentIntentSignature =
|
|
7729
|
+
contents.parentIntentSignature = smithy_client_1.expectString(data.parentIntentSignature);
|
|
7730
7730
|
}
|
|
7731
7731
|
if (data.sampleUtterances !== undefined && data.sampleUtterances !== null) {
|
|
7732
7732
|
contents.sampleUtterances = deserializeAws_restJson1SampleUtterancesList(data.sampleUtterances, context);
|
|
@@ -7819,12 +7819,12 @@ const deserializeAws_restJson1UpdateResourcePolicyCommand = async (output, conte
|
|
|
7819
7819
|
resourceArn: undefined,
|
|
7820
7820
|
revisionId: undefined,
|
|
7821
7821
|
};
|
|
7822
|
-
const data =
|
|
7822
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7823
7823
|
if (data.resourceArn !== undefined && data.resourceArn !== null) {
|
|
7824
|
-
contents.resourceArn =
|
|
7824
|
+
contents.resourceArn = smithy_client_1.expectString(data.resourceArn);
|
|
7825
7825
|
}
|
|
7826
7826
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
7827
|
-
contents.revisionId =
|
|
7827
|
+
contents.revisionId = smithy_client_1.expectString(data.revisionId);
|
|
7828
7828
|
}
|
|
7829
7829
|
return Promise.resolve(contents);
|
|
7830
7830
|
};
|
|
@@ -7922,27 +7922,27 @@ const deserializeAws_restJson1UpdateSlotCommand = async (output, context) => {
|
|
|
7922
7922
|
slotTypeId: undefined,
|
|
7923
7923
|
valueElicitationSetting: undefined,
|
|
7924
7924
|
};
|
|
7925
|
-
const data =
|
|
7925
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7926
7926
|
if (data.botId !== undefined && data.botId !== null) {
|
|
7927
|
-
contents.botId =
|
|
7927
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
7928
7928
|
}
|
|
7929
7929
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
7930
|
-
contents.botVersion =
|
|
7930
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
7931
7931
|
}
|
|
7932
7932
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
7933
|
-
contents.creationDateTime =
|
|
7933
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
7934
7934
|
}
|
|
7935
7935
|
if (data.description !== undefined && data.description !== null) {
|
|
7936
|
-
contents.description =
|
|
7936
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
7937
7937
|
}
|
|
7938
7938
|
if (data.intentId !== undefined && data.intentId !== null) {
|
|
7939
|
-
contents.intentId =
|
|
7939
|
+
contents.intentId = smithy_client_1.expectString(data.intentId);
|
|
7940
7940
|
}
|
|
7941
7941
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
7942
|
-
contents.lastUpdatedDateTime =
|
|
7942
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
7943
7943
|
}
|
|
7944
7944
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
7945
|
-
contents.localeId =
|
|
7945
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
7946
7946
|
}
|
|
7947
7947
|
if (data.multipleValuesSetting !== undefined && data.multipleValuesSetting !== null) {
|
|
7948
7948
|
contents.multipleValuesSetting = deserializeAws_restJson1MultipleValuesSetting(data.multipleValuesSetting, context);
|
|
@@ -7951,13 +7951,13 @@ const deserializeAws_restJson1UpdateSlotCommand = async (output, context) => {
|
|
|
7951
7951
|
contents.obfuscationSetting = deserializeAws_restJson1ObfuscationSetting(data.obfuscationSetting, context);
|
|
7952
7952
|
}
|
|
7953
7953
|
if (data.slotId !== undefined && data.slotId !== null) {
|
|
7954
|
-
contents.slotId =
|
|
7954
|
+
contents.slotId = smithy_client_1.expectString(data.slotId);
|
|
7955
7955
|
}
|
|
7956
7956
|
if (data.slotName !== undefined && data.slotName !== null) {
|
|
7957
|
-
contents.slotName =
|
|
7957
|
+
contents.slotName = smithy_client_1.expectString(data.slotName);
|
|
7958
7958
|
}
|
|
7959
7959
|
if (data.slotTypeId !== undefined && data.slotTypeId !== null) {
|
|
7960
|
-
contents.slotTypeId =
|
|
7960
|
+
contents.slotTypeId = smithy_client_1.expectString(data.slotTypeId);
|
|
7961
7961
|
}
|
|
7962
7962
|
if (data.valueElicitationSetting !== undefined && data.valueElicitationSetting !== null) {
|
|
7963
7963
|
contents.valueElicitationSetting = deserializeAws_restJson1SlotValueElicitationSetting(data.valueElicitationSetting, context);
|
|
@@ -8056,33 +8056,33 @@ const deserializeAws_restJson1UpdateSlotTypeCommand = async (output, context) =>
|
|
|
8056
8056
|
slotTypeValues: undefined,
|
|
8057
8057
|
valueSelectionSetting: undefined,
|
|
8058
8058
|
};
|
|
8059
|
-
const data =
|
|
8059
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
8060
8060
|
if (data.botId !== undefined && data.botId !== null) {
|
|
8061
|
-
contents.botId =
|
|
8061
|
+
contents.botId = smithy_client_1.expectString(data.botId);
|
|
8062
8062
|
}
|
|
8063
8063
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
8064
|
-
contents.botVersion =
|
|
8064
|
+
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
8065
8065
|
}
|
|
8066
8066
|
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
8067
|
-
contents.creationDateTime =
|
|
8067
|
+
contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
|
|
8068
8068
|
}
|
|
8069
8069
|
if (data.description !== undefined && data.description !== null) {
|
|
8070
|
-
contents.description =
|
|
8070
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
8071
8071
|
}
|
|
8072
8072
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
8073
|
-
contents.lastUpdatedDateTime =
|
|
8073
|
+
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
8074
8074
|
}
|
|
8075
8075
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
8076
|
-
contents.localeId =
|
|
8076
|
+
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
8077
8077
|
}
|
|
8078
8078
|
if (data.parentSlotTypeSignature !== undefined && data.parentSlotTypeSignature !== null) {
|
|
8079
|
-
contents.parentSlotTypeSignature =
|
|
8079
|
+
contents.parentSlotTypeSignature = smithy_client_1.expectString(data.parentSlotTypeSignature);
|
|
8080
8080
|
}
|
|
8081
8081
|
if (data.slotTypeId !== undefined && data.slotTypeId !== null) {
|
|
8082
|
-
contents.slotTypeId =
|
|
8082
|
+
contents.slotTypeId = smithy_client_1.expectString(data.slotTypeId);
|
|
8083
8083
|
}
|
|
8084
8084
|
if (data.slotTypeName !== undefined && data.slotTypeName !== null) {
|
|
8085
|
-
contents.slotTypeName =
|
|
8085
|
+
contents.slotTypeName = smithy_client_1.expectString(data.slotTypeName);
|
|
8086
8086
|
}
|
|
8087
8087
|
if (data.slotTypeValues !== undefined && data.slotTypeValues !== null) {
|
|
8088
8088
|
contents.slotTypeValues = deserializeAws_restJson1SlotTypeValues(data.slotTypeValues, context);
|
|
@@ -8175,7 +8175,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
8175
8175
|
};
|
|
8176
8176
|
const data = parsedOutput.body;
|
|
8177
8177
|
if (data.message !== undefined && data.message !== null) {
|
|
8178
|
-
contents.message =
|
|
8178
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8179
8179
|
}
|
|
8180
8180
|
return contents;
|
|
8181
8181
|
};
|
|
@@ -8188,7 +8188,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
8188
8188
|
};
|
|
8189
8189
|
const data = parsedOutput.body;
|
|
8190
8190
|
if (data.message !== undefined && data.message !== null) {
|
|
8191
|
-
contents.message =
|
|
8191
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8192
8192
|
}
|
|
8193
8193
|
return contents;
|
|
8194
8194
|
};
|
|
@@ -8201,7 +8201,7 @@ const deserializeAws_restJson1PreconditionFailedExceptionResponse = async (parse
|
|
|
8201
8201
|
};
|
|
8202
8202
|
const data = parsedOutput.body;
|
|
8203
8203
|
if (data.message !== undefined && data.message !== null) {
|
|
8204
|
-
contents.message =
|
|
8204
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8205
8205
|
}
|
|
8206
8206
|
return contents;
|
|
8207
8207
|
};
|
|
@@ -8214,7 +8214,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
8214
8214
|
};
|
|
8215
8215
|
const data = parsedOutput.body;
|
|
8216
8216
|
if (data.message !== undefined && data.message !== null) {
|
|
8217
|
-
contents.message =
|
|
8217
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8218
8218
|
}
|
|
8219
8219
|
return contents;
|
|
8220
8220
|
};
|
|
@@ -8227,7 +8227,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
8227
8227
|
};
|
|
8228
8228
|
const data = parsedOutput.body;
|
|
8229
8229
|
if (data.message !== undefined && data.message !== null) {
|
|
8230
|
-
contents.message =
|
|
8230
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8231
8231
|
}
|
|
8232
8232
|
return contents;
|
|
8233
8233
|
};
|
|
@@ -8240,11 +8240,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
8240
8240
|
retryAfterSeconds: undefined,
|
|
8241
8241
|
};
|
|
8242
8242
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
8243
|
-
contents.retryAfterSeconds =
|
|
8243
|
+
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
8244
8244
|
}
|
|
8245
8245
|
const data = parsedOutput.body;
|
|
8246
8246
|
if (data.message !== undefined && data.message !== null) {
|
|
8247
|
-
contents.message =
|
|
8247
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8248
8248
|
}
|
|
8249
8249
|
return contents;
|
|
8250
8250
|
};
|
|
@@ -8257,7 +8257,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
8257
8257
|
};
|
|
8258
8258
|
const data = parsedOutput.body;
|
|
8259
8259
|
if (data.message !== undefined && data.message !== null) {
|
|
8260
|
-
contents.message =
|
|
8260
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
8261
8261
|
}
|
|
8262
8262
|
return contents;
|
|
8263
8263
|
};
|
|
@@ -8378,7 +8378,7 @@ const serializeAws_restJson1BotLocaleImportSpecification = (input, context) => {
|
|
|
8378
8378
|
...(input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId }),
|
|
8379
8379
|
...(input.nluIntentConfidenceThreshold !== undefined &&
|
|
8380
8380
|
input.nluIntentConfidenceThreshold !== null && {
|
|
8381
|
-
nluIntentConfidenceThreshold:
|
|
8381
|
+
nluIntentConfidenceThreshold: smithy_client_1.serializeFloat(input.nluIntentConfidenceThreshold),
|
|
8382
8382
|
}),
|
|
8383
8383
|
...(input.voiceSettings !== undefined &&
|
|
8384
8384
|
input.voiceSettings !== null && {
|
|
@@ -9092,7 +9092,7 @@ const deserializeAws_restJson1AudioLogSetting = (output, context) => {
|
|
|
9092
9092
|
destination: output.destination !== undefined && output.destination !== null
|
|
9093
9093
|
? deserializeAws_restJson1AudioLogDestination(output.destination, context)
|
|
9094
9094
|
: undefined,
|
|
9095
|
-
enabled:
|
|
9095
|
+
enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
9096
9096
|
};
|
|
9097
9097
|
};
|
|
9098
9098
|
const deserializeAws_restJson1AudioLogSettingsList = (output, context) => {
|
|
@@ -9107,12 +9107,12 @@ const deserializeAws_restJson1AudioLogSettingsList = (output, context) => {
|
|
|
9107
9107
|
};
|
|
9108
9108
|
const deserializeAws_restJson1BotAliasHistoryEvent = (output, context) => {
|
|
9109
9109
|
return {
|
|
9110
|
-
botVersion:
|
|
9110
|
+
botVersion: smithy_client_1.expectString(output.botVersion),
|
|
9111
9111
|
endDate: output.endDate !== undefined && output.endDate !== null
|
|
9112
|
-
?
|
|
9112
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endDate)))
|
|
9113
9113
|
: undefined,
|
|
9114
9114
|
startDate: output.startDate !== undefined && output.startDate !== null
|
|
9115
|
-
?
|
|
9115
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startDate)))
|
|
9116
9116
|
: undefined,
|
|
9117
9117
|
};
|
|
9118
9118
|
};
|
|
@@ -9131,7 +9131,7 @@ const deserializeAws_restJson1BotAliasLocaleSettings = (output, context) => {
|
|
|
9131
9131
|
codeHookSpecification: output.codeHookSpecification !== undefined && output.codeHookSpecification !== null
|
|
9132
9132
|
? deserializeAws_restJson1CodeHookSpecification(output.codeHookSpecification, context)
|
|
9133
9133
|
: undefined,
|
|
9134
|
-
enabled:
|
|
9134
|
+
enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
9135
9135
|
};
|
|
9136
9136
|
};
|
|
9137
9137
|
const deserializeAws_restJson1BotAliasLocaleSettingsMap = (output, context) => {
|
|
@@ -9147,16 +9147,16 @@ const deserializeAws_restJson1BotAliasLocaleSettingsMap = (output, context) => {
|
|
|
9147
9147
|
};
|
|
9148
9148
|
const deserializeAws_restJson1BotAliasSummary = (output, context) => {
|
|
9149
9149
|
return {
|
|
9150
|
-
botAliasId:
|
|
9151
|
-
botAliasName:
|
|
9152
|
-
botAliasStatus:
|
|
9153
|
-
botVersion:
|
|
9150
|
+
botAliasId: smithy_client_1.expectString(output.botAliasId),
|
|
9151
|
+
botAliasName: smithy_client_1.expectString(output.botAliasName),
|
|
9152
|
+
botAliasStatus: smithy_client_1.expectString(output.botAliasStatus),
|
|
9153
|
+
botVersion: smithy_client_1.expectString(output.botVersion),
|
|
9154
9154
|
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
9155
|
-
?
|
|
9155
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
9156
9156
|
: undefined,
|
|
9157
|
-
description:
|
|
9157
|
+
description: smithy_client_1.expectString(output.description),
|
|
9158
9158
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
9159
|
-
?
|
|
9159
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
9160
9160
|
: undefined,
|
|
9161
9161
|
};
|
|
9162
9162
|
};
|
|
@@ -9172,21 +9172,21 @@ const deserializeAws_restJson1BotAliasSummaryList = (output, context) => {
|
|
|
9172
9172
|
};
|
|
9173
9173
|
const deserializeAws_restJson1BotExportSpecification = (output, context) => {
|
|
9174
9174
|
return {
|
|
9175
|
-
botId:
|
|
9176
|
-
botVersion:
|
|
9175
|
+
botId: smithy_client_1.expectString(output.botId),
|
|
9176
|
+
botVersion: smithy_client_1.expectString(output.botVersion),
|
|
9177
9177
|
};
|
|
9178
9178
|
};
|
|
9179
9179
|
const deserializeAws_restJson1BotImportSpecification = (output, context) => {
|
|
9180
9180
|
return {
|
|
9181
|
-
botName:
|
|
9181
|
+
botName: smithy_client_1.expectString(output.botName),
|
|
9182
9182
|
botTags: output.botTags !== undefined && output.botTags !== null
|
|
9183
9183
|
? deserializeAws_restJson1TagMap(output.botTags, context)
|
|
9184
9184
|
: undefined,
|
|
9185
9185
|
dataPrivacy: output.dataPrivacy !== undefined && output.dataPrivacy !== null
|
|
9186
9186
|
? deserializeAws_restJson1DataPrivacy(output.dataPrivacy, context)
|
|
9187
9187
|
: undefined,
|
|
9188
|
-
idleSessionTTLInSeconds:
|
|
9189
|
-
roleArn:
|
|
9188
|
+
idleSessionTTLInSeconds: smithy_client_1.expectInt32(output.idleSessionTTLInSeconds),
|
|
9189
|
+
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
9190
9190
|
testBotAliasTags: output.testBotAliasTags !== undefined && output.testBotAliasTags !== null
|
|
9191
9191
|
? deserializeAws_restJson1TagMap(output.testBotAliasTags, context)
|
|
9192
9192
|
: undefined,
|
|
@@ -9194,16 +9194,16 @@ const deserializeAws_restJson1BotImportSpecification = (output, context) => {
|
|
|
9194
9194
|
};
|
|
9195
9195
|
const deserializeAws_restJson1BotLocaleExportSpecification = (output, context) => {
|
|
9196
9196
|
return {
|
|
9197
|
-
botId:
|
|
9198
|
-
botVersion:
|
|
9199
|
-
localeId:
|
|
9197
|
+
botId: smithy_client_1.expectString(output.botId),
|
|
9198
|
+
botVersion: smithy_client_1.expectString(output.botVersion),
|
|
9199
|
+
localeId: smithy_client_1.expectString(output.localeId),
|
|
9200
9200
|
};
|
|
9201
9201
|
};
|
|
9202
9202
|
const deserializeAws_restJson1BotLocaleHistoryEvent = (output, context) => {
|
|
9203
9203
|
return {
|
|
9204
|
-
event:
|
|
9204
|
+
event: smithy_client_1.expectString(output.event),
|
|
9205
9205
|
eventDate: output.eventDate !== undefined && output.eventDate !== null
|
|
9206
|
-
?
|
|
9206
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.eventDate)))
|
|
9207
9207
|
: undefined,
|
|
9208
9208
|
};
|
|
9209
9209
|
};
|
|
@@ -9219,10 +9219,10 @@ const deserializeAws_restJson1BotLocaleHistoryEventsList = (output, context) =>
|
|
|
9219
9219
|
};
|
|
9220
9220
|
const deserializeAws_restJson1BotLocaleImportSpecification = (output, context) => {
|
|
9221
9221
|
return {
|
|
9222
|
-
botId:
|
|
9223
|
-
botVersion:
|
|
9224
|
-
localeId:
|
|
9225
|
-
nluIntentConfidenceThreshold:
|
|
9222
|
+
botId: smithy_client_1.expectString(output.botId),
|
|
9223
|
+
botVersion: smithy_client_1.expectString(output.botVersion),
|
|
9224
|
+
localeId: smithy_client_1.expectString(output.localeId),
|
|
9225
|
+
nluIntentConfidenceThreshold: smithy_client_1.limitedParseDouble(output.nluIntentConfidenceThreshold),
|
|
9226
9226
|
voiceSettings: output.voiceSettings !== undefined && output.voiceSettings !== null
|
|
9227
9227
|
? deserializeAws_restJson1VoiceSettings(output.voiceSettings, context)
|
|
9228
9228
|
: undefined,
|
|
@@ -9230,16 +9230,16 @@ const deserializeAws_restJson1BotLocaleImportSpecification = (output, context) =
|
|
|
9230
9230
|
};
|
|
9231
9231
|
const deserializeAws_restJson1BotLocaleSummary = (output, context) => {
|
|
9232
9232
|
return {
|
|
9233
|
-
botLocaleStatus:
|
|
9234
|
-
description:
|
|
9233
|
+
botLocaleStatus: smithy_client_1.expectString(output.botLocaleStatus),
|
|
9234
|
+
description: smithy_client_1.expectString(output.description),
|
|
9235
9235
|
lastBuildSubmittedDateTime: output.lastBuildSubmittedDateTime !== undefined && output.lastBuildSubmittedDateTime !== null
|
|
9236
|
-
?
|
|
9236
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastBuildSubmittedDateTime)))
|
|
9237
9237
|
: undefined,
|
|
9238
9238
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
9239
|
-
?
|
|
9239
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
9240
9240
|
: undefined,
|
|
9241
|
-
localeId:
|
|
9242
|
-
localeName:
|
|
9241
|
+
localeId: smithy_client_1.expectString(output.localeId),
|
|
9242
|
+
localeName: smithy_client_1.expectString(output.localeName),
|
|
9243
9243
|
};
|
|
9244
9244
|
};
|
|
9245
9245
|
const deserializeAws_restJson1BotLocaleSummaryList = (output, context) => {
|
|
@@ -9254,14 +9254,14 @@ const deserializeAws_restJson1BotLocaleSummaryList = (output, context) => {
|
|
|
9254
9254
|
};
|
|
9255
9255
|
const deserializeAws_restJson1BotSummary = (output, context) => {
|
|
9256
9256
|
return {
|
|
9257
|
-
botId:
|
|
9258
|
-
botName:
|
|
9259
|
-
botStatus:
|
|
9260
|
-
description:
|
|
9257
|
+
botId: smithy_client_1.expectString(output.botId),
|
|
9258
|
+
botName: smithy_client_1.expectString(output.botName),
|
|
9259
|
+
botStatus: smithy_client_1.expectString(output.botStatus),
|
|
9260
|
+
description: smithy_client_1.expectString(output.description),
|
|
9261
9261
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
9262
|
-
?
|
|
9262
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
9263
9263
|
: undefined,
|
|
9264
|
-
latestBotVersion:
|
|
9264
|
+
latestBotVersion: smithy_client_1.expectString(output.latestBotVersion),
|
|
9265
9265
|
};
|
|
9266
9266
|
};
|
|
9267
9267
|
const deserializeAws_restJson1BotSummaryList = (output, context) => {
|
|
@@ -9276,7 +9276,7 @@ const deserializeAws_restJson1BotSummaryList = (output, context) => {
|
|
|
9276
9276
|
};
|
|
9277
9277
|
const deserializeAws_restJson1BotVersionLocaleDetails = (output, context) => {
|
|
9278
9278
|
return {
|
|
9279
|
-
sourceBotVersion:
|
|
9279
|
+
sourceBotVersion: smithy_client_1.expectString(output.sourceBotVersion),
|
|
9280
9280
|
};
|
|
9281
9281
|
};
|
|
9282
9282
|
const deserializeAws_restJson1BotVersionLocaleSpecification = (output, context) => {
|
|
@@ -9292,13 +9292,13 @@ const deserializeAws_restJson1BotVersionLocaleSpecification = (output, context)
|
|
|
9292
9292
|
};
|
|
9293
9293
|
const deserializeAws_restJson1BotVersionSummary = (output, context) => {
|
|
9294
9294
|
return {
|
|
9295
|
-
botName:
|
|
9296
|
-
botStatus:
|
|
9297
|
-
botVersion:
|
|
9295
|
+
botName: smithy_client_1.expectString(output.botName),
|
|
9296
|
+
botStatus: smithy_client_1.expectString(output.botStatus),
|
|
9297
|
+
botVersion: smithy_client_1.expectString(output.botVersion),
|
|
9298
9298
|
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
9299
|
-
?
|
|
9299
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
9300
9300
|
: undefined,
|
|
9301
|
-
description:
|
|
9301
|
+
description: smithy_client_1.expectString(output.description),
|
|
9302
9302
|
};
|
|
9303
9303
|
};
|
|
9304
9304
|
const deserializeAws_restJson1BotVersionSummaryList = (output, context) => {
|
|
@@ -9313,8 +9313,8 @@ const deserializeAws_restJson1BotVersionSummaryList = (output, context) => {
|
|
|
9313
9313
|
};
|
|
9314
9314
|
const deserializeAws_restJson1BuiltInIntentSummary = (output, context) => {
|
|
9315
9315
|
return {
|
|
9316
|
-
description:
|
|
9317
|
-
intentSignature:
|
|
9316
|
+
description: smithy_client_1.expectString(output.description),
|
|
9317
|
+
intentSignature: smithy_client_1.expectString(output.intentSignature),
|
|
9318
9318
|
};
|
|
9319
9319
|
};
|
|
9320
9320
|
const deserializeAws_restJson1BuiltInIntentSummaryList = (output, context) => {
|
|
@@ -9329,8 +9329,8 @@ const deserializeAws_restJson1BuiltInIntentSummaryList = (output, context) => {
|
|
|
9329
9329
|
};
|
|
9330
9330
|
const deserializeAws_restJson1BuiltInSlotTypeSummary = (output, context) => {
|
|
9331
9331
|
return {
|
|
9332
|
-
description:
|
|
9333
|
-
slotTypeSignature:
|
|
9332
|
+
description: smithy_client_1.expectString(output.description),
|
|
9333
|
+
slotTypeSignature: smithy_client_1.expectString(output.slotTypeSignature),
|
|
9334
9334
|
};
|
|
9335
9335
|
};
|
|
9336
9336
|
const deserializeAws_restJson1BuiltInSlotTypeSummaryList = (output, context) => {
|
|
@@ -9345,8 +9345,8 @@ const deserializeAws_restJson1BuiltInSlotTypeSummaryList = (output, context) =>
|
|
|
9345
9345
|
};
|
|
9346
9346
|
const deserializeAws_restJson1Button = (output, context) => {
|
|
9347
9347
|
return {
|
|
9348
|
-
text:
|
|
9349
|
-
value:
|
|
9348
|
+
text: smithy_client_1.expectString(output.text),
|
|
9349
|
+
value: smithy_client_1.expectString(output.value),
|
|
9350
9350
|
};
|
|
9351
9351
|
};
|
|
9352
9352
|
const deserializeAws_restJson1ButtonsList = (output, context) => {
|
|
@@ -9361,8 +9361,8 @@ const deserializeAws_restJson1ButtonsList = (output, context) => {
|
|
|
9361
9361
|
};
|
|
9362
9362
|
const deserializeAws_restJson1CloudWatchLogGroupLogDestination = (output, context) => {
|
|
9363
9363
|
return {
|
|
9364
|
-
cloudWatchLogGroupArn:
|
|
9365
|
-
logPrefix:
|
|
9364
|
+
cloudWatchLogGroupArn: smithy_client_1.expectString(output.cloudWatchLogGroupArn),
|
|
9365
|
+
logPrefix: smithy_client_1.expectString(output.logPrefix),
|
|
9366
9366
|
};
|
|
9367
9367
|
};
|
|
9368
9368
|
const deserializeAws_restJson1CodeHookSpecification = (output, context) => {
|
|
@@ -9384,17 +9384,17 @@ const deserializeAws_restJson1ConversationLogSettings = (output, context) => {
|
|
|
9384
9384
|
};
|
|
9385
9385
|
const deserializeAws_restJson1CustomPayload = (output, context) => {
|
|
9386
9386
|
return {
|
|
9387
|
-
value:
|
|
9387
|
+
value: smithy_client_1.expectString(output.value),
|
|
9388
9388
|
};
|
|
9389
9389
|
};
|
|
9390
9390
|
const deserializeAws_restJson1DataPrivacy = (output, context) => {
|
|
9391
9391
|
return {
|
|
9392
|
-
childDirected:
|
|
9392
|
+
childDirected: smithy_client_1.expectBoolean(output.childDirected),
|
|
9393
9393
|
};
|
|
9394
9394
|
};
|
|
9395
9395
|
const deserializeAws_restJson1DialogCodeHookSettings = (output, context) => {
|
|
9396
9396
|
return {
|
|
9397
|
-
enabled:
|
|
9397
|
+
enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
9398
9398
|
};
|
|
9399
9399
|
};
|
|
9400
9400
|
const deserializeAws_restJson1ExportResourceSpecification = (output, context) => {
|
|
@@ -9410,13 +9410,13 @@ const deserializeAws_restJson1ExportResourceSpecification = (output, context) =>
|
|
|
9410
9410
|
const deserializeAws_restJson1ExportSummary = (output, context) => {
|
|
9411
9411
|
return {
|
|
9412
9412
|
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
9413
|
-
?
|
|
9413
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
9414
9414
|
: undefined,
|
|
9415
|
-
exportId:
|
|
9416
|
-
exportStatus:
|
|
9417
|
-
fileFormat:
|
|
9415
|
+
exportId: smithy_client_1.expectString(output.exportId),
|
|
9416
|
+
exportStatus: smithy_client_1.expectString(output.exportStatus),
|
|
9417
|
+
fileFormat: smithy_client_1.expectString(output.fileFormat),
|
|
9418
9418
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
9419
|
-
?
|
|
9419
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
9420
9420
|
: undefined,
|
|
9421
9421
|
resourceSpecification: output.resourceSpecification !== undefined && output.resourceSpecification !== null
|
|
9422
9422
|
? deserializeAws_restJson1ExportResourceSpecification(output.resourceSpecification, context)
|
|
@@ -9440,12 +9440,12 @@ const deserializeAws_restJson1FailureReasons = (output, context) => {
|
|
|
9440
9440
|
if (entry === null) {
|
|
9441
9441
|
return null;
|
|
9442
9442
|
}
|
|
9443
|
-
return
|
|
9443
|
+
return smithy_client_1.expectString(entry);
|
|
9444
9444
|
});
|
|
9445
9445
|
};
|
|
9446
9446
|
const deserializeAws_restJson1FulfillmentCodeHookSettings = (output, context) => {
|
|
9447
9447
|
return {
|
|
9448
|
-
enabled:
|
|
9448
|
+
enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
9449
9449
|
};
|
|
9450
9450
|
};
|
|
9451
9451
|
const deserializeAws_restJson1ImageResponseCard = (output, context) => {
|
|
@@ -9453,9 +9453,9 @@ const deserializeAws_restJson1ImageResponseCard = (output, context) => {
|
|
|
9453
9453
|
buttons: output.buttons !== undefined && output.buttons !== null
|
|
9454
9454
|
? deserializeAws_restJson1ButtonsList(output.buttons, context)
|
|
9455
9455
|
: undefined,
|
|
9456
|
-
imageUrl:
|
|
9457
|
-
subtitle:
|
|
9458
|
-
title:
|
|
9456
|
+
imageUrl: smithy_client_1.expectString(output.imageUrl),
|
|
9457
|
+
subtitle: smithy_client_1.expectString(output.subtitle),
|
|
9458
|
+
title: smithy_client_1.expectString(output.title),
|
|
9459
9459
|
};
|
|
9460
9460
|
};
|
|
9461
9461
|
const deserializeAws_restJson1ImportResourceSpecification = (output, context) => {
|
|
@@ -9471,16 +9471,16 @@ const deserializeAws_restJson1ImportResourceSpecification = (output, context) =>
|
|
|
9471
9471
|
const deserializeAws_restJson1ImportSummary = (output, context) => {
|
|
9472
9472
|
return {
|
|
9473
9473
|
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
9474
|
-
?
|
|
9474
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
9475
9475
|
: undefined,
|
|
9476
|
-
importId:
|
|
9477
|
-
importStatus:
|
|
9478
|
-
importedResourceId:
|
|
9479
|
-
importedResourceName:
|
|
9476
|
+
importId: smithy_client_1.expectString(output.importId),
|
|
9477
|
+
importStatus: smithy_client_1.expectString(output.importStatus),
|
|
9478
|
+
importedResourceId: smithy_client_1.expectString(output.importedResourceId),
|
|
9479
|
+
importedResourceName: smithy_client_1.expectString(output.importedResourceName),
|
|
9480
9480
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
9481
|
-
?
|
|
9481
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
9482
9482
|
: undefined,
|
|
9483
|
-
mergeStrategy:
|
|
9483
|
+
mergeStrategy: smithy_client_1.expectString(output.mergeStrategy),
|
|
9484
9484
|
};
|
|
9485
9485
|
};
|
|
9486
9486
|
const deserializeAws_restJson1ImportSummaryList = (output, context) => {
|
|
@@ -9495,7 +9495,7 @@ const deserializeAws_restJson1ImportSummaryList = (output, context) => {
|
|
|
9495
9495
|
};
|
|
9496
9496
|
const deserializeAws_restJson1InputContext = (output, context) => {
|
|
9497
9497
|
return {
|
|
9498
|
-
name:
|
|
9498
|
+
name: smithy_client_1.expectString(output.name),
|
|
9499
9499
|
};
|
|
9500
9500
|
};
|
|
9501
9501
|
const deserializeAws_restJson1InputContextsList = (output, context) => {
|
|
@@ -9510,7 +9510,7 @@ const deserializeAws_restJson1InputContextsList = (output, context) => {
|
|
|
9510
9510
|
};
|
|
9511
9511
|
const deserializeAws_restJson1IntentClosingSetting = (output, context) => {
|
|
9512
9512
|
return {
|
|
9513
|
-
active:
|
|
9513
|
+
active: smithy_client_1.expectBoolean(output.active),
|
|
9514
9514
|
closingResponse: output.closingResponse !== undefined && output.closingResponse !== null
|
|
9515
9515
|
? deserializeAws_restJson1ResponseSpecification(output.closingResponse, context)
|
|
9516
9516
|
: undefined,
|
|
@@ -9518,7 +9518,7 @@ const deserializeAws_restJson1IntentClosingSetting = (output, context) => {
|
|
|
9518
9518
|
};
|
|
9519
9519
|
const deserializeAws_restJson1IntentConfirmationSetting = (output, context) => {
|
|
9520
9520
|
return {
|
|
9521
|
-
active:
|
|
9521
|
+
active: smithy_client_1.expectBoolean(output.active),
|
|
9522
9522
|
declinationResponse: output.declinationResponse !== undefined && output.declinationResponse !== null
|
|
9523
9523
|
? deserializeAws_restJson1ResponseSpecification(output.declinationResponse, context)
|
|
9524
9524
|
: undefined,
|
|
@@ -9529,19 +9529,19 @@ const deserializeAws_restJson1IntentConfirmationSetting = (output, context) => {
|
|
|
9529
9529
|
};
|
|
9530
9530
|
const deserializeAws_restJson1IntentSummary = (output, context) => {
|
|
9531
9531
|
return {
|
|
9532
|
-
description:
|
|
9532
|
+
description: smithy_client_1.expectString(output.description),
|
|
9533
9533
|
inputContexts: output.inputContexts !== undefined && output.inputContexts !== null
|
|
9534
9534
|
? deserializeAws_restJson1InputContextsList(output.inputContexts, context)
|
|
9535
9535
|
: undefined,
|
|
9536
|
-
intentId:
|
|
9537
|
-
intentName:
|
|
9536
|
+
intentId: smithy_client_1.expectString(output.intentId),
|
|
9537
|
+
intentName: smithy_client_1.expectString(output.intentName),
|
|
9538
9538
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
9539
|
-
?
|
|
9539
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
9540
9540
|
: undefined,
|
|
9541
9541
|
outputContexts: output.outputContexts !== undefined && output.outputContexts !== null
|
|
9542
9542
|
? deserializeAws_restJson1OutputContextsList(output.outputContexts, context)
|
|
9543
9543
|
: undefined,
|
|
9544
|
-
parentIntentSignature:
|
|
9544
|
+
parentIntentSignature: smithy_client_1.expectString(output.parentIntentSignature),
|
|
9545
9545
|
};
|
|
9546
9546
|
};
|
|
9547
9547
|
const deserializeAws_restJson1IntentSummaryList = (output, context) => {
|
|
@@ -9556,15 +9556,15 @@ const deserializeAws_restJson1IntentSummaryList = (output, context) => {
|
|
|
9556
9556
|
};
|
|
9557
9557
|
const deserializeAws_restJson1KendraConfiguration = (output, context) => {
|
|
9558
9558
|
return {
|
|
9559
|
-
kendraIndex:
|
|
9560
|
-
queryFilterString:
|
|
9561
|
-
queryFilterStringEnabled:
|
|
9559
|
+
kendraIndex: smithy_client_1.expectString(output.kendraIndex),
|
|
9560
|
+
queryFilterString: smithy_client_1.expectString(output.queryFilterString),
|
|
9561
|
+
queryFilterStringEnabled: smithy_client_1.expectBoolean(output.queryFilterStringEnabled),
|
|
9562
9562
|
};
|
|
9563
9563
|
};
|
|
9564
9564
|
const deserializeAws_restJson1LambdaCodeHook = (output, context) => {
|
|
9565
9565
|
return {
|
|
9566
|
-
codeHookInterfaceVersion:
|
|
9567
|
-
lambdaARN:
|
|
9566
|
+
codeHookInterfaceVersion: smithy_client_1.expectString(output.codeHookInterfaceVersion),
|
|
9567
|
+
lambdaARN: smithy_client_1.expectString(output.lambdaARN),
|
|
9568
9568
|
};
|
|
9569
9569
|
};
|
|
9570
9570
|
const deserializeAws_restJson1Message = (output, context) => {
|
|
@@ -9615,19 +9615,19 @@ const deserializeAws_restJson1MessageVariationsList = (output, context) => {
|
|
|
9615
9615
|
};
|
|
9616
9616
|
const deserializeAws_restJson1MultipleValuesSetting = (output, context) => {
|
|
9617
9617
|
return {
|
|
9618
|
-
allowMultipleValues:
|
|
9618
|
+
allowMultipleValues: smithy_client_1.expectBoolean(output.allowMultipleValues),
|
|
9619
9619
|
};
|
|
9620
9620
|
};
|
|
9621
9621
|
const deserializeAws_restJson1ObfuscationSetting = (output, context) => {
|
|
9622
9622
|
return {
|
|
9623
|
-
obfuscationSettingType:
|
|
9623
|
+
obfuscationSettingType: smithy_client_1.expectString(output.obfuscationSettingType),
|
|
9624
9624
|
};
|
|
9625
9625
|
};
|
|
9626
9626
|
const deserializeAws_restJson1OutputContext = (output, context) => {
|
|
9627
9627
|
return {
|
|
9628
|
-
name:
|
|
9629
|
-
timeToLiveInSeconds:
|
|
9630
|
-
turnsToLive:
|
|
9628
|
+
name: smithy_client_1.expectString(output.name),
|
|
9629
|
+
timeToLiveInSeconds: smithy_client_1.expectInt32(output.timeToLiveInSeconds),
|
|
9630
|
+
turnsToLive: smithy_client_1.expectInt32(output.turnsToLive),
|
|
9631
9631
|
};
|
|
9632
9632
|
};
|
|
9633
9633
|
const deserializeAws_restJson1OutputContextsList = (output, context) => {
|
|
@@ -9642,13 +9642,13 @@ const deserializeAws_restJson1OutputContextsList = (output, context) => {
|
|
|
9642
9642
|
};
|
|
9643
9643
|
const deserializeAws_restJson1PlainTextMessage = (output, context) => {
|
|
9644
9644
|
return {
|
|
9645
|
-
value:
|
|
9645
|
+
value: smithy_client_1.expectString(output.value),
|
|
9646
9646
|
};
|
|
9647
9647
|
};
|
|
9648
9648
|
const deserializeAws_restJson1PromptSpecification = (output, context) => {
|
|
9649
9649
|
return {
|
|
9650
|
-
allowInterrupt:
|
|
9651
|
-
maxRetries:
|
|
9650
|
+
allowInterrupt: smithy_client_1.expectBoolean(output.allowInterrupt),
|
|
9651
|
+
maxRetries: smithy_client_1.expectInt32(output.maxRetries),
|
|
9652
9652
|
messageGroups: output.messageGroups !== undefined && output.messageGroups !== null
|
|
9653
9653
|
? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
|
|
9654
9654
|
: undefined,
|
|
@@ -9656,7 +9656,7 @@ const deserializeAws_restJson1PromptSpecification = (output, context) => {
|
|
|
9656
9656
|
};
|
|
9657
9657
|
const deserializeAws_restJson1ResponseSpecification = (output, context) => {
|
|
9658
9658
|
return {
|
|
9659
|
-
allowInterrupt:
|
|
9659
|
+
allowInterrupt: smithy_client_1.expectBoolean(output.allowInterrupt),
|
|
9660
9660
|
messageGroups: output.messageGroups !== undefined && output.messageGroups !== null
|
|
9661
9661
|
? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
|
|
9662
9662
|
: undefined,
|
|
@@ -9664,14 +9664,14 @@ const deserializeAws_restJson1ResponseSpecification = (output, context) => {
|
|
|
9664
9664
|
};
|
|
9665
9665
|
const deserializeAws_restJson1S3BucketLogDestination = (output, context) => {
|
|
9666
9666
|
return {
|
|
9667
|
-
kmsKeyArn:
|
|
9668
|
-
logPrefix:
|
|
9669
|
-
s3BucketArn:
|
|
9667
|
+
kmsKeyArn: smithy_client_1.expectString(output.kmsKeyArn),
|
|
9668
|
+
logPrefix: smithy_client_1.expectString(output.logPrefix),
|
|
9669
|
+
s3BucketArn: smithy_client_1.expectString(output.s3BucketArn),
|
|
9670
9670
|
};
|
|
9671
9671
|
};
|
|
9672
9672
|
const deserializeAws_restJson1SampleUtterance = (output, context) => {
|
|
9673
9673
|
return {
|
|
9674
|
-
utterance:
|
|
9674
|
+
utterance: smithy_client_1.expectString(output.utterance),
|
|
9675
9675
|
};
|
|
9676
9676
|
};
|
|
9677
9677
|
const deserializeAws_restJson1SampleUtterancesList = (output, context) => {
|
|
@@ -9686,17 +9686,17 @@ const deserializeAws_restJson1SampleUtterancesList = (output, context) => {
|
|
|
9686
9686
|
};
|
|
9687
9687
|
const deserializeAws_restJson1SampleValue = (output, context) => {
|
|
9688
9688
|
return {
|
|
9689
|
-
value:
|
|
9689
|
+
value: smithy_client_1.expectString(output.value),
|
|
9690
9690
|
};
|
|
9691
9691
|
};
|
|
9692
9692
|
const deserializeAws_restJson1SentimentAnalysisSettings = (output, context) => {
|
|
9693
9693
|
return {
|
|
9694
|
-
detectSentiment:
|
|
9694
|
+
detectSentiment: smithy_client_1.expectBoolean(output.detectSentiment),
|
|
9695
9695
|
};
|
|
9696
9696
|
};
|
|
9697
9697
|
const deserializeAws_restJson1SlotDefaultValue = (output, context) => {
|
|
9698
9698
|
return {
|
|
9699
|
-
defaultValue:
|
|
9699
|
+
defaultValue: smithy_client_1.expectString(output.defaultValue),
|
|
9700
9700
|
};
|
|
9701
9701
|
};
|
|
9702
9702
|
const deserializeAws_restJson1SlotDefaultValueList = (output, context) => {
|
|
@@ -9728,20 +9728,20 @@ const deserializeAws_restJson1SlotPrioritiesList = (output, context) => {
|
|
|
9728
9728
|
};
|
|
9729
9729
|
const deserializeAws_restJson1SlotPriority = (output, context) => {
|
|
9730
9730
|
return {
|
|
9731
|
-
priority:
|
|
9732
|
-
slotId:
|
|
9731
|
+
priority: smithy_client_1.expectInt32(output.priority),
|
|
9732
|
+
slotId: smithy_client_1.expectString(output.slotId),
|
|
9733
9733
|
};
|
|
9734
9734
|
};
|
|
9735
9735
|
const deserializeAws_restJson1SlotSummary = (output, context) => {
|
|
9736
9736
|
return {
|
|
9737
|
-
description:
|
|
9737
|
+
description: smithy_client_1.expectString(output.description),
|
|
9738
9738
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
9739
|
-
?
|
|
9739
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
9740
9740
|
: undefined,
|
|
9741
|
-
slotConstraint:
|
|
9742
|
-
slotId:
|
|
9743
|
-
slotName:
|
|
9744
|
-
slotTypeId:
|
|
9741
|
+
slotConstraint: smithy_client_1.expectString(output.slotConstraint),
|
|
9742
|
+
slotId: smithy_client_1.expectString(output.slotId),
|
|
9743
|
+
slotName: smithy_client_1.expectString(output.slotName),
|
|
9744
|
+
slotTypeId: smithy_client_1.expectString(output.slotTypeId),
|
|
9745
9745
|
valueElicitationPromptSpecification: output.valueElicitationPromptSpecification !== undefined && output.valueElicitationPromptSpecification !== null
|
|
9746
9746
|
? deserializeAws_restJson1PromptSpecification(output.valueElicitationPromptSpecification, context)
|
|
9747
9747
|
: undefined,
|
|
@@ -9759,13 +9759,13 @@ const deserializeAws_restJson1SlotSummaryList = (output, context) => {
|
|
|
9759
9759
|
};
|
|
9760
9760
|
const deserializeAws_restJson1SlotTypeSummary = (output, context) => {
|
|
9761
9761
|
return {
|
|
9762
|
-
description:
|
|
9762
|
+
description: smithy_client_1.expectString(output.description),
|
|
9763
9763
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
9764
|
-
?
|
|
9764
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
9765
9765
|
: undefined,
|
|
9766
|
-
parentSlotTypeSignature:
|
|
9767
|
-
slotTypeId:
|
|
9768
|
-
slotTypeName:
|
|
9766
|
+
parentSlotTypeSignature: smithy_client_1.expectString(output.parentSlotTypeSignature),
|
|
9767
|
+
slotTypeId: smithy_client_1.expectString(output.slotTypeId),
|
|
9768
|
+
slotTypeName: smithy_client_1.expectString(output.slotTypeName),
|
|
9769
9769
|
};
|
|
9770
9770
|
};
|
|
9771
9771
|
const deserializeAws_restJson1SlotTypeSummaryList = (output, context) => {
|
|
@@ -9809,7 +9809,7 @@ const deserializeAws_restJson1SlotValueElicitationSetting = (output, context) =>
|
|
|
9809
9809
|
sampleUtterances: output.sampleUtterances !== undefined && output.sampleUtterances !== null
|
|
9810
9810
|
? deserializeAws_restJson1SampleUtterancesList(output.sampleUtterances, context)
|
|
9811
9811
|
: undefined,
|
|
9812
|
-
slotConstraint:
|
|
9812
|
+
slotConstraint: smithy_client_1.expectString(output.slotConstraint),
|
|
9813
9813
|
waitAndContinueSpecification: output.waitAndContinueSpecification !== undefined && output.waitAndContinueSpecification !== null
|
|
9814
9814
|
? deserializeAws_restJson1WaitAndContinueSpecification(output.waitAndContinueSpecification, context)
|
|
9815
9815
|
: undefined,
|
|
@@ -9817,7 +9817,7 @@ const deserializeAws_restJson1SlotValueElicitationSetting = (output, context) =>
|
|
|
9817
9817
|
};
|
|
9818
9818
|
const deserializeAws_restJson1SlotValueRegexFilter = (output, context) => {
|
|
9819
9819
|
return {
|
|
9820
|
-
pattern:
|
|
9820
|
+
pattern: smithy_client_1.expectString(output.pattern),
|
|
9821
9821
|
};
|
|
9822
9822
|
};
|
|
9823
9823
|
const deserializeAws_restJson1SlotValueSelectionSetting = (output, context) => {
|
|
@@ -9825,22 +9825,22 @@ const deserializeAws_restJson1SlotValueSelectionSetting = (output, context) => {
|
|
|
9825
9825
|
regexFilter: output.regexFilter !== undefined && output.regexFilter !== null
|
|
9826
9826
|
? deserializeAws_restJson1SlotValueRegexFilter(output.regexFilter, context)
|
|
9827
9827
|
: undefined,
|
|
9828
|
-
resolutionStrategy:
|
|
9828
|
+
resolutionStrategy: smithy_client_1.expectString(output.resolutionStrategy),
|
|
9829
9829
|
};
|
|
9830
9830
|
};
|
|
9831
9831
|
const deserializeAws_restJson1SSMLMessage = (output, context) => {
|
|
9832
9832
|
return {
|
|
9833
|
-
value:
|
|
9833
|
+
value: smithy_client_1.expectString(output.value),
|
|
9834
9834
|
};
|
|
9835
9835
|
};
|
|
9836
9836
|
const deserializeAws_restJson1StillWaitingResponseSpecification = (output, context) => {
|
|
9837
9837
|
return {
|
|
9838
|
-
allowInterrupt:
|
|
9839
|
-
frequencyInSeconds:
|
|
9838
|
+
allowInterrupt: smithy_client_1.expectBoolean(output.allowInterrupt),
|
|
9839
|
+
frequencyInSeconds: smithy_client_1.expectInt32(output.frequencyInSeconds),
|
|
9840
9840
|
messageGroups: output.messageGroups !== undefined && output.messageGroups !== null
|
|
9841
9841
|
? deserializeAws_restJson1MessageGroupsList(output.messageGroups, context)
|
|
9842
9842
|
: undefined,
|
|
9843
|
-
timeoutInSeconds:
|
|
9843
|
+
timeoutInSeconds: smithy_client_1.expectInt32(output.timeoutInSeconds),
|
|
9844
9844
|
};
|
|
9845
9845
|
};
|
|
9846
9846
|
const deserializeAws_restJson1SynonymList = (output, context) => {
|
|
@@ -9860,7 +9860,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
9860
9860
|
}
|
|
9861
9861
|
return {
|
|
9862
9862
|
...acc,
|
|
9863
|
-
[key]:
|
|
9863
|
+
[key]: smithy_client_1.expectString(value),
|
|
9864
9864
|
};
|
|
9865
9865
|
}, {});
|
|
9866
9866
|
};
|
|
@@ -9876,7 +9876,7 @@ const deserializeAws_restJson1TextLogSetting = (output, context) => {
|
|
|
9876
9876
|
destination: output.destination !== undefined && output.destination !== null
|
|
9877
9877
|
? deserializeAws_restJson1TextLogDestination(output.destination, context)
|
|
9878
9878
|
: undefined,
|
|
9879
|
-
enabled:
|
|
9879
|
+
enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
9880
9880
|
};
|
|
9881
9881
|
};
|
|
9882
9882
|
const deserializeAws_restJson1TextLogSettingsList = (output, context) => {
|
|
@@ -9891,12 +9891,12 @@ const deserializeAws_restJson1TextLogSettingsList = (output, context) => {
|
|
|
9891
9891
|
};
|
|
9892
9892
|
const deserializeAws_restJson1VoiceSettings = (output, context) => {
|
|
9893
9893
|
return {
|
|
9894
|
-
voiceId:
|
|
9894
|
+
voiceId: smithy_client_1.expectString(output.voiceId),
|
|
9895
9895
|
};
|
|
9896
9896
|
};
|
|
9897
9897
|
const deserializeAws_restJson1WaitAndContinueSpecification = (output, context) => {
|
|
9898
9898
|
return {
|
|
9899
|
-
active:
|
|
9899
|
+
active: smithy_client_1.expectBoolean(output.active),
|
|
9900
9900
|
continueResponse: output.continueResponse !== undefined && output.continueResponse !== null
|
|
9901
9901
|
? deserializeAws_restJson1ResponseSpecification(output.continueResponse, context)
|
|
9902
9902
|
: undefined,
|