put_bot_alias
¶
put_bot_alias(
name: AliasName,
bot_version: Version,
bot_name: BotName,
*,
config_overrides: Optional[LexModelBuildingServiceClientConfig] = 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/lex_model_building_service.py
2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 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 | |