update_quick_response
¶
update_quick_response(
knowledge_base_id: UuidOrArn,
quick_response_id: UuidOrArn,
*,
config_overrides: Optional[WisdomClientConfig] = None,
name: Optional[QuickResponseName] = None,
content: Optional[QuickResponseDataProvider] = None,
content_type: Optional[QuickResponseType] = None,
grouping_configuration: Optional[GroupingConfiguration] = None,
remove_grouping_configuration: Optional[bool] = None,
description: Optional[QuickResponseDescription] = None,
remove_description: Optional[bool] = None,
shortcut_key: Optional[ShortCutKey] = None,
remove_shortcut_key: Optional[bool] = None,
is_active: Optional[bool] = None,
channels: Optional[Channels] = None,
language: Optional[LanguageCode] = None,
) -> UpdateQuickResponseResponse
Updates an existing 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.
-
quick_response_id(UuidOrArn) –The identifier of the quick response.
-
name(Optional[QuickResponseName], default:None) –The name of the quick response.
-
content(Optional[QuickResponseDataProvider], default:None) –The updated 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 quick response written in plain text. -
Use
application/x.quickresponse;format=markdownfor quick response written in richtext.
-
-
grouping_configuration(Optional[GroupingConfiguration], default:None) –The updated grouping configuration of the quick response.
-
remove_grouping_configuration(Optional[bool], default:None) –Whether to remove the grouping configuration of the quick response.
-
description(Optional[QuickResponseDescription], default:None) –The updated description of the quick response.
-
remove_description(Optional[bool], default:None) –Whether to remove the description from 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.
-
remove_shortcut_key(Optional[bool], default:None) –Whether to remove the shortcut key of the quick response.
-
is_active(Optional[bool], default:None) –Whether the quick response is active.
-
channels(Optional[Channels], default:None) –The Amazon Connect contact channels this quick response applies to. The supported contact channel types include
Chat. -
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
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. -
PreconditionFailedException–The provided
revisionIddoes not match, indicating the content has been modified since it was last read. -
ResourceNotFoundException–The specified resource does not exist.
-
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/wisdom.py
2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 | |