create_quick_response
async
¶
create_quick_response(
knowledge_base_id: UuidOrArn,
name: QuickResponseName,
content: QuickResponseDataProvider,
*,
config_overrides: Optional[AsyncWisdomClientConfig] = 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 a Wisdom quick response.
Parameters:
-
knowledge_base_id(UuidOrArn) –The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. 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 Amazon Connect 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.
-
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_wisdom/_services/async_wisdom.py
2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 | |