update_template
async
¶
update_template(
domain_id: DomainId,
template_id: TemplateId,
*,
config_overrides: Optional[AsyncConnectCasesClientConfig] = 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/async_connect_cases.py
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 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 | |