update_bot
async
¶
update_bot(
bot_id: Id,
bot_name: Name,
role_arn: RoleArn,
data_privacy: DataPrivacy,
idle_session_ttl_in_seconds: SessionTTL,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = 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/async_lex_models_v2.py
7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 | |