@aws-sdk/client-lex-models-v2 3.975.0 → 3.980.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/dist-cjs/index.js +247 -207
- package/dist-es/LexModelsV2.js +77 -1
- package/dist-types/LexModelsV2.d.ts +246 -1
- package/dist-types/ts3.4/LexModelsV2.d.ts +275 -1
- package/package.json +18 -18
package/dist-cjs/index.js
CHANGED
|
@@ -5649,114 +5649,6 @@ class UpdateTestSetCommand extends smithyClient.Command
|
|
|
5649
5649
|
.build() {
|
|
5650
5650
|
}
|
|
5651
5651
|
|
|
5652
|
-
const commands = {
|
|
5653
|
-
BatchCreateCustomVocabularyItemCommand,
|
|
5654
|
-
BatchDeleteCustomVocabularyItemCommand,
|
|
5655
|
-
BatchUpdateCustomVocabularyItemCommand,
|
|
5656
|
-
BuildBotLocaleCommand,
|
|
5657
|
-
CreateBotCommand,
|
|
5658
|
-
CreateBotAliasCommand,
|
|
5659
|
-
CreateBotLocaleCommand,
|
|
5660
|
-
CreateBotReplicaCommand,
|
|
5661
|
-
CreateBotVersionCommand,
|
|
5662
|
-
CreateExportCommand,
|
|
5663
|
-
CreateIntentCommand,
|
|
5664
|
-
CreateResourcePolicyCommand,
|
|
5665
|
-
CreateResourcePolicyStatementCommand,
|
|
5666
|
-
CreateSlotCommand,
|
|
5667
|
-
CreateSlotTypeCommand,
|
|
5668
|
-
CreateTestSetDiscrepancyReportCommand,
|
|
5669
|
-
CreateUploadUrlCommand,
|
|
5670
|
-
DeleteBotCommand,
|
|
5671
|
-
DeleteBotAliasCommand,
|
|
5672
|
-
DeleteBotLocaleCommand,
|
|
5673
|
-
DeleteBotReplicaCommand,
|
|
5674
|
-
DeleteBotVersionCommand,
|
|
5675
|
-
DeleteCustomVocabularyCommand,
|
|
5676
|
-
DeleteExportCommand,
|
|
5677
|
-
DeleteImportCommand,
|
|
5678
|
-
DeleteIntentCommand,
|
|
5679
|
-
DeleteResourcePolicyCommand,
|
|
5680
|
-
DeleteResourcePolicyStatementCommand,
|
|
5681
|
-
DeleteSlotCommand,
|
|
5682
|
-
DeleteSlotTypeCommand,
|
|
5683
|
-
DeleteTestSetCommand,
|
|
5684
|
-
DeleteUtterancesCommand,
|
|
5685
|
-
DescribeBotCommand,
|
|
5686
|
-
DescribeBotAliasCommand,
|
|
5687
|
-
DescribeBotLocaleCommand,
|
|
5688
|
-
DescribeBotRecommendationCommand,
|
|
5689
|
-
DescribeBotReplicaCommand,
|
|
5690
|
-
DescribeBotResourceGenerationCommand,
|
|
5691
|
-
DescribeBotVersionCommand,
|
|
5692
|
-
DescribeCustomVocabularyMetadataCommand,
|
|
5693
|
-
DescribeExportCommand,
|
|
5694
|
-
DescribeImportCommand,
|
|
5695
|
-
DescribeIntentCommand,
|
|
5696
|
-
DescribeResourcePolicyCommand,
|
|
5697
|
-
DescribeSlotCommand,
|
|
5698
|
-
DescribeSlotTypeCommand,
|
|
5699
|
-
DescribeTestExecutionCommand,
|
|
5700
|
-
DescribeTestSetCommand,
|
|
5701
|
-
DescribeTestSetDiscrepancyReportCommand,
|
|
5702
|
-
DescribeTestSetGenerationCommand,
|
|
5703
|
-
GenerateBotElementCommand,
|
|
5704
|
-
GetTestExecutionArtifactsUrlCommand,
|
|
5705
|
-
ListAggregatedUtterancesCommand,
|
|
5706
|
-
ListBotAliasesCommand,
|
|
5707
|
-
ListBotAliasReplicasCommand,
|
|
5708
|
-
ListBotLocalesCommand,
|
|
5709
|
-
ListBotRecommendationsCommand,
|
|
5710
|
-
ListBotReplicasCommand,
|
|
5711
|
-
ListBotResourceGenerationsCommand,
|
|
5712
|
-
ListBotsCommand,
|
|
5713
|
-
ListBotVersionReplicasCommand,
|
|
5714
|
-
ListBotVersionsCommand,
|
|
5715
|
-
ListBuiltInIntentsCommand,
|
|
5716
|
-
ListBuiltInSlotTypesCommand,
|
|
5717
|
-
ListCustomVocabularyItemsCommand,
|
|
5718
|
-
ListExportsCommand,
|
|
5719
|
-
ListImportsCommand,
|
|
5720
|
-
ListIntentMetricsCommand,
|
|
5721
|
-
ListIntentPathsCommand,
|
|
5722
|
-
ListIntentsCommand,
|
|
5723
|
-
ListIntentStageMetricsCommand,
|
|
5724
|
-
ListRecommendedIntentsCommand,
|
|
5725
|
-
ListSessionAnalyticsDataCommand,
|
|
5726
|
-
ListSessionMetricsCommand,
|
|
5727
|
-
ListSlotsCommand,
|
|
5728
|
-
ListSlotTypesCommand,
|
|
5729
|
-
ListTagsForResourceCommand,
|
|
5730
|
-
ListTestExecutionResultItemsCommand,
|
|
5731
|
-
ListTestExecutionsCommand,
|
|
5732
|
-
ListTestSetRecordsCommand,
|
|
5733
|
-
ListTestSetsCommand,
|
|
5734
|
-
ListUtteranceAnalyticsDataCommand,
|
|
5735
|
-
ListUtteranceMetricsCommand,
|
|
5736
|
-
SearchAssociatedTranscriptsCommand,
|
|
5737
|
-
StartBotRecommendationCommand,
|
|
5738
|
-
StartBotResourceGenerationCommand,
|
|
5739
|
-
StartImportCommand,
|
|
5740
|
-
StartTestExecutionCommand,
|
|
5741
|
-
StartTestSetGenerationCommand,
|
|
5742
|
-
StopBotRecommendationCommand,
|
|
5743
|
-
TagResourceCommand,
|
|
5744
|
-
UntagResourceCommand,
|
|
5745
|
-
UpdateBotCommand,
|
|
5746
|
-
UpdateBotAliasCommand,
|
|
5747
|
-
UpdateBotLocaleCommand,
|
|
5748
|
-
UpdateBotRecommendationCommand,
|
|
5749
|
-
UpdateExportCommand,
|
|
5750
|
-
UpdateIntentCommand,
|
|
5751
|
-
UpdateResourcePolicyCommand,
|
|
5752
|
-
UpdateSlotCommand,
|
|
5753
|
-
UpdateSlotTypeCommand,
|
|
5754
|
-
UpdateTestSetCommand,
|
|
5755
|
-
};
|
|
5756
|
-
class LexModelsV2 extends LexModelsV2Client {
|
|
5757
|
-
}
|
|
5758
|
-
smithyClient.createAggregatedClient(commands, LexModelsV2);
|
|
5759
|
-
|
|
5760
5652
|
const paginateListAggregatedUtterances = core.createPaginator(LexModelsV2Client, ListAggregatedUtterancesCommand, "nextToken", "nextToken", "maxResults");
|
|
5761
5653
|
|
|
5762
5654
|
const paginateListBotAliases = core.createPaginator(LexModelsV2Client, ListBotAliasesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -5816,11 +5708,11 @@ const paginateListUtteranceMetrics = core.createPaginator(LexModelsV2Client, Lis
|
|
|
5816
5708
|
const checkState$7 = async (client, input) => {
|
|
5817
5709
|
let reason;
|
|
5818
5710
|
try {
|
|
5819
|
-
let result = await client.send(new
|
|
5711
|
+
let result = await client.send(new DescribeBotAliasCommand(input));
|
|
5820
5712
|
reason = result;
|
|
5821
5713
|
try {
|
|
5822
5714
|
const returnComparator = () => {
|
|
5823
|
-
return result.
|
|
5715
|
+
return result.botAliasStatus;
|
|
5824
5716
|
};
|
|
5825
5717
|
if (returnComparator() === "Available") {
|
|
5826
5718
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
@@ -5829,16 +5721,7 @@ const checkState$7 = async (client, input) => {
|
|
|
5829
5721
|
catch (e) { }
|
|
5830
5722
|
try {
|
|
5831
5723
|
const returnComparator = () => {
|
|
5832
|
-
return result.
|
|
5833
|
-
};
|
|
5834
|
-
if (returnComparator() === "Deleting") {
|
|
5835
|
-
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
5836
|
-
}
|
|
5837
|
-
}
|
|
5838
|
-
catch (e) { }
|
|
5839
|
-
try {
|
|
5840
|
-
const returnComparator = () => {
|
|
5841
|
-
return result.botStatus;
|
|
5724
|
+
return result.botAliasStatus;
|
|
5842
5725
|
};
|
|
5843
5726
|
if (returnComparator() === "Failed") {
|
|
5844
5727
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
@@ -5847,9 +5730,9 @@ const checkState$7 = async (client, input) => {
|
|
|
5847
5730
|
catch (e) { }
|
|
5848
5731
|
try {
|
|
5849
5732
|
const returnComparator = () => {
|
|
5850
|
-
return result.
|
|
5733
|
+
return result.botAliasStatus;
|
|
5851
5734
|
};
|
|
5852
|
-
if (returnComparator() === "
|
|
5735
|
+
if (returnComparator() === "Deleting") {
|
|
5853
5736
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
5854
5737
|
}
|
|
5855
5738
|
}
|
|
@@ -5860,11 +5743,11 @@ const checkState$7 = async (client, input) => {
|
|
|
5860
5743
|
}
|
|
5861
5744
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
5862
5745
|
};
|
|
5863
|
-
const
|
|
5746
|
+
const waitForBotAliasAvailable = async (params, input) => {
|
|
5864
5747
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
5865
5748
|
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$7);
|
|
5866
5749
|
};
|
|
5867
|
-
const
|
|
5750
|
+
const waitUntilBotAliasAvailable = async (params, input) => {
|
|
5868
5751
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
5869
5752
|
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$7);
|
|
5870
5753
|
return utilWaiter.checkExceptions(result);
|
|
@@ -5873,11 +5756,11 @@ const waitUntilBotAvailable = async (params, input) => {
|
|
|
5873
5756
|
const checkState$6 = async (client, input) => {
|
|
5874
5757
|
let reason;
|
|
5875
5758
|
try {
|
|
5876
|
-
let result = await client.send(new
|
|
5759
|
+
let result = await client.send(new DescribeBotCommand(input));
|
|
5877
5760
|
reason = result;
|
|
5878
5761
|
try {
|
|
5879
5762
|
const returnComparator = () => {
|
|
5880
|
-
return result.
|
|
5763
|
+
return result.botStatus;
|
|
5881
5764
|
};
|
|
5882
5765
|
if (returnComparator() === "Available") {
|
|
5883
5766
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
@@ -5886,7 +5769,16 @@ const checkState$6 = async (client, input) => {
|
|
|
5886
5769
|
catch (e) { }
|
|
5887
5770
|
try {
|
|
5888
5771
|
const returnComparator = () => {
|
|
5889
|
-
return result.
|
|
5772
|
+
return result.botStatus;
|
|
5773
|
+
};
|
|
5774
|
+
if (returnComparator() === "Deleting") {
|
|
5775
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
5776
|
+
}
|
|
5777
|
+
}
|
|
5778
|
+
catch (e) { }
|
|
5779
|
+
try {
|
|
5780
|
+
const returnComparator = () => {
|
|
5781
|
+
return result.botStatus;
|
|
5890
5782
|
};
|
|
5891
5783
|
if (returnComparator() === "Failed") {
|
|
5892
5784
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
@@ -5895,9 +5787,9 @@ const checkState$6 = async (client, input) => {
|
|
|
5895
5787
|
catch (e) { }
|
|
5896
5788
|
try {
|
|
5897
5789
|
const returnComparator = () => {
|
|
5898
|
-
return result.
|
|
5790
|
+
return result.botStatus;
|
|
5899
5791
|
};
|
|
5900
|
-
if (returnComparator() === "
|
|
5792
|
+
if (returnComparator() === "Inactive") {
|
|
5901
5793
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
5902
5794
|
}
|
|
5903
5795
|
}
|
|
@@ -5908,11 +5800,11 @@ const checkState$6 = async (client, input) => {
|
|
|
5908
5800
|
}
|
|
5909
5801
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
5910
5802
|
};
|
|
5911
|
-
const
|
|
5803
|
+
const waitForBotAvailable = async (params, input) => {
|
|
5912
5804
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
5913
5805
|
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$6);
|
|
5914
5806
|
};
|
|
5915
|
-
const
|
|
5807
|
+
const waitUntilBotAvailable = async (params, input) => {
|
|
5916
5808
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
5917
5809
|
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$6);
|
|
5918
5810
|
return utilWaiter.checkExceptions(result);
|
|
@@ -5921,20 +5813,20 @@ const waitUntilBotAliasAvailable = async (params, input) => {
|
|
|
5921
5813
|
const checkState$5 = async (client, input) => {
|
|
5922
5814
|
let reason;
|
|
5923
5815
|
try {
|
|
5924
|
-
let result = await client.send(new
|
|
5816
|
+
let result = await client.send(new DescribeExportCommand(input));
|
|
5925
5817
|
reason = result;
|
|
5926
5818
|
try {
|
|
5927
5819
|
const returnComparator = () => {
|
|
5928
|
-
return result.
|
|
5820
|
+
return result.exportStatus;
|
|
5929
5821
|
};
|
|
5930
|
-
if (returnComparator() === "
|
|
5822
|
+
if (returnComparator() === "Completed") {
|
|
5931
5823
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
5932
5824
|
}
|
|
5933
5825
|
}
|
|
5934
5826
|
catch (e) { }
|
|
5935
5827
|
try {
|
|
5936
5828
|
const returnComparator = () => {
|
|
5937
|
-
return result.
|
|
5829
|
+
return result.exportStatus;
|
|
5938
5830
|
};
|
|
5939
5831
|
if (returnComparator() === "Deleting") {
|
|
5940
5832
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
@@ -5943,33 +5835,24 @@ const checkState$5 = async (client, input) => {
|
|
|
5943
5835
|
catch (e) { }
|
|
5944
5836
|
try {
|
|
5945
5837
|
const returnComparator = () => {
|
|
5946
|
-
return result.
|
|
5838
|
+
return result.exportStatus;
|
|
5947
5839
|
};
|
|
5948
5840
|
if (returnComparator() === "Failed") {
|
|
5949
5841
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
5950
5842
|
}
|
|
5951
5843
|
}
|
|
5952
5844
|
catch (e) { }
|
|
5953
|
-
try {
|
|
5954
|
-
const returnComparator = () => {
|
|
5955
|
-
return result.botLocaleStatus;
|
|
5956
|
-
};
|
|
5957
|
-
if (returnComparator() === "NotBuilt") {
|
|
5958
|
-
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
5959
|
-
}
|
|
5960
|
-
}
|
|
5961
|
-
catch (e) { }
|
|
5962
5845
|
}
|
|
5963
5846
|
catch (exception) {
|
|
5964
5847
|
reason = exception;
|
|
5965
5848
|
}
|
|
5966
5849
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
5967
5850
|
};
|
|
5968
|
-
const
|
|
5851
|
+
const waitForBotExportCompleted = async (params, input) => {
|
|
5969
5852
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
5970
5853
|
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
5971
5854
|
};
|
|
5972
|
-
const
|
|
5855
|
+
const waitUntilBotExportCompleted = async (params, input) => {
|
|
5973
5856
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
5974
5857
|
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
5975
5858
|
return utilWaiter.checkExceptions(result);
|
|
@@ -5978,38 +5861,20 @@ const waitUntilBotLocaleBuilt = async (params, input) => {
|
|
|
5978
5861
|
const checkState$4 = async (client, input) => {
|
|
5979
5862
|
let reason;
|
|
5980
5863
|
try {
|
|
5981
|
-
let result = await client.send(new
|
|
5864
|
+
let result = await client.send(new DescribeImportCommand(input));
|
|
5982
5865
|
reason = result;
|
|
5983
5866
|
try {
|
|
5984
5867
|
const returnComparator = () => {
|
|
5985
|
-
return result.
|
|
5986
|
-
};
|
|
5987
|
-
if (returnComparator() === "Built") {
|
|
5988
|
-
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
5989
|
-
}
|
|
5990
|
-
}
|
|
5991
|
-
catch (e) { }
|
|
5992
|
-
try {
|
|
5993
|
-
const returnComparator = () => {
|
|
5994
|
-
return result.botLocaleStatus;
|
|
5995
|
-
};
|
|
5996
|
-
if (returnComparator() === "ReadyExpressTesting") {
|
|
5997
|
-
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
5998
|
-
}
|
|
5999
|
-
}
|
|
6000
|
-
catch (e) { }
|
|
6001
|
-
try {
|
|
6002
|
-
const returnComparator = () => {
|
|
6003
|
-
return result.botLocaleStatus;
|
|
5868
|
+
return result.importStatus;
|
|
6004
5869
|
};
|
|
6005
|
-
if (returnComparator() === "
|
|
5870
|
+
if (returnComparator() === "Completed") {
|
|
6006
5871
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
6007
5872
|
}
|
|
6008
5873
|
}
|
|
6009
5874
|
catch (e) { }
|
|
6010
5875
|
try {
|
|
6011
5876
|
const returnComparator = () => {
|
|
6012
|
-
return result.
|
|
5877
|
+
return result.importStatus;
|
|
6013
5878
|
};
|
|
6014
5879
|
if (returnComparator() === "Deleting") {
|
|
6015
5880
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
@@ -6018,7 +5883,7 @@ const checkState$4 = async (client, input) => {
|
|
|
6018
5883
|
catch (e) { }
|
|
6019
5884
|
try {
|
|
6020
5885
|
const returnComparator = () => {
|
|
6021
|
-
return result.
|
|
5886
|
+
return result.importStatus;
|
|
6022
5887
|
};
|
|
6023
5888
|
if (returnComparator() === "Failed") {
|
|
6024
5889
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
@@ -6031,11 +5896,11 @@ const checkState$4 = async (client, input) => {
|
|
|
6031
5896
|
}
|
|
6032
5897
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
6033
5898
|
};
|
|
6034
|
-
const
|
|
5899
|
+
const waitForBotImportCompleted = async (params, input) => {
|
|
6035
5900
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
6036
5901
|
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
6037
5902
|
};
|
|
6038
|
-
const
|
|
5903
|
+
const waitUntilBotImportCompleted = async (params, input) => {
|
|
6039
5904
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
6040
5905
|
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
6041
5906
|
return utilWaiter.checkExceptions(result);
|
|
@@ -6055,15 +5920,6 @@ const checkState$3 = async (client, input) => {
|
|
|
6055
5920
|
}
|
|
6056
5921
|
}
|
|
6057
5922
|
catch (e) { }
|
|
6058
|
-
try {
|
|
6059
|
-
const returnComparator = () => {
|
|
6060
|
-
return result.botLocaleStatus;
|
|
6061
|
-
};
|
|
6062
|
-
if (returnComparator() === "ReadyExpressTesting") {
|
|
6063
|
-
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
6064
|
-
}
|
|
6065
|
-
}
|
|
6066
|
-
catch (e) { }
|
|
6067
5923
|
try {
|
|
6068
5924
|
const returnComparator = () => {
|
|
6069
5925
|
return result.botLocaleStatus;
|
|
@@ -6097,11 +5953,11 @@ const checkState$3 = async (client, input) => {
|
|
|
6097
5953
|
}
|
|
6098
5954
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
6099
5955
|
};
|
|
6100
|
-
const
|
|
5956
|
+
const waitForBotLocaleBuilt = async (params, input) => {
|
|
6101
5957
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
6102
5958
|
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
6103
5959
|
};
|
|
6104
|
-
const
|
|
5960
|
+
const waitUntilBotLocaleBuilt = async (params, input) => {
|
|
6105
5961
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
6106
5962
|
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
6107
5963
|
return utilWaiter.checkExceptions(result);
|
|
@@ -6110,20 +5966,38 @@ const waitUntilBotLocaleExpressTestingAvailable = async (params, input) => {
|
|
|
6110
5966
|
const checkState$2 = async (client, input) => {
|
|
6111
5967
|
let reason;
|
|
6112
5968
|
try {
|
|
6113
|
-
let result = await client.send(new
|
|
5969
|
+
let result = await client.send(new DescribeBotLocaleCommand(input));
|
|
6114
5970
|
reason = result;
|
|
6115
5971
|
try {
|
|
6116
5972
|
const returnComparator = () => {
|
|
6117
|
-
return result.
|
|
5973
|
+
return result.botLocaleStatus;
|
|
6118
5974
|
};
|
|
6119
|
-
if (returnComparator() === "
|
|
5975
|
+
if (returnComparator() === "Built") {
|
|
6120
5976
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
6121
5977
|
}
|
|
6122
5978
|
}
|
|
6123
5979
|
catch (e) { }
|
|
6124
5980
|
try {
|
|
6125
5981
|
const returnComparator = () => {
|
|
6126
|
-
return result.
|
|
5982
|
+
return result.botLocaleStatus;
|
|
5983
|
+
};
|
|
5984
|
+
if (returnComparator() === "ReadyExpressTesting") {
|
|
5985
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
5986
|
+
}
|
|
5987
|
+
}
|
|
5988
|
+
catch (e) { }
|
|
5989
|
+
try {
|
|
5990
|
+
const returnComparator = () => {
|
|
5991
|
+
return result.botLocaleStatus;
|
|
5992
|
+
};
|
|
5993
|
+
if (returnComparator() === "NotBuilt") {
|
|
5994
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
5995
|
+
}
|
|
5996
|
+
}
|
|
5997
|
+
catch (e) { }
|
|
5998
|
+
try {
|
|
5999
|
+
const returnComparator = () => {
|
|
6000
|
+
return result.botLocaleStatus;
|
|
6127
6001
|
};
|
|
6128
6002
|
if (returnComparator() === "Deleting") {
|
|
6129
6003
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
@@ -6132,7 +6006,7 @@ const checkState$2 = async (client, input) => {
|
|
|
6132
6006
|
catch (e) { }
|
|
6133
6007
|
try {
|
|
6134
6008
|
const returnComparator = () => {
|
|
6135
|
-
return result.
|
|
6009
|
+
return result.botLocaleStatus;
|
|
6136
6010
|
};
|
|
6137
6011
|
if (returnComparator() === "Failed") {
|
|
6138
6012
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
@@ -6142,17 +6016,14 @@ const checkState$2 = async (client, input) => {
|
|
|
6142
6016
|
}
|
|
6143
6017
|
catch (exception) {
|
|
6144
6018
|
reason = exception;
|
|
6145
|
-
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
6146
|
-
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
6147
|
-
}
|
|
6148
6019
|
}
|
|
6149
6020
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
6150
6021
|
};
|
|
6151
|
-
const
|
|
6022
|
+
const waitForBotLocaleCreated = async (params, input) => {
|
|
6152
6023
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
6153
6024
|
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
6154
6025
|
};
|
|
6155
|
-
const
|
|
6026
|
+
const waitUntilBotLocaleCreated = async (params, input) => {
|
|
6156
6027
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
6157
6028
|
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
6158
6029
|
return utilWaiter.checkExceptions(result);
|
|
@@ -6161,20 +6032,29 @@ const waitUntilBotVersionAvailable = async (params, input) => {
|
|
|
6161
6032
|
const checkState$1 = async (client, input) => {
|
|
6162
6033
|
let reason;
|
|
6163
6034
|
try {
|
|
6164
|
-
let result = await client.send(new
|
|
6035
|
+
let result = await client.send(new DescribeBotLocaleCommand(input));
|
|
6165
6036
|
reason = result;
|
|
6166
6037
|
try {
|
|
6167
6038
|
const returnComparator = () => {
|
|
6168
|
-
return result.
|
|
6039
|
+
return result.botLocaleStatus;
|
|
6169
6040
|
};
|
|
6170
|
-
if (returnComparator() === "
|
|
6041
|
+
if (returnComparator() === "Built") {
|
|
6171
6042
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
6172
6043
|
}
|
|
6173
6044
|
}
|
|
6174
6045
|
catch (e) { }
|
|
6175
6046
|
try {
|
|
6176
6047
|
const returnComparator = () => {
|
|
6177
|
-
return result.
|
|
6048
|
+
return result.botLocaleStatus;
|
|
6049
|
+
};
|
|
6050
|
+
if (returnComparator() === "ReadyExpressTesting") {
|
|
6051
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
6052
|
+
}
|
|
6053
|
+
}
|
|
6054
|
+
catch (e) { }
|
|
6055
|
+
try {
|
|
6056
|
+
const returnComparator = () => {
|
|
6057
|
+
return result.botLocaleStatus;
|
|
6178
6058
|
};
|
|
6179
6059
|
if (returnComparator() === "Deleting") {
|
|
6180
6060
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
@@ -6183,24 +6063,33 @@ const checkState$1 = async (client, input) => {
|
|
|
6183
6063
|
catch (e) { }
|
|
6184
6064
|
try {
|
|
6185
6065
|
const returnComparator = () => {
|
|
6186
|
-
return result.
|
|
6066
|
+
return result.botLocaleStatus;
|
|
6187
6067
|
};
|
|
6188
6068
|
if (returnComparator() === "Failed") {
|
|
6189
6069
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
6190
6070
|
}
|
|
6191
6071
|
}
|
|
6192
6072
|
catch (e) { }
|
|
6073
|
+
try {
|
|
6074
|
+
const returnComparator = () => {
|
|
6075
|
+
return result.botLocaleStatus;
|
|
6076
|
+
};
|
|
6077
|
+
if (returnComparator() === "NotBuilt") {
|
|
6078
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
6079
|
+
}
|
|
6080
|
+
}
|
|
6081
|
+
catch (e) { }
|
|
6193
6082
|
}
|
|
6194
6083
|
catch (exception) {
|
|
6195
6084
|
reason = exception;
|
|
6196
6085
|
}
|
|
6197
6086
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
6198
6087
|
};
|
|
6199
|
-
const
|
|
6088
|
+
const waitForBotLocaleExpressTestingAvailable = async (params, input) => {
|
|
6200
6089
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
6201
6090
|
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
6202
6091
|
};
|
|
6203
|
-
const
|
|
6092
|
+
const waitUntilBotLocaleExpressTestingAvailable = async (params, input) => {
|
|
6204
6093
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
6205
6094
|
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
6206
6095
|
return utilWaiter.checkExceptions(result);
|
|
@@ -6209,20 +6098,20 @@ const waitUntilBotExportCompleted = async (params, input) => {
|
|
|
6209
6098
|
const checkState = async (client, input) => {
|
|
6210
6099
|
let reason;
|
|
6211
6100
|
try {
|
|
6212
|
-
let result = await client.send(new
|
|
6101
|
+
let result = await client.send(new DescribeBotVersionCommand(input));
|
|
6213
6102
|
reason = result;
|
|
6214
6103
|
try {
|
|
6215
6104
|
const returnComparator = () => {
|
|
6216
|
-
return result.
|
|
6105
|
+
return result.botStatus;
|
|
6217
6106
|
};
|
|
6218
|
-
if (returnComparator() === "
|
|
6107
|
+
if (returnComparator() === "Available") {
|
|
6219
6108
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
6220
6109
|
}
|
|
6221
6110
|
}
|
|
6222
6111
|
catch (e) { }
|
|
6223
6112
|
try {
|
|
6224
6113
|
const returnComparator = () => {
|
|
6225
|
-
return result.
|
|
6114
|
+
return result.botStatus;
|
|
6226
6115
|
};
|
|
6227
6116
|
if (returnComparator() === "Deleting") {
|
|
6228
6117
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
@@ -6231,7 +6120,7 @@ const checkState = async (client, input) => {
|
|
|
6231
6120
|
catch (e) { }
|
|
6232
6121
|
try {
|
|
6233
6122
|
const returnComparator = () => {
|
|
6234
|
-
return result.
|
|
6123
|
+
return result.botStatus;
|
|
6235
6124
|
};
|
|
6236
6125
|
if (returnComparator() === "Failed") {
|
|
6237
6126
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
@@ -6241,19 +6130,170 @@ const checkState = async (client, input) => {
|
|
|
6241
6130
|
}
|
|
6242
6131
|
catch (exception) {
|
|
6243
6132
|
reason = exception;
|
|
6133
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
6134
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
6135
|
+
}
|
|
6244
6136
|
}
|
|
6245
6137
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
6246
6138
|
};
|
|
6247
|
-
const
|
|
6139
|
+
const waitForBotVersionAvailable = async (params, input) => {
|
|
6248
6140
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
6249
6141
|
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
6250
6142
|
};
|
|
6251
|
-
const
|
|
6143
|
+
const waitUntilBotVersionAvailable = async (params, input) => {
|
|
6252
6144
|
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
6253
6145
|
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
6254
6146
|
return utilWaiter.checkExceptions(result);
|
|
6255
6147
|
};
|
|
6256
6148
|
|
|
6149
|
+
const commands = {
|
|
6150
|
+
BatchCreateCustomVocabularyItemCommand,
|
|
6151
|
+
BatchDeleteCustomVocabularyItemCommand,
|
|
6152
|
+
BatchUpdateCustomVocabularyItemCommand,
|
|
6153
|
+
BuildBotLocaleCommand,
|
|
6154
|
+
CreateBotCommand,
|
|
6155
|
+
CreateBotAliasCommand,
|
|
6156
|
+
CreateBotLocaleCommand,
|
|
6157
|
+
CreateBotReplicaCommand,
|
|
6158
|
+
CreateBotVersionCommand,
|
|
6159
|
+
CreateExportCommand,
|
|
6160
|
+
CreateIntentCommand,
|
|
6161
|
+
CreateResourcePolicyCommand,
|
|
6162
|
+
CreateResourcePolicyStatementCommand,
|
|
6163
|
+
CreateSlotCommand,
|
|
6164
|
+
CreateSlotTypeCommand,
|
|
6165
|
+
CreateTestSetDiscrepancyReportCommand,
|
|
6166
|
+
CreateUploadUrlCommand,
|
|
6167
|
+
DeleteBotCommand,
|
|
6168
|
+
DeleteBotAliasCommand,
|
|
6169
|
+
DeleteBotLocaleCommand,
|
|
6170
|
+
DeleteBotReplicaCommand,
|
|
6171
|
+
DeleteBotVersionCommand,
|
|
6172
|
+
DeleteCustomVocabularyCommand,
|
|
6173
|
+
DeleteExportCommand,
|
|
6174
|
+
DeleteImportCommand,
|
|
6175
|
+
DeleteIntentCommand,
|
|
6176
|
+
DeleteResourcePolicyCommand,
|
|
6177
|
+
DeleteResourcePolicyStatementCommand,
|
|
6178
|
+
DeleteSlotCommand,
|
|
6179
|
+
DeleteSlotTypeCommand,
|
|
6180
|
+
DeleteTestSetCommand,
|
|
6181
|
+
DeleteUtterancesCommand,
|
|
6182
|
+
DescribeBotCommand,
|
|
6183
|
+
DescribeBotAliasCommand,
|
|
6184
|
+
DescribeBotLocaleCommand,
|
|
6185
|
+
DescribeBotRecommendationCommand,
|
|
6186
|
+
DescribeBotReplicaCommand,
|
|
6187
|
+
DescribeBotResourceGenerationCommand,
|
|
6188
|
+
DescribeBotVersionCommand,
|
|
6189
|
+
DescribeCustomVocabularyMetadataCommand,
|
|
6190
|
+
DescribeExportCommand,
|
|
6191
|
+
DescribeImportCommand,
|
|
6192
|
+
DescribeIntentCommand,
|
|
6193
|
+
DescribeResourcePolicyCommand,
|
|
6194
|
+
DescribeSlotCommand,
|
|
6195
|
+
DescribeSlotTypeCommand,
|
|
6196
|
+
DescribeTestExecutionCommand,
|
|
6197
|
+
DescribeTestSetCommand,
|
|
6198
|
+
DescribeTestSetDiscrepancyReportCommand,
|
|
6199
|
+
DescribeTestSetGenerationCommand,
|
|
6200
|
+
GenerateBotElementCommand,
|
|
6201
|
+
GetTestExecutionArtifactsUrlCommand,
|
|
6202
|
+
ListAggregatedUtterancesCommand,
|
|
6203
|
+
ListBotAliasesCommand,
|
|
6204
|
+
ListBotAliasReplicasCommand,
|
|
6205
|
+
ListBotLocalesCommand,
|
|
6206
|
+
ListBotRecommendationsCommand,
|
|
6207
|
+
ListBotReplicasCommand,
|
|
6208
|
+
ListBotResourceGenerationsCommand,
|
|
6209
|
+
ListBotsCommand,
|
|
6210
|
+
ListBotVersionReplicasCommand,
|
|
6211
|
+
ListBotVersionsCommand,
|
|
6212
|
+
ListBuiltInIntentsCommand,
|
|
6213
|
+
ListBuiltInSlotTypesCommand,
|
|
6214
|
+
ListCustomVocabularyItemsCommand,
|
|
6215
|
+
ListExportsCommand,
|
|
6216
|
+
ListImportsCommand,
|
|
6217
|
+
ListIntentMetricsCommand,
|
|
6218
|
+
ListIntentPathsCommand,
|
|
6219
|
+
ListIntentsCommand,
|
|
6220
|
+
ListIntentStageMetricsCommand,
|
|
6221
|
+
ListRecommendedIntentsCommand,
|
|
6222
|
+
ListSessionAnalyticsDataCommand,
|
|
6223
|
+
ListSessionMetricsCommand,
|
|
6224
|
+
ListSlotsCommand,
|
|
6225
|
+
ListSlotTypesCommand,
|
|
6226
|
+
ListTagsForResourceCommand,
|
|
6227
|
+
ListTestExecutionResultItemsCommand,
|
|
6228
|
+
ListTestExecutionsCommand,
|
|
6229
|
+
ListTestSetRecordsCommand,
|
|
6230
|
+
ListTestSetsCommand,
|
|
6231
|
+
ListUtteranceAnalyticsDataCommand,
|
|
6232
|
+
ListUtteranceMetricsCommand,
|
|
6233
|
+
SearchAssociatedTranscriptsCommand,
|
|
6234
|
+
StartBotRecommendationCommand,
|
|
6235
|
+
StartBotResourceGenerationCommand,
|
|
6236
|
+
StartImportCommand,
|
|
6237
|
+
StartTestExecutionCommand,
|
|
6238
|
+
StartTestSetGenerationCommand,
|
|
6239
|
+
StopBotRecommendationCommand,
|
|
6240
|
+
TagResourceCommand,
|
|
6241
|
+
UntagResourceCommand,
|
|
6242
|
+
UpdateBotCommand,
|
|
6243
|
+
UpdateBotAliasCommand,
|
|
6244
|
+
UpdateBotLocaleCommand,
|
|
6245
|
+
UpdateBotRecommendationCommand,
|
|
6246
|
+
UpdateExportCommand,
|
|
6247
|
+
UpdateIntentCommand,
|
|
6248
|
+
UpdateResourcePolicyCommand,
|
|
6249
|
+
UpdateSlotCommand,
|
|
6250
|
+
UpdateSlotTypeCommand,
|
|
6251
|
+
UpdateTestSetCommand,
|
|
6252
|
+
};
|
|
6253
|
+
const paginators = {
|
|
6254
|
+
paginateListAggregatedUtterances,
|
|
6255
|
+
paginateListBotAliases,
|
|
6256
|
+
paginateListBotAliasReplicas,
|
|
6257
|
+
paginateListBotLocales,
|
|
6258
|
+
paginateListBotRecommendations,
|
|
6259
|
+
paginateListBotResourceGenerations,
|
|
6260
|
+
paginateListBots,
|
|
6261
|
+
paginateListBotVersionReplicas,
|
|
6262
|
+
paginateListBotVersions,
|
|
6263
|
+
paginateListBuiltInIntents,
|
|
6264
|
+
paginateListBuiltInSlotTypes,
|
|
6265
|
+
paginateListCustomVocabularyItems,
|
|
6266
|
+
paginateListExports,
|
|
6267
|
+
paginateListImports,
|
|
6268
|
+
paginateListIntentMetrics,
|
|
6269
|
+
paginateListIntents,
|
|
6270
|
+
paginateListIntentStageMetrics,
|
|
6271
|
+
paginateListRecommendedIntents,
|
|
6272
|
+
paginateListSessionAnalyticsData,
|
|
6273
|
+
paginateListSessionMetrics,
|
|
6274
|
+
paginateListSlots,
|
|
6275
|
+
paginateListSlotTypes,
|
|
6276
|
+
paginateListTestExecutionResultItems,
|
|
6277
|
+
paginateListTestExecutions,
|
|
6278
|
+
paginateListTestSetRecords,
|
|
6279
|
+
paginateListTestSets,
|
|
6280
|
+
paginateListUtteranceAnalyticsData,
|
|
6281
|
+
paginateListUtteranceMetrics,
|
|
6282
|
+
};
|
|
6283
|
+
const waiters = {
|
|
6284
|
+
waitUntilBotAvailable,
|
|
6285
|
+
waitUntilBotAliasAvailable,
|
|
6286
|
+
waitUntilBotLocaleBuilt,
|
|
6287
|
+
waitUntilBotLocaleCreated,
|
|
6288
|
+
waitUntilBotLocaleExpressTestingAvailable,
|
|
6289
|
+
waitUntilBotVersionAvailable,
|
|
6290
|
+
waitUntilBotExportCompleted,
|
|
6291
|
+
waitUntilBotImportCompleted,
|
|
6292
|
+
};
|
|
6293
|
+
class LexModelsV2 extends LexModelsV2Client {
|
|
6294
|
+
}
|
|
6295
|
+
smithyClient.createAggregatedClient(commands, LexModelsV2, { paginators, waiters });
|
|
6296
|
+
|
|
6257
6297
|
const AudioRecognitionStrategy = {
|
|
6258
6298
|
UseSlotValuesAsCustomVocabulary: "UseSlotValuesAsCustomVocabulary",
|
|
6259
6299
|
};
|