put_bot_alias
async
¶
put_bot_alias(
name: AliasName,
bot_version: Version,
bot_name: BotName,
*,
config_overrides: Optional[AsyncLexModelBuildingServiceClientConfig] = None,
description: Optional[Description] = None,
checksum: Optional[String] = None,
conversation_logs: Optional[ConversationLogsRequest] = None,
tags: Optional[TagList] = None,
) -> PutBotAliasResponse
Creates an alias for the specified version of the bot or replaces an alias for the specified bot. To change the version of the bot that the alias points to, replace the alias. For more information about aliases, see versioning-aliases.
This operation requires permissions for the lex:PutBotAlias action.
Parameters:
-
name(AliasName) –The name of the alias. The name is not case sensitive.
-
description(Optional[Description], default:None) –A description of the alias.
-
bot_version(Version) –The version of the bot.
-
bot_name(BotName) –The name of the bot.
-
checksum(Optional[String], default:None) –Identifies a specific revision of the
$LATESTversion.When you create a new bot alias, leave the
checksumfield blank. If you specify a checksum you get aBadRequestExceptionexception.When you want to update a bot alias, set the
checksumfield to the checksum of the most recent revision of the$LATESTversion. If you don't specify thechecksumfield, or if the checksum does not match the$LATESTversion, you get aPreconditionFailedExceptionexception. -
conversation_logs(Optional[ConversationLogsRequest], default:None) –Settings for conversation logs for the alias.
-
tags(Optional[TagList], default:None) –A list of tags to add to the bot alias. You can only add tags when you create an alias, you can't use the
PutBotAliasoperation to update the tags on a bot alias. To update tags, use theTagResourceoperation.
Raises:
-
BadRequestException–The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and try again.
-
ConflictException–There was a conflict processing the request. Try your request again.
-
InternalFailureException–An internal Amazon Lex error occurred. Try your request again.
-
LimitExceededException–The request exceeded a limit. Try your request again.
-
PreconditionFailedException–The checksum of the resource that you are trying to change does not match the checksum in the request. Check the resource's checksum and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lex_model_building_service/_services/async_lex_model_building_service.py
2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 | |