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.
-
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
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 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 | |