start_test_execution
async
¶
start_test_execution(
test_set_id: Id,
target: TestExecutionTarget,
api_mode: TestExecutionApiMode,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
test_execution_modality: Optional[TestExecutionModality] = None,
) -> StartTestExecutionResponse
The action to start test set execution.
Parameters:
-
test_set_id(Id) –The test set Id for the test set execution.
-
target(TestExecutionTarget) –The target bot for the test set execution.
-
api_mode(TestExecutionApiMode) –Indicates whether we use streaming or non-streaming APIs for the test set execution. For streaming, StartConversation Runtime API is used. Whereas, for non-streaming, RecognizeUtterance and RecognizeText Amazon Lex Runtime API are used.
-
test_execution_modality(Optional[TestExecutionModality], default:None) –Indicates whether audio or text is used.
Raises:
-
ConflictException–The action that you tried to perform couldn't be completed because the resource is in a conflicting state. For example, deleting a bot that is in the CREATING state. Try your request again.
-
InternalServerException–The service encountered an unexpected condition. Try your request again.
-
ResourceNotFoundException–You asked to describe a resource that doesn't exist. Check the resource that you are requesting and try again.
-
ServiceQuotaExceededException–You have reached a quota for your bot.
-
ThrottlingException–Your request rate is too high. Reduce the frequency of requests.
-
ValidationException–One of the input parameters in your request isn't valid. Check the parameters and try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lex_models_v2/_services/async_lex_models_v2.py
7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 | |