create_template
¶
create_template(
domain_id: DomainId,
name: TemplateName,
*,
config_overrides: Optional[ConnectCasesClientConfig] = 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,
) -> CreateTemplateResponse
Creates a template in the Cases domain. This template is used to define the case object model (that is, to define what data can be captured on cases) in a Cases domain. A template must have a unique name within a domain, and it must reference existing field IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within the same Template. A template can be either Active or Inactive, as indicated by its status. Inactive templates cannot be used to create cases.
Other template APIs are:
Parameters:
-
domain_id(DomainId) –The unique identifier of the Cases domain.
-
name(TemplateName) –A name for 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.
To require a Customer Profile when creating cases, include
customer_idin this list. Ifcustomer_idis omitted, the Customer Profile field is optional and can be added, changed, or removed after case creation. -
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 Connect Customer Service Quotas in the Connect Customer 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
3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 | |