update_slot_type
¶
update_slot_type(
slot_type_id: Id,
slot_type_name: Name,
bot_id: Id,
bot_version: DraftBotVersion,
locale_id: LocaleId,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = 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/lex_models_v2.py
8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 | |