update_message_template
async
¶
update_message_template(
knowledge_base_id: UuidOrArn,
message_template_id: UuidOrArnOrEitherWithQualifier,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = None,
content: Optional[MessageTemplateContentProvider] = None,
language: Optional[LanguageCode] = None,
source_configuration: Optional[MessageTemplateSourceConfiguration] = None,
default_attributes: Optional[MessageTemplateAttributes] = None,
) -> UpdateMessageTemplateResponse
Updates the Amazon Q in Connect message template. Partial update is supported. If any field is not supplied, it will remain unchanged for the message template that is referenced by the $LATEST qualifier. Any modification will only apply to the message template that is referenced by the $LATEST qualifier. The fields for all available versions will remain unchanged.
Parameters:
-
knowledge_base_id(UuidOrArn) –The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
message_template_id(UuidOrArnOrEitherWithQualifier) –The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.
-
content(Optional[MessageTemplateContentProvider], default:None) –The content of the message template.
-
language(Optional[LanguageCode], default:None) –The language code value for the language in which the quick response is written. The supported language codes include
de_DE,en_US,es_ES,fr_FR,id_ID,it_IT,ja_JP,ko_KR,pt_BR,zh_CN,zh_TW -
source_configuration(Optional[MessageTemplateSourceConfiguration], default:None) –The source configuration of the message template. Only set this argument for WHATSAPP channel subtype.
-
default_attributes(Optional[MessageTemplateAttributes], default:None) –An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource. For example, if you're using a
CreateAPI (such asCreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated. -
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The throttling limit has been exceeded.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qconnect/_services/async_q_connect.py
6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 | |