@aws-sdk/client-lex-models-v2 3.504.0 → 3.509.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/README.md +48 -0
- package/dist-cjs/commands/CreateBotReplicaCommand.js +1 -0
- package/dist-cjs/commands/DeleteBotReplicaCommand.js +1 -0
- package/dist-cjs/commands/DescribeBotReplicaCommand.js +1 -0
- package/dist-cjs/commands/ListBotAliasReplicasCommand.js +1 -0
- package/dist-cjs/commands/ListBotReplicasCommand.js +1 -0
- package/dist-cjs/commands/ListBotVersionReplicasCommand.js +1 -0
- package/dist-cjs/index.js +733 -3315
- package/dist-cjs/pagination/ListBotAliasReplicasPaginator.js +1 -0
- package/dist-cjs/pagination/ListBotVersionReplicasPaginator.js +1 -0
- package/dist-es/LexModelsV2.js +12 -0
- package/dist-es/commands/CreateBotReplicaCommand.js +24 -0
- package/dist-es/commands/DeleteBotReplicaCommand.js +24 -0
- package/dist-es/commands/DescribeBotRecommendationCommand.js +1 -1
- package/dist-es/commands/DescribeBotReplicaCommand.js +24 -0
- package/dist-es/commands/ListBotAliasReplicasCommand.js +24 -0
- package/dist-es/commands/ListBotReplicasCommand.js +24 -0
- package/dist-es/commands/ListBotVersionReplicasCommand.js +24 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +22 -14
- package/dist-es/models/models_1.js +14 -0
- package/dist-es/pagination/ListBotAliasReplicasPaginator.js +4 -0
- package/dist-es/pagination/ListBotVersionReplicasPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +403 -3147
- package/dist-types/LexModelsV2.d.ts +42 -0
- package/dist-types/LexModelsV2Client.d.ts +8 -2
- package/dist-types/commands/CreateBotReplicaCommand.d.ts +88 -0
- package/dist-types/commands/DeleteBotReplicaCommand.d.ts +86 -0
- package/dist-types/commands/DescribeBotRecommendationCommand.d.ts +2 -1
- package/dist-types/commands/DescribeBotReplicaCommand.d.ts +85 -0
- package/dist-types/commands/DescribeBotResourceGenerationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBotVersionCommand.d.ts +1 -1
- package/dist-types/commands/DescribeCustomVocabularyMetadataCommand.d.ts +1 -1
- package/dist-types/commands/DescribeExportCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImportCommand.d.ts +1 -2
- package/dist-types/commands/ListBotAliasReplicasCommand.d.ts +91 -0
- package/dist-types/commands/ListBotReplicasCommand.d.ts +84 -0
- package/dist-types/commands/ListBotVersionReplicasCommand.d.ts +93 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +238 -407
- package/dist-types/models/models_1.d.ts +603 -1
- package/dist-types/pagination/ListBotAliasReplicasPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBotVersionReplicasPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/dist-types/ts3.4/LexModelsV2.d.ts +102 -0
- package/dist-types/ts3.4/LexModelsV2Client.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateBotReplicaCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/DeleteBotReplicaCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/DescribeBotRecommendationCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeBotReplicaCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DescribeBotResourceGenerationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeBotVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeCustomVocabularyMetadataCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeExportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeImportCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListBotAliasReplicasCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListBotReplicasCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/ListBotVersionReplicasCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +74 -96
- package/dist-types/ts3.4/models/models_1.d.ts +151 -2
- package/dist-types/ts3.4/pagination/ListBotAliasReplicasPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBotVersionReplicasPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +3 -3
|
@@ -121,6 +121,20 @@ export const se_CreateBotLocaleCommand = async (input, context) => {
|
|
|
121
121
|
b.m("PUT").h(headers).b(body);
|
|
122
122
|
return b.build();
|
|
123
123
|
};
|
|
124
|
+
export const se_CreateBotReplicaCommand = async (input, context) => {
|
|
125
|
+
const b = rb(input, context);
|
|
126
|
+
const headers = {
|
|
127
|
+
"content-type": "application/json",
|
|
128
|
+
};
|
|
129
|
+
b.bp("/bots/{botId}/replicas");
|
|
130
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
131
|
+
let body;
|
|
132
|
+
body = JSON.stringify(take(input, {
|
|
133
|
+
replicaRegion: [],
|
|
134
|
+
}));
|
|
135
|
+
b.m("PUT").h(headers).b(body);
|
|
136
|
+
return b.build();
|
|
137
|
+
};
|
|
124
138
|
export const se_CreateBotVersionCommand = async (input, context) => {
|
|
125
139
|
const b = rb(input, context);
|
|
126
140
|
const headers = {
|
|
@@ -319,6 +333,16 @@ export const se_DeleteBotLocaleCommand = async (input, context) => {
|
|
|
319
333
|
b.m("DELETE").h(headers).b(body);
|
|
320
334
|
return b.build();
|
|
321
335
|
};
|
|
336
|
+
export const se_DeleteBotReplicaCommand = async (input, context) => {
|
|
337
|
+
const b = rb(input, context);
|
|
338
|
+
const headers = {};
|
|
339
|
+
b.bp("/bots/{botId}/replicas/{replicaRegion}");
|
|
340
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
341
|
+
b.p("replicaRegion", () => input.replicaRegion, "{replicaRegion}", false);
|
|
342
|
+
let body;
|
|
343
|
+
b.m("DELETE").h(headers).b(body);
|
|
344
|
+
return b.build();
|
|
345
|
+
};
|
|
322
346
|
export const se_DeleteBotVersionCommand = async (input, context) => {
|
|
323
347
|
const b = rb(input, context);
|
|
324
348
|
const headers = {};
|
|
@@ -490,6 +514,16 @@ export const se_DescribeBotRecommendationCommand = async (input, context) => {
|
|
|
490
514
|
b.m("GET").h(headers).b(body);
|
|
491
515
|
return b.build();
|
|
492
516
|
};
|
|
517
|
+
export const se_DescribeBotReplicaCommand = async (input, context) => {
|
|
518
|
+
const b = rb(input, context);
|
|
519
|
+
const headers = {};
|
|
520
|
+
b.bp("/bots/{botId}/replicas/{replicaRegion}");
|
|
521
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
522
|
+
b.p("replicaRegion", () => input.replicaRegion, "{replicaRegion}", false);
|
|
523
|
+
let body;
|
|
524
|
+
b.m("GET").h(headers).b(body);
|
|
525
|
+
return b.build();
|
|
526
|
+
};
|
|
493
527
|
export const se_DescribeBotResourceGenerationCommand = async (input, context) => {
|
|
494
528
|
const b = rb(input, context);
|
|
495
529
|
const headers = {};
|
|
@@ -684,6 +718,22 @@ export const se_ListBotAliasesCommand = async (input, context) => {
|
|
|
684
718
|
b.m("POST").h(headers).b(body);
|
|
685
719
|
return b.build();
|
|
686
720
|
};
|
|
721
|
+
export const se_ListBotAliasReplicasCommand = async (input, context) => {
|
|
722
|
+
const b = rb(input, context);
|
|
723
|
+
const headers = {
|
|
724
|
+
"content-type": "application/json",
|
|
725
|
+
};
|
|
726
|
+
b.bp("/bots/{botId}/replicas/{replicaRegion}/botaliases");
|
|
727
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
728
|
+
b.p("replicaRegion", () => input.replicaRegion, "{replicaRegion}", false);
|
|
729
|
+
let body;
|
|
730
|
+
body = JSON.stringify(take(input, {
|
|
731
|
+
maxResults: [],
|
|
732
|
+
nextToken: [],
|
|
733
|
+
}));
|
|
734
|
+
b.m("POST").h(headers).b(body);
|
|
735
|
+
return b.build();
|
|
736
|
+
};
|
|
687
737
|
export const se_ListBotLocalesCommand = async (input, context) => {
|
|
688
738
|
const b = rb(input, context);
|
|
689
739
|
const headers = {
|
|
@@ -719,6 +769,15 @@ export const se_ListBotRecommendationsCommand = async (input, context) => {
|
|
|
719
769
|
b.m("POST").h(headers).b(body);
|
|
720
770
|
return b.build();
|
|
721
771
|
};
|
|
772
|
+
export const se_ListBotReplicasCommand = async (input, context) => {
|
|
773
|
+
const b = rb(input, context);
|
|
774
|
+
const headers = {};
|
|
775
|
+
b.bp("/bots/{botId}/replicas");
|
|
776
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
777
|
+
let body;
|
|
778
|
+
b.m("POST").h(headers).b(body);
|
|
779
|
+
return b.build();
|
|
780
|
+
};
|
|
722
781
|
export const se_ListBotResourceGenerationsCommand = async (input, context) => {
|
|
723
782
|
const b = rb(input, context);
|
|
724
783
|
const headers = {
|
|
@@ -753,6 +812,23 @@ export const se_ListBotsCommand = async (input, context) => {
|
|
|
753
812
|
b.m("POST").h(headers).b(body);
|
|
754
813
|
return b.build();
|
|
755
814
|
};
|
|
815
|
+
export const se_ListBotVersionReplicasCommand = async (input, context) => {
|
|
816
|
+
const b = rb(input, context);
|
|
817
|
+
const headers = {
|
|
818
|
+
"content-type": "application/json",
|
|
819
|
+
};
|
|
820
|
+
b.bp("/bots/{botId}/replicas/{replicaRegion}/botversions");
|
|
821
|
+
b.p("botId", () => input.botId, "{botId}", false);
|
|
822
|
+
b.p("replicaRegion", () => input.replicaRegion, "{replicaRegion}", false);
|
|
823
|
+
let body;
|
|
824
|
+
body = JSON.stringify(take(input, {
|
|
825
|
+
maxResults: [],
|
|
826
|
+
nextToken: [],
|
|
827
|
+
sortBy: (_) => _json(_),
|
|
828
|
+
}));
|
|
829
|
+
b.m("POST").h(headers).b(body);
|
|
830
|
+
return b.build();
|
|
831
|
+
};
|
|
756
832
|
export const se_ListBotVersionsCommand = async (input, context) => {
|
|
757
833
|
const b = rb(input, context);
|
|
758
834
|
const headers = {
|
|
@@ -1486,7 +1562,7 @@ export const se_UpdateTestSetCommand = async (input, context) => {
|
|
|
1486
1562
|
};
|
|
1487
1563
|
export const de_BatchCreateCustomVocabularyItemCommand = async (output, context) => {
|
|
1488
1564
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1489
|
-
return
|
|
1565
|
+
return de_CommandError(output, context);
|
|
1490
1566
|
}
|
|
1491
1567
|
const contents = map({
|
|
1492
1568
|
$metadata: deserializeMetadata(output),
|
|
@@ -1502,40 +1578,9 @@ export const de_BatchCreateCustomVocabularyItemCommand = async (output, context)
|
|
|
1502
1578
|
Object.assign(contents, doc);
|
|
1503
1579
|
return contents;
|
|
1504
1580
|
};
|
|
1505
|
-
const de_BatchCreateCustomVocabularyItemCommandError = async (output, context) => {
|
|
1506
|
-
const parsedOutput = {
|
|
1507
|
-
...output,
|
|
1508
|
-
body: await parseErrorBody(output.body, context),
|
|
1509
|
-
};
|
|
1510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
|
-
switch (errorCode) {
|
|
1512
|
-
case "InternalServerException":
|
|
1513
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
1514
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ResourceNotFoundException":
|
|
1516
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
1517
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "ServiceQuotaExceededException":
|
|
1519
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
1520
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "ThrottlingException":
|
|
1522
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
1523
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1524
|
-
case "ValidationException":
|
|
1525
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
1526
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1527
|
-
default:
|
|
1528
|
-
const parsedBody = parsedOutput.body;
|
|
1529
|
-
return throwDefaultError({
|
|
1530
|
-
output,
|
|
1531
|
-
parsedBody,
|
|
1532
|
-
errorCode,
|
|
1533
|
-
});
|
|
1534
|
-
}
|
|
1535
|
-
};
|
|
1536
1581
|
export const de_BatchDeleteCustomVocabularyItemCommand = async (output, context) => {
|
|
1537
1582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1538
|
-
return
|
|
1583
|
+
return de_CommandError(output, context);
|
|
1539
1584
|
}
|
|
1540
1585
|
const contents = map({
|
|
1541
1586
|
$metadata: deserializeMetadata(output),
|
|
@@ -1551,40 +1596,9 @@ export const de_BatchDeleteCustomVocabularyItemCommand = async (output, context)
|
|
|
1551
1596
|
Object.assign(contents, doc);
|
|
1552
1597
|
return contents;
|
|
1553
1598
|
};
|
|
1554
|
-
const de_BatchDeleteCustomVocabularyItemCommandError = async (output, context) => {
|
|
1555
|
-
const parsedOutput = {
|
|
1556
|
-
...output,
|
|
1557
|
-
body: await parseErrorBody(output.body, context),
|
|
1558
|
-
};
|
|
1559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
|
-
switch (errorCode) {
|
|
1561
|
-
case "InternalServerException":
|
|
1562
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
1563
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "ResourceNotFoundException":
|
|
1565
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
1566
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1567
|
-
case "ServiceQuotaExceededException":
|
|
1568
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
1569
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "ThrottlingException":
|
|
1571
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
1572
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1573
|
-
case "ValidationException":
|
|
1574
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
1575
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1576
|
-
default:
|
|
1577
|
-
const parsedBody = parsedOutput.body;
|
|
1578
|
-
return throwDefaultError({
|
|
1579
|
-
output,
|
|
1580
|
-
parsedBody,
|
|
1581
|
-
errorCode,
|
|
1582
|
-
});
|
|
1583
|
-
}
|
|
1584
|
-
};
|
|
1585
1599
|
export const de_BatchUpdateCustomVocabularyItemCommand = async (output, context) => {
|
|
1586
1600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1587
|
-
return
|
|
1601
|
+
return de_CommandError(output, context);
|
|
1588
1602
|
}
|
|
1589
1603
|
const contents = map({
|
|
1590
1604
|
$metadata: deserializeMetadata(output),
|
|
@@ -1600,40 +1614,9 @@ export const de_BatchUpdateCustomVocabularyItemCommand = async (output, context)
|
|
|
1600
1614
|
Object.assign(contents, doc);
|
|
1601
1615
|
return contents;
|
|
1602
1616
|
};
|
|
1603
|
-
const de_BatchUpdateCustomVocabularyItemCommandError = async (output, context) => {
|
|
1604
|
-
const parsedOutput = {
|
|
1605
|
-
...output,
|
|
1606
|
-
body: await parseErrorBody(output.body, context),
|
|
1607
|
-
};
|
|
1608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
|
-
switch (errorCode) {
|
|
1610
|
-
case "InternalServerException":
|
|
1611
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
1612
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "ResourceNotFoundException":
|
|
1614
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
1615
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1616
|
-
case "ServiceQuotaExceededException":
|
|
1617
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
1618
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1619
|
-
case "ThrottlingException":
|
|
1620
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
1621
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "ValidationException":
|
|
1623
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
1624
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1625
|
-
default:
|
|
1626
|
-
const parsedBody = parsedOutput.body;
|
|
1627
|
-
return throwDefaultError({
|
|
1628
|
-
output,
|
|
1629
|
-
parsedBody,
|
|
1630
|
-
errorCode,
|
|
1631
|
-
});
|
|
1632
|
-
}
|
|
1633
|
-
};
|
|
1634
1617
|
export const de_BuildBotLocaleCommand = async (output, context) => {
|
|
1635
1618
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1636
|
-
return
|
|
1619
|
+
return de_CommandError(output, context);
|
|
1637
1620
|
}
|
|
1638
1621
|
const contents = map({
|
|
1639
1622
|
$metadata: deserializeMetadata(output),
|
|
@@ -1649,43 +1632,9 @@ export const de_BuildBotLocaleCommand = async (output, context) => {
|
|
|
1649
1632
|
Object.assign(contents, doc);
|
|
1650
1633
|
return contents;
|
|
1651
1634
|
};
|
|
1652
|
-
const de_BuildBotLocaleCommandError = async (output, context) => {
|
|
1653
|
-
const parsedOutput = {
|
|
1654
|
-
...output,
|
|
1655
|
-
body: await parseErrorBody(output.body, context),
|
|
1656
|
-
};
|
|
1657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
|
-
switch (errorCode) {
|
|
1659
|
-
case "ConflictException":
|
|
1660
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
1661
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "InternalServerException":
|
|
1663
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
1664
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "PreconditionFailedException":
|
|
1666
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
1667
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "ServiceQuotaExceededException":
|
|
1669
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
1670
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "ThrottlingException":
|
|
1672
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
1673
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "ValidationException":
|
|
1675
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
1676
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1677
|
-
default:
|
|
1678
|
-
const parsedBody = parsedOutput.body;
|
|
1679
|
-
return throwDefaultError({
|
|
1680
|
-
output,
|
|
1681
|
-
parsedBody,
|
|
1682
|
-
errorCode,
|
|
1683
|
-
});
|
|
1684
|
-
}
|
|
1685
|
-
};
|
|
1686
1635
|
export const de_CreateBotCommand = async (output, context) => {
|
|
1687
1636
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1688
|
-
return
|
|
1637
|
+
return de_CommandError(output, context);
|
|
1689
1638
|
}
|
|
1690
1639
|
const contents = map({
|
|
1691
1640
|
$metadata: deserializeMetadata(output),
|
|
@@ -1708,43 +1657,9 @@ export const de_CreateBotCommand = async (output, context) => {
|
|
|
1708
1657
|
Object.assign(contents, doc);
|
|
1709
1658
|
return contents;
|
|
1710
1659
|
};
|
|
1711
|
-
const de_CreateBotCommandError = async (output, context) => {
|
|
1712
|
-
const parsedOutput = {
|
|
1713
|
-
...output,
|
|
1714
|
-
body: await parseErrorBody(output.body, context),
|
|
1715
|
-
};
|
|
1716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
-
switch (errorCode) {
|
|
1718
|
-
case "ConflictException":
|
|
1719
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
1720
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "InternalServerException":
|
|
1722
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
1723
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "PreconditionFailedException":
|
|
1725
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
1726
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "ServiceQuotaExceededException":
|
|
1728
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
1729
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ThrottlingException":
|
|
1731
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
1732
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "ValidationException":
|
|
1734
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
1735
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1736
|
-
default:
|
|
1737
|
-
const parsedBody = parsedOutput.body;
|
|
1738
|
-
return throwDefaultError({
|
|
1739
|
-
output,
|
|
1740
|
-
parsedBody,
|
|
1741
|
-
errorCode,
|
|
1742
|
-
});
|
|
1743
|
-
}
|
|
1744
|
-
};
|
|
1745
1660
|
export const de_CreateBotAliasCommand = async (output, context) => {
|
|
1746
1661
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1747
|
-
return
|
|
1662
|
+
return de_CommandError(output, context);
|
|
1748
1663
|
}
|
|
1749
1664
|
const contents = map({
|
|
1750
1665
|
$metadata: deserializeMetadata(output),
|
|
@@ -1766,43 +1681,9 @@ export const de_CreateBotAliasCommand = async (output, context) => {
|
|
|
1766
1681
|
Object.assign(contents, doc);
|
|
1767
1682
|
return contents;
|
|
1768
1683
|
};
|
|
1769
|
-
const de_CreateBotAliasCommandError = async (output, context) => {
|
|
1770
|
-
const parsedOutput = {
|
|
1771
|
-
...output,
|
|
1772
|
-
body: await parseErrorBody(output.body, context),
|
|
1773
|
-
};
|
|
1774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1775
|
-
switch (errorCode) {
|
|
1776
|
-
case "ConflictException":
|
|
1777
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
1778
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "InternalServerException":
|
|
1780
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
1781
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "PreconditionFailedException":
|
|
1783
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
1784
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "ServiceQuotaExceededException":
|
|
1786
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
1787
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "ThrottlingException":
|
|
1789
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
1790
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1791
|
-
case "ValidationException":
|
|
1792
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
1793
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1794
|
-
default:
|
|
1795
|
-
const parsedBody = parsedOutput.body;
|
|
1796
|
-
return throwDefaultError({
|
|
1797
|
-
output,
|
|
1798
|
-
parsedBody,
|
|
1799
|
-
errorCode,
|
|
1800
|
-
});
|
|
1801
|
-
}
|
|
1802
|
-
};
|
|
1803
1684
|
export const de_CreateBotLocaleCommand = async (output, context) => {
|
|
1804
1685
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1805
|
-
return
|
|
1686
|
+
return de_CommandError(output, context);
|
|
1806
1687
|
}
|
|
1807
1688
|
const contents = map({
|
|
1808
1689
|
$metadata: deserializeMetadata(output),
|
|
@@ -1823,43 +1704,27 @@ export const de_CreateBotLocaleCommand = async (output, context) => {
|
|
|
1823
1704
|
Object.assign(contents, doc);
|
|
1824
1705
|
return contents;
|
|
1825
1706
|
};
|
|
1826
|
-
const
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
body: await parseErrorBody(output.body, context),
|
|
1830
|
-
};
|
|
1831
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1832
|
-
switch (errorCode) {
|
|
1833
|
-
case "ConflictException":
|
|
1834
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
1835
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "InternalServerException":
|
|
1837
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
1838
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "PreconditionFailedException":
|
|
1840
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
1841
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "ServiceQuotaExceededException":
|
|
1843
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
1844
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "ThrottlingException":
|
|
1846
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
1847
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "ValidationException":
|
|
1849
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
1850
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1851
|
-
default:
|
|
1852
|
-
const parsedBody = parsedOutput.body;
|
|
1853
|
-
return throwDefaultError({
|
|
1854
|
-
output,
|
|
1855
|
-
parsedBody,
|
|
1856
|
-
errorCode,
|
|
1857
|
-
});
|
|
1707
|
+
export const de_CreateBotReplicaCommand = async (output, context) => {
|
|
1708
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1709
|
+
return de_CommandError(output, context);
|
|
1858
1710
|
}
|
|
1711
|
+
const contents = map({
|
|
1712
|
+
$metadata: deserializeMetadata(output),
|
|
1713
|
+
});
|
|
1714
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1715
|
+
const doc = take(data, {
|
|
1716
|
+
botId: __expectString,
|
|
1717
|
+
botReplicaStatus: __expectString,
|
|
1718
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1719
|
+
replicaRegion: __expectString,
|
|
1720
|
+
sourceRegion: __expectString,
|
|
1721
|
+
});
|
|
1722
|
+
Object.assign(contents, doc);
|
|
1723
|
+
return contents;
|
|
1859
1724
|
};
|
|
1860
1725
|
export const de_CreateBotVersionCommand = async (output, context) => {
|
|
1861
1726
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1862
|
-
return
|
|
1727
|
+
return de_CommandError(output, context);
|
|
1863
1728
|
}
|
|
1864
1729
|
const contents = map({
|
|
1865
1730
|
$metadata: deserializeMetadata(output),
|
|
@@ -1876,43 +1741,9 @@ export const de_CreateBotVersionCommand = async (output, context) => {
|
|
|
1876
1741
|
Object.assign(contents, doc);
|
|
1877
1742
|
return contents;
|
|
1878
1743
|
};
|
|
1879
|
-
const de_CreateBotVersionCommandError = async (output, context) => {
|
|
1880
|
-
const parsedOutput = {
|
|
1881
|
-
...output,
|
|
1882
|
-
body: await parseErrorBody(output.body, context),
|
|
1883
|
-
};
|
|
1884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
|
-
switch (errorCode) {
|
|
1886
|
-
case "ConflictException":
|
|
1887
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
1888
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1889
|
-
case "InternalServerException":
|
|
1890
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
1891
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1892
|
-
case "PreconditionFailedException":
|
|
1893
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
1894
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
1895
|
-
case "ServiceQuotaExceededException":
|
|
1896
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
1897
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1898
|
-
case "ThrottlingException":
|
|
1899
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
1900
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "ValidationException":
|
|
1902
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
1903
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1904
|
-
default:
|
|
1905
|
-
const parsedBody = parsedOutput.body;
|
|
1906
|
-
return throwDefaultError({
|
|
1907
|
-
output,
|
|
1908
|
-
parsedBody,
|
|
1909
|
-
errorCode,
|
|
1910
|
-
});
|
|
1911
|
-
}
|
|
1912
|
-
};
|
|
1913
1744
|
export const de_CreateExportCommand = async (output, context) => {
|
|
1914
1745
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1915
|
-
return
|
|
1746
|
+
return de_CommandError(output, context);
|
|
1916
1747
|
}
|
|
1917
1748
|
const contents = map({
|
|
1918
1749
|
$metadata: deserializeMetadata(output),
|
|
@@ -1928,43 +1759,9 @@ export const de_CreateExportCommand = async (output, context) => {
|
|
|
1928
1759
|
Object.assign(contents, doc);
|
|
1929
1760
|
return contents;
|
|
1930
1761
|
};
|
|
1931
|
-
const de_CreateExportCommandError = async (output, context) => {
|
|
1932
|
-
const parsedOutput = {
|
|
1933
|
-
...output,
|
|
1934
|
-
body: await parseErrorBody(output.body, context),
|
|
1935
|
-
};
|
|
1936
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
|
-
switch (errorCode) {
|
|
1938
|
-
case "ConflictException":
|
|
1939
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
1940
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "InternalServerException":
|
|
1942
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
1943
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1944
|
-
case "ResourceNotFoundException":
|
|
1945
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
1946
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "ServiceQuotaExceededException":
|
|
1948
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
1949
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "ThrottlingException":
|
|
1951
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
1952
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1953
|
-
case "ValidationException":
|
|
1954
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
1955
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1956
|
-
default:
|
|
1957
|
-
const parsedBody = parsedOutput.body;
|
|
1958
|
-
return throwDefaultError({
|
|
1959
|
-
output,
|
|
1960
|
-
parsedBody,
|
|
1961
|
-
errorCode,
|
|
1962
|
-
});
|
|
1963
|
-
}
|
|
1964
|
-
};
|
|
1965
1762
|
export const de_CreateIntentCommand = async (output, context) => {
|
|
1966
1763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1967
|
-
return
|
|
1764
|
+
return de_CommandError(output, context);
|
|
1968
1765
|
}
|
|
1969
1766
|
const contents = map({
|
|
1970
1767
|
$metadata: deserializeMetadata(output),
|
|
@@ -1992,43 +1789,9 @@ export const de_CreateIntentCommand = async (output, context) => {
|
|
|
1992
1789
|
Object.assign(contents, doc);
|
|
1993
1790
|
return contents;
|
|
1994
1791
|
};
|
|
1995
|
-
const de_CreateIntentCommandError = async (output, context) => {
|
|
1996
|
-
const parsedOutput = {
|
|
1997
|
-
...output,
|
|
1998
|
-
body: await parseErrorBody(output.body, context),
|
|
1999
|
-
};
|
|
2000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2001
|
-
switch (errorCode) {
|
|
2002
|
-
case "ConflictException":
|
|
2003
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2004
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "InternalServerException":
|
|
2006
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2007
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "PreconditionFailedException":
|
|
2009
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2010
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "ServiceQuotaExceededException":
|
|
2012
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2013
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "ThrottlingException":
|
|
2015
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2016
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "ValidationException":
|
|
2018
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2019
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2020
|
-
default:
|
|
2021
|
-
const parsedBody = parsedOutput.body;
|
|
2022
|
-
return throwDefaultError({
|
|
2023
|
-
output,
|
|
2024
|
-
parsedBody,
|
|
2025
|
-
errorCode,
|
|
2026
|
-
});
|
|
2027
|
-
}
|
|
2028
|
-
};
|
|
2029
1792
|
export const de_CreateResourcePolicyCommand = async (output, context) => {
|
|
2030
1793
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2031
|
-
return
|
|
1794
|
+
return de_CommandError(output, context);
|
|
2032
1795
|
}
|
|
2033
1796
|
const contents = map({
|
|
2034
1797
|
$metadata: deserializeMetadata(output),
|
|
@@ -2041,43 +1804,9 @@ export const de_CreateResourcePolicyCommand = async (output, context) => {
|
|
|
2041
1804
|
Object.assign(contents, doc);
|
|
2042
1805
|
return contents;
|
|
2043
1806
|
};
|
|
2044
|
-
const de_CreateResourcePolicyCommandError = async (output, context) => {
|
|
2045
|
-
const parsedOutput = {
|
|
2046
|
-
...output,
|
|
2047
|
-
body: await parseErrorBody(output.body, context),
|
|
2048
|
-
};
|
|
2049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2050
|
-
switch (errorCode) {
|
|
2051
|
-
case "InternalServerException":
|
|
2052
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2053
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2054
|
-
case "PreconditionFailedException":
|
|
2055
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2056
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "ResourceNotFoundException":
|
|
2058
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
2059
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "ServiceQuotaExceededException":
|
|
2061
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2062
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "ThrottlingException":
|
|
2064
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2065
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ValidationException":
|
|
2067
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2068
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2069
|
-
default:
|
|
2070
|
-
const parsedBody = parsedOutput.body;
|
|
2071
|
-
return throwDefaultError({
|
|
2072
|
-
output,
|
|
2073
|
-
parsedBody,
|
|
2074
|
-
errorCode,
|
|
2075
|
-
});
|
|
2076
|
-
}
|
|
2077
|
-
};
|
|
2078
1807
|
export const de_CreateResourcePolicyStatementCommand = async (output, context) => {
|
|
2079
1808
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2080
|
-
return
|
|
1809
|
+
return de_CommandError(output, context);
|
|
2081
1810
|
}
|
|
2082
1811
|
const contents = map({
|
|
2083
1812
|
$metadata: deserializeMetadata(output),
|
|
@@ -2090,46 +1819,9 @@ export const de_CreateResourcePolicyStatementCommand = async (output, context) =
|
|
|
2090
1819
|
Object.assign(contents, doc);
|
|
2091
1820
|
return contents;
|
|
2092
1821
|
};
|
|
2093
|
-
const de_CreateResourcePolicyStatementCommandError = async (output, context) => {
|
|
2094
|
-
const parsedOutput = {
|
|
2095
|
-
...output,
|
|
2096
|
-
body: await parseErrorBody(output.body, context),
|
|
2097
|
-
};
|
|
2098
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2099
|
-
switch (errorCode) {
|
|
2100
|
-
case "ConflictException":
|
|
2101
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2102
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "InternalServerException":
|
|
2104
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2105
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "PreconditionFailedException":
|
|
2107
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2108
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "ResourceNotFoundException":
|
|
2110
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
2111
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ServiceQuotaExceededException":
|
|
2113
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2114
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "ThrottlingException":
|
|
2116
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2117
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2118
|
-
case "ValidationException":
|
|
2119
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2120
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2121
|
-
default:
|
|
2122
|
-
const parsedBody = parsedOutput.body;
|
|
2123
|
-
return throwDefaultError({
|
|
2124
|
-
output,
|
|
2125
|
-
parsedBody,
|
|
2126
|
-
errorCode,
|
|
2127
|
-
});
|
|
2128
|
-
}
|
|
2129
|
-
};
|
|
2130
1822
|
export const de_CreateSlotCommand = async (output, context) => {
|
|
2131
1823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2132
|
-
return
|
|
1824
|
+
return de_CommandError(output, context);
|
|
2133
1825
|
}
|
|
2134
1826
|
const contents = map({
|
|
2135
1827
|
$metadata: deserializeMetadata(output),
|
|
@@ -2153,43 +1845,9 @@ export const de_CreateSlotCommand = async (output, context) => {
|
|
|
2153
1845
|
Object.assign(contents, doc);
|
|
2154
1846
|
return contents;
|
|
2155
1847
|
};
|
|
2156
|
-
const de_CreateSlotCommandError = async (output, context) => {
|
|
2157
|
-
const parsedOutput = {
|
|
2158
|
-
...output,
|
|
2159
|
-
body: await parseErrorBody(output.body, context),
|
|
2160
|
-
};
|
|
2161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
|
-
switch (errorCode) {
|
|
2163
|
-
case "ConflictException":
|
|
2164
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2165
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "InternalServerException":
|
|
2167
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2168
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "PreconditionFailedException":
|
|
2170
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2171
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "ServiceQuotaExceededException":
|
|
2173
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2174
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2175
|
-
case "ThrottlingException":
|
|
2176
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2177
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2178
|
-
case "ValidationException":
|
|
2179
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2180
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2181
|
-
default:
|
|
2182
|
-
const parsedBody = parsedOutput.body;
|
|
2183
|
-
return throwDefaultError({
|
|
2184
|
-
output,
|
|
2185
|
-
parsedBody,
|
|
2186
|
-
errorCode,
|
|
2187
|
-
});
|
|
2188
|
-
}
|
|
2189
|
-
};
|
|
2190
1848
|
export const de_CreateSlotTypeCommand = async (output, context) => {
|
|
2191
1849
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2192
|
-
return
|
|
1850
|
+
return de_CommandError(output, context);
|
|
2193
1851
|
}
|
|
2194
1852
|
const contents = map({
|
|
2195
1853
|
$metadata: deserializeMetadata(output),
|
|
@@ -2212,43 +1870,9 @@ export const de_CreateSlotTypeCommand = async (output, context) => {
|
|
|
2212
1870
|
Object.assign(contents, doc);
|
|
2213
1871
|
return contents;
|
|
2214
1872
|
};
|
|
2215
|
-
const de_CreateSlotTypeCommandError = async (output, context) => {
|
|
2216
|
-
const parsedOutput = {
|
|
2217
|
-
...output,
|
|
2218
|
-
body: await parseErrorBody(output.body, context),
|
|
2219
|
-
};
|
|
2220
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2221
|
-
switch (errorCode) {
|
|
2222
|
-
case "ConflictException":
|
|
2223
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2224
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "InternalServerException":
|
|
2226
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2227
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2228
|
-
case "PreconditionFailedException":
|
|
2229
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2230
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2231
|
-
case "ServiceQuotaExceededException":
|
|
2232
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2233
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "ThrottlingException":
|
|
2235
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2236
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2237
|
-
case "ValidationException":
|
|
2238
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2239
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2240
|
-
default:
|
|
2241
|
-
const parsedBody = parsedOutput.body;
|
|
2242
|
-
return throwDefaultError({
|
|
2243
|
-
output,
|
|
2244
|
-
parsedBody,
|
|
2245
|
-
errorCode,
|
|
2246
|
-
});
|
|
2247
|
-
}
|
|
2248
|
-
};
|
|
2249
1873
|
export const de_CreateTestSetDiscrepancyReportCommand = async (output, context) => {
|
|
2250
1874
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2251
|
-
return
|
|
1875
|
+
return de_CommandError(output, context);
|
|
2252
1876
|
}
|
|
2253
1877
|
const contents = map({
|
|
2254
1878
|
$metadata: deserializeMetadata(output),
|
|
@@ -2263,43 +1887,9 @@ export const de_CreateTestSetDiscrepancyReportCommand = async (output, context)
|
|
|
2263
1887
|
Object.assign(contents, doc);
|
|
2264
1888
|
return contents;
|
|
2265
1889
|
};
|
|
2266
|
-
const de_CreateTestSetDiscrepancyReportCommandError = async (output, context) => {
|
|
2267
|
-
const parsedOutput = {
|
|
2268
|
-
...output,
|
|
2269
|
-
body: await parseErrorBody(output.body, context),
|
|
2270
|
-
};
|
|
2271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
|
-
switch (errorCode) {
|
|
2273
|
-
case "ConflictException":
|
|
2274
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2275
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "InternalServerException":
|
|
2277
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2278
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "ResourceNotFoundException":
|
|
2280
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
2281
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "ServiceQuotaExceededException":
|
|
2283
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2284
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "ThrottlingException":
|
|
2286
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2287
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "ValidationException":
|
|
2289
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2290
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2291
|
-
default:
|
|
2292
|
-
const parsedBody = parsedOutput.body;
|
|
2293
|
-
return throwDefaultError({
|
|
2294
|
-
output,
|
|
2295
|
-
parsedBody,
|
|
2296
|
-
errorCode,
|
|
2297
|
-
});
|
|
2298
|
-
}
|
|
2299
|
-
};
|
|
2300
1890
|
export const de_CreateUploadUrlCommand = async (output, context) => {
|
|
2301
1891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2302
|
-
return
|
|
1892
|
+
return de_CommandError(output, context);
|
|
2303
1893
|
}
|
|
2304
1894
|
const contents = map({
|
|
2305
1895
|
$metadata: deserializeMetadata(output),
|
|
@@ -2312,40 +1902,9 @@ export const de_CreateUploadUrlCommand = async (output, context) => {
|
|
|
2312
1902
|
Object.assign(contents, doc);
|
|
2313
1903
|
return contents;
|
|
2314
1904
|
};
|
|
2315
|
-
const de_CreateUploadUrlCommandError = async (output, context) => {
|
|
2316
|
-
const parsedOutput = {
|
|
2317
|
-
...output,
|
|
2318
|
-
body: await parseErrorBody(output.body, context),
|
|
2319
|
-
};
|
|
2320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2321
|
-
switch (errorCode) {
|
|
2322
|
-
case "ConflictException":
|
|
2323
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2324
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2325
|
-
case "InternalServerException":
|
|
2326
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2327
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2328
|
-
case "ResourceNotFoundException":
|
|
2329
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
2330
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "ThrottlingException":
|
|
2332
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2333
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "ValidationException":
|
|
2335
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2336
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2337
|
-
default:
|
|
2338
|
-
const parsedBody = parsedOutput.body;
|
|
2339
|
-
return throwDefaultError({
|
|
2340
|
-
output,
|
|
2341
|
-
parsedBody,
|
|
2342
|
-
errorCode,
|
|
2343
|
-
});
|
|
2344
|
-
}
|
|
2345
|
-
};
|
|
2346
1905
|
export const de_DeleteBotCommand = async (output, context) => {
|
|
2347
1906
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2348
|
-
return
|
|
1907
|
+
return de_CommandError(output, context);
|
|
2349
1908
|
}
|
|
2350
1909
|
const contents = map({
|
|
2351
1910
|
$metadata: deserializeMetadata(output),
|
|
@@ -2358,43 +1917,9 @@ export const de_DeleteBotCommand = async (output, context) => {
|
|
|
2358
1917
|
Object.assign(contents, doc);
|
|
2359
1918
|
return contents;
|
|
2360
1919
|
};
|
|
2361
|
-
const de_DeleteBotCommandError = async (output, context) => {
|
|
2362
|
-
const parsedOutput = {
|
|
2363
|
-
...output,
|
|
2364
|
-
body: await parseErrorBody(output.body, context),
|
|
2365
|
-
};
|
|
2366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2367
|
-
switch (errorCode) {
|
|
2368
|
-
case "ConflictException":
|
|
2369
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2370
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "InternalServerException":
|
|
2372
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2373
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2374
|
-
case "PreconditionFailedException":
|
|
2375
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2376
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2377
|
-
case "ServiceQuotaExceededException":
|
|
2378
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2379
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2380
|
-
case "ThrottlingException":
|
|
2381
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2382
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2383
|
-
case "ValidationException":
|
|
2384
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2385
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2386
|
-
default:
|
|
2387
|
-
const parsedBody = parsedOutput.body;
|
|
2388
|
-
return throwDefaultError({
|
|
2389
|
-
output,
|
|
2390
|
-
parsedBody,
|
|
2391
|
-
errorCode,
|
|
2392
|
-
});
|
|
2393
|
-
}
|
|
2394
|
-
};
|
|
2395
1920
|
export const de_DeleteBotAliasCommand = async (output, context) => {
|
|
2396
1921
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2397
|
-
return
|
|
1922
|
+
return de_CommandError(output, context);
|
|
2398
1923
|
}
|
|
2399
1924
|
const contents = map({
|
|
2400
1925
|
$metadata: deserializeMetadata(output),
|
|
@@ -2408,43 +1933,9 @@ export const de_DeleteBotAliasCommand = async (output, context) => {
|
|
|
2408
1933
|
Object.assign(contents, doc);
|
|
2409
1934
|
return contents;
|
|
2410
1935
|
};
|
|
2411
|
-
const de_DeleteBotAliasCommandError = async (output, context) => {
|
|
2412
|
-
const parsedOutput = {
|
|
2413
|
-
...output,
|
|
2414
|
-
body: await parseErrorBody(output.body, context),
|
|
2415
|
-
};
|
|
2416
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2417
|
-
switch (errorCode) {
|
|
2418
|
-
case "ConflictException":
|
|
2419
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2420
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "InternalServerException":
|
|
2422
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2423
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "PreconditionFailedException":
|
|
2425
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2426
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "ServiceQuotaExceededException":
|
|
2428
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2429
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "ThrottlingException":
|
|
2431
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2432
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "ValidationException":
|
|
2434
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2435
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2436
|
-
default:
|
|
2437
|
-
const parsedBody = parsedOutput.body;
|
|
2438
|
-
return throwDefaultError({
|
|
2439
|
-
output,
|
|
2440
|
-
parsedBody,
|
|
2441
|
-
errorCode,
|
|
2442
|
-
});
|
|
2443
|
-
}
|
|
2444
|
-
};
|
|
2445
1936
|
export const de_DeleteBotLocaleCommand = async (output, context) => {
|
|
2446
1937
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2447
|
-
return
|
|
1938
|
+
return de_CommandError(output, context);
|
|
2448
1939
|
}
|
|
2449
1940
|
const contents = map({
|
|
2450
1941
|
$metadata: deserializeMetadata(output),
|
|
@@ -2459,43 +1950,25 @@ export const de_DeleteBotLocaleCommand = async (output, context) => {
|
|
|
2459
1950
|
Object.assign(contents, doc);
|
|
2460
1951
|
return contents;
|
|
2461
1952
|
};
|
|
2462
|
-
const
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
body: await parseErrorBody(output.body, context),
|
|
2466
|
-
};
|
|
2467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2468
|
-
switch (errorCode) {
|
|
2469
|
-
case "ConflictException":
|
|
2470
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2471
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2472
|
-
case "InternalServerException":
|
|
2473
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2474
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2475
|
-
case "PreconditionFailedException":
|
|
2476
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2477
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2478
|
-
case "ServiceQuotaExceededException":
|
|
2479
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2480
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2481
|
-
case "ThrottlingException":
|
|
2482
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2483
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2484
|
-
case "ValidationException":
|
|
2485
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2486
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2487
|
-
default:
|
|
2488
|
-
const parsedBody = parsedOutput.body;
|
|
2489
|
-
return throwDefaultError({
|
|
2490
|
-
output,
|
|
2491
|
-
parsedBody,
|
|
2492
|
-
errorCode,
|
|
2493
|
-
});
|
|
1953
|
+
export const de_DeleteBotReplicaCommand = async (output, context) => {
|
|
1954
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1955
|
+
return de_CommandError(output, context);
|
|
2494
1956
|
}
|
|
1957
|
+
const contents = map({
|
|
1958
|
+
$metadata: deserializeMetadata(output),
|
|
1959
|
+
});
|
|
1960
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1961
|
+
const doc = take(data, {
|
|
1962
|
+
botId: __expectString,
|
|
1963
|
+
botReplicaStatus: __expectString,
|
|
1964
|
+
replicaRegion: __expectString,
|
|
1965
|
+
});
|
|
1966
|
+
Object.assign(contents, doc);
|
|
1967
|
+
return contents;
|
|
2495
1968
|
};
|
|
2496
1969
|
export const de_DeleteBotVersionCommand = async (output, context) => {
|
|
2497
1970
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2498
|
-
return
|
|
1971
|
+
return de_CommandError(output, context);
|
|
2499
1972
|
}
|
|
2500
1973
|
const contents = map({
|
|
2501
1974
|
$metadata: deserializeMetadata(output),
|
|
@@ -2509,43 +1982,9 @@ export const de_DeleteBotVersionCommand = async (output, context) => {
|
|
|
2509
1982
|
Object.assign(contents, doc);
|
|
2510
1983
|
return contents;
|
|
2511
1984
|
};
|
|
2512
|
-
const de_DeleteBotVersionCommandError = async (output, context) => {
|
|
2513
|
-
const parsedOutput = {
|
|
2514
|
-
...output,
|
|
2515
|
-
body: await parseErrorBody(output.body, context),
|
|
2516
|
-
};
|
|
2517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2518
|
-
switch (errorCode) {
|
|
2519
|
-
case "ConflictException":
|
|
2520
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2521
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2522
|
-
case "InternalServerException":
|
|
2523
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2524
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2525
|
-
case "PreconditionFailedException":
|
|
2526
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2527
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2528
|
-
case "ServiceQuotaExceededException":
|
|
2529
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2530
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "ThrottlingException":
|
|
2532
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2533
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "ValidationException":
|
|
2535
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2536
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2537
|
-
default:
|
|
2538
|
-
const parsedBody = parsedOutput.body;
|
|
2539
|
-
return throwDefaultError({
|
|
2540
|
-
output,
|
|
2541
|
-
parsedBody,
|
|
2542
|
-
errorCode,
|
|
2543
|
-
});
|
|
2544
|
-
}
|
|
2545
|
-
};
|
|
2546
1985
|
export const de_DeleteCustomVocabularyCommand = async (output, context) => {
|
|
2547
1986
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2548
|
-
return
|
|
1987
|
+
return de_CommandError(output, context);
|
|
2549
1988
|
}
|
|
2550
1989
|
const contents = map({
|
|
2551
1990
|
$metadata: deserializeMetadata(output),
|
|
@@ -2560,43 +1999,9 @@ export const de_DeleteCustomVocabularyCommand = async (output, context) => {
|
|
|
2560
1999
|
Object.assign(contents, doc);
|
|
2561
2000
|
return contents;
|
|
2562
2001
|
};
|
|
2563
|
-
const de_DeleteCustomVocabularyCommandError = async (output, context) => {
|
|
2564
|
-
const parsedOutput = {
|
|
2565
|
-
...output,
|
|
2566
|
-
body: await parseErrorBody(output.body, context),
|
|
2567
|
-
};
|
|
2568
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2569
|
-
switch (errorCode) {
|
|
2570
|
-
case "ConflictException":
|
|
2571
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2572
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2573
|
-
case "InternalServerException":
|
|
2574
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2575
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2576
|
-
case "PreconditionFailedException":
|
|
2577
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2578
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2579
|
-
case "ServiceQuotaExceededException":
|
|
2580
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2581
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2582
|
-
case "ThrottlingException":
|
|
2583
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2584
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2585
|
-
case "ValidationException":
|
|
2586
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2587
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2588
|
-
default:
|
|
2589
|
-
const parsedBody = parsedOutput.body;
|
|
2590
|
-
return throwDefaultError({
|
|
2591
|
-
output,
|
|
2592
|
-
parsedBody,
|
|
2593
|
-
errorCode,
|
|
2594
|
-
});
|
|
2595
|
-
}
|
|
2596
|
-
};
|
|
2597
2002
|
export const de_DeleteExportCommand = async (output, context) => {
|
|
2598
2003
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2599
|
-
return
|
|
2004
|
+
return de_CommandError(output, context);
|
|
2600
2005
|
}
|
|
2601
2006
|
const contents = map({
|
|
2602
2007
|
$metadata: deserializeMetadata(output),
|
|
@@ -2609,40 +2014,9 @@ export const de_DeleteExportCommand = async (output, context) => {
|
|
|
2609
2014
|
Object.assign(contents, doc);
|
|
2610
2015
|
return contents;
|
|
2611
2016
|
};
|
|
2612
|
-
const de_DeleteExportCommandError = async (output, context) => {
|
|
2613
|
-
const parsedOutput = {
|
|
2614
|
-
...output,
|
|
2615
|
-
body: await parseErrorBody(output.body, context),
|
|
2616
|
-
};
|
|
2617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2618
|
-
switch (errorCode) {
|
|
2619
|
-
case "InternalServerException":
|
|
2620
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2621
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "PreconditionFailedException":
|
|
2623
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2624
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2625
|
-
case "ServiceQuotaExceededException":
|
|
2626
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2627
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "ThrottlingException":
|
|
2629
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2630
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2631
|
-
case "ValidationException":
|
|
2632
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2633
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2634
|
-
default:
|
|
2635
|
-
const parsedBody = parsedOutput.body;
|
|
2636
|
-
return throwDefaultError({
|
|
2637
|
-
output,
|
|
2638
|
-
parsedBody,
|
|
2639
|
-
errorCode,
|
|
2640
|
-
});
|
|
2641
|
-
}
|
|
2642
|
-
};
|
|
2643
2017
|
export const de_DeleteImportCommand = async (output, context) => {
|
|
2644
2018
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2645
|
-
return
|
|
2019
|
+
return de_CommandError(output, context);
|
|
2646
2020
|
}
|
|
2647
2021
|
const contents = map({
|
|
2648
2022
|
$metadata: deserializeMetadata(output),
|
|
@@ -2655,40 +2029,9 @@ export const de_DeleteImportCommand = async (output, context) => {
|
|
|
2655
2029
|
Object.assign(contents, doc);
|
|
2656
2030
|
return contents;
|
|
2657
2031
|
};
|
|
2658
|
-
const de_DeleteImportCommandError = async (output, context) => {
|
|
2659
|
-
const parsedOutput = {
|
|
2660
|
-
...output,
|
|
2661
|
-
body: await parseErrorBody(output.body, context),
|
|
2662
|
-
};
|
|
2663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2664
|
-
switch (errorCode) {
|
|
2665
|
-
case "InternalServerException":
|
|
2666
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2667
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2668
|
-
case "PreconditionFailedException":
|
|
2669
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2670
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "ServiceQuotaExceededException":
|
|
2672
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2673
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "ThrottlingException":
|
|
2675
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2676
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ValidationException":
|
|
2678
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2679
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2680
|
-
default:
|
|
2681
|
-
const parsedBody = parsedOutput.body;
|
|
2682
|
-
return throwDefaultError({
|
|
2683
|
-
output,
|
|
2684
|
-
parsedBody,
|
|
2685
|
-
errorCode,
|
|
2686
|
-
});
|
|
2687
|
-
}
|
|
2688
|
-
};
|
|
2689
2032
|
export const de_DeleteIntentCommand = async (output, context) => {
|
|
2690
2033
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2691
|
-
return
|
|
2034
|
+
return de_CommandError(output, context);
|
|
2692
2035
|
}
|
|
2693
2036
|
const contents = map({
|
|
2694
2037
|
$metadata: deserializeMetadata(output),
|
|
@@ -2696,43 +2039,9 @@ export const de_DeleteIntentCommand = async (output, context) => {
|
|
|
2696
2039
|
await collectBody(output.body, context);
|
|
2697
2040
|
return contents;
|
|
2698
2041
|
};
|
|
2699
|
-
const de_DeleteIntentCommandError = async (output, context) => {
|
|
2700
|
-
const parsedOutput = {
|
|
2701
|
-
...output,
|
|
2702
|
-
body: await parseErrorBody(output.body, context),
|
|
2703
|
-
};
|
|
2704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2705
|
-
switch (errorCode) {
|
|
2706
|
-
case "ConflictException":
|
|
2707
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2708
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2709
|
-
case "InternalServerException":
|
|
2710
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2711
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "PreconditionFailedException":
|
|
2713
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2714
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "ServiceQuotaExceededException":
|
|
2716
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2717
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "ThrottlingException":
|
|
2719
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2720
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "ValidationException":
|
|
2722
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2723
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2724
|
-
default:
|
|
2725
|
-
const parsedBody = parsedOutput.body;
|
|
2726
|
-
return throwDefaultError({
|
|
2727
|
-
output,
|
|
2728
|
-
parsedBody,
|
|
2729
|
-
errorCode,
|
|
2730
|
-
});
|
|
2731
|
-
}
|
|
2732
|
-
};
|
|
2733
2042
|
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
2734
2043
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2735
|
-
return
|
|
2044
|
+
return de_CommandError(output, context);
|
|
2736
2045
|
}
|
|
2737
2046
|
const contents = map({
|
|
2738
2047
|
$metadata: deserializeMetadata(output),
|
|
@@ -2745,37 +2054,9 @@ export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
2745
2054
|
Object.assign(contents, doc);
|
|
2746
2055
|
return contents;
|
|
2747
2056
|
};
|
|
2748
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
2749
|
-
const parsedOutput = {
|
|
2750
|
-
...output,
|
|
2751
|
-
body: await parseErrorBody(output.body, context),
|
|
2752
|
-
};
|
|
2753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2754
|
-
switch (errorCode) {
|
|
2755
|
-
case "InternalServerException":
|
|
2756
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2757
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "PreconditionFailedException":
|
|
2759
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2760
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2761
|
-
case "ResourceNotFoundException":
|
|
2762
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
2763
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2764
|
-
case "ThrottlingException":
|
|
2765
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2766
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2767
|
-
default:
|
|
2768
|
-
const parsedBody = parsedOutput.body;
|
|
2769
|
-
return throwDefaultError({
|
|
2770
|
-
output,
|
|
2771
|
-
parsedBody,
|
|
2772
|
-
errorCode,
|
|
2773
|
-
});
|
|
2774
|
-
}
|
|
2775
|
-
};
|
|
2776
2057
|
export const de_DeleteResourcePolicyStatementCommand = async (output, context) => {
|
|
2777
2058
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2778
|
-
return
|
|
2059
|
+
return de_CommandError(output, context);
|
|
2779
2060
|
}
|
|
2780
2061
|
const contents = map({
|
|
2781
2062
|
$metadata: deserializeMetadata(output),
|
|
@@ -2788,37 +2069,9 @@ export const de_DeleteResourcePolicyStatementCommand = async (output, context) =
|
|
|
2788
2069
|
Object.assign(contents, doc);
|
|
2789
2070
|
return contents;
|
|
2790
2071
|
};
|
|
2791
|
-
const de_DeleteResourcePolicyStatementCommandError = async (output, context) => {
|
|
2792
|
-
const parsedOutput = {
|
|
2793
|
-
...output,
|
|
2794
|
-
body: await parseErrorBody(output.body, context),
|
|
2795
|
-
};
|
|
2796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
|
-
switch (errorCode) {
|
|
2798
|
-
case "InternalServerException":
|
|
2799
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2800
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "PreconditionFailedException":
|
|
2802
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2803
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "ResourceNotFoundException":
|
|
2805
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
2806
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "ThrottlingException":
|
|
2808
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2809
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2810
|
-
default:
|
|
2811
|
-
const parsedBody = parsedOutput.body;
|
|
2812
|
-
return throwDefaultError({
|
|
2813
|
-
output,
|
|
2814
|
-
parsedBody,
|
|
2815
|
-
errorCode,
|
|
2816
|
-
});
|
|
2817
|
-
}
|
|
2818
|
-
};
|
|
2819
2072
|
export const de_DeleteSlotCommand = async (output, context) => {
|
|
2820
2073
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2821
|
-
return
|
|
2074
|
+
return de_CommandError(output, context);
|
|
2822
2075
|
}
|
|
2823
2076
|
const contents = map({
|
|
2824
2077
|
$metadata: deserializeMetadata(output),
|
|
@@ -2826,43 +2079,9 @@ export const de_DeleteSlotCommand = async (output, context) => {
|
|
|
2826
2079
|
await collectBody(output.body, context);
|
|
2827
2080
|
return contents;
|
|
2828
2081
|
};
|
|
2829
|
-
const de_DeleteSlotCommandError = async (output, context) => {
|
|
2830
|
-
const parsedOutput = {
|
|
2831
|
-
...output,
|
|
2832
|
-
body: await parseErrorBody(output.body, context),
|
|
2833
|
-
};
|
|
2834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2835
|
-
switch (errorCode) {
|
|
2836
|
-
case "ConflictException":
|
|
2837
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2838
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "InternalServerException":
|
|
2840
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2841
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "PreconditionFailedException":
|
|
2843
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2844
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "ServiceQuotaExceededException":
|
|
2846
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2847
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "ThrottlingException":
|
|
2849
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2850
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "ValidationException":
|
|
2852
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2853
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2854
|
-
default:
|
|
2855
|
-
const parsedBody = parsedOutput.body;
|
|
2856
|
-
return throwDefaultError({
|
|
2857
|
-
output,
|
|
2858
|
-
parsedBody,
|
|
2859
|
-
errorCode,
|
|
2860
|
-
});
|
|
2861
|
-
}
|
|
2862
|
-
};
|
|
2863
2082
|
export const de_DeleteSlotTypeCommand = async (output, context) => {
|
|
2864
2083
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2865
|
-
return
|
|
2084
|
+
return de_CommandError(output, context);
|
|
2866
2085
|
}
|
|
2867
2086
|
const contents = map({
|
|
2868
2087
|
$metadata: deserializeMetadata(output),
|
|
@@ -2870,43 +2089,9 @@ export const de_DeleteSlotTypeCommand = async (output, context) => {
|
|
|
2870
2089
|
await collectBody(output.body, context);
|
|
2871
2090
|
return contents;
|
|
2872
2091
|
};
|
|
2873
|
-
const de_DeleteSlotTypeCommandError = async (output, context) => {
|
|
2874
|
-
const parsedOutput = {
|
|
2875
|
-
...output,
|
|
2876
|
-
body: await parseErrorBody(output.body, context),
|
|
2877
|
-
};
|
|
2878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2879
|
-
switch (errorCode) {
|
|
2880
|
-
case "ConflictException":
|
|
2881
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2882
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2883
|
-
case "InternalServerException":
|
|
2884
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2885
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2886
|
-
case "PreconditionFailedException":
|
|
2887
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2888
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2889
|
-
case "ServiceQuotaExceededException":
|
|
2890
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2891
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "ThrottlingException":
|
|
2893
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2894
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2895
|
-
case "ValidationException":
|
|
2896
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2897
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2898
|
-
default:
|
|
2899
|
-
const parsedBody = parsedOutput.body;
|
|
2900
|
-
return throwDefaultError({
|
|
2901
|
-
output,
|
|
2902
|
-
parsedBody,
|
|
2903
|
-
errorCode,
|
|
2904
|
-
});
|
|
2905
|
-
}
|
|
2906
|
-
};
|
|
2907
2092
|
export const de_DeleteTestSetCommand = async (output, context) => {
|
|
2908
2093
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2909
|
-
return
|
|
2094
|
+
return de_CommandError(output, context);
|
|
2910
2095
|
}
|
|
2911
2096
|
const contents = map({
|
|
2912
2097
|
$metadata: deserializeMetadata(output),
|
|
@@ -2914,43 +2099,9 @@ export const de_DeleteTestSetCommand = async (output, context) => {
|
|
|
2914
2099
|
await collectBody(output.body, context);
|
|
2915
2100
|
return contents;
|
|
2916
2101
|
};
|
|
2917
|
-
const de_DeleteTestSetCommandError = async (output, context) => {
|
|
2918
|
-
const parsedOutput = {
|
|
2919
|
-
...output,
|
|
2920
|
-
body: await parseErrorBody(output.body, context),
|
|
2921
|
-
};
|
|
2922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2923
|
-
switch (errorCode) {
|
|
2924
|
-
case "ConflictException":
|
|
2925
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2926
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2927
|
-
case "InternalServerException":
|
|
2928
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2929
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2930
|
-
case "PreconditionFailedException":
|
|
2931
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2932
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2933
|
-
case "ServiceQuotaExceededException":
|
|
2934
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2935
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2936
|
-
case "ThrottlingException":
|
|
2937
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2938
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2939
|
-
case "ValidationException":
|
|
2940
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2941
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2942
|
-
default:
|
|
2943
|
-
const parsedBody = parsedOutput.body;
|
|
2944
|
-
return throwDefaultError({
|
|
2945
|
-
output,
|
|
2946
|
-
parsedBody,
|
|
2947
|
-
errorCode,
|
|
2948
|
-
});
|
|
2949
|
-
}
|
|
2950
|
-
};
|
|
2951
2102
|
export const de_DeleteUtterancesCommand = async (output, context) => {
|
|
2952
2103
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2953
|
-
return
|
|
2104
|
+
return de_CommandError(output, context);
|
|
2954
2105
|
}
|
|
2955
2106
|
const contents = map({
|
|
2956
2107
|
$metadata: deserializeMetadata(output),
|
|
@@ -2958,34 +2109,9 @@ export const de_DeleteUtterancesCommand = async (output, context) => {
|
|
|
2958
2109
|
await collectBody(output.body, context);
|
|
2959
2110
|
return contents;
|
|
2960
2111
|
};
|
|
2961
|
-
const de_DeleteUtterancesCommandError = async (output, context) => {
|
|
2962
|
-
const parsedOutput = {
|
|
2963
|
-
...output,
|
|
2964
|
-
body: await parseErrorBody(output.body, context),
|
|
2965
|
-
};
|
|
2966
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2967
|
-
switch (errorCode) {
|
|
2968
|
-
case "InternalServerException":
|
|
2969
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2970
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2971
|
-
case "ThrottlingException":
|
|
2972
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2973
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2974
|
-
case "ValidationException":
|
|
2975
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2976
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2977
|
-
default:
|
|
2978
|
-
const parsedBody = parsedOutput.body;
|
|
2979
|
-
return throwDefaultError({
|
|
2980
|
-
output,
|
|
2981
|
-
parsedBody,
|
|
2982
|
-
errorCode,
|
|
2983
|
-
});
|
|
2984
|
-
}
|
|
2985
|
-
};
|
|
2986
2112
|
export const de_DescribeBotCommand = async (output, context) => {
|
|
2987
2113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2988
|
-
return
|
|
2114
|
+
return de_CommandError(output, context);
|
|
2989
2115
|
}
|
|
2990
2116
|
const contents = map({
|
|
2991
2117
|
$metadata: deserializeMetadata(output),
|
|
@@ -3008,40 +2134,9 @@ export const de_DescribeBotCommand = async (output, context) => {
|
|
|
3008
2134
|
Object.assign(contents, doc);
|
|
3009
2135
|
return contents;
|
|
3010
2136
|
};
|
|
3011
|
-
const de_DescribeBotCommandError = async (output, context) => {
|
|
3012
|
-
const parsedOutput = {
|
|
3013
|
-
...output,
|
|
3014
|
-
body: await parseErrorBody(output.body, context),
|
|
3015
|
-
};
|
|
3016
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3017
|
-
switch (errorCode) {
|
|
3018
|
-
case "InternalServerException":
|
|
3019
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3020
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3021
|
-
case "ResourceNotFoundException":
|
|
3022
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3023
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3024
|
-
case "ServiceQuotaExceededException":
|
|
3025
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3026
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3027
|
-
case "ThrottlingException":
|
|
3028
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3029
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3030
|
-
case "ValidationException":
|
|
3031
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3032
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3033
|
-
default:
|
|
3034
|
-
const parsedBody = parsedOutput.body;
|
|
3035
|
-
return throwDefaultError({
|
|
3036
|
-
output,
|
|
3037
|
-
parsedBody,
|
|
3038
|
-
errorCode,
|
|
3039
|
-
});
|
|
3040
|
-
}
|
|
3041
|
-
};
|
|
3042
2137
|
export const de_DescribeBotAliasCommand = async (output, context) => {
|
|
3043
2138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3044
|
-
return
|
|
2139
|
+
return de_CommandError(output, context);
|
|
3045
2140
|
}
|
|
3046
2141
|
const contents = map({
|
|
3047
2142
|
$metadata: deserializeMetadata(output),
|
|
@@ -3065,40 +2160,9 @@ export const de_DescribeBotAliasCommand = async (output, context) => {
|
|
|
3065
2160
|
Object.assign(contents, doc);
|
|
3066
2161
|
return contents;
|
|
3067
2162
|
};
|
|
3068
|
-
const de_DescribeBotAliasCommandError = async (output, context) => {
|
|
3069
|
-
const parsedOutput = {
|
|
3070
|
-
...output,
|
|
3071
|
-
body: await parseErrorBody(output.body, context),
|
|
3072
|
-
};
|
|
3073
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3074
|
-
switch (errorCode) {
|
|
3075
|
-
case "InternalServerException":
|
|
3076
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3077
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "ResourceNotFoundException":
|
|
3079
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "ServiceQuotaExceededException":
|
|
3082
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3083
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "ThrottlingException":
|
|
3085
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3086
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3087
|
-
case "ValidationException":
|
|
3088
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3089
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3090
|
-
default:
|
|
3091
|
-
const parsedBody = parsedOutput.body;
|
|
3092
|
-
return throwDefaultError({
|
|
3093
|
-
output,
|
|
3094
|
-
parsedBody,
|
|
3095
|
-
errorCode,
|
|
3096
|
-
});
|
|
3097
|
-
}
|
|
3098
|
-
};
|
|
3099
2163
|
export const de_DescribeBotLocaleCommand = async (output, context) => {
|
|
3100
2164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3101
|
-
return
|
|
2165
|
+
return de_CommandError(output, context);
|
|
3102
2166
|
}
|
|
3103
2167
|
const contents = map({
|
|
3104
2168
|
$metadata: deserializeMetadata(output),
|
|
@@ -3126,40 +2190,9 @@ export const de_DescribeBotLocaleCommand = async (output, context) => {
|
|
|
3126
2190
|
Object.assign(contents, doc);
|
|
3127
2191
|
return contents;
|
|
3128
2192
|
};
|
|
3129
|
-
const de_DescribeBotLocaleCommandError = async (output, context) => {
|
|
3130
|
-
const parsedOutput = {
|
|
3131
|
-
...output,
|
|
3132
|
-
body: await parseErrorBody(output.body, context),
|
|
3133
|
-
};
|
|
3134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3135
|
-
switch (errorCode) {
|
|
3136
|
-
case "InternalServerException":
|
|
3137
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3138
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3139
|
-
case "ResourceNotFoundException":
|
|
3140
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3141
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3142
|
-
case "ServiceQuotaExceededException":
|
|
3143
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3144
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3145
|
-
case "ThrottlingException":
|
|
3146
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3147
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3148
|
-
case "ValidationException":
|
|
3149
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3150
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3151
|
-
default:
|
|
3152
|
-
const parsedBody = parsedOutput.body;
|
|
3153
|
-
return throwDefaultError({
|
|
3154
|
-
output,
|
|
3155
|
-
parsedBody,
|
|
3156
|
-
errorCode,
|
|
3157
|
-
});
|
|
3158
|
-
}
|
|
3159
|
-
};
|
|
3160
2193
|
export const de_DescribeBotRecommendationCommand = async (output, context) => {
|
|
3161
2194
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3162
|
-
return
|
|
2195
|
+
return de_CommandError(output, context);
|
|
3163
2196
|
}
|
|
3164
2197
|
const contents = map({
|
|
3165
2198
|
$metadata: deserializeMetadata(output),
|
|
@@ -3181,37 +2214,28 @@ export const de_DescribeBotRecommendationCommand = async (output, context) => {
|
|
|
3181
2214
|
Object.assign(contents, doc);
|
|
3182
2215
|
return contents;
|
|
3183
2216
|
};
|
|
3184
|
-
const
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
body: await parseErrorBody(output.body, context),
|
|
3188
|
-
};
|
|
3189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3190
|
-
switch (errorCode) {
|
|
3191
|
-
case "InternalServerException":
|
|
3192
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3193
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3194
|
-
case "ResourceNotFoundException":
|
|
3195
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3196
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3197
|
-
case "ThrottlingException":
|
|
3198
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3199
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3200
|
-
case "ValidationException":
|
|
3201
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3202
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3203
|
-
default:
|
|
3204
|
-
const parsedBody = parsedOutput.body;
|
|
3205
|
-
return throwDefaultError({
|
|
3206
|
-
output,
|
|
3207
|
-
parsedBody,
|
|
3208
|
-
errorCode,
|
|
3209
|
-
});
|
|
2217
|
+
export const de_DescribeBotReplicaCommand = async (output, context) => {
|
|
2218
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2219
|
+
return de_CommandError(output, context);
|
|
3210
2220
|
}
|
|
2221
|
+
const contents = map({
|
|
2222
|
+
$metadata: deserializeMetadata(output),
|
|
2223
|
+
});
|
|
2224
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2225
|
+
const doc = take(data, {
|
|
2226
|
+
botId: __expectString,
|
|
2227
|
+
botReplicaStatus: __expectString,
|
|
2228
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2229
|
+
failureReasons: _json,
|
|
2230
|
+
replicaRegion: __expectString,
|
|
2231
|
+
sourceRegion: __expectString,
|
|
2232
|
+
});
|
|
2233
|
+
Object.assign(contents, doc);
|
|
2234
|
+
return contents;
|
|
3211
2235
|
};
|
|
3212
2236
|
export const de_DescribeBotResourceGenerationCommand = async (output, context) => {
|
|
3213
2237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3214
|
-
return
|
|
2238
|
+
return de_CommandError(output, context);
|
|
3215
2239
|
}
|
|
3216
2240
|
const contents = map({
|
|
3217
2241
|
$metadata: deserializeMetadata(output),
|
|
@@ -3233,37 +2257,9 @@ export const de_DescribeBotResourceGenerationCommand = async (output, context) =
|
|
|
3233
2257
|
Object.assign(contents, doc);
|
|
3234
2258
|
return contents;
|
|
3235
2259
|
};
|
|
3236
|
-
const de_DescribeBotResourceGenerationCommandError = async (output, context) => {
|
|
3237
|
-
const parsedOutput = {
|
|
3238
|
-
...output,
|
|
3239
|
-
body: await parseErrorBody(output.body, context),
|
|
3240
|
-
};
|
|
3241
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3242
|
-
switch (errorCode) {
|
|
3243
|
-
case "InternalServerException":
|
|
3244
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3245
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3246
|
-
case "ResourceNotFoundException":
|
|
3247
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3248
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3249
|
-
case "ThrottlingException":
|
|
3250
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3251
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3252
|
-
case "ValidationException":
|
|
3253
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3254
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3255
|
-
default:
|
|
3256
|
-
const parsedBody = parsedOutput.body;
|
|
3257
|
-
return throwDefaultError({
|
|
3258
|
-
output,
|
|
3259
|
-
parsedBody,
|
|
3260
|
-
errorCode,
|
|
3261
|
-
});
|
|
3262
|
-
}
|
|
3263
|
-
};
|
|
3264
2260
|
export const de_DescribeBotVersionCommand = async (output, context) => {
|
|
3265
2261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3266
|
-
return
|
|
2262
|
+
return de_CommandError(output, context);
|
|
3267
2263
|
}
|
|
3268
2264
|
const contents = map({
|
|
3269
2265
|
$metadata: deserializeMetadata(output),
|
|
@@ -3287,40 +2283,9 @@ export const de_DescribeBotVersionCommand = async (output, context) => {
|
|
|
3287
2283
|
Object.assign(contents, doc);
|
|
3288
2284
|
return contents;
|
|
3289
2285
|
};
|
|
3290
|
-
const de_DescribeBotVersionCommandError = async (output, context) => {
|
|
3291
|
-
const parsedOutput = {
|
|
3292
|
-
...output,
|
|
3293
|
-
body: await parseErrorBody(output.body, context),
|
|
3294
|
-
};
|
|
3295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3296
|
-
switch (errorCode) {
|
|
3297
|
-
case "InternalServerException":
|
|
3298
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3299
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3300
|
-
case "ResourceNotFoundException":
|
|
3301
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3302
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3303
|
-
case "ServiceQuotaExceededException":
|
|
3304
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3305
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "ThrottlingException":
|
|
3307
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3308
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "ValidationException":
|
|
3310
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3311
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3312
|
-
default:
|
|
3313
|
-
const parsedBody = parsedOutput.body;
|
|
3314
|
-
return throwDefaultError({
|
|
3315
|
-
output,
|
|
3316
|
-
parsedBody,
|
|
3317
|
-
errorCode,
|
|
3318
|
-
});
|
|
3319
|
-
}
|
|
3320
|
-
};
|
|
3321
2286
|
export const de_DescribeCustomVocabularyMetadataCommand = async (output, context) => {
|
|
3322
2287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3323
|
-
return
|
|
2288
|
+
return de_CommandError(output, context);
|
|
3324
2289
|
}
|
|
3325
2290
|
const contents = map({
|
|
3326
2291
|
$metadata: deserializeMetadata(output),
|
|
@@ -3337,40 +2302,9 @@ export const de_DescribeCustomVocabularyMetadataCommand = async (output, context
|
|
|
3337
2302
|
Object.assign(contents, doc);
|
|
3338
2303
|
return contents;
|
|
3339
2304
|
};
|
|
3340
|
-
const de_DescribeCustomVocabularyMetadataCommandError = async (output, context) => {
|
|
3341
|
-
const parsedOutput = {
|
|
3342
|
-
...output,
|
|
3343
|
-
body: await parseErrorBody(output.body, context),
|
|
3344
|
-
};
|
|
3345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
|
-
switch (errorCode) {
|
|
3347
|
-
case "InternalServerException":
|
|
3348
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3349
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3350
|
-
case "ResourceNotFoundException":
|
|
3351
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3352
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3353
|
-
case "ServiceQuotaExceededException":
|
|
3354
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3355
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3356
|
-
case "ThrottlingException":
|
|
3357
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3358
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3359
|
-
case "ValidationException":
|
|
3360
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3361
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3362
|
-
default:
|
|
3363
|
-
const parsedBody = parsedOutput.body;
|
|
3364
|
-
return throwDefaultError({
|
|
3365
|
-
output,
|
|
3366
|
-
parsedBody,
|
|
3367
|
-
errorCode,
|
|
3368
|
-
});
|
|
3369
|
-
}
|
|
3370
|
-
};
|
|
3371
2305
|
export const de_DescribeExportCommand = async (output, context) => {
|
|
3372
2306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3373
|
-
return
|
|
2307
|
+
return de_CommandError(output, context);
|
|
3374
2308
|
}
|
|
3375
2309
|
const contents = map({
|
|
3376
2310
|
$metadata: deserializeMetadata(output),
|
|
@@ -3389,37 +2323,9 @@ export const de_DescribeExportCommand = async (output, context) => {
|
|
|
3389
2323
|
Object.assign(contents, doc);
|
|
3390
2324
|
return contents;
|
|
3391
2325
|
};
|
|
3392
|
-
const de_DescribeExportCommandError = async (output, context) => {
|
|
3393
|
-
const parsedOutput = {
|
|
3394
|
-
...output,
|
|
3395
|
-
body: await parseErrorBody(output.body, context),
|
|
3396
|
-
};
|
|
3397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3398
|
-
switch (errorCode) {
|
|
3399
|
-
case "InternalServerException":
|
|
3400
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3401
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3402
|
-
case "ResourceNotFoundException":
|
|
3403
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3404
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3405
|
-
case "ThrottlingException":
|
|
3406
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3407
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3408
|
-
case "ValidationException":
|
|
3409
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3410
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3411
|
-
default:
|
|
3412
|
-
const parsedBody = parsedOutput.body;
|
|
3413
|
-
return throwDefaultError({
|
|
3414
|
-
output,
|
|
3415
|
-
parsedBody,
|
|
3416
|
-
errorCode,
|
|
3417
|
-
});
|
|
3418
|
-
}
|
|
3419
|
-
};
|
|
3420
2326
|
export const de_DescribeImportCommand = async (output, context) => {
|
|
3421
2327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3422
|
-
return
|
|
2328
|
+
return de_CommandError(output, context);
|
|
3423
2329
|
}
|
|
3424
2330
|
const contents = map({
|
|
3425
2331
|
$metadata: deserializeMetadata(output),
|
|
@@ -3439,37 +2345,9 @@ export const de_DescribeImportCommand = async (output, context) => {
|
|
|
3439
2345
|
Object.assign(contents, doc);
|
|
3440
2346
|
return contents;
|
|
3441
2347
|
};
|
|
3442
|
-
const de_DescribeImportCommandError = async (output, context) => {
|
|
3443
|
-
const parsedOutput = {
|
|
3444
|
-
...output,
|
|
3445
|
-
body: await parseErrorBody(output.body, context),
|
|
3446
|
-
};
|
|
3447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3448
|
-
switch (errorCode) {
|
|
3449
|
-
case "InternalServerException":
|
|
3450
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3451
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "ResourceNotFoundException":
|
|
3453
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3454
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "ThrottlingException":
|
|
3456
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3457
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3458
|
-
case "ValidationException":
|
|
3459
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3460
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3461
|
-
default:
|
|
3462
|
-
const parsedBody = parsedOutput.body;
|
|
3463
|
-
return throwDefaultError({
|
|
3464
|
-
output,
|
|
3465
|
-
parsedBody,
|
|
3466
|
-
errorCode,
|
|
3467
|
-
});
|
|
3468
|
-
}
|
|
3469
|
-
};
|
|
3470
2348
|
export const de_DescribeIntentCommand = async (output, context) => {
|
|
3471
2349
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3472
|
-
return
|
|
2350
|
+
return de_CommandError(output, context);
|
|
3473
2351
|
}
|
|
3474
2352
|
const contents = map({
|
|
3475
2353
|
$metadata: deserializeMetadata(output),
|
|
@@ -3499,40 +2377,9 @@ export const de_DescribeIntentCommand = async (output, context) => {
|
|
|
3499
2377
|
Object.assign(contents, doc);
|
|
3500
2378
|
return contents;
|
|
3501
2379
|
};
|
|
3502
|
-
const de_DescribeIntentCommandError = async (output, context) => {
|
|
3503
|
-
const parsedOutput = {
|
|
3504
|
-
...output,
|
|
3505
|
-
body: await parseErrorBody(output.body, context),
|
|
3506
|
-
};
|
|
3507
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3508
|
-
switch (errorCode) {
|
|
3509
|
-
case "InternalServerException":
|
|
3510
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3511
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3512
|
-
case "ResourceNotFoundException":
|
|
3513
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3514
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3515
|
-
case "ServiceQuotaExceededException":
|
|
3516
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3517
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3518
|
-
case "ThrottlingException":
|
|
3519
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3520
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3521
|
-
case "ValidationException":
|
|
3522
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3523
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3524
|
-
default:
|
|
3525
|
-
const parsedBody = parsedOutput.body;
|
|
3526
|
-
return throwDefaultError({
|
|
3527
|
-
output,
|
|
3528
|
-
parsedBody,
|
|
3529
|
-
errorCode,
|
|
3530
|
-
});
|
|
3531
|
-
}
|
|
3532
|
-
};
|
|
3533
2380
|
export const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
3534
2381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3535
|
-
return
|
|
2382
|
+
return de_CommandError(output, context);
|
|
3536
2383
|
}
|
|
3537
2384
|
const contents = map({
|
|
3538
2385
|
$metadata: deserializeMetadata(output),
|
|
@@ -3541,97 +2388,41 @@ export const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
|
3541
2388
|
const doc = take(data, {
|
|
3542
2389
|
policy: __expectString,
|
|
3543
2390
|
resourceArn: __expectString,
|
|
3544
|
-
revisionId: __expectString,
|
|
3545
|
-
});
|
|
3546
|
-
Object.assign(contents, doc);
|
|
3547
|
-
return contents;
|
|
3548
|
-
};
|
|
3549
|
-
const
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
body: await parseErrorBody(output.body, context),
|
|
3553
|
-
};
|
|
3554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3555
|
-
switch (errorCode) {
|
|
3556
|
-
case "InternalServerException":
|
|
3557
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3558
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3559
|
-
case "ResourceNotFoundException":
|
|
3560
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3561
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3562
|
-
case "ThrottlingException":
|
|
3563
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3564
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3565
|
-
default:
|
|
3566
|
-
const parsedBody = parsedOutput.body;
|
|
3567
|
-
return throwDefaultError({
|
|
3568
|
-
output,
|
|
3569
|
-
parsedBody,
|
|
3570
|
-
errorCode,
|
|
3571
|
-
});
|
|
3572
|
-
}
|
|
3573
|
-
};
|
|
3574
|
-
export const de_DescribeSlotCommand = async (output, context) => {
|
|
3575
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3576
|
-
return de_DescribeSlotCommandError(output, context);
|
|
3577
|
-
}
|
|
3578
|
-
const contents = map({
|
|
3579
|
-
$metadata: deserializeMetadata(output),
|
|
3580
|
-
});
|
|
3581
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3582
|
-
const doc = take(data, {
|
|
3583
|
-
botId: __expectString,
|
|
3584
|
-
botVersion: __expectString,
|
|
3585
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3586
|
-
description: __expectString,
|
|
3587
|
-
intentId: __expectString,
|
|
3588
|
-
lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3589
|
-
localeId: __expectString,
|
|
3590
|
-
multipleValuesSetting: _json,
|
|
3591
|
-
obfuscationSetting: _json,
|
|
3592
|
-
slotId: __expectString,
|
|
3593
|
-
slotName: __expectString,
|
|
3594
|
-
slotTypeId: __expectString,
|
|
3595
|
-
subSlotSetting: (_) => de_SubSlotSetting(_, context),
|
|
3596
|
-
valueElicitationSetting: (_) => de_SlotValueElicitationSetting(_, context),
|
|
3597
|
-
});
|
|
3598
|
-
Object.assign(contents, doc);
|
|
3599
|
-
return contents;
|
|
3600
|
-
};
|
|
3601
|
-
const de_DescribeSlotCommandError = async (output, context) => {
|
|
3602
|
-
const parsedOutput = {
|
|
3603
|
-
...output,
|
|
3604
|
-
body: await parseErrorBody(output.body, context),
|
|
3605
|
-
};
|
|
3606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3607
|
-
switch (errorCode) {
|
|
3608
|
-
case "InternalServerException":
|
|
3609
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3610
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3611
|
-
case "ResourceNotFoundException":
|
|
3612
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3613
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3614
|
-
case "ServiceQuotaExceededException":
|
|
3615
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3616
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3617
|
-
case "ThrottlingException":
|
|
3618
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3619
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3620
|
-
case "ValidationException":
|
|
3621
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3622
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3623
|
-
default:
|
|
3624
|
-
const parsedBody = parsedOutput.body;
|
|
3625
|
-
return throwDefaultError({
|
|
3626
|
-
output,
|
|
3627
|
-
parsedBody,
|
|
3628
|
-
errorCode,
|
|
3629
|
-
});
|
|
2391
|
+
revisionId: __expectString,
|
|
2392
|
+
});
|
|
2393
|
+
Object.assign(contents, doc);
|
|
2394
|
+
return contents;
|
|
2395
|
+
};
|
|
2396
|
+
export const de_DescribeSlotCommand = async (output, context) => {
|
|
2397
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2398
|
+
return de_CommandError(output, context);
|
|
3630
2399
|
}
|
|
2400
|
+
const contents = map({
|
|
2401
|
+
$metadata: deserializeMetadata(output),
|
|
2402
|
+
});
|
|
2403
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2404
|
+
const doc = take(data, {
|
|
2405
|
+
botId: __expectString,
|
|
2406
|
+
botVersion: __expectString,
|
|
2407
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2408
|
+
description: __expectString,
|
|
2409
|
+
intentId: __expectString,
|
|
2410
|
+
lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2411
|
+
localeId: __expectString,
|
|
2412
|
+
multipleValuesSetting: _json,
|
|
2413
|
+
obfuscationSetting: _json,
|
|
2414
|
+
slotId: __expectString,
|
|
2415
|
+
slotName: __expectString,
|
|
2416
|
+
slotTypeId: __expectString,
|
|
2417
|
+
subSlotSetting: (_) => de_SubSlotSetting(_, context),
|
|
2418
|
+
valueElicitationSetting: (_) => de_SlotValueElicitationSetting(_, context),
|
|
2419
|
+
});
|
|
2420
|
+
Object.assign(contents, doc);
|
|
2421
|
+
return contents;
|
|
3631
2422
|
};
|
|
3632
2423
|
export const de_DescribeSlotTypeCommand = async (output, context) => {
|
|
3633
2424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3634
|
-
return
|
|
2425
|
+
return de_CommandError(output, context);
|
|
3635
2426
|
}
|
|
3636
2427
|
const contents = map({
|
|
3637
2428
|
$metadata: deserializeMetadata(output),
|
|
@@ -3655,40 +2446,9 @@ export const de_DescribeSlotTypeCommand = async (output, context) => {
|
|
|
3655
2446
|
Object.assign(contents, doc);
|
|
3656
2447
|
return contents;
|
|
3657
2448
|
};
|
|
3658
|
-
const de_DescribeSlotTypeCommandError = async (output, context) => {
|
|
3659
|
-
const parsedOutput = {
|
|
3660
|
-
...output,
|
|
3661
|
-
body: await parseErrorBody(output.body, context),
|
|
3662
|
-
};
|
|
3663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3664
|
-
switch (errorCode) {
|
|
3665
|
-
case "InternalServerException":
|
|
3666
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3667
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3668
|
-
case "ResourceNotFoundException":
|
|
3669
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3670
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3671
|
-
case "ServiceQuotaExceededException":
|
|
3672
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3673
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3674
|
-
case "ThrottlingException":
|
|
3675
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3676
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3677
|
-
case "ValidationException":
|
|
3678
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3679
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3680
|
-
default:
|
|
3681
|
-
const parsedBody = parsedOutput.body;
|
|
3682
|
-
return throwDefaultError({
|
|
3683
|
-
output,
|
|
3684
|
-
parsedBody,
|
|
3685
|
-
errorCode,
|
|
3686
|
-
});
|
|
3687
|
-
}
|
|
3688
|
-
};
|
|
3689
2449
|
export const de_DescribeTestExecutionCommand = async (output, context) => {
|
|
3690
2450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3691
|
-
return
|
|
2451
|
+
return de_CommandError(output, context);
|
|
3692
2452
|
}
|
|
3693
2453
|
const contents = map({
|
|
3694
2454
|
$metadata: deserializeMetadata(output),
|
|
@@ -3709,40 +2469,9 @@ export const de_DescribeTestExecutionCommand = async (output, context) => {
|
|
|
3709
2469
|
Object.assign(contents, doc);
|
|
3710
2470
|
return contents;
|
|
3711
2471
|
};
|
|
3712
|
-
const de_DescribeTestExecutionCommandError = async (output, context) => {
|
|
3713
|
-
const parsedOutput = {
|
|
3714
|
-
...output,
|
|
3715
|
-
body: await parseErrorBody(output.body, context),
|
|
3716
|
-
};
|
|
3717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3718
|
-
switch (errorCode) {
|
|
3719
|
-
case "InternalServerException":
|
|
3720
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3721
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3722
|
-
case "ResourceNotFoundException":
|
|
3723
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3724
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3725
|
-
case "ServiceQuotaExceededException":
|
|
3726
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3727
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3728
|
-
case "ThrottlingException":
|
|
3729
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3730
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3731
|
-
case "ValidationException":
|
|
3732
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3733
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3734
|
-
default:
|
|
3735
|
-
const parsedBody = parsedOutput.body;
|
|
3736
|
-
return throwDefaultError({
|
|
3737
|
-
output,
|
|
3738
|
-
parsedBody,
|
|
3739
|
-
errorCode,
|
|
3740
|
-
});
|
|
3741
|
-
}
|
|
3742
|
-
};
|
|
3743
2472
|
export const de_DescribeTestSetCommand = async (output, context) => {
|
|
3744
2473
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3745
|
-
return
|
|
2474
|
+
return de_CommandError(output, context);
|
|
3746
2475
|
}
|
|
3747
2476
|
const contents = map({
|
|
3748
2477
|
$metadata: deserializeMetadata(output),
|
|
@@ -3763,40 +2492,9 @@ export const de_DescribeTestSetCommand = async (output, context) => {
|
|
|
3763
2492
|
Object.assign(contents, doc);
|
|
3764
2493
|
return contents;
|
|
3765
2494
|
};
|
|
3766
|
-
const de_DescribeTestSetCommandError = async (output, context) => {
|
|
3767
|
-
const parsedOutput = {
|
|
3768
|
-
...output,
|
|
3769
|
-
body: await parseErrorBody(output.body, context),
|
|
3770
|
-
};
|
|
3771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3772
|
-
switch (errorCode) {
|
|
3773
|
-
case "InternalServerException":
|
|
3774
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3776
|
-
case "ResourceNotFoundException":
|
|
3777
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3778
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3779
|
-
case "ServiceQuotaExceededException":
|
|
3780
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3781
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3782
|
-
case "ThrottlingException":
|
|
3783
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3784
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3785
|
-
case "ValidationException":
|
|
3786
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3787
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3788
|
-
default:
|
|
3789
|
-
const parsedBody = parsedOutput.body;
|
|
3790
|
-
return throwDefaultError({
|
|
3791
|
-
output,
|
|
3792
|
-
parsedBody,
|
|
3793
|
-
errorCode,
|
|
3794
|
-
});
|
|
3795
|
-
}
|
|
3796
|
-
};
|
|
3797
2495
|
export const de_DescribeTestSetDiscrepancyReportCommand = async (output, context) => {
|
|
3798
2496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3799
|
-
return
|
|
2497
|
+
return de_CommandError(output, context);
|
|
3800
2498
|
}
|
|
3801
2499
|
const contents = map({
|
|
3802
2500
|
$metadata: deserializeMetadata(output),
|
|
@@ -3816,40 +2514,9 @@ export const de_DescribeTestSetDiscrepancyReportCommand = async (output, context
|
|
|
3816
2514
|
Object.assign(contents, doc);
|
|
3817
2515
|
return contents;
|
|
3818
2516
|
};
|
|
3819
|
-
const de_DescribeTestSetDiscrepancyReportCommandError = async (output, context) => {
|
|
3820
|
-
const parsedOutput = {
|
|
3821
|
-
...output,
|
|
3822
|
-
body: await parseErrorBody(output.body, context),
|
|
3823
|
-
};
|
|
3824
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3825
|
-
switch (errorCode) {
|
|
3826
|
-
case "InternalServerException":
|
|
3827
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3828
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3829
|
-
case "ResourceNotFoundException":
|
|
3830
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3831
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3832
|
-
case "ServiceQuotaExceededException":
|
|
3833
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3834
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3835
|
-
case "ThrottlingException":
|
|
3836
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3837
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3838
|
-
case "ValidationException":
|
|
3839
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3840
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3841
|
-
default:
|
|
3842
|
-
const parsedBody = parsedOutput.body;
|
|
3843
|
-
return throwDefaultError({
|
|
3844
|
-
output,
|
|
3845
|
-
parsedBody,
|
|
3846
|
-
errorCode,
|
|
3847
|
-
});
|
|
3848
|
-
}
|
|
3849
|
-
};
|
|
3850
2517
|
export const de_DescribeTestSetGenerationCommand = async (output, context) => {
|
|
3851
2518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3852
|
-
return
|
|
2519
|
+
return de_CommandError(output, context);
|
|
3853
2520
|
}
|
|
3854
2521
|
const contents = map({
|
|
3855
2522
|
$metadata: deserializeMetadata(output),
|
|
@@ -3871,40 +2538,9 @@ export const de_DescribeTestSetGenerationCommand = async (output, context) => {
|
|
|
3871
2538
|
Object.assign(contents, doc);
|
|
3872
2539
|
return contents;
|
|
3873
2540
|
};
|
|
3874
|
-
const de_DescribeTestSetGenerationCommandError = async (output, context) => {
|
|
3875
|
-
const parsedOutput = {
|
|
3876
|
-
...output,
|
|
3877
|
-
body: await parseErrorBody(output.body, context),
|
|
3878
|
-
};
|
|
3879
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3880
|
-
switch (errorCode) {
|
|
3881
|
-
case "InternalServerException":
|
|
3882
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3883
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3884
|
-
case "ResourceNotFoundException":
|
|
3885
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3886
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3887
|
-
case "ServiceQuotaExceededException":
|
|
3888
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3889
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3890
|
-
case "ThrottlingException":
|
|
3891
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3892
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3893
|
-
case "ValidationException":
|
|
3894
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3895
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3896
|
-
default:
|
|
3897
|
-
const parsedBody = parsedOutput.body;
|
|
3898
|
-
return throwDefaultError({
|
|
3899
|
-
output,
|
|
3900
|
-
parsedBody,
|
|
3901
|
-
errorCode,
|
|
3902
|
-
});
|
|
3903
|
-
}
|
|
3904
|
-
};
|
|
3905
2541
|
export const de_GenerateBotElementCommand = async (output, context) => {
|
|
3906
2542
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3907
|
-
return
|
|
2543
|
+
return de_CommandError(output, context);
|
|
3908
2544
|
}
|
|
3909
2545
|
const contents = map({
|
|
3910
2546
|
$metadata: deserializeMetadata(output),
|
|
@@ -3920,92 +2556,24 @@ export const de_GenerateBotElementCommand = async (output, context) => {
|
|
|
3920
2556
|
Object.assign(contents, doc);
|
|
3921
2557
|
return contents;
|
|
3922
2558
|
};
|
|
3923
|
-
const de_GenerateBotElementCommandError = async (output, context) => {
|
|
3924
|
-
const parsedOutput = {
|
|
3925
|
-
...output,
|
|
3926
|
-
body: await parseErrorBody(output.body, context),
|
|
3927
|
-
};
|
|
3928
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3929
|
-
switch (errorCode) {
|
|
3930
|
-
case "ConflictException":
|
|
3931
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
3932
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3933
|
-
case "InternalServerException":
|
|
3934
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3935
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3936
|
-
case "PreconditionFailedException":
|
|
3937
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
3938
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
3939
|
-
case "ResourceNotFoundException":
|
|
3940
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3941
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3942
|
-
case "ServiceQuotaExceededException":
|
|
3943
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3944
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3945
|
-
case "ThrottlingException":
|
|
3946
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3947
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3948
|
-
case "ValidationException":
|
|
3949
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3950
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3951
|
-
default:
|
|
3952
|
-
const parsedBody = parsedOutput.body;
|
|
3953
|
-
return throwDefaultError({
|
|
3954
|
-
output,
|
|
3955
|
-
parsedBody,
|
|
3956
|
-
errorCode,
|
|
3957
|
-
});
|
|
3958
|
-
}
|
|
3959
|
-
};
|
|
3960
2559
|
export const de_GetTestExecutionArtifactsUrlCommand = async (output, context) => {
|
|
3961
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3962
|
-
return
|
|
3963
|
-
}
|
|
3964
|
-
const contents = map({
|
|
3965
|
-
$metadata: deserializeMetadata(output),
|
|
3966
|
-
});
|
|
3967
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3968
|
-
const doc = take(data, {
|
|
3969
|
-
downloadArtifactsUrl: __expectString,
|
|
3970
|
-
testExecutionId: __expectString,
|
|
3971
|
-
});
|
|
3972
|
-
Object.assign(contents, doc);
|
|
3973
|
-
return contents;
|
|
3974
|
-
};
|
|
3975
|
-
const de_GetTestExecutionArtifactsUrlCommandError = async (output, context) => {
|
|
3976
|
-
const parsedOutput = {
|
|
3977
|
-
...output,
|
|
3978
|
-
body: await parseErrorBody(output.body, context),
|
|
3979
|
-
};
|
|
3980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3981
|
-
switch (errorCode) {
|
|
3982
|
-
case "InternalServerException":
|
|
3983
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3984
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3985
|
-
case "ResourceNotFoundException":
|
|
3986
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3987
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3988
|
-
case "ServiceQuotaExceededException":
|
|
3989
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3990
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3991
|
-
case "ThrottlingException":
|
|
3992
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3993
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3994
|
-
case "ValidationException":
|
|
3995
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3996
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3997
|
-
default:
|
|
3998
|
-
const parsedBody = parsedOutput.body;
|
|
3999
|
-
return throwDefaultError({
|
|
4000
|
-
output,
|
|
4001
|
-
parsedBody,
|
|
4002
|
-
errorCode,
|
|
4003
|
-
});
|
|
2560
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2561
|
+
return de_CommandError(output, context);
|
|
4004
2562
|
}
|
|
2563
|
+
const contents = map({
|
|
2564
|
+
$metadata: deserializeMetadata(output),
|
|
2565
|
+
});
|
|
2566
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2567
|
+
const doc = take(data, {
|
|
2568
|
+
downloadArtifactsUrl: __expectString,
|
|
2569
|
+
testExecutionId: __expectString,
|
|
2570
|
+
});
|
|
2571
|
+
Object.assign(contents, doc);
|
|
2572
|
+
return contents;
|
|
4005
2573
|
};
|
|
4006
2574
|
export const de_ListAggregatedUtterancesCommand = async (output, context) => {
|
|
4007
2575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4008
|
-
return
|
|
2576
|
+
return de_CommandError(output, context);
|
|
4009
2577
|
}
|
|
4010
2578
|
const contents = map({
|
|
4011
2579
|
$metadata: deserializeMetadata(output),
|
|
@@ -4026,37 +2594,9 @@ export const de_ListAggregatedUtterancesCommand = async (output, context) => {
|
|
|
4026
2594
|
Object.assign(contents, doc);
|
|
4027
2595
|
return contents;
|
|
4028
2596
|
};
|
|
4029
|
-
const de_ListAggregatedUtterancesCommandError = async (output, context) => {
|
|
4030
|
-
const parsedOutput = {
|
|
4031
|
-
...output,
|
|
4032
|
-
body: await parseErrorBody(output.body, context),
|
|
4033
|
-
};
|
|
4034
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4035
|
-
switch (errorCode) {
|
|
4036
|
-
case "InternalServerException":
|
|
4037
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4038
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4039
|
-
case "PreconditionFailedException":
|
|
4040
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
4041
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4042
|
-
case "ThrottlingException":
|
|
4043
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4044
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4045
|
-
case "ValidationException":
|
|
4046
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4047
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4048
|
-
default:
|
|
4049
|
-
const parsedBody = parsedOutput.body;
|
|
4050
|
-
return throwDefaultError({
|
|
4051
|
-
output,
|
|
4052
|
-
parsedBody,
|
|
4053
|
-
errorCode,
|
|
4054
|
-
});
|
|
4055
|
-
}
|
|
4056
|
-
};
|
|
4057
2597
|
export const de_ListBotAliasesCommand = async (output, context) => {
|
|
4058
2598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4059
|
-
return
|
|
2599
|
+
return de_CommandError(output, context);
|
|
4060
2600
|
}
|
|
4061
2601
|
const contents = map({
|
|
4062
2602
|
$metadata: deserializeMetadata(output),
|
|
@@ -4070,37 +2610,27 @@ export const de_ListBotAliasesCommand = async (output, context) => {
|
|
|
4070
2610
|
Object.assign(contents, doc);
|
|
4071
2611
|
return contents;
|
|
4072
2612
|
};
|
|
4073
|
-
const
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
body: await parseErrorBody(output.body, context),
|
|
4077
|
-
};
|
|
4078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4079
|
-
switch (errorCode) {
|
|
4080
|
-
case "InternalServerException":
|
|
4081
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4082
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4083
|
-
case "ServiceQuotaExceededException":
|
|
4084
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4085
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4086
|
-
case "ThrottlingException":
|
|
4087
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4088
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4089
|
-
case "ValidationException":
|
|
4090
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4091
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4092
|
-
default:
|
|
4093
|
-
const parsedBody = parsedOutput.body;
|
|
4094
|
-
return throwDefaultError({
|
|
4095
|
-
output,
|
|
4096
|
-
parsedBody,
|
|
4097
|
-
errorCode,
|
|
4098
|
-
});
|
|
2613
|
+
export const de_ListBotAliasReplicasCommand = async (output, context) => {
|
|
2614
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2615
|
+
return de_CommandError(output, context);
|
|
4099
2616
|
}
|
|
2617
|
+
const contents = map({
|
|
2618
|
+
$metadata: deserializeMetadata(output),
|
|
2619
|
+
});
|
|
2620
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2621
|
+
const doc = take(data, {
|
|
2622
|
+
botAliasReplicaSummaries: (_) => de_BotAliasReplicaSummaryList(_, context),
|
|
2623
|
+
botId: __expectString,
|
|
2624
|
+
nextToken: __expectString,
|
|
2625
|
+
replicaRegion: __expectString,
|
|
2626
|
+
sourceRegion: __expectString,
|
|
2627
|
+
});
|
|
2628
|
+
Object.assign(contents, doc);
|
|
2629
|
+
return contents;
|
|
4100
2630
|
};
|
|
4101
2631
|
export const de_ListBotLocalesCommand = async (output, context) => {
|
|
4102
2632
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4103
|
-
return
|
|
2633
|
+
return de_CommandError(output, context);
|
|
4104
2634
|
}
|
|
4105
2635
|
const contents = map({
|
|
4106
2636
|
$metadata: deserializeMetadata(output),
|
|
@@ -4115,37 +2645,9 @@ export const de_ListBotLocalesCommand = async (output, context) => {
|
|
|
4115
2645
|
Object.assign(contents, doc);
|
|
4116
2646
|
return contents;
|
|
4117
2647
|
};
|
|
4118
|
-
const de_ListBotLocalesCommandError = async (output, context) => {
|
|
4119
|
-
const parsedOutput = {
|
|
4120
|
-
...output,
|
|
4121
|
-
body: await parseErrorBody(output.body, context),
|
|
4122
|
-
};
|
|
4123
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4124
|
-
switch (errorCode) {
|
|
4125
|
-
case "InternalServerException":
|
|
4126
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4127
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4128
|
-
case "ServiceQuotaExceededException":
|
|
4129
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4130
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4131
|
-
case "ThrottlingException":
|
|
4132
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4133
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4134
|
-
case "ValidationException":
|
|
4135
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4136
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4137
|
-
default:
|
|
4138
|
-
const parsedBody = parsedOutput.body;
|
|
4139
|
-
return throwDefaultError({
|
|
4140
|
-
output,
|
|
4141
|
-
parsedBody,
|
|
4142
|
-
errorCode,
|
|
4143
|
-
});
|
|
4144
|
-
}
|
|
4145
|
-
};
|
|
4146
2648
|
export const de_ListBotRecommendationsCommand = async (output, context) => {
|
|
4147
2649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4148
|
-
return
|
|
2650
|
+
return de_CommandError(output, context);
|
|
4149
2651
|
}
|
|
4150
2652
|
const contents = map({
|
|
4151
2653
|
$metadata: deserializeMetadata(output),
|
|
@@ -4161,37 +2663,25 @@ export const de_ListBotRecommendationsCommand = async (output, context) => {
|
|
|
4161
2663
|
Object.assign(contents, doc);
|
|
4162
2664
|
return contents;
|
|
4163
2665
|
};
|
|
4164
|
-
const
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
body: await parseErrorBody(output.body, context),
|
|
4168
|
-
};
|
|
4169
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4170
|
-
switch (errorCode) {
|
|
4171
|
-
case "InternalServerException":
|
|
4172
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4173
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4174
|
-
case "ResourceNotFoundException":
|
|
4175
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4176
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4177
|
-
case "ThrottlingException":
|
|
4178
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4179
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4180
|
-
case "ValidationException":
|
|
4181
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4182
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4183
|
-
default:
|
|
4184
|
-
const parsedBody = parsedOutput.body;
|
|
4185
|
-
return throwDefaultError({
|
|
4186
|
-
output,
|
|
4187
|
-
parsedBody,
|
|
4188
|
-
errorCode,
|
|
4189
|
-
});
|
|
2666
|
+
export const de_ListBotReplicasCommand = async (output, context) => {
|
|
2667
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2668
|
+
return de_CommandError(output, context);
|
|
4190
2669
|
}
|
|
2670
|
+
const contents = map({
|
|
2671
|
+
$metadata: deserializeMetadata(output),
|
|
2672
|
+
});
|
|
2673
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2674
|
+
const doc = take(data, {
|
|
2675
|
+
botId: __expectString,
|
|
2676
|
+
botReplicaSummaries: (_) => de_BotReplicaSummaryList(_, context),
|
|
2677
|
+
sourceRegion: __expectString,
|
|
2678
|
+
});
|
|
2679
|
+
Object.assign(contents, doc);
|
|
2680
|
+
return contents;
|
|
4191
2681
|
};
|
|
4192
2682
|
export const de_ListBotResourceGenerationsCommand = async (output, context) => {
|
|
4193
2683
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4194
|
-
return
|
|
2684
|
+
return de_CommandError(output, context);
|
|
4195
2685
|
}
|
|
4196
2686
|
const contents = map({
|
|
4197
2687
|
$metadata: deserializeMetadata(output),
|
|
@@ -4207,37 +2697,9 @@ export const de_ListBotResourceGenerationsCommand = async (output, context) => {
|
|
|
4207
2697
|
Object.assign(contents, doc);
|
|
4208
2698
|
return contents;
|
|
4209
2699
|
};
|
|
4210
|
-
const de_ListBotResourceGenerationsCommandError = async (output, context) => {
|
|
4211
|
-
const parsedOutput = {
|
|
4212
|
-
...output,
|
|
4213
|
-
body: await parseErrorBody(output.body, context),
|
|
4214
|
-
};
|
|
4215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4216
|
-
switch (errorCode) {
|
|
4217
|
-
case "InternalServerException":
|
|
4218
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4219
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4220
|
-
case "ResourceNotFoundException":
|
|
4221
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4222
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4223
|
-
case "ThrottlingException":
|
|
4224
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4225
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4226
|
-
case "ValidationException":
|
|
4227
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4228
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4229
|
-
default:
|
|
4230
|
-
const parsedBody = parsedOutput.body;
|
|
4231
|
-
return throwDefaultError({
|
|
4232
|
-
output,
|
|
4233
|
-
parsedBody,
|
|
4234
|
-
errorCode,
|
|
4235
|
-
});
|
|
4236
|
-
}
|
|
4237
|
-
};
|
|
4238
2700
|
export const de_ListBotsCommand = async (output, context) => {
|
|
4239
2701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4240
|
-
return
|
|
2702
|
+
return de_CommandError(output, context);
|
|
4241
2703
|
}
|
|
4242
2704
|
const contents = map({
|
|
4243
2705
|
$metadata: deserializeMetadata(output),
|
|
@@ -4250,37 +2712,27 @@ export const de_ListBotsCommand = async (output, context) => {
|
|
|
4250
2712
|
Object.assign(contents, doc);
|
|
4251
2713
|
return contents;
|
|
4252
2714
|
};
|
|
4253
|
-
const
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
body: await parseErrorBody(output.body, context),
|
|
4257
|
-
};
|
|
4258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4259
|
-
switch (errorCode) {
|
|
4260
|
-
case "InternalServerException":
|
|
4261
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4262
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4263
|
-
case "ServiceQuotaExceededException":
|
|
4264
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4265
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4266
|
-
case "ThrottlingException":
|
|
4267
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4268
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4269
|
-
case "ValidationException":
|
|
4270
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4271
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4272
|
-
default:
|
|
4273
|
-
const parsedBody = parsedOutput.body;
|
|
4274
|
-
return throwDefaultError({
|
|
4275
|
-
output,
|
|
4276
|
-
parsedBody,
|
|
4277
|
-
errorCode,
|
|
4278
|
-
});
|
|
2715
|
+
export const de_ListBotVersionReplicasCommand = async (output, context) => {
|
|
2716
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2717
|
+
return de_CommandError(output, context);
|
|
4279
2718
|
}
|
|
2719
|
+
const contents = map({
|
|
2720
|
+
$metadata: deserializeMetadata(output),
|
|
2721
|
+
});
|
|
2722
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2723
|
+
const doc = take(data, {
|
|
2724
|
+
botId: __expectString,
|
|
2725
|
+
botVersionReplicaSummaries: (_) => de_BotVersionReplicaSummaryList(_, context),
|
|
2726
|
+
nextToken: __expectString,
|
|
2727
|
+
replicaRegion: __expectString,
|
|
2728
|
+
sourceRegion: __expectString,
|
|
2729
|
+
});
|
|
2730
|
+
Object.assign(contents, doc);
|
|
2731
|
+
return contents;
|
|
4280
2732
|
};
|
|
4281
2733
|
export const de_ListBotVersionsCommand = async (output, context) => {
|
|
4282
2734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4283
|
-
return
|
|
2735
|
+
return de_CommandError(output, context);
|
|
4284
2736
|
}
|
|
4285
2737
|
const contents = map({
|
|
4286
2738
|
$metadata: deserializeMetadata(output),
|
|
@@ -4294,37 +2746,9 @@ export const de_ListBotVersionsCommand = async (output, context) => {
|
|
|
4294
2746
|
Object.assign(contents, doc);
|
|
4295
2747
|
return contents;
|
|
4296
2748
|
};
|
|
4297
|
-
const de_ListBotVersionsCommandError = async (output, context) => {
|
|
4298
|
-
const parsedOutput = {
|
|
4299
|
-
...output,
|
|
4300
|
-
body: await parseErrorBody(output.body, context),
|
|
4301
|
-
};
|
|
4302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4303
|
-
switch (errorCode) {
|
|
4304
|
-
case "InternalServerException":
|
|
4305
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4306
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4307
|
-
case "ServiceQuotaExceededException":
|
|
4308
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4309
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4310
|
-
case "ThrottlingException":
|
|
4311
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4312
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4313
|
-
case "ValidationException":
|
|
4314
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4315
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4316
|
-
default:
|
|
4317
|
-
const parsedBody = parsedOutput.body;
|
|
4318
|
-
return throwDefaultError({
|
|
4319
|
-
output,
|
|
4320
|
-
parsedBody,
|
|
4321
|
-
errorCode,
|
|
4322
|
-
});
|
|
4323
|
-
}
|
|
4324
|
-
};
|
|
4325
2749
|
export const de_ListBuiltInIntentsCommand = async (output, context) => {
|
|
4326
2750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4327
|
-
return
|
|
2751
|
+
return de_CommandError(output, context);
|
|
4328
2752
|
}
|
|
4329
2753
|
const contents = map({
|
|
4330
2754
|
$metadata: deserializeMetadata(output),
|
|
@@ -4334,41 +2758,13 @@ export const de_ListBuiltInIntentsCommand = async (output, context) => {
|
|
|
4334
2758
|
builtInIntentSummaries: _json,
|
|
4335
2759
|
localeId: __expectString,
|
|
4336
2760
|
nextToken: __expectString,
|
|
4337
|
-
});
|
|
4338
|
-
Object.assign(contents, doc);
|
|
4339
|
-
return contents;
|
|
4340
|
-
};
|
|
4341
|
-
const de_ListBuiltInIntentsCommandError = async (output, context) => {
|
|
4342
|
-
const parsedOutput = {
|
|
4343
|
-
...output,
|
|
4344
|
-
body: await parseErrorBody(output.body, context),
|
|
4345
|
-
};
|
|
4346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4347
|
-
switch (errorCode) {
|
|
4348
|
-
case "InternalServerException":
|
|
4349
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4350
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4351
|
-
case "ServiceQuotaExceededException":
|
|
4352
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4353
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4354
|
-
case "ThrottlingException":
|
|
4355
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4356
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4357
|
-
case "ValidationException":
|
|
4358
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4359
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4360
|
-
default:
|
|
4361
|
-
const parsedBody = parsedOutput.body;
|
|
4362
|
-
return throwDefaultError({
|
|
4363
|
-
output,
|
|
4364
|
-
parsedBody,
|
|
4365
|
-
errorCode,
|
|
4366
|
-
});
|
|
4367
|
-
}
|
|
2761
|
+
});
|
|
2762
|
+
Object.assign(contents, doc);
|
|
2763
|
+
return contents;
|
|
4368
2764
|
};
|
|
4369
2765
|
export const de_ListBuiltInSlotTypesCommand = async (output, context) => {
|
|
4370
2766
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4371
|
-
return
|
|
2767
|
+
return de_CommandError(output, context);
|
|
4372
2768
|
}
|
|
4373
2769
|
const contents = map({
|
|
4374
2770
|
$metadata: deserializeMetadata(output),
|
|
@@ -4382,37 +2778,9 @@ export const de_ListBuiltInSlotTypesCommand = async (output, context) => {
|
|
|
4382
2778
|
Object.assign(contents, doc);
|
|
4383
2779
|
return contents;
|
|
4384
2780
|
};
|
|
4385
|
-
const de_ListBuiltInSlotTypesCommandError = async (output, context) => {
|
|
4386
|
-
const parsedOutput = {
|
|
4387
|
-
...output,
|
|
4388
|
-
body: await parseErrorBody(output.body, context),
|
|
4389
|
-
};
|
|
4390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4391
|
-
switch (errorCode) {
|
|
4392
|
-
case "InternalServerException":
|
|
4393
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4394
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4395
|
-
case "ServiceQuotaExceededException":
|
|
4396
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4397
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4398
|
-
case "ThrottlingException":
|
|
4399
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4400
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4401
|
-
case "ValidationException":
|
|
4402
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4403
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4404
|
-
default:
|
|
4405
|
-
const parsedBody = parsedOutput.body;
|
|
4406
|
-
return throwDefaultError({
|
|
4407
|
-
output,
|
|
4408
|
-
parsedBody,
|
|
4409
|
-
errorCode,
|
|
4410
|
-
});
|
|
4411
|
-
}
|
|
4412
|
-
};
|
|
4413
2781
|
export const de_ListCustomVocabularyItemsCommand = async (output, context) => {
|
|
4414
2782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4415
|
-
return
|
|
2783
|
+
return de_CommandError(output, context);
|
|
4416
2784
|
}
|
|
4417
2785
|
const contents = map({
|
|
4418
2786
|
$metadata: deserializeMetadata(output),
|
|
@@ -4428,40 +2796,9 @@ export const de_ListCustomVocabularyItemsCommand = async (output, context) => {
|
|
|
4428
2796
|
Object.assign(contents, doc);
|
|
4429
2797
|
return contents;
|
|
4430
2798
|
};
|
|
4431
|
-
const de_ListCustomVocabularyItemsCommandError = async (output, context) => {
|
|
4432
|
-
const parsedOutput = {
|
|
4433
|
-
...output,
|
|
4434
|
-
body: await parseErrorBody(output.body, context),
|
|
4435
|
-
};
|
|
4436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4437
|
-
switch (errorCode) {
|
|
4438
|
-
case "InternalServerException":
|
|
4439
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4440
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4441
|
-
case "ResourceNotFoundException":
|
|
4442
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4443
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4444
|
-
case "ServiceQuotaExceededException":
|
|
4445
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4446
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4447
|
-
case "ThrottlingException":
|
|
4448
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4449
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4450
|
-
case "ValidationException":
|
|
4451
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4452
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4453
|
-
default:
|
|
4454
|
-
const parsedBody = parsedOutput.body;
|
|
4455
|
-
return throwDefaultError({
|
|
4456
|
-
output,
|
|
4457
|
-
parsedBody,
|
|
4458
|
-
errorCode,
|
|
4459
|
-
});
|
|
4460
|
-
}
|
|
4461
|
-
};
|
|
4462
2799
|
export const de_ListExportsCommand = async (output, context) => {
|
|
4463
2800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4464
|
-
return
|
|
2801
|
+
return de_CommandError(output, context);
|
|
4465
2802
|
}
|
|
4466
2803
|
const contents = map({
|
|
4467
2804
|
$metadata: deserializeMetadata(output),
|
|
@@ -4477,34 +2814,9 @@ export const de_ListExportsCommand = async (output, context) => {
|
|
|
4477
2814
|
Object.assign(contents, doc);
|
|
4478
2815
|
return contents;
|
|
4479
2816
|
};
|
|
4480
|
-
const de_ListExportsCommandError = async (output, context) => {
|
|
4481
|
-
const parsedOutput = {
|
|
4482
|
-
...output,
|
|
4483
|
-
body: await parseErrorBody(output.body, context),
|
|
4484
|
-
};
|
|
4485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4486
|
-
switch (errorCode) {
|
|
4487
|
-
case "InternalServerException":
|
|
4488
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4489
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4490
|
-
case "ThrottlingException":
|
|
4491
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4492
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4493
|
-
case "ValidationException":
|
|
4494
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4495
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4496
|
-
default:
|
|
4497
|
-
const parsedBody = parsedOutput.body;
|
|
4498
|
-
return throwDefaultError({
|
|
4499
|
-
output,
|
|
4500
|
-
parsedBody,
|
|
4501
|
-
errorCode,
|
|
4502
|
-
});
|
|
4503
|
-
}
|
|
4504
|
-
};
|
|
4505
2817
|
export const de_ListImportsCommand = async (output, context) => {
|
|
4506
2818
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4507
|
-
return
|
|
2819
|
+
return de_CommandError(output, context);
|
|
4508
2820
|
}
|
|
4509
2821
|
const contents = map({
|
|
4510
2822
|
$metadata: deserializeMetadata(output),
|
|
@@ -4520,34 +2832,9 @@ export const de_ListImportsCommand = async (output, context) => {
|
|
|
4520
2832
|
Object.assign(contents, doc);
|
|
4521
2833
|
return contents;
|
|
4522
2834
|
};
|
|
4523
|
-
const de_ListImportsCommandError = async (output, context) => {
|
|
4524
|
-
const parsedOutput = {
|
|
4525
|
-
...output,
|
|
4526
|
-
body: await parseErrorBody(output.body, context),
|
|
4527
|
-
};
|
|
4528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4529
|
-
switch (errorCode) {
|
|
4530
|
-
case "InternalServerException":
|
|
4531
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4532
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4533
|
-
case "ThrottlingException":
|
|
4534
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4535
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4536
|
-
case "ValidationException":
|
|
4537
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4538
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4539
|
-
default:
|
|
4540
|
-
const parsedBody = parsedOutput.body;
|
|
4541
|
-
return throwDefaultError({
|
|
4542
|
-
output,
|
|
4543
|
-
parsedBody,
|
|
4544
|
-
errorCode,
|
|
4545
|
-
});
|
|
4546
|
-
}
|
|
4547
|
-
};
|
|
4548
2835
|
export const de_ListIntentMetricsCommand = async (output, context) => {
|
|
4549
2836
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4550
|
-
return
|
|
2837
|
+
return de_CommandError(output, context);
|
|
4551
2838
|
}
|
|
4552
2839
|
const contents = map({
|
|
4553
2840
|
$metadata: deserializeMetadata(output),
|
|
@@ -4561,40 +2848,9 @@ export const de_ListIntentMetricsCommand = async (output, context) => {
|
|
|
4561
2848
|
Object.assign(contents, doc);
|
|
4562
2849
|
return contents;
|
|
4563
2850
|
};
|
|
4564
|
-
const de_ListIntentMetricsCommandError = async (output, context) => {
|
|
4565
|
-
const parsedOutput = {
|
|
4566
|
-
...output,
|
|
4567
|
-
body: await parseErrorBody(output.body, context),
|
|
4568
|
-
};
|
|
4569
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4570
|
-
switch (errorCode) {
|
|
4571
|
-
case "InternalServerException":
|
|
4572
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4573
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4574
|
-
case "PreconditionFailedException":
|
|
4575
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
4576
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4577
|
-
case "ServiceQuotaExceededException":
|
|
4578
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4579
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4580
|
-
case "ThrottlingException":
|
|
4581
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4582
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4583
|
-
case "ValidationException":
|
|
4584
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4585
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4586
|
-
default:
|
|
4587
|
-
const parsedBody = parsedOutput.body;
|
|
4588
|
-
return throwDefaultError({
|
|
4589
|
-
output,
|
|
4590
|
-
parsedBody,
|
|
4591
|
-
errorCode,
|
|
4592
|
-
});
|
|
4593
|
-
}
|
|
4594
|
-
};
|
|
4595
2851
|
export const de_ListIntentPathsCommand = async (output, context) => {
|
|
4596
2852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4597
|
-
return
|
|
2853
|
+
return de_CommandError(output, context);
|
|
4598
2854
|
}
|
|
4599
2855
|
const contents = map({
|
|
4600
2856
|
$metadata: deserializeMetadata(output),
|
|
@@ -4606,40 +2862,9 @@ export const de_ListIntentPathsCommand = async (output, context) => {
|
|
|
4606
2862
|
Object.assign(contents, doc);
|
|
4607
2863
|
return contents;
|
|
4608
2864
|
};
|
|
4609
|
-
const de_ListIntentPathsCommandError = async (output, context) => {
|
|
4610
|
-
const parsedOutput = {
|
|
4611
|
-
...output,
|
|
4612
|
-
body: await parseErrorBody(output.body, context),
|
|
4613
|
-
};
|
|
4614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4615
|
-
switch (errorCode) {
|
|
4616
|
-
case "InternalServerException":
|
|
4617
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4618
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4619
|
-
case "PreconditionFailedException":
|
|
4620
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
4621
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4622
|
-
case "ServiceQuotaExceededException":
|
|
4623
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4624
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4625
|
-
case "ThrottlingException":
|
|
4626
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4627
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4628
|
-
case "ValidationException":
|
|
4629
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4630
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4631
|
-
default:
|
|
4632
|
-
const parsedBody = parsedOutput.body;
|
|
4633
|
-
return throwDefaultError({
|
|
4634
|
-
output,
|
|
4635
|
-
parsedBody,
|
|
4636
|
-
errorCode,
|
|
4637
|
-
});
|
|
4638
|
-
}
|
|
4639
|
-
};
|
|
4640
2865
|
export const de_ListIntentsCommand = async (output, context) => {
|
|
4641
2866
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4642
|
-
return
|
|
2867
|
+
return de_CommandError(output, context);
|
|
4643
2868
|
}
|
|
4644
2869
|
const contents = map({
|
|
4645
2870
|
$metadata: deserializeMetadata(output),
|
|
@@ -4655,37 +2880,9 @@ export const de_ListIntentsCommand = async (output, context) => {
|
|
|
4655
2880
|
Object.assign(contents, doc);
|
|
4656
2881
|
return contents;
|
|
4657
2882
|
};
|
|
4658
|
-
const de_ListIntentsCommandError = async (output, context) => {
|
|
4659
|
-
const parsedOutput = {
|
|
4660
|
-
...output,
|
|
4661
|
-
body: await parseErrorBody(output.body, context),
|
|
4662
|
-
};
|
|
4663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4664
|
-
switch (errorCode) {
|
|
4665
|
-
case "InternalServerException":
|
|
4666
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4667
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4668
|
-
case "ServiceQuotaExceededException":
|
|
4669
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4670
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4671
|
-
case "ThrottlingException":
|
|
4672
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4673
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4674
|
-
case "ValidationException":
|
|
4675
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4676
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4677
|
-
default:
|
|
4678
|
-
const parsedBody = parsedOutput.body;
|
|
4679
|
-
return throwDefaultError({
|
|
4680
|
-
output,
|
|
4681
|
-
parsedBody,
|
|
4682
|
-
errorCode,
|
|
4683
|
-
});
|
|
4684
|
-
}
|
|
4685
|
-
};
|
|
4686
2883
|
export const de_ListIntentStageMetricsCommand = async (output, context) => {
|
|
4687
2884
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4688
|
-
return
|
|
2885
|
+
return de_CommandError(output, context);
|
|
4689
2886
|
}
|
|
4690
2887
|
const contents = map({
|
|
4691
2888
|
$metadata: deserializeMetadata(output),
|
|
@@ -4699,40 +2896,9 @@ export const de_ListIntentStageMetricsCommand = async (output, context) => {
|
|
|
4699
2896
|
Object.assign(contents, doc);
|
|
4700
2897
|
return contents;
|
|
4701
2898
|
};
|
|
4702
|
-
const de_ListIntentStageMetricsCommandError = async (output, context) => {
|
|
4703
|
-
const parsedOutput = {
|
|
4704
|
-
...output,
|
|
4705
|
-
body: await parseErrorBody(output.body, context),
|
|
4706
|
-
};
|
|
4707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4708
|
-
switch (errorCode) {
|
|
4709
|
-
case "InternalServerException":
|
|
4710
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4711
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4712
|
-
case "PreconditionFailedException":
|
|
4713
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
4714
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4715
|
-
case "ServiceQuotaExceededException":
|
|
4716
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4717
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4718
|
-
case "ThrottlingException":
|
|
4719
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4720
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4721
|
-
case "ValidationException":
|
|
4722
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4723
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4724
|
-
default:
|
|
4725
|
-
const parsedBody = parsedOutput.body;
|
|
4726
|
-
return throwDefaultError({
|
|
4727
|
-
output,
|
|
4728
|
-
parsedBody,
|
|
4729
|
-
errorCode,
|
|
4730
|
-
});
|
|
4731
|
-
}
|
|
4732
|
-
};
|
|
4733
2899
|
export const de_ListRecommendedIntentsCommand = async (output, context) => {
|
|
4734
2900
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4735
|
-
return
|
|
2901
|
+
return de_CommandError(output, context);
|
|
4736
2902
|
}
|
|
4737
2903
|
const contents = map({
|
|
4738
2904
|
$metadata: deserializeMetadata(output),
|
|
@@ -4747,42 +2913,11 @@ export const de_ListRecommendedIntentsCommand = async (output, context) => {
|
|
|
4747
2913
|
summaryList: _json,
|
|
4748
2914
|
});
|
|
4749
2915
|
Object.assign(contents, doc);
|
|
4750
|
-
return contents;
|
|
4751
|
-
};
|
|
4752
|
-
const de_ListRecommendedIntentsCommandError = async (output, context) => {
|
|
4753
|
-
const parsedOutput = {
|
|
4754
|
-
...output,
|
|
4755
|
-
body: await parseErrorBody(output.body, context),
|
|
4756
|
-
};
|
|
4757
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4758
|
-
switch (errorCode) {
|
|
4759
|
-
case "InternalServerException":
|
|
4760
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4761
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4762
|
-
case "ResourceNotFoundException":
|
|
4763
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4765
|
-
case "ServiceQuotaExceededException":
|
|
4766
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4767
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4768
|
-
case "ThrottlingException":
|
|
4769
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4770
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4771
|
-
case "ValidationException":
|
|
4772
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4773
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4774
|
-
default:
|
|
4775
|
-
const parsedBody = parsedOutput.body;
|
|
4776
|
-
return throwDefaultError({
|
|
4777
|
-
output,
|
|
4778
|
-
parsedBody,
|
|
4779
|
-
errorCode,
|
|
4780
|
-
});
|
|
4781
|
-
}
|
|
2916
|
+
return contents;
|
|
4782
2917
|
};
|
|
4783
2918
|
export const de_ListSessionAnalyticsDataCommand = async (output, context) => {
|
|
4784
2919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4785
|
-
return
|
|
2920
|
+
return de_CommandError(output, context);
|
|
4786
2921
|
}
|
|
4787
2922
|
const contents = map({
|
|
4788
2923
|
$metadata: deserializeMetadata(output),
|
|
@@ -4796,40 +2931,9 @@ export const de_ListSessionAnalyticsDataCommand = async (output, context) => {
|
|
|
4796
2931
|
Object.assign(contents, doc);
|
|
4797
2932
|
return contents;
|
|
4798
2933
|
};
|
|
4799
|
-
const de_ListSessionAnalyticsDataCommandError = async (output, context) => {
|
|
4800
|
-
const parsedOutput = {
|
|
4801
|
-
...output,
|
|
4802
|
-
body: await parseErrorBody(output.body, context),
|
|
4803
|
-
};
|
|
4804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4805
|
-
switch (errorCode) {
|
|
4806
|
-
case "InternalServerException":
|
|
4807
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4808
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4809
|
-
case "PreconditionFailedException":
|
|
4810
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
4811
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4812
|
-
case "ServiceQuotaExceededException":
|
|
4813
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4814
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4815
|
-
case "ThrottlingException":
|
|
4816
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4817
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4818
|
-
case "ValidationException":
|
|
4819
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4820
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4821
|
-
default:
|
|
4822
|
-
const parsedBody = parsedOutput.body;
|
|
4823
|
-
return throwDefaultError({
|
|
4824
|
-
output,
|
|
4825
|
-
parsedBody,
|
|
4826
|
-
errorCode,
|
|
4827
|
-
});
|
|
4828
|
-
}
|
|
4829
|
-
};
|
|
4830
2934
|
export const de_ListSessionMetricsCommand = async (output, context) => {
|
|
4831
2935
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4832
|
-
return
|
|
2936
|
+
return de_CommandError(output, context);
|
|
4833
2937
|
}
|
|
4834
2938
|
const contents = map({
|
|
4835
2939
|
$metadata: deserializeMetadata(output),
|
|
@@ -4843,40 +2947,9 @@ export const de_ListSessionMetricsCommand = async (output, context) => {
|
|
|
4843
2947
|
Object.assign(contents, doc);
|
|
4844
2948
|
return contents;
|
|
4845
2949
|
};
|
|
4846
|
-
const de_ListSessionMetricsCommandError = async (output, context) => {
|
|
4847
|
-
const parsedOutput = {
|
|
4848
|
-
...output,
|
|
4849
|
-
body: await parseErrorBody(output.body, context),
|
|
4850
|
-
};
|
|
4851
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4852
|
-
switch (errorCode) {
|
|
4853
|
-
case "InternalServerException":
|
|
4854
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4855
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4856
|
-
case "PreconditionFailedException":
|
|
4857
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
4858
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4859
|
-
case "ServiceQuotaExceededException":
|
|
4860
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4861
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4862
|
-
case "ThrottlingException":
|
|
4863
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4864
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4865
|
-
case "ValidationException":
|
|
4866
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4867
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4868
|
-
default:
|
|
4869
|
-
const parsedBody = parsedOutput.body;
|
|
4870
|
-
return throwDefaultError({
|
|
4871
|
-
output,
|
|
4872
|
-
parsedBody,
|
|
4873
|
-
errorCode,
|
|
4874
|
-
});
|
|
4875
|
-
}
|
|
4876
|
-
};
|
|
4877
2950
|
export const de_ListSlotsCommand = async (output, context) => {
|
|
4878
2951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4879
|
-
return
|
|
2952
|
+
return de_CommandError(output, context);
|
|
4880
2953
|
}
|
|
4881
2954
|
const contents = map({
|
|
4882
2955
|
$metadata: deserializeMetadata(output),
|
|
@@ -4893,37 +2966,9 @@ export const de_ListSlotsCommand = async (output, context) => {
|
|
|
4893
2966
|
Object.assign(contents, doc);
|
|
4894
2967
|
return contents;
|
|
4895
2968
|
};
|
|
4896
|
-
const de_ListSlotsCommandError = async (output, context) => {
|
|
4897
|
-
const parsedOutput = {
|
|
4898
|
-
...output,
|
|
4899
|
-
body: await parseErrorBody(output.body, context),
|
|
4900
|
-
};
|
|
4901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4902
|
-
switch (errorCode) {
|
|
4903
|
-
case "InternalServerException":
|
|
4904
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4905
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4906
|
-
case "ServiceQuotaExceededException":
|
|
4907
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4908
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4909
|
-
case "ThrottlingException":
|
|
4910
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4911
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4912
|
-
case "ValidationException":
|
|
4913
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4914
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4915
|
-
default:
|
|
4916
|
-
const parsedBody = parsedOutput.body;
|
|
4917
|
-
return throwDefaultError({
|
|
4918
|
-
output,
|
|
4919
|
-
parsedBody,
|
|
4920
|
-
errorCode,
|
|
4921
|
-
});
|
|
4922
|
-
}
|
|
4923
|
-
};
|
|
4924
2969
|
export const de_ListSlotTypesCommand = async (output, context) => {
|
|
4925
2970
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4926
|
-
return
|
|
2971
|
+
return de_CommandError(output, context);
|
|
4927
2972
|
}
|
|
4928
2973
|
const contents = map({
|
|
4929
2974
|
$metadata: deserializeMetadata(output),
|
|
@@ -4939,37 +2984,9 @@ export const de_ListSlotTypesCommand = async (output, context) => {
|
|
|
4939
2984
|
Object.assign(contents, doc);
|
|
4940
2985
|
return contents;
|
|
4941
2986
|
};
|
|
4942
|
-
const de_ListSlotTypesCommandError = async (output, context) => {
|
|
4943
|
-
const parsedOutput = {
|
|
4944
|
-
...output,
|
|
4945
|
-
body: await parseErrorBody(output.body, context),
|
|
4946
|
-
};
|
|
4947
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4948
|
-
switch (errorCode) {
|
|
4949
|
-
case "InternalServerException":
|
|
4950
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4951
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4952
|
-
case "ServiceQuotaExceededException":
|
|
4953
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4954
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4955
|
-
case "ThrottlingException":
|
|
4956
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4957
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4958
|
-
case "ValidationException":
|
|
4959
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4960
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4961
|
-
default:
|
|
4962
|
-
const parsedBody = parsedOutput.body;
|
|
4963
|
-
return throwDefaultError({
|
|
4964
|
-
output,
|
|
4965
|
-
parsedBody,
|
|
4966
|
-
errorCode,
|
|
4967
|
-
});
|
|
4968
|
-
}
|
|
4969
|
-
};
|
|
4970
2987
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
4971
2988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4972
|
-
return
|
|
2989
|
+
return de_CommandError(output, context);
|
|
4973
2990
|
}
|
|
4974
2991
|
const contents = map({
|
|
4975
2992
|
$metadata: deserializeMetadata(output),
|
|
@@ -4981,37 +2998,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
4981
2998
|
Object.assign(contents, doc);
|
|
4982
2999
|
return contents;
|
|
4983
3000
|
};
|
|
4984
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
4985
|
-
const parsedOutput = {
|
|
4986
|
-
...output,
|
|
4987
|
-
body: await parseErrorBody(output.body, context),
|
|
4988
|
-
};
|
|
4989
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4990
|
-
switch (errorCode) {
|
|
4991
|
-
case "InternalServerException":
|
|
4992
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4993
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4994
|
-
case "ResourceNotFoundException":
|
|
4995
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4996
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4997
|
-
case "ThrottlingException":
|
|
4998
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4999
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5000
|
-
case "ValidationException":
|
|
5001
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5002
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5003
|
-
default:
|
|
5004
|
-
const parsedBody = parsedOutput.body;
|
|
5005
|
-
return throwDefaultError({
|
|
5006
|
-
output,
|
|
5007
|
-
parsedBody,
|
|
5008
|
-
errorCode,
|
|
5009
|
-
});
|
|
5010
|
-
}
|
|
5011
|
-
};
|
|
5012
3001
|
export const de_ListTestExecutionResultItemsCommand = async (output, context) => {
|
|
5013
3002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5014
|
-
return
|
|
3003
|
+
return de_CommandError(output, context);
|
|
5015
3004
|
}
|
|
5016
3005
|
const contents = map({
|
|
5017
3006
|
$metadata: deserializeMetadata(output),
|
|
@@ -5024,40 +3013,9 @@ export const de_ListTestExecutionResultItemsCommand = async (output, context) =>
|
|
|
5024
3013
|
Object.assign(contents, doc);
|
|
5025
3014
|
return contents;
|
|
5026
3015
|
};
|
|
5027
|
-
const de_ListTestExecutionResultItemsCommandError = async (output, context) => {
|
|
5028
|
-
const parsedOutput = {
|
|
5029
|
-
...output,
|
|
5030
|
-
body: await parseErrorBody(output.body, context),
|
|
5031
|
-
};
|
|
5032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5033
|
-
switch (errorCode) {
|
|
5034
|
-
case "InternalServerException":
|
|
5035
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5036
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5037
|
-
case "ResourceNotFoundException":
|
|
5038
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5039
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5040
|
-
case "ServiceQuotaExceededException":
|
|
5041
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5042
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5043
|
-
case "ThrottlingException":
|
|
5044
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5045
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5046
|
-
case "ValidationException":
|
|
5047
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5048
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5049
|
-
default:
|
|
5050
|
-
const parsedBody = parsedOutput.body;
|
|
5051
|
-
return throwDefaultError({
|
|
5052
|
-
output,
|
|
5053
|
-
parsedBody,
|
|
5054
|
-
errorCode,
|
|
5055
|
-
});
|
|
5056
|
-
}
|
|
5057
|
-
};
|
|
5058
3016
|
export const de_ListTestExecutionsCommand = async (output, context) => {
|
|
5059
3017
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5060
|
-
return
|
|
3018
|
+
return de_CommandError(output, context);
|
|
5061
3019
|
}
|
|
5062
3020
|
const contents = map({
|
|
5063
3021
|
$metadata: deserializeMetadata(output),
|
|
@@ -5070,37 +3028,9 @@ export const de_ListTestExecutionsCommand = async (output, context) => {
|
|
|
5070
3028
|
Object.assign(contents, doc);
|
|
5071
3029
|
return contents;
|
|
5072
3030
|
};
|
|
5073
|
-
const de_ListTestExecutionsCommandError = async (output, context) => {
|
|
5074
|
-
const parsedOutput = {
|
|
5075
|
-
...output,
|
|
5076
|
-
body: await parseErrorBody(output.body, context),
|
|
5077
|
-
};
|
|
5078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5079
|
-
switch (errorCode) {
|
|
5080
|
-
case "InternalServerException":
|
|
5081
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5082
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5083
|
-
case "ServiceQuotaExceededException":
|
|
5084
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5085
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5086
|
-
case "ThrottlingException":
|
|
5087
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5088
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5089
|
-
case "ValidationException":
|
|
5090
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5091
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5092
|
-
default:
|
|
5093
|
-
const parsedBody = parsedOutput.body;
|
|
5094
|
-
return throwDefaultError({
|
|
5095
|
-
output,
|
|
5096
|
-
parsedBody,
|
|
5097
|
-
errorCode,
|
|
5098
|
-
});
|
|
5099
|
-
}
|
|
5100
|
-
};
|
|
5101
3031
|
export const de_ListTestSetRecordsCommand = async (output, context) => {
|
|
5102
3032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5103
|
-
return
|
|
3033
|
+
return de_CommandError(output, context);
|
|
5104
3034
|
}
|
|
5105
3035
|
const contents = map({
|
|
5106
3036
|
$metadata: deserializeMetadata(output),
|
|
@@ -5113,40 +3043,9 @@ export const de_ListTestSetRecordsCommand = async (output, context) => {
|
|
|
5113
3043
|
Object.assign(contents, doc);
|
|
5114
3044
|
return contents;
|
|
5115
3045
|
};
|
|
5116
|
-
const de_ListTestSetRecordsCommandError = async (output, context) => {
|
|
5117
|
-
const parsedOutput = {
|
|
5118
|
-
...output,
|
|
5119
|
-
body: await parseErrorBody(output.body, context),
|
|
5120
|
-
};
|
|
5121
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5122
|
-
switch (errorCode) {
|
|
5123
|
-
case "InternalServerException":
|
|
5124
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5125
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5126
|
-
case "ResourceNotFoundException":
|
|
5127
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5128
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5129
|
-
case "ServiceQuotaExceededException":
|
|
5130
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5131
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5132
|
-
case "ThrottlingException":
|
|
5133
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5134
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5135
|
-
case "ValidationException":
|
|
5136
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5137
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5138
|
-
default:
|
|
5139
|
-
const parsedBody = parsedOutput.body;
|
|
5140
|
-
return throwDefaultError({
|
|
5141
|
-
output,
|
|
5142
|
-
parsedBody,
|
|
5143
|
-
errorCode,
|
|
5144
|
-
});
|
|
5145
|
-
}
|
|
5146
|
-
};
|
|
5147
3046
|
export const de_ListTestSetsCommand = async (output, context) => {
|
|
5148
3047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5149
|
-
return
|
|
3048
|
+
return de_CommandError(output, context);
|
|
5150
3049
|
}
|
|
5151
3050
|
const contents = map({
|
|
5152
3051
|
$metadata: deserializeMetadata(output),
|
|
@@ -5159,37 +3058,9 @@ export const de_ListTestSetsCommand = async (output, context) => {
|
|
|
5159
3058
|
Object.assign(contents, doc);
|
|
5160
3059
|
return contents;
|
|
5161
3060
|
};
|
|
5162
|
-
const de_ListTestSetsCommandError = async (output, context) => {
|
|
5163
|
-
const parsedOutput = {
|
|
5164
|
-
...output,
|
|
5165
|
-
body: await parseErrorBody(output.body, context),
|
|
5166
|
-
};
|
|
5167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5168
|
-
switch (errorCode) {
|
|
5169
|
-
case "InternalServerException":
|
|
5170
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5171
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5172
|
-
case "ServiceQuotaExceededException":
|
|
5173
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5174
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5175
|
-
case "ThrottlingException":
|
|
5176
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5177
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5178
|
-
case "ValidationException":
|
|
5179
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5180
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5181
|
-
default:
|
|
5182
|
-
const parsedBody = parsedOutput.body;
|
|
5183
|
-
return throwDefaultError({
|
|
5184
|
-
output,
|
|
5185
|
-
parsedBody,
|
|
5186
|
-
errorCode,
|
|
5187
|
-
});
|
|
5188
|
-
}
|
|
5189
|
-
};
|
|
5190
3061
|
export const de_ListUtteranceAnalyticsDataCommand = async (output, context) => {
|
|
5191
3062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5192
|
-
return
|
|
3063
|
+
return de_CommandError(output, context);
|
|
5193
3064
|
}
|
|
5194
3065
|
const contents = map({
|
|
5195
3066
|
$metadata: deserializeMetadata(output),
|
|
@@ -5203,40 +3074,9 @@ export const de_ListUtteranceAnalyticsDataCommand = async (output, context) => {
|
|
|
5203
3074
|
Object.assign(contents, doc);
|
|
5204
3075
|
return contents;
|
|
5205
3076
|
};
|
|
5206
|
-
const de_ListUtteranceAnalyticsDataCommandError = async (output, context) => {
|
|
5207
|
-
const parsedOutput = {
|
|
5208
|
-
...output,
|
|
5209
|
-
body: await parseErrorBody(output.body, context),
|
|
5210
|
-
};
|
|
5211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5212
|
-
switch (errorCode) {
|
|
5213
|
-
case "InternalServerException":
|
|
5214
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5215
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5216
|
-
case "PreconditionFailedException":
|
|
5217
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5218
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5219
|
-
case "ServiceQuotaExceededException":
|
|
5220
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5221
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5222
|
-
case "ThrottlingException":
|
|
5223
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5224
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5225
|
-
case "ValidationException":
|
|
5226
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5227
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5228
|
-
default:
|
|
5229
|
-
const parsedBody = parsedOutput.body;
|
|
5230
|
-
return throwDefaultError({
|
|
5231
|
-
output,
|
|
5232
|
-
parsedBody,
|
|
5233
|
-
errorCode,
|
|
5234
|
-
});
|
|
5235
|
-
}
|
|
5236
|
-
};
|
|
5237
3077
|
export const de_ListUtteranceMetricsCommand = async (output, context) => {
|
|
5238
3078
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5239
|
-
return
|
|
3079
|
+
return de_CommandError(output, context);
|
|
5240
3080
|
}
|
|
5241
3081
|
const contents = map({
|
|
5242
3082
|
$metadata: deserializeMetadata(output),
|
|
@@ -5250,40 +3090,9 @@ export const de_ListUtteranceMetricsCommand = async (output, context) => {
|
|
|
5250
3090
|
Object.assign(contents, doc);
|
|
5251
3091
|
return contents;
|
|
5252
3092
|
};
|
|
5253
|
-
const de_ListUtteranceMetricsCommandError = async (output, context) => {
|
|
5254
|
-
const parsedOutput = {
|
|
5255
|
-
...output,
|
|
5256
|
-
body: await parseErrorBody(output.body, context),
|
|
5257
|
-
};
|
|
5258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5259
|
-
switch (errorCode) {
|
|
5260
|
-
case "InternalServerException":
|
|
5261
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5262
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5263
|
-
case "PreconditionFailedException":
|
|
5264
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5265
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5266
|
-
case "ServiceQuotaExceededException":
|
|
5267
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5268
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5269
|
-
case "ThrottlingException":
|
|
5270
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5271
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5272
|
-
case "ValidationException":
|
|
5273
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5274
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5275
|
-
default:
|
|
5276
|
-
const parsedBody = parsedOutput.body;
|
|
5277
|
-
return throwDefaultError({
|
|
5278
|
-
output,
|
|
5279
|
-
parsedBody,
|
|
5280
|
-
errorCode,
|
|
5281
|
-
});
|
|
5282
|
-
}
|
|
5283
|
-
};
|
|
5284
3093
|
export const de_SearchAssociatedTranscriptsCommand = async (output, context) => {
|
|
5285
3094
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5286
|
-
return
|
|
3095
|
+
return de_CommandError(output, context);
|
|
5287
3096
|
}
|
|
5288
3097
|
const contents = map({
|
|
5289
3098
|
$metadata: deserializeMetadata(output),
|
|
@@ -5301,40 +3110,9 @@ export const de_SearchAssociatedTranscriptsCommand = async (output, context) =>
|
|
|
5301
3110
|
Object.assign(contents, doc);
|
|
5302
3111
|
return contents;
|
|
5303
3112
|
};
|
|
5304
|
-
const de_SearchAssociatedTranscriptsCommandError = async (output, context) => {
|
|
5305
|
-
const parsedOutput = {
|
|
5306
|
-
...output,
|
|
5307
|
-
body: await parseErrorBody(output.body, context),
|
|
5308
|
-
};
|
|
5309
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5310
|
-
switch (errorCode) {
|
|
5311
|
-
case "InternalServerException":
|
|
5312
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5313
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5314
|
-
case "ResourceNotFoundException":
|
|
5315
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5316
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5317
|
-
case "ServiceQuotaExceededException":
|
|
5318
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5319
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5320
|
-
case "ThrottlingException":
|
|
5321
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5322
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5323
|
-
case "ValidationException":
|
|
5324
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5325
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5326
|
-
default:
|
|
5327
|
-
const parsedBody = parsedOutput.body;
|
|
5328
|
-
return throwDefaultError({
|
|
5329
|
-
output,
|
|
5330
|
-
parsedBody,
|
|
5331
|
-
errorCode,
|
|
5332
|
-
});
|
|
5333
|
-
}
|
|
5334
|
-
};
|
|
5335
3113
|
export const de_StartBotRecommendationCommand = async (output, context) => {
|
|
5336
3114
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5337
|
-
return
|
|
3115
|
+
return de_CommandError(output, context);
|
|
5338
3116
|
}
|
|
5339
3117
|
const contents = map({
|
|
5340
3118
|
$metadata: deserializeMetadata(output),
|
|
@@ -5353,46 +3131,9 @@ export const de_StartBotRecommendationCommand = async (output, context) => {
|
|
|
5353
3131
|
Object.assign(contents, doc);
|
|
5354
3132
|
return contents;
|
|
5355
3133
|
};
|
|
5356
|
-
const de_StartBotRecommendationCommandError = async (output, context) => {
|
|
5357
|
-
const parsedOutput = {
|
|
5358
|
-
...output,
|
|
5359
|
-
body: await parseErrorBody(output.body, context),
|
|
5360
|
-
};
|
|
5361
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5362
|
-
switch (errorCode) {
|
|
5363
|
-
case "ConflictException":
|
|
5364
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5365
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5366
|
-
case "InternalServerException":
|
|
5367
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5368
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5369
|
-
case "PreconditionFailedException":
|
|
5370
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5371
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5372
|
-
case "ResourceNotFoundException":
|
|
5373
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5374
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5375
|
-
case "ServiceQuotaExceededException":
|
|
5376
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5377
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5378
|
-
case "ThrottlingException":
|
|
5379
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5380
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5381
|
-
case "ValidationException":
|
|
5382
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5383
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5384
|
-
default:
|
|
5385
|
-
const parsedBody = parsedOutput.body;
|
|
5386
|
-
return throwDefaultError({
|
|
5387
|
-
output,
|
|
5388
|
-
parsedBody,
|
|
5389
|
-
errorCode,
|
|
5390
|
-
});
|
|
5391
|
-
}
|
|
5392
|
-
};
|
|
5393
3134
|
export const de_StartBotResourceGenerationCommand = async (output, context) => {
|
|
5394
3135
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5395
|
-
return
|
|
3136
|
+
return de_CommandError(output, context);
|
|
5396
3137
|
}
|
|
5397
3138
|
const contents = map({
|
|
5398
3139
|
$metadata: deserializeMetadata(output),
|
|
@@ -5410,148 +3151,46 @@ export const de_StartBotResourceGenerationCommand = async (output, context) => {
|
|
|
5410
3151
|
Object.assign(contents, doc);
|
|
5411
3152
|
return contents;
|
|
5412
3153
|
};
|
|
5413
|
-
const de_StartBotResourceGenerationCommandError = async (output, context) => {
|
|
5414
|
-
const parsedOutput = {
|
|
5415
|
-
...output,
|
|
5416
|
-
body: await parseErrorBody(output.body, context),
|
|
5417
|
-
};
|
|
5418
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5419
|
-
switch (errorCode) {
|
|
5420
|
-
case "ConflictException":
|
|
5421
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5422
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5423
|
-
case "InternalServerException":
|
|
5424
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5425
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5426
|
-
case "PreconditionFailedException":
|
|
5427
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5428
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5429
|
-
case "ServiceQuotaExceededException":
|
|
5430
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5431
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5432
|
-
case "ThrottlingException":
|
|
5433
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5434
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5435
|
-
case "ValidationException":
|
|
5436
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5437
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5438
|
-
default:
|
|
5439
|
-
const parsedBody = parsedOutput.body;
|
|
5440
|
-
return throwDefaultError({
|
|
5441
|
-
output,
|
|
5442
|
-
parsedBody,
|
|
5443
|
-
errorCode,
|
|
5444
|
-
});
|
|
5445
|
-
}
|
|
5446
|
-
};
|
|
5447
3154
|
export const de_StartImportCommand = async (output, context) => {
|
|
5448
3155
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5449
|
-
return
|
|
5450
|
-
}
|
|
5451
|
-
const contents = map({
|
|
5452
|
-
$metadata: deserializeMetadata(output),
|
|
5453
|
-
});
|
|
5454
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5455
|
-
const doc = take(data, {
|
|
5456
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5457
|
-
importId: __expectString,
|
|
5458
|
-
importStatus: __expectString,
|
|
5459
|
-
mergeStrategy: __expectString,
|
|
5460
|
-
resourceSpecification: (_) => de_ImportResourceSpecification(_, context),
|
|
5461
|
-
});
|
|
5462
|
-
Object.assign(contents, doc);
|
|
5463
|
-
return contents;
|
|
5464
|
-
};
|
|
5465
|
-
const de_StartImportCommandError = async (output, context) => {
|
|
5466
|
-
const parsedOutput = {
|
|
5467
|
-
...output,
|
|
5468
|
-
body: await parseErrorBody(output.body, context),
|
|
5469
|
-
};
|
|
5470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5471
|
-
switch (errorCode) {
|
|
5472
|
-
case "ConflictException":
|
|
5473
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5474
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5475
|
-
case "InternalServerException":
|
|
5476
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5477
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5478
|
-
case "ResourceNotFoundException":
|
|
5479
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5481
|
-
case "ServiceQuotaExceededException":
|
|
5482
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5483
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5484
|
-
case "ThrottlingException":
|
|
5485
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5486
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5487
|
-
case "ValidationException":
|
|
5488
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5489
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5490
|
-
default:
|
|
5491
|
-
const parsedBody = parsedOutput.body;
|
|
5492
|
-
return throwDefaultError({
|
|
5493
|
-
output,
|
|
5494
|
-
parsedBody,
|
|
5495
|
-
errorCode,
|
|
5496
|
-
});
|
|
5497
|
-
}
|
|
5498
|
-
};
|
|
5499
|
-
export const de_StartTestExecutionCommand = async (output, context) => {
|
|
5500
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5501
|
-
return de_StartTestExecutionCommandError(output, context);
|
|
5502
|
-
}
|
|
5503
|
-
const contents = map({
|
|
5504
|
-
$metadata: deserializeMetadata(output),
|
|
5505
|
-
});
|
|
5506
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5507
|
-
const doc = take(data, {
|
|
5508
|
-
apiMode: __expectString,
|
|
5509
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5510
|
-
target: _json,
|
|
5511
|
-
testExecutionId: __expectString,
|
|
5512
|
-
testExecutionModality: __expectString,
|
|
5513
|
-
testSetId: __expectString,
|
|
5514
|
-
});
|
|
5515
|
-
Object.assign(contents, doc);
|
|
5516
|
-
return contents;
|
|
5517
|
-
};
|
|
5518
|
-
const de_StartTestExecutionCommandError = async (output, context) => {
|
|
5519
|
-
const parsedOutput = {
|
|
5520
|
-
...output,
|
|
5521
|
-
body: await parseErrorBody(output.body, context),
|
|
5522
|
-
};
|
|
5523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5524
|
-
switch (errorCode) {
|
|
5525
|
-
case "ConflictException":
|
|
5526
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5527
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5528
|
-
case "InternalServerException":
|
|
5529
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5530
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5531
|
-
case "ResourceNotFoundException":
|
|
5532
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5533
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5534
|
-
case "ServiceQuotaExceededException":
|
|
5535
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5536
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5537
|
-
case "ThrottlingException":
|
|
5538
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5539
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5540
|
-
case "ValidationException":
|
|
5541
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5542
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5543
|
-
default:
|
|
5544
|
-
const parsedBody = parsedOutput.body;
|
|
5545
|
-
return throwDefaultError({
|
|
5546
|
-
output,
|
|
5547
|
-
parsedBody,
|
|
5548
|
-
errorCode,
|
|
5549
|
-
});
|
|
3156
|
+
return de_CommandError(output, context);
|
|
5550
3157
|
}
|
|
3158
|
+
const contents = map({
|
|
3159
|
+
$metadata: deserializeMetadata(output),
|
|
3160
|
+
});
|
|
3161
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3162
|
+
const doc = take(data, {
|
|
3163
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3164
|
+
importId: __expectString,
|
|
3165
|
+
importStatus: __expectString,
|
|
3166
|
+
mergeStrategy: __expectString,
|
|
3167
|
+
resourceSpecification: (_) => de_ImportResourceSpecification(_, context),
|
|
3168
|
+
});
|
|
3169
|
+
Object.assign(contents, doc);
|
|
3170
|
+
return contents;
|
|
3171
|
+
};
|
|
3172
|
+
export const de_StartTestExecutionCommand = async (output, context) => {
|
|
3173
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3174
|
+
return de_CommandError(output, context);
|
|
3175
|
+
}
|
|
3176
|
+
const contents = map({
|
|
3177
|
+
$metadata: deserializeMetadata(output),
|
|
3178
|
+
});
|
|
3179
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3180
|
+
const doc = take(data, {
|
|
3181
|
+
apiMode: __expectString,
|
|
3182
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3183
|
+
target: _json,
|
|
3184
|
+
testExecutionId: __expectString,
|
|
3185
|
+
testExecutionModality: __expectString,
|
|
3186
|
+
testSetId: __expectString,
|
|
3187
|
+
});
|
|
3188
|
+
Object.assign(contents, doc);
|
|
3189
|
+
return contents;
|
|
5551
3190
|
};
|
|
5552
3191
|
export const de_StartTestSetGenerationCommand = async (output, context) => {
|
|
5553
3192
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5554
|
-
return
|
|
3193
|
+
return de_CommandError(output, context);
|
|
5555
3194
|
}
|
|
5556
3195
|
const contents = map({
|
|
5557
3196
|
$metadata: deserializeMetadata(output),
|
|
@@ -5571,43 +3210,9 @@ export const de_StartTestSetGenerationCommand = async (output, context) => {
|
|
|
5571
3210
|
Object.assign(contents, doc);
|
|
5572
3211
|
return contents;
|
|
5573
3212
|
};
|
|
5574
|
-
const de_StartTestSetGenerationCommandError = async (output, context) => {
|
|
5575
|
-
const parsedOutput = {
|
|
5576
|
-
...output,
|
|
5577
|
-
body: await parseErrorBody(output.body, context),
|
|
5578
|
-
};
|
|
5579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5580
|
-
switch (errorCode) {
|
|
5581
|
-
case "ConflictException":
|
|
5582
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5583
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5584
|
-
case "InternalServerException":
|
|
5585
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5586
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5587
|
-
case "ResourceNotFoundException":
|
|
5588
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5589
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5590
|
-
case "ServiceQuotaExceededException":
|
|
5591
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5592
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5593
|
-
case "ThrottlingException":
|
|
5594
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5595
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5596
|
-
case "ValidationException":
|
|
5597
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5598
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5599
|
-
default:
|
|
5600
|
-
const parsedBody = parsedOutput.body;
|
|
5601
|
-
return throwDefaultError({
|
|
5602
|
-
output,
|
|
5603
|
-
parsedBody,
|
|
5604
|
-
errorCode,
|
|
5605
|
-
});
|
|
5606
|
-
}
|
|
5607
|
-
};
|
|
5608
3213
|
export const de_StopBotRecommendationCommand = async (output, context) => {
|
|
5609
3214
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5610
|
-
return
|
|
3215
|
+
return de_CommandError(output, context);
|
|
5611
3216
|
}
|
|
5612
3217
|
const contents = map({
|
|
5613
3218
|
$metadata: deserializeMetadata(output),
|
|
@@ -5623,46 +3228,9 @@ export const de_StopBotRecommendationCommand = async (output, context) => {
|
|
|
5623
3228
|
Object.assign(contents, doc);
|
|
5624
3229
|
return contents;
|
|
5625
3230
|
};
|
|
5626
|
-
const de_StopBotRecommendationCommandError = async (output, context) => {
|
|
5627
|
-
const parsedOutput = {
|
|
5628
|
-
...output,
|
|
5629
|
-
body: await parseErrorBody(output.body, context),
|
|
5630
|
-
};
|
|
5631
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5632
|
-
switch (errorCode) {
|
|
5633
|
-
case "ConflictException":
|
|
5634
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5635
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5636
|
-
case "InternalServerException":
|
|
5637
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5638
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5639
|
-
case "PreconditionFailedException":
|
|
5640
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5641
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5642
|
-
case "ResourceNotFoundException":
|
|
5643
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5644
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5645
|
-
case "ServiceQuotaExceededException":
|
|
5646
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5647
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5648
|
-
case "ThrottlingException":
|
|
5649
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5650
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5651
|
-
case "ValidationException":
|
|
5652
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5653
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5654
|
-
default:
|
|
5655
|
-
const parsedBody = parsedOutput.body;
|
|
5656
|
-
return throwDefaultError({
|
|
5657
|
-
output,
|
|
5658
|
-
parsedBody,
|
|
5659
|
-
errorCode,
|
|
5660
|
-
});
|
|
5661
|
-
}
|
|
5662
|
-
};
|
|
5663
3231
|
export const de_TagResourceCommand = async (output, context) => {
|
|
5664
3232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5665
|
-
return
|
|
3233
|
+
return de_CommandError(output, context);
|
|
5666
3234
|
}
|
|
5667
3235
|
const contents = map({
|
|
5668
3236
|
$metadata: deserializeMetadata(output),
|
|
@@ -5670,37 +3238,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
5670
3238
|
await collectBody(output.body, context);
|
|
5671
3239
|
return contents;
|
|
5672
3240
|
};
|
|
5673
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
5674
|
-
const parsedOutput = {
|
|
5675
|
-
...output,
|
|
5676
|
-
body: await parseErrorBody(output.body, context),
|
|
5677
|
-
};
|
|
5678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5679
|
-
switch (errorCode) {
|
|
5680
|
-
case "InternalServerException":
|
|
5681
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5682
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5683
|
-
case "ResourceNotFoundException":
|
|
5684
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5685
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5686
|
-
case "ThrottlingException":
|
|
5687
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5688
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5689
|
-
case "ValidationException":
|
|
5690
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5691
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5692
|
-
default:
|
|
5693
|
-
const parsedBody = parsedOutput.body;
|
|
5694
|
-
return throwDefaultError({
|
|
5695
|
-
output,
|
|
5696
|
-
parsedBody,
|
|
5697
|
-
errorCode,
|
|
5698
|
-
});
|
|
5699
|
-
}
|
|
5700
|
-
};
|
|
5701
3241
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
5702
3242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5703
|
-
return
|
|
3243
|
+
return de_CommandError(output, context);
|
|
5704
3244
|
}
|
|
5705
3245
|
const contents = map({
|
|
5706
3246
|
$metadata: deserializeMetadata(output),
|
|
@@ -5708,37 +3248,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
5708
3248
|
await collectBody(output.body, context);
|
|
5709
3249
|
return contents;
|
|
5710
3250
|
};
|
|
5711
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
5712
|
-
const parsedOutput = {
|
|
5713
|
-
...output,
|
|
5714
|
-
body: await parseErrorBody(output.body, context),
|
|
5715
|
-
};
|
|
5716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5717
|
-
switch (errorCode) {
|
|
5718
|
-
case "InternalServerException":
|
|
5719
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5720
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5721
|
-
case "ResourceNotFoundException":
|
|
5722
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5723
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5724
|
-
case "ThrottlingException":
|
|
5725
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5726
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5727
|
-
case "ValidationException":
|
|
5728
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5729
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5730
|
-
default:
|
|
5731
|
-
const parsedBody = parsedOutput.body;
|
|
5732
|
-
return throwDefaultError({
|
|
5733
|
-
output,
|
|
5734
|
-
parsedBody,
|
|
5735
|
-
errorCode,
|
|
5736
|
-
});
|
|
5737
|
-
}
|
|
5738
|
-
};
|
|
5739
3251
|
export const de_UpdateBotCommand = async (output, context) => {
|
|
5740
3252
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5741
|
-
return
|
|
3253
|
+
return de_CommandError(output, context);
|
|
5742
3254
|
}
|
|
5743
3255
|
const contents = map({
|
|
5744
3256
|
$metadata: deserializeMetadata(output),
|
|
@@ -5760,43 +3272,9 @@ export const de_UpdateBotCommand = async (output, context) => {
|
|
|
5760
3272
|
Object.assign(contents, doc);
|
|
5761
3273
|
return contents;
|
|
5762
3274
|
};
|
|
5763
|
-
const de_UpdateBotCommandError = async (output, context) => {
|
|
5764
|
-
const parsedOutput = {
|
|
5765
|
-
...output,
|
|
5766
|
-
body: await parseErrorBody(output.body, context),
|
|
5767
|
-
};
|
|
5768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5769
|
-
switch (errorCode) {
|
|
5770
|
-
case "ConflictException":
|
|
5771
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5772
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5773
|
-
case "InternalServerException":
|
|
5774
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5776
|
-
case "PreconditionFailedException":
|
|
5777
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5778
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5779
|
-
case "ServiceQuotaExceededException":
|
|
5780
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5781
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5782
|
-
case "ThrottlingException":
|
|
5783
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5784
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5785
|
-
case "ValidationException":
|
|
5786
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5787
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5788
|
-
default:
|
|
5789
|
-
const parsedBody = parsedOutput.body;
|
|
5790
|
-
return throwDefaultError({
|
|
5791
|
-
output,
|
|
5792
|
-
parsedBody,
|
|
5793
|
-
errorCode,
|
|
5794
|
-
});
|
|
5795
|
-
}
|
|
5796
|
-
};
|
|
5797
3275
|
export const de_UpdateBotAliasCommand = async (output, context) => {
|
|
5798
3276
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5799
|
-
return
|
|
3277
|
+
return de_CommandError(output, context);
|
|
5800
3278
|
}
|
|
5801
3279
|
const contents = map({
|
|
5802
3280
|
$metadata: deserializeMetadata(output),
|
|
@@ -5818,43 +3296,9 @@ export const de_UpdateBotAliasCommand = async (output, context) => {
|
|
|
5818
3296
|
Object.assign(contents, doc);
|
|
5819
3297
|
return contents;
|
|
5820
3298
|
};
|
|
5821
|
-
const de_UpdateBotAliasCommandError = async (output, context) => {
|
|
5822
|
-
const parsedOutput = {
|
|
5823
|
-
...output,
|
|
5824
|
-
body: await parseErrorBody(output.body, context),
|
|
5825
|
-
};
|
|
5826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5827
|
-
switch (errorCode) {
|
|
5828
|
-
case "ConflictException":
|
|
5829
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5830
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5831
|
-
case "InternalServerException":
|
|
5832
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5833
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5834
|
-
case "PreconditionFailedException":
|
|
5835
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5836
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5837
|
-
case "ServiceQuotaExceededException":
|
|
5838
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5839
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5840
|
-
case "ThrottlingException":
|
|
5841
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5842
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5843
|
-
case "ValidationException":
|
|
5844
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5845
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5846
|
-
default:
|
|
5847
|
-
const parsedBody = parsedOutput.body;
|
|
5848
|
-
return throwDefaultError({
|
|
5849
|
-
output,
|
|
5850
|
-
parsedBody,
|
|
5851
|
-
errorCode,
|
|
5852
|
-
});
|
|
5853
|
-
}
|
|
5854
|
-
};
|
|
5855
3299
|
export const de_UpdateBotLocaleCommand = async (output, context) => {
|
|
5856
3300
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5857
|
-
return
|
|
3301
|
+
return de_CommandError(output, context);
|
|
5858
3302
|
}
|
|
5859
3303
|
const contents = map({
|
|
5860
3304
|
$metadata: deserializeMetadata(output),
|
|
@@ -5874,47 +3318,13 @@ export const de_UpdateBotLocaleCommand = async (output, context) => {
|
|
|
5874
3318
|
nluIntentConfidenceThreshold: __limitedParseDouble,
|
|
5875
3319
|
recommendedActions: _json,
|
|
5876
3320
|
voiceSettings: _json,
|
|
5877
|
-
});
|
|
5878
|
-
Object.assign(contents, doc);
|
|
5879
|
-
return contents;
|
|
5880
|
-
};
|
|
5881
|
-
const de_UpdateBotLocaleCommandError = async (output, context) => {
|
|
5882
|
-
const parsedOutput = {
|
|
5883
|
-
...output,
|
|
5884
|
-
body: await parseErrorBody(output.body, context),
|
|
5885
|
-
};
|
|
5886
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5887
|
-
switch (errorCode) {
|
|
5888
|
-
case "ConflictException":
|
|
5889
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5890
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5891
|
-
case "InternalServerException":
|
|
5892
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5893
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5894
|
-
case "PreconditionFailedException":
|
|
5895
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5896
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5897
|
-
case "ServiceQuotaExceededException":
|
|
5898
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5899
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5900
|
-
case "ThrottlingException":
|
|
5901
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5902
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5903
|
-
case "ValidationException":
|
|
5904
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5905
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5906
|
-
default:
|
|
5907
|
-
const parsedBody = parsedOutput.body;
|
|
5908
|
-
return throwDefaultError({
|
|
5909
|
-
output,
|
|
5910
|
-
parsedBody,
|
|
5911
|
-
errorCode,
|
|
5912
|
-
});
|
|
5913
|
-
}
|
|
3321
|
+
});
|
|
3322
|
+
Object.assign(contents, doc);
|
|
3323
|
+
return contents;
|
|
5914
3324
|
};
|
|
5915
3325
|
export const de_UpdateBotRecommendationCommand = async (output, context) => {
|
|
5916
3326
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5917
|
-
return
|
|
3327
|
+
return de_CommandError(output, context);
|
|
5918
3328
|
}
|
|
5919
3329
|
const contents = map({
|
|
5920
3330
|
$metadata: deserializeMetadata(output),
|
|
@@ -5934,46 +3344,9 @@ export const de_UpdateBotRecommendationCommand = async (output, context) => {
|
|
|
5934
3344
|
Object.assign(contents, doc);
|
|
5935
3345
|
return contents;
|
|
5936
3346
|
};
|
|
5937
|
-
const de_UpdateBotRecommendationCommandError = async (output, context) => {
|
|
5938
|
-
const parsedOutput = {
|
|
5939
|
-
...output,
|
|
5940
|
-
body: await parseErrorBody(output.body, context),
|
|
5941
|
-
};
|
|
5942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5943
|
-
switch (errorCode) {
|
|
5944
|
-
case "ConflictException":
|
|
5945
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5946
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5947
|
-
case "InternalServerException":
|
|
5948
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5949
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5950
|
-
case "PreconditionFailedException":
|
|
5951
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5952
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5953
|
-
case "ResourceNotFoundException":
|
|
5954
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5955
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5956
|
-
case "ServiceQuotaExceededException":
|
|
5957
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5958
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5959
|
-
case "ThrottlingException":
|
|
5960
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5961
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5962
|
-
case "ValidationException":
|
|
5963
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5964
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5965
|
-
default:
|
|
5966
|
-
const parsedBody = parsedOutput.body;
|
|
5967
|
-
return throwDefaultError({
|
|
5968
|
-
output,
|
|
5969
|
-
parsedBody,
|
|
5970
|
-
errorCode,
|
|
5971
|
-
});
|
|
5972
|
-
}
|
|
5973
|
-
};
|
|
5974
3347
|
export const de_UpdateExportCommand = async (output, context) => {
|
|
5975
3348
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5976
|
-
return
|
|
3349
|
+
return de_CommandError(output, context);
|
|
5977
3350
|
}
|
|
5978
3351
|
const contents = map({
|
|
5979
3352
|
$metadata: deserializeMetadata(output),
|
|
@@ -5990,43 +3363,9 @@ export const de_UpdateExportCommand = async (output, context) => {
|
|
|
5990
3363
|
Object.assign(contents, doc);
|
|
5991
3364
|
return contents;
|
|
5992
3365
|
};
|
|
5993
|
-
const de_UpdateExportCommandError = async (output, context) => {
|
|
5994
|
-
const parsedOutput = {
|
|
5995
|
-
...output,
|
|
5996
|
-
body: await parseErrorBody(output.body, context),
|
|
5997
|
-
};
|
|
5998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5999
|
-
switch (errorCode) {
|
|
6000
|
-
case "ConflictException":
|
|
6001
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
6002
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6003
|
-
case "InternalServerException":
|
|
6004
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
6005
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6006
|
-
case "ResourceNotFoundException":
|
|
6007
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
6008
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6009
|
-
case "ServiceQuotaExceededException":
|
|
6010
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
6011
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
6012
|
-
case "ThrottlingException":
|
|
6013
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
6014
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6015
|
-
case "ValidationException":
|
|
6016
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
6017
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6018
|
-
default:
|
|
6019
|
-
const parsedBody = parsedOutput.body;
|
|
6020
|
-
return throwDefaultError({
|
|
6021
|
-
output,
|
|
6022
|
-
parsedBody,
|
|
6023
|
-
errorCode,
|
|
6024
|
-
});
|
|
6025
|
-
}
|
|
6026
|
-
};
|
|
6027
3366
|
export const de_UpdateIntentCommand = async (output, context) => {
|
|
6028
3367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6029
|
-
return
|
|
3368
|
+
return de_CommandError(output, context);
|
|
6030
3369
|
}
|
|
6031
3370
|
const contents = map({
|
|
6032
3371
|
$metadata: deserializeMetadata(output),
|
|
@@ -6056,43 +3395,9 @@ export const de_UpdateIntentCommand = async (output, context) => {
|
|
|
6056
3395
|
Object.assign(contents, doc);
|
|
6057
3396
|
return contents;
|
|
6058
3397
|
};
|
|
6059
|
-
const de_UpdateIntentCommandError = async (output, context) => {
|
|
6060
|
-
const parsedOutput = {
|
|
6061
|
-
...output,
|
|
6062
|
-
body: await parseErrorBody(output.body, context),
|
|
6063
|
-
};
|
|
6064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6065
|
-
switch (errorCode) {
|
|
6066
|
-
case "ConflictException":
|
|
6067
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
6068
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6069
|
-
case "InternalServerException":
|
|
6070
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
6071
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6072
|
-
case "PreconditionFailedException":
|
|
6073
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
6074
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
6075
|
-
case "ServiceQuotaExceededException":
|
|
6076
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
6077
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
6078
|
-
case "ThrottlingException":
|
|
6079
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
6080
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6081
|
-
case "ValidationException":
|
|
6082
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
6083
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6084
|
-
default:
|
|
6085
|
-
const parsedBody = parsedOutput.body;
|
|
6086
|
-
return throwDefaultError({
|
|
6087
|
-
output,
|
|
6088
|
-
parsedBody,
|
|
6089
|
-
errorCode,
|
|
6090
|
-
});
|
|
6091
|
-
}
|
|
6092
|
-
};
|
|
6093
3398
|
export const de_UpdateResourcePolicyCommand = async (output, context) => {
|
|
6094
3399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6095
|
-
return
|
|
3400
|
+
return de_CommandError(output, context);
|
|
6096
3401
|
}
|
|
6097
3402
|
const contents = map({
|
|
6098
3403
|
$metadata: deserializeMetadata(output),
|
|
@@ -6105,43 +3410,9 @@ export const de_UpdateResourcePolicyCommand = async (output, context) => {
|
|
|
6105
3410
|
Object.assign(contents, doc);
|
|
6106
3411
|
return contents;
|
|
6107
3412
|
};
|
|
6108
|
-
const de_UpdateResourcePolicyCommandError = async (output, context) => {
|
|
6109
|
-
const parsedOutput = {
|
|
6110
|
-
...output,
|
|
6111
|
-
body: await parseErrorBody(output.body, context),
|
|
6112
|
-
};
|
|
6113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6114
|
-
switch (errorCode) {
|
|
6115
|
-
case "InternalServerException":
|
|
6116
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
6117
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6118
|
-
case "PreconditionFailedException":
|
|
6119
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
6120
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
6121
|
-
case "ResourceNotFoundException":
|
|
6122
|
-
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
6123
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6124
|
-
case "ServiceQuotaExceededException":
|
|
6125
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
6126
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
6127
|
-
case "ThrottlingException":
|
|
6128
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
6129
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6130
|
-
case "ValidationException":
|
|
6131
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
6132
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6133
|
-
default:
|
|
6134
|
-
const parsedBody = parsedOutput.body;
|
|
6135
|
-
return throwDefaultError({
|
|
6136
|
-
output,
|
|
6137
|
-
parsedBody,
|
|
6138
|
-
errorCode,
|
|
6139
|
-
});
|
|
6140
|
-
}
|
|
6141
|
-
};
|
|
6142
3413
|
export const de_UpdateSlotCommand = async (output, context) => {
|
|
6143
3414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6144
|
-
return
|
|
3415
|
+
return de_CommandError(output, context);
|
|
6145
3416
|
}
|
|
6146
3417
|
const contents = map({
|
|
6147
3418
|
$metadata: deserializeMetadata(output),
|
|
@@ -6166,43 +3437,9 @@ export const de_UpdateSlotCommand = async (output, context) => {
|
|
|
6166
3437
|
Object.assign(contents, doc);
|
|
6167
3438
|
return contents;
|
|
6168
3439
|
};
|
|
6169
|
-
const de_UpdateSlotCommandError = async (output, context) => {
|
|
6170
|
-
const parsedOutput = {
|
|
6171
|
-
...output,
|
|
6172
|
-
body: await parseErrorBody(output.body, context),
|
|
6173
|
-
};
|
|
6174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6175
|
-
switch (errorCode) {
|
|
6176
|
-
case "ConflictException":
|
|
6177
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
6178
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6179
|
-
case "InternalServerException":
|
|
6180
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
6181
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6182
|
-
case "PreconditionFailedException":
|
|
6183
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
6184
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
6185
|
-
case "ServiceQuotaExceededException":
|
|
6186
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
6187
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
6188
|
-
case "ThrottlingException":
|
|
6189
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
6190
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6191
|
-
case "ValidationException":
|
|
6192
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
6193
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6194
|
-
default:
|
|
6195
|
-
const parsedBody = parsedOutput.body;
|
|
6196
|
-
return throwDefaultError({
|
|
6197
|
-
output,
|
|
6198
|
-
parsedBody,
|
|
6199
|
-
errorCode,
|
|
6200
|
-
});
|
|
6201
|
-
}
|
|
6202
|
-
};
|
|
6203
3440
|
export const de_UpdateSlotTypeCommand = async (output, context) => {
|
|
6204
3441
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
6205
|
-
return
|
|
3442
|
+
return de_CommandError(output, context);
|
|
6206
3443
|
}
|
|
6207
3444
|
const contents = map({
|
|
6208
3445
|
$metadata: deserializeMetadata(output),
|
|
@@ -6226,43 +3463,9 @@ export const de_UpdateSlotTypeCommand = async (output, context) => {
|
|
|
6226
3463
|
Object.assign(contents, doc);
|
|
6227
3464
|
return contents;
|
|
6228
3465
|
};
|
|
6229
|
-
const de_UpdateSlotTypeCommandError = async (output, context) => {
|
|
6230
|
-
const parsedOutput = {
|
|
6231
|
-
...output,
|
|
6232
|
-
body: await parseErrorBody(output.body, context),
|
|
6233
|
-
};
|
|
6234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6235
|
-
switch (errorCode) {
|
|
6236
|
-
case "ConflictException":
|
|
6237
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
6238
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6239
|
-
case "InternalServerException":
|
|
6240
|
-
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
6241
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6242
|
-
case "PreconditionFailedException":
|
|
6243
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
6244
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
6245
|
-
case "ServiceQuotaExceededException":
|
|
6246
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
6247
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
6248
|
-
case "ThrottlingException":
|
|
6249
|
-
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
6250
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6251
|
-
case "ValidationException":
|
|
6252
|
-
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
6253
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6254
|
-
default:
|
|
6255
|
-
const parsedBody = parsedOutput.body;
|
|
6256
|
-
return throwDefaultError({
|
|
6257
|
-
output,
|
|
6258
|
-
parsedBody,
|
|
6259
|
-
errorCode,
|
|
6260
|
-
});
|
|
6261
|
-
}
|
|
6262
|
-
};
|
|
6263
3466
|
export const de_UpdateTestSetCommand = async (output, context) => {
|
|
6264
3467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6265
|
-
return
|
|
3468
|
+
return de_CommandError(output, context);
|
|
6266
3469
|
}
|
|
6267
3470
|
const contents = map({
|
|
6268
3471
|
$metadata: deserializeMetadata(output),
|
|
@@ -6283,22 +3486,19 @@ export const de_UpdateTestSetCommand = async (output, context) => {
|
|
|
6283
3486
|
Object.assign(contents, doc);
|
|
6284
3487
|
return contents;
|
|
6285
3488
|
};
|
|
6286
|
-
const
|
|
3489
|
+
const de_CommandError = async (output, context) => {
|
|
6287
3490
|
const parsedOutput = {
|
|
6288
3491
|
...output,
|
|
6289
3492
|
body: await parseErrorBody(output.body, context),
|
|
6290
3493
|
};
|
|
6291
3494
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6292
3495
|
switch (errorCode) {
|
|
6293
|
-
case "ConflictException":
|
|
6294
|
-
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
6295
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6296
3496
|
case "InternalServerException":
|
|
6297
3497
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
6298
3498
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6299
|
-
case "
|
|
6300
|
-
case "com.amazonaws.lexmodelsv2#
|
|
6301
|
-
throw await
|
|
3499
|
+
case "ResourceNotFoundException":
|
|
3500
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3501
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6302
3502
|
case "ServiceQuotaExceededException":
|
|
6303
3503
|
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
6304
3504
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -6308,6 +3508,12 @@ const de_UpdateTestSetCommandError = async (output, context) => {
|
|
|
6308
3508
|
case "ValidationException":
|
|
6309
3509
|
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
6310
3510
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3511
|
+
case "ConflictException":
|
|
3512
|
+
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
3513
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3514
|
+
case "PreconditionFailedException":
|
|
3515
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
3516
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
6311
3517
|
default:
|
|
6312
3518
|
const parsedBody = parsedOutput.body;
|
|
6313
3519
|
return throwDefaultError({
|
|
@@ -6815,6 +4021,24 @@ const de_BotAliasHistoryEventsList = (output, context) => {
|
|
|
6815
4021
|
});
|
|
6816
4022
|
return retVal;
|
|
6817
4023
|
};
|
|
4024
|
+
const de_BotAliasReplicaSummary = (output, context) => {
|
|
4025
|
+
return take(output, {
|
|
4026
|
+
botAliasId: __expectString,
|
|
4027
|
+
botAliasReplicationStatus: __expectString,
|
|
4028
|
+
botVersion: __expectString,
|
|
4029
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4030
|
+
failureReasons: _json,
|
|
4031
|
+
lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4032
|
+
});
|
|
4033
|
+
};
|
|
4034
|
+
const de_BotAliasReplicaSummaryList = (output, context) => {
|
|
4035
|
+
const retVal = (output || [])
|
|
4036
|
+
.filter((e) => e != null)
|
|
4037
|
+
.map((entry) => {
|
|
4038
|
+
return de_BotAliasReplicaSummary(entry, context);
|
|
4039
|
+
});
|
|
4040
|
+
return retVal;
|
|
4041
|
+
};
|
|
6818
4042
|
const de_BotAliasSummary = (output, context) => {
|
|
6819
4043
|
return take(output, {
|
|
6820
4044
|
botAliasId: __expectString,
|
|
@@ -6891,6 +4115,22 @@ const de_BotRecommendationSummaryList = (output, context) => {
|
|
|
6891
4115
|
});
|
|
6892
4116
|
return retVal;
|
|
6893
4117
|
};
|
|
4118
|
+
const de_BotReplicaSummary = (output, context) => {
|
|
4119
|
+
return take(output, {
|
|
4120
|
+
botReplicaStatus: __expectString,
|
|
4121
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4122
|
+
failureReasons: _json,
|
|
4123
|
+
replicaRegion: __expectString,
|
|
4124
|
+
});
|
|
4125
|
+
};
|
|
4126
|
+
const de_BotReplicaSummaryList = (output, context) => {
|
|
4127
|
+
const retVal = (output || [])
|
|
4128
|
+
.filter((e) => e != null)
|
|
4129
|
+
.map((entry) => {
|
|
4130
|
+
return de_BotReplicaSummary(entry, context);
|
|
4131
|
+
});
|
|
4132
|
+
return retVal;
|
|
4133
|
+
};
|
|
6894
4134
|
const de_BotSummary = (output, context) => {
|
|
6895
4135
|
return take(output, {
|
|
6896
4136
|
botId: __expectString,
|
|
@@ -6910,6 +4150,22 @@ const de_BotSummaryList = (output, context) => {
|
|
|
6910
4150
|
});
|
|
6911
4151
|
return retVal;
|
|
6912
4152
|
};
|
|
4153
|
+
const de_BotVersionReplicaSummary = (output, context) => {
|
|
4154
|
+
return take(output, {
|
|
4155
|
+
botVersion: __expectString,
|
|
4156
|
+
botVersionReplicationStatus: __expectString,
|
|
4157
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4158
|
+
failureReasons: _json,
|
|
4159
|
+
});
|
|
4160
|
+
};
|
|
4161
|
+
const de_BotVersionReplicaSummaryList = (output, context) => {
|
|
4162
|
+
const retVal = (output || [])
|
|
4163
|
+
.filter((e) => e != null)
|
|
4164
|
+
.map((entry) => {
|
|
4165
|
+
return de_BotVersionReplicaSummary(entry, context);
|
|
4166
|
+
});
|
|
4167
|
+
return retVal;
|
|
4168
|
+
};
|
|
6913
4169
|
const de_BotVersionSummary = (output, context) => {
|
|
6914
4170
|
return take(output, {
|
|
6915
4171
|
botName: __expectString,
|