AWS::Cases::TemplateCreates 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: - [DeleteTemplate](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_DeleteTemplate.html) - [GetTemplate](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_GetTemplate.html) - [ListTemplates](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_ListTemplates.html) - [UpdateTemplate](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_UpdateTemplate.html)
import { CfnTemplate } from 'aws-cdk-lib/aws-cases';Or use the module namespace:
import * as cases from 'aws-cdk-lib/aws-cases';
// cases.CfnTemplateConfiguration passed to the constructor as CfnTemplateProps.
nameRequiredstringThe template name.
descriptionOptionalstringA brief description of the template.
domainIdOptionalstringThe unique identifier of the Cases domain.
layoutConfigurationOptionalIResolvable | LayoutConfigurationPropertyObject to store configuration of layouts associated to the template.
requiredFieldsOptionalIResolvable | IResolvable | RequiredFieldProperty[]A list of fields that must contain a value for a case to be successfully created with this template.
rulesOptionalIResolvable | IResolvable | TemplateRuleProperty[]A list of case rules (also known as [case field conditions](https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html) ) on a template.
statusOptionalstringThe status of the template.
tagsOptionalCfnTag[]An array of key-value pairs to apply to this resource.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-casesAWS::Cases::Template