create_template
async
¶
create_template(
domain_id: DomainId,
name: TemplateName,
*,
config_overrides: Optional[AsyncConnectCasesClientConfig] = 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/async_connect_cases.py
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 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 | |