update_template
¶
update_template(
domain_id: DomainId,
template_id: TemplateId,
*,
config_overrides: Optional[ConnectCasesClientConfig] = None,
name: Optional[TemplateName] = None,
description: Optional[TemplateDescription] = None,
layout_configuration: Optional[LayoutConfiguration] = None,
required_fields: Optional[RequiredFieldList] = None,
status: Optional[TemplateStatus] = None,
rules: Optional[TemplateCaseRuleList] = None,
tag_propagation_configurations: Optional[TagPropagationConfigurationList] = None,
) -> UpdateTemplateResponse
Updates the attributes of an existing template. The template attributes that can be modified include name, description, layoutConfiguration, requiredFields, and status. At least one of these attributes must not be null. If a null value is provided for a given attribute, that attribute is ignored and its current value is preserved.
Other template APIs are:
Parameters:
-
domain_id(DomainId) –The unique identifier of the Cases domain.
-
template_id(TemplateId) –A unique identifier for the template.
-
name(Optional[TemplateName], default:None) –The name of the template. It must be unique per domain.
-
description(Optional[TemplateDescription], default:None) –A brief description of the template.
-
layout_configuration(Optional[LayoutConfiguration], default:None) –Configuration of layouts associated to the template.
-
required_fields(Optional[RequiredFieldList], default:None) –A list of fields that must contain a value for a case to be successfully created with this template.
-
status(Optional[TemplateStatus], default:None) –The status of the template.
-
rules(Optional[TemplateCaseRuleList], default:None) –A list of case rules (also known as case field conditions) on a template.
-
tag_propagation_configurations(Optional[TagPropagationConfigurationList], default:None) –Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.
-
InternalServerException–We couldn't process your request because of an issue with the server. Try again later.
-
ResourceNotFoundException–We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.
-
ServiceQuotaExceededException–The service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.
-
ThrottlingException–The rate has been exceeded for this API. Please try again after a few minutes.
-
ValidationException–The request isn't valid. Check the syntax and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connectcases/_services/connect_cases.py
3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 | |