update_slot_type
async
¶
update_slot_type(
slot_type_id: Id,
slot_type_name: Name,
bot_id: Id,
bot_version: DraftBotVersion,
locale_id: LocaleId,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
description: Optional[Description] = None,
slot_type_values: Optional[SlotTypeValues] = None,
value_selection_setting: Optional[SlotValueSelectionSetting] = None,
parent_slot_type_signature: Optional[SlotTypeSignature] = None,
external_source_setting: Optional[ExternalSourceSetting] = None,
composite_slot_type_setting: Optional[CompositeSlotTypeSetting] = None,
) -> UpdateSlotTypeResponse
Updates the configuration of an existing slot type.
Parameters:
-
slot_type_id(Id) –The unique identifier of the slot type to update.
-
slot_type_name(Name) –The new name of the slot type.
-
description(Optional[Description], default:None) –The new description of the slot type.
-
slot_type_values(Optional[SlotTypeValues], default:None) –A new list of values and their optional synonyms that define the values that the slot type can take.
-
value_selection_setting(Optional[SlotValueSelectionSetting], default:None) –The strategy that Amazon Lex should use when deciding on a value from the list of slot type values.
-
parent_slot_type_signature(Optional[SlotTypeSignature], default:None) –The new built-in slot type that should be used as the parent of this slot type.
-
bot_id(Id) –The identifier of the bot that contains the slot type.
-
bot_version(DraftBotVersion) –The version of the bot that contains the slot type. Must be
DRAFT. -
locale_id(LocaleId) –The identifier of the language and locale that contains the slot type. The string must match one of the supported locales. For more information, see Supported languages.
-
composite_slot_type_setting(Optional[CompositeSlotTypeSetting], default:None) –Specifications for a composite slot type.
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.
-
PreconditionFailedException–Your request couldn't be completed because one or more request fields aren't valid. Check the fields in your request 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
8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 | |