update_bot
¶
update_bot(
bot_id: Id,
bot_name: Name,
role_arn: RoleArn,
data_privacy: DataPrivacy,
idle_session_ttl_in_seconds: SessionTTL,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = None,
description: Optional[Description] = None,
bot_type: Optional[BotType] = None,
bot_members: Optional[BotMembers] = None,
error_log_settings: Optional[ErrorLogSettings] = None,
) -> UpdateBotResponse
Updates the configuration of an existing bot.
Parameters:
-
bot_id(Id) –The unique identifier of the bot to update. This identifier is returned by the CreateBot operation.
-
bot_name(Name) –The new name of the bot. The name must be unique in the account that creates the bot.
-
description(Optional[Description], default:None) –A description of the bot.
-
role_arn(RoleArn) –The Amazon Resource Name (ARN) of an IAM role that has permissions to access the bot.
-
data_privacy(DataPrivacy) –Provides information on additional privacy protections Amazon Lex should use with the bot's data.
-
idle_session_ttl_in_seconds(SessionTTL) –The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.
You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
-
bot_type(Optional[BotType], default:None) –The type of the bot to be updated.
-
bot_members(Optional[BotMembers], default:None) –The list of bot members in the network associated with the update action.
-
error_log_settings(Optional[ErrorLogSettings], default:None) –Allows you to modify how Amazon Lex logs errors during bot interactions, including destinations for error logs and the types of errors to be captured.
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
7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 | |