update_slot
¶
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[LexModelsV2ClientConfig] = 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/lex_models_v2.py
8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 | |