update_slot
async
¶
update_slot(
slot_id: Id,
slot_name: Name,
value_elicitation_setting: SlotValueElicitationSetting,
bot_id: Id,
bot_version: DraftBotVersion,
locale_id: LocaleId,
intent_id: Id,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
description: Optional[Description] = None,
slot_type_id: Optional[BuiltInOrCustomSlotTypeId] = None,
obfuscation_setting: Optional[ObfuscationSetting] = None,
multiple_values_setting: Optional[MultipleValuesSetting] = None,
sub_slot_setting: Optional[SubSlotSetting] = None,
) -> UpdateSlotResponse
Updates the settings for a slot.
Parameters:
-
slot_id(Id) –The unique identifier for the slot to update.
-
slot_name(Name) –The new name for the slot.
-
description(Optional[Description], default:None) –The new description for the slot.
-
slot_type_id(Optional[BuiltInOrCustomSlotTypeId], default:None) –The unique identifier of the new slot type to associate with this slot.
-
value_elicitation_setting(SlotValueElicitationSetting) –A new set of prompts that Amazon Lex sends to the user to elicit a response the provides a value for the slot.
-
obfuscation_setting(Optional[ObfuscationSetting], default:None) –New settings that determine how slot values are formatted in Amazon CloudWatch logs.
-
bot_id(Id) –The unique identifier of the bot that contains the slot.
-
bot_version(DraftBotVersion) –The version of the bot that contains the slot. Must always be
DRAFT. -
locale_id(LocaleId) –The identifier of the language and locale that contains the slot. The string must match one of the supported locales. For more information, see Supported languages.
-
intent_id(Id) –The identifier of the intent that contains the slot.
-
multiple_values_setting(Optional[MultipleValuesSetting], default:None) –Determines whether the slot accepts multiple values in one response. Multiple value slots are only available in the en-US locale. If you set this value to
truein any other locale, Amazon Lex throws aValidationException.If the
multipleValuesSettingis not set, the default value isfalse. -
sub_slot_setting(Optional[SubSlotSetting], default:None) –Specifications for the constituent sub slots and the expression for the composite slot.
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
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 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 | |