@aws-sdk/client-lex-models-v2 3.958.0 → 3.962.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 +38 -38
- package/dist-es/waiters/waitForBotAliasAvailable.js +4 -4
- package/dist-es/waiters/waitForBotAvailable.js +5 -5
- package/dist-es/waiters/waitForBotExportCompleted.js +4 -4
- package/dist-es/waiters/waitForBotImportCompleted.js +4 -4
- package/dist-es/waiters/waitForBotLocaleBuilt.js +5 -5
- package/dist-es/waiters/waitForBotLocaleCreated.js +6 -6
- package/dist-es/waiters/waitForBotLocaleExpressTestingAvailable.js +6 -6
- package/dist-es/waiters/waitForBotVersionAvailable.js +4 -4
- package/package.json +2 -2
package/dist-cjs/index.js
CHANGED
|
@@ -5816,10 +5816,10 @@ const paginateListUtteranceMetrics = core.createPaginator(LexModelsV2Client, Lis
|
|
|
5816
5816
|
const checkState$7 = async (client, input) => {
|
|
5817
5817
|
let reason;
|
|
5818
5818
|
try {
|
|
5819
|
-
|
|
5819
|
+
let result = await client.send(new DescribeBotCommand(input));
|
|
5820
5820
|
reason = result;
|
|
5821
5821
|
try {
|
|
5822
|
-
|
|
5822
|
+
const returnComparator = () => {
|
|
5823
5823
|
return result.botStatus;
|
|
5824
5824
|
};
|
|
5825
5825
|
if (returnComparator() === "Available") {
|
|
@@ -5828,7 +5828,7 @@ const checkState$7 = async (client, input) => {
|
|
|
5828
5828
|
}
|
|
5829
5829
|
catch (e) { }
|
|
5830
5830
|
try {
|
|
5831
|
-
|
|
5831
|
+
const returnComparator = () => {
|
|
5832
5832
|
return result.botStatus;
|
|
5833
5833
|
};
|
|
5834
5834
|
if (returnComparator() === "Deleting") {
|
|
@@ -5837,7 +5837,7 @@ const checkState$7 = async (client, input) => {
|
|
|
5837
5837
|
}
|
|
5838
5838
|
catch (e) { }
|
|
5839
5839
|
try {
|
|
5840
|
-
|
|
5840
|
+
const returnComparator = () => {
|
|
5841
5841
|
return result.botStatus;
|
|
5842
5842
|
};
|
|
5843
5843
|
if (returnComparator() === "Failed") {
|
|
@@ -5846,7 +5846,7 @@ const checkState$7 = async (client, input) => {
|
|
|
5846
5846
|
}
|
|
5847
5847
|
catch (e) { }
|
|
5848
5848
|
try {
|
|
5849
|
-
|
|
5849
|
+
const returnComparator = () => {
|
|
5850
5850
|
return result.botStatus;
|
|
5851
5851
|
};
|
|
5852
5852
|
if (returnComparator() === "Inactive") {
|
|
@@ -5873,10 +5873,10 @@ const waitUntilBotAvailable = async (params, input) => {
|
|
|
5873
5873
|
const checkState$6 = async (client, input) => {
|
|
5874
5874
|
let reason;
|
|
5875
5875
|
try {
|
|
5876
|
-
|
|
5876
|
+
let result = await client.send(new DescribeBotAliasCommand(input));
|
|
5877
5877
|
reason = result;
|
|
5878
5878
|
try {
|
|
5879
|
-
|
|
5879
|
+
const returnComparator = () => {
|
|
5880
5880
|
return result.botAliasStatus;
|
|
5881
5881
|
};
|
|
5882
5882
|
if (returnComparator() === "Available") {
|
|
@@ -5885,7 +5885,7 @@ const checkState$6 = async (client, input) => {
|
|
|
5885
5885
|
}
|
|
5886
5886
|
catch (e) { }
|
|
5887
5887
|
try {
|
|
5888
|
-
|
|
5888
|
+
const returnComparator = () => {
|
|
5889
5889
|
return result.botAliasStatus;
|
|
5890
5890
|
};
|
|
5891
5891
|
if (returnComparator() === "Failed") {
|
|
@@ -5894,7 +5894,7 @@ const checkState$6 = async (client, input) => {
|
|
|
5894
5894
|
}
|
|
5895
5895
|
catch (e) { }
|
|
5896
5896
|
try {
|
|
5897
|
-
|
|
5897
|
+
const returnComparator = () => {
|
|
5898
5898
|
return result.botAliasStatus;
|
|
5899
5899
|
};
|
|
5900
5900
|
if (returnComparator() === "Deleting") {
|
|
@@ -5921,10 +5921,10 @@ const waitUntilBotAliasAvailable = async (params, input) => {
|
|
|
5921
5921
|
const checkState$5 = async (client, input) => {
|
|
5922
5922
|
let reason;
|
|
5923
5923
|
try {
|
|
5924
|
-
|
|
5924
|
+
let result = await client.send(new DescribeBotLocaleCommand(input));
|
|
5925
5925
|
reason = result;
|
|
5926
5926
|
try {
|
|
5927
|
-
|
|
5927
|
+
const returnComparator = () => {
|
|
5928
5928
|
return result.botLocaleStatus;
|
|
5929
5929
|
};
|
|
5930
5930
|
if (returnComparator() === "Built") {
|
|
@@ -5933,7 +5933,7 @@ const checkState$5 = async (client, input) => {
|
|
|
5933
5933
|
}
|
|
5934
5934
|
catch (e) { }
|
|
5935
5935
|
try {
|
|
5936
|
-
|
|
5936
|
+
const returnComparator = () => {
|
|
5937
5937
|
return result.botLocaleStatus;
|
|
5938
5938
|
};
|
|
5939
5939
|
if (returnComparator() === "Deleting") {
|
|
@@ -5942,7 +5942,7 @@ const checkState$5 = async (client, input) => {
|
|
|
5942
5942
|
}
|
|
5943
5943
|
catch (e) { }
|
|
5944
5944
|
try {
|
|
5945
|
-
|
|
5945
|
+
const returnComparator = () => {
|
|
5946
5946
|
return result.botLocaleStatus;
|
|
5947
5947
|
};
|
|
5948
5948
|
if (returnComparator() === "Failed") {
|
|
@@ -5951,7 +5951,7 @@ const checkState$5 = async (client, input) => {
|
|
|
5951
5951
|
}
|
|
5952
5952
|
catch (e) { }
|
|
5953
5953
|
try {
|
|
5954
|
-
|
|
5954
|
+
const returnComparator = () => {
|
|
5955
5955
|
return result.botLocaleStatus;
|
|
5956
5956
|
};
|
|
5957
5957
|
if (returnComparator() === "NotBuilt") {
|
|
@@ -5978,10 +5978,10 @@ const waitUntilBotLocaleBuilt = async (params, input) => {
|
|
|
5978
5978
|
const checkState$4 = async (client, input) => {
|
|
5979
5979
|
let reason;
|
|
5980
5980
|
try {
|
|
5981
|
-
|
|
5981
|
+
let result = await client.send(new DescribeBotLocaleCommand(input));
|
|
5982
5982
|
reason = result;
|
|
5983
5983
|
try {
|
|
5984
|
-
|
|
5984
|
+
const returnComparator = () => {
|
|
5985
5985
|
return result.botLocaleStatus;
|
|
5986
5986
|
};
|
|
5987
5987
|
if (returnComparator() === "Built") {
|
|
@@ -5990,7 +5990,7 @@ const checkState$4 = async (client, input) => {
|
|
|
5990
5990
|
}
|
|
5991
5991
|
catch (e) { }
|
|
5992
5992
|
try {
|
|
5993
|
-
|
|
5993
|
+
const returnComparator = () => {
|
|
5994
5994
|
return result.botLocaleStatus;
|
|
5995
5995
|
};
|
|
5996
5996
|
if (returnComparator() === "ReadyExpressTesting") {
|
|
@@ -5999,7 +5999,7 @@ const checkState$4 = async (client, input) => {
|
|
|
5999
5999
|
}
|
|
6000
6000
|
catch (e) { }
|
|
6001
6001
|
try {
|
|
6002
|
-
|
|
6002
|
+
const returnComparator = () => {
|
|
6003
6003
|
return result.botLocaleStatus;
|
|
6004
6004
|
};
|
|
6005
6005
|
if (returnComparator() === "NotBuilt") {
|
|
@@ -6008,7 +6008,7 @@ const checkState$4 = async (client, input) => {
|
|
|
6008
6008
|
}
|
|
6009
6009
|
catch (e) { }
|
|
6010
6010
|
try {
|
|
6011
|
-
|
|
6011
|
+
const returnComparator = () => {
|
|
6012
6012
|
return result.botLocaleStatus;
|
|
6013
6013
|
};
|
|
6014
6014
|
if (returnComparator() === "Deleting") {
|
|
@@ -6017,7 +6017,7 @@ const checkState$4 = async (client, input) => {
|
|
|
6017
6017
|
}
|
|
6018
6018
|
catch (e) { }
|
|
6019
6019
|
try {
|
|
6020
|
-
|
|
6020
|
+
const returnComparator = () => {
|
|
6021
6021
|
return result.botLocaleStatus;
|
|
6022
6022
|
};
|
|
6023
6023
|
if (returnComparator() === "Failed") {
|
|
@@ -6044,10 +6044,10 @@ const waitUntilBotLocaleCreated = async (params, input) => {
|
|
|
6044
6044
|
const checkState$3 = async (client, input) => {
|
|
6045
6045
|
let reason;
|
|
6046
6046
|
try {
|
|
6047
|
-
|
|
6047
|
+
let result = await client.send(new DescribeBotLocaleCommand(input));
|
|
6048
6048
|
reason = result;
|
|
6049
6049
|
try {
|
|
6050
|
-
|
|
6050
|
+
const returnComparator = () => {
|
|
6051
6051
|
return result.botLocaleStatus;
|
|
6052
6052
|
};
|
|
6053
6053
|
if (returnComparator() === "Built") {
|
|
@@ -6056,7 +6056,7 @@ const checkState$3 = async (client, input) => {
|
|
|
6056
6056
|
}
|
|
6057
6057
|
catch (e) { }
|
|
6058
6058
|
try {
|
|
6059
|
-
|
|
6059
|
+
const returnComparator = () => {
|
|
6060
6060
|
return result.botLocaleStatus;
|
|
6061
6061
|
};
|
|
6062
6062
|
if (returnComparator() === "ReadyExpressTesting") {
|
|
@@ -6065,7 +6065,7 @@ const checkState$3 = async (client, input) => {
|
|
|
6065
6065
|
}
|
|
6066
6066
|
catch (e) { }
|
|
6067
6067
|
try {
|
|
6068
|
-
|
|
6068
|
+
const returnComparator = () => {
|
|
6069
6069
|
return result.botLocaleStatus;
|
|
6070
6070
|
};
|
|
6071
6071
|
if (returnComparator() === "Deleting") {
|
|
@@ -6074,7 +6074,7 @@ const checkState$3 = async (client, input) => {
|
|
|
6074
6074
|
}
|
|
6075
6075
|
catch (e) { }
|
|
6076
6076
|
try {
|
|
6077
|
-
|
|
6077
|
+
const returnComparator = () => {
|
|
6078
6078
|
return result.botLocaleStatus;
|
|
6079
6079
|
};
|
|
6080
6080
|
if (returnComparator() === "Failed") {
|
|
@@ -6083,7 +6083,7 @@ const checkState$3 = async (client, input) => {
|
|
|
6083
6083
|
}
|
|
6084
6084
|
catch (e) { }
|
|
6085
6085
|
try {
|
|
6086
|
-
|
|
6086
|
+
const returnComparator = () => {
|
|
6087
6087
|
return result.botLocaleStatus;
|
|
6088
6088
|
};
|
|
6089
6089
|
if (returnComparator() === "NotBuilt") {
|
|
@@ -6110,10 +6110,10 @@ const waitUntilBotLocaleExpressTestingAvailable = async (params, input) => {
|
|
|
6110
6110
|
const checkState$2 = async (client, input) => {
|
|
6111
6111
|
let reason;
|
|
6112
6112
|
try {
|
|
6113
|
-
|
|
6113
|
+
let result = await client.send(new DescribeBotVersionCommand(input));
|
|
6114
6114
|
reason = result;
|
|
6115
6115
|
try {
|
|
6116
|
-
|
|
6116
|
+
const returnComparator = () => {
|
|
6117
6117
|
return result.botStatus;
|
|
6118
6118
|
};
|
|
6119
6119
|
if (returnComparator() === "Available") {
|
|
@@ -6122,7 +6122,7 @@ const checkState$2 = async (client, input) => {
|
|
|
6122
6122
|
}
|
|
6123
6123
|
catch (e) { }
|
|
6124
6124
|
try {
|
|
6125
|
-
|
|
6125
|
+
const returnComparator = () => {
|
|
6126
6126
|
return result.botStatus;
|
|
6127
6127
|
};
|
|
6128
6128
|
if (returnComparator() === "Deleting") {
|
|
@@ -6131,7 +6131,7 @@ const checkState$2 = async (client, input) => {
|
|
|
6131
6131
|
}
|
|
6132
6132
|
catch (e) { }
|
|
6133
6133
|
try {
|
|
6134
|
-
|
|
6134
|
+
const returnComparator = () => {
|
|
6135
6135
|
return result.botStatus;
|
|
6136
6136
|
};
|
|
6137
6137
|
if (returnComparator() === "Failed") {
|
|
@@ -6161,10 +6161,10 @@ const waitUntilBotVersionAvailable = async (params, input) => {
|
|
|
6161
6161
|
const checkState$1 = async (client, input) => {
|
|
6162
6162
|
let reason;
|
|
6163
6163
|
try {
|
|
6164
|
-
|
|
6164
|
+
let result = await client.send(new DescribeExportCommand(input));
|
|
6165
6165
|
reason = result;
|
|
6166
6166
|
try {
|
|
6167
|
-
|
|
6167
|
+
const returnComparator = () => {
|
|
6168
6168
|
return result.exportStatus;
|
|
6169
6169
|
};
|
|
6170
6170
|
if (returnComparator() === "Completed") {
|
|
@@ -6173,7 +6173,7 @@ const checkState$1 = async (client, input) => {
|
|
|
6173
6173
|
}
|
|
6174
6174
|
catch (e) { }
|
|
6175
6175
|
try {
|
|
6176
|
-
|
|
6176
|
+
const returnComparator = () => {
|
|
6177
6177
|
return result.exportStatus;
|
|
6178
6178
|
};
|
|
6179
6179
|
if (returnComparator() === "Deleting") {
|
|
@@ -6182,7 +6182,7 @@ const checkState$1 = async (client, input) => {
|
|
|
6182
6182
|
}
|
|
6183
6183
|
catch (e) { }
|
|
6184
6184
|
try {
|
|
6185
|
-
|
|
6185
|
+
const returnComparator = () => {
|
|
6186
6186
|
return result.exportStatus;
|
|
6187
6187
|
};
|
|
6188
6188
|
if (returnComparator() === "Failed") {
|
|
@@ -6209,10 +6209,10 @@ const waitUntilBotExportCompleted = async (params, input) => {
|
|
|
6209
6209
|
const checkState = async (client, input) => {
|
|
6210
6210
|
let reason;
|
|
6211
6211
|
try {
|
|
6212
|
-
|
|
6212
|
+
let result = await client.send(new DescribeImportCommand(input));
|
|
6213
6213
|
reason = result;
|
|
6214
6214
|
try {
|
|
6215
|
-
|
|
6215
|
+
const returnComparator = () => {
|
|
6216
6216
|
return result.importStatus;
|
|
6217
6217
|
};
|
|
6218
6218
|
if (returnComparator() === "Completed") {
|
|
@@ -6221,7 +6221,7 @@ const checkState = async (client, input) => {
|
|
|
6221
6221
|
}
|
|
6222
6222
|
catch (e) { }
|
|
6223
6223
|
try {
|
|
6224
|
-
|
|
6224
|
+
const returnComparator = () => {
|
|
6225
6225
|
return result.importStatus;
|
|
6226
6226
|
};
|
|
6227
6227
|
if (returnComparator() === "Deleting") {
|
|
@@ -6230,7 +6230,7 @@ const checkState = async (client, input) => {
|
|
|
6230
6230
|
}
|
|
6231
6231
|
catch (e) { }
|
|
6232
6232
|
try {
|
|
6233
|
-
|
|
6233
|
+
const returnComparator = () => {
|
|
6234
6234
|
return result.importStatus;
|
|
6235
6235
|
};
|
|
6236
6236
|
if (returnComparator() === "Failed") {
|
|
@@ -3,10 +3,10 @@ import { DescribeBotAliasCommand } from "../commands/DescribeBotAliasCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeBotAliasCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.botAliasStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "Available") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.botAliasStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "Failed") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.botAliasStatus;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "Deleting") {
|
|
@@ -3,10 +3,10 @@ import { DescribeBotCommand } from "../commands/DescribeBotCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeBotCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.botStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "Available") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.botStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "Deleting") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.botStatus;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "Failed") {
|
|
@@ -33,7 +33,7 @@ const checkState = async (client, input) => {
|
|
|
33
33
|
}
|
|
34
34
|
catch (e) { }
|
|
35
35
|
try {
|
|
36
|
-
|
|
36
|
+
const returnComparator = () => {
|
|
37
37
|
return result.botStatus;
|
|
38
38
|
};
|
|
39
39
|
if (returnComparator() === "Inactive") {
|
|
@@ -3,10 +3,10 @@ import { DescribeExportCommand } from "../commands/DescribeExportCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeExportCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.exportStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "Completed") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.exportStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "Deleting") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.exportStatus;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "Failed") {
|
|
@@ -3,10 +3,10 @@ import { DescribeImportCommand } from "../commands/DescribeImportCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeImportCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.importStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "Completed") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.importStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "Deleting") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.importStatus;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "Failed") {
|
|
@@ -3,10 +3,10 @@ import { DescribeBotLocaleCommand } from "../commands/DescribeBotLocaleCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeBotLocaleCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.botLocaleStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "Built") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.botLocaleStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "Deleting") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.botLocaleStatus;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "Failed") {
|
|
@@ -33,7 +33,7 @@ const checkState = async (client, input) => {
|
|
|
33
33
|
}
|
|
34
34
|
catch (e) { }
|
|
35
35
|
try {
|
|
36
|
-
|
|
36
|
+
const returnComparator = () => {
|
|
37
37
|
return result.botLocaleStatus;
|
|
38
38
|
};
|
|
39
39
|
if (returnComparator() === "NotBuilt") {
|
|
@@ -3,10 +3,10 @@ import { DescribeBotLocaleCommand } from "../commands/DescribeBotLocaleCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeBotLocaleCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.botLocaleStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "Built") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.botLocaleStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "ReadyExpressTesting") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.botLocaleStatus;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "NotBuilt") {
|
|
@@ -33,7 +33,7 @@ const checkState = async (client, input) => {
|
|
|
33
33
|
}
|
|
34
34
|
catch (e) { }
|
|
35
35
|
try {
|
|
36
|
-
|
|
36
|
+
const returnComparator = () => {
|
|
37
37
|
return result.botLocaleStatus;
|
|
38
38
|
};
|
|
39
39
|
if (returnComparator() === "Deleting") {
|
|
@@ -42,7 +42,7 @@ const checkState = async (client, input) => {
|
|
|
42
42
|
}
|
|
43
43
|
catch (e) { }
|
|
44
44
|
try {
|
|
45
|
-
|
|
45
|
+
const returnComparator = () => {
|
|
46
46
|
return result.botLocaleStatus;
|
|
47
47
|
};
|
|
48
48
|
if (returnComparator() === "Failed") {
|
|
@@ -3,10 +3,10 @@ import { DescribeBotLocaleCommand } from "../commands/DescribeBotLocaleCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeBotLocaleCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.botLocaleStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "Built") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.botLocaleStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "ReadyExpressTesting") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.botLocaleStatus;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "Deleting") {
|
|
@@ -33,7 +33,7 @@ const checkState = async (client, input) => {
|
|
|
33
33
|
}
|
|
34
34
|
catch (e) { }
|
|
35
35
|
try {
|
|
36
|
-
|
|
36
|
+
const returnComparator = () => {
|
|
37
37
|
return result.botLocaleStatus;
|
|
38
38
|
};
|
|
39
39
|
if (returnComparator() === "Failed") {
|
|
@@ -42,7 +42,7 @@ const checkState = async (client, input) => {
|
|
|
42
42
|
}
|
|
43
43
|
catch (e) { }
|
|
44
44
|
try {
|
|
45
|
-
|
|
45
|
+
const returnComparator = () => {
|
|
46
46
|
return result.botLocaleStatus;
|
|
47
47
|
};
|
|
48
48
|
if (returnComparator() === "NotBuilt") {
|
|
@@ -3,10 +3,10 @@ import { DescribeBotVersionCommand } from "../commands/DescribeBotVersionCommand
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeBotVersionCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.botStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "Available") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.botStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "Deleting") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.botStatus;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "Failed") {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-models-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Models V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.962.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-lex-models-v2",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
24
|
"@aws-sdk/core": "3.957.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.962.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.957.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|