create_quick_response
async
¶
create_quick_response(
knowledge_base_id: UuidOrArn,
name: QuickResponseName,
content: QuickResponseDataProvider,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = None,
content_type: Optional[QuickResponseType] = None,
grouping_configuration: Optional[GroupingConfiguration] = None,
description: Optional[QuickResponseDescription] = None,
shortcut_key: Optional[ShortCutKey] = None,
is_active: Optional[bool] = None,
channels: Optional[Channels] = None,
language: Optional[LanguageCode] = None,
client_token: Optional[NonEmptyString] = None,
tags: Optional[Tags] = None,
) -> CreateQuickResponseResponse
Creates an Amazon Q in Connect quick response.
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(QuickResponseName) –The name of the quick response.
-
content(QuickResponseDataProvider) –The content of the quick response.
-
content_type(Optional[QuickResponseType], default:None) –The media type of the quick response content.
-
Use
application/x.quickresponse;format=plainfor a quick response written in plain text. -
Use
application/x.quickresponse;format=markdownfor a quick response written in richtext.
-
-
grouping_configuration(Optional[GroupingConfiguration], default:None) –The configuration information of the user groups that the quick response is accessible to.
-
description(Optional[QuickResponseDescription], default:None) –The description of the quick response.
-
shortcut_key(Optional[ShortCutKey], default:None) –The shortcut key of the quick response. The value should be unique across the knowledge base.
-
is_active(Optional[bool], default:None) –Whether the quick response is active.
-
channels(Optional[Channels], default:None) –The Connect Customer channels this quick response 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 -
client_token(Optional[NonEmptyString], 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.
-
UnauthorizedException–You do not have permission to perform this action.
-
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
7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 | |