update_intent
async
¶
update_intent(
intent_id: Id,
intent_name: Name,
bot_id: Id,
bot_version: DraftBotVersion,
locale_id: LocaleId,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = 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/async_lex_models_v2.py
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 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 | |