update_intent
¶
update_intent(
intent_id: Id,
intent_name: Name,
bot_id: Id,
bot_version: DraftBotVersion,
locale_id: LocaleId,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = None,
intent_display_name: Optional[DisplayName] = None,
description: Optional[Description] = None,
parent_intent_signature: Optional[IntentSignature] = None,
sample_utterances: Optional[SampleUtterancesList] = None,
dialog_code_hook: Optional[DialogCodeHookSettings] = None,
fulfillment_code_hook: Optional[FulfillmentCodeHookSettings] = None,
slot_priorities: Optional[SlotPrioritiesList] = None,
intent_confirmation_setting: Optional[IntentConfirmationSetting] = None,
intent_closing_setting: Optional[IntentClosingSetting] = None,
input_contexts: Optional[InputContextsList] = None,
output_contexts: Optional[OutputContextsList] = None,
kendra_configuration: Optional[KendraConfiguration] = None,
initial_response_setting: Optional[InitialResponseSetting] = None,
qn_a_intent_configuration: Optional[QnAIntentConfiguration] = None,
q_in_connect_intent_configuration: Optional[QInConnectIntentConfiguration] = None,
) -> UpdateIntentResponse
Updates the settings for an intent.
Parameters:
-
intent_id(Id) –The unique identifier of the intent to update.
-
intent_name(Name) –The new name for the intent.
-
intent_display_name(Optional[DisplayName], default:None) –The new display name for the intent.
-
description(Optional[Description], default:None) –The new description of the intent.
-
parent_intent_signature(Optional[IntentSignature], default:None) –The signature of the new built-in intent to use as the parent of this intent.
-
sample_utterances(Optional[SampleUtterancesList], default:None) –New utterances used to invoke the intent.
-
dialog_code_hook(Optional[DialogCodeHookSettings], default:None) –The new Lambda function to use between each turn of the conversation with the bot.
-
fulfillment_code_hook(Optional[FulfillmentCodeHookSettings], default:None) –The new Lambda function to call when all of the intents required slots are provided and the intent is ready for fulfillment.
-
slot_priorities(Optional[SlotPrioritiesList], default:None) –A new list of slots and their priorities that are contained by the intent.
-
intent_confirmation_setting(Optional[IntentConfirmationSetting], default:None) –New prompts that Amazon Lex sends to the user to confirm the completion of an intent.
-
intent_closing_setting(Optional[IntentClosingSetting], default:None) –The new response that Amazon Lex sends the user when the intent is closed.
-
input_contexts(Optional[InputContextsList], default:None) –A new list of contexts that must be active in order for Amazon Lex to consider the intent.
-
output_contexts(Optional[OutputContextsList], default:None) –A new list of contexts that Amazon Lex activates when the intent is fulfilled.
-
kendra_configuration(Optional[KendraConfiguration], default:None) –New configuration settings for connecting to an Amazon Kendra index.
-
bot_id(Id) –The identifier of the bot that contains the intent.
-
bot_version(DraftBotVersion) –The version of the bot that contains the intent. Must be
DRAFT. -
locale_id(LocaleId) –The identifier of the language and locale where this intent is used. The string must match one of the supported locales. For more information, see Supported languages.
-
initial_response_setting(Optional[InitialResponseSetting], default:None) –Configuration settings for a response sent to the user before Amazon Lex starts eliciting slots.
-
qn_a_intent_configuration(Optional[QnAIntentConfiguration], default:None) –Specifies the configuration of the built-in
Amazon.QnAIntent. TheAMAZON.QnAIntentintent is called when Amazon Lex can't determine another intent to invoke. If you specify this field, you can't specify thekendraConfigurationfield. -
q_in_connect_intent_configuration(Optional[QInConnectIntentConfiguration], default:None) –Qinconnect intent configuration details for the update intent request.
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
7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 | |