create_message_template
async
¶
create_message_template(
knowledge_base_id: UuidOrArn,
channel_subtype: ChannelSubtype,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = None,
name: Optional[Name] = None,
content: Optional[MessageTemplateContentProvider] = None,
description: Optional[Description] = None,
language: Optional[LanguageCode] = None,
source_configuration: Optional[MessageTemplateSourceConfiguration] = None,
default_attributes: Optional[MessageTemplateAttributes] = None,
grouping_configuration: Optional[GroupingConfiguration] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[Tags] = None,
) -> CreateMessageTemplateResponse
Creates an Amazon Q in Connect message template. The name of the message template has to be unique for each knowledge base. The channel subtype of the message template is immutable and cannot be modified after creation. After the message template is created, you can use the $LATEST qualifier to reference the created message template.
Parameters:
-
knowledge_base_id(UuidOrArn) –The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
name(Optional[Name], default:None) –The name of the message template.
-
content(Optional[MessageTemplateContentProvider], default:None) –The content of the message template.
-
description(Optional[Description], default:None) –The description of the message template.
-
channel_subtype(ChannelSubtype) –The channel subtype this message template applies to.
-
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.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
-
tags(Optional[Tags], default:None) –The tags used to organize, track, or control access for this resource.
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.
-
ServiceQuotaExceededException–You've exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use service quotas to request a service quota increase.
-
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
6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 | |