# CfnTemplateProps

Properties for defining a `CfnTemplate`.

Extends: CfnTemplateProps
Used as props by: CfnTemplate

- Source: Generated code
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cases as cases } from 'aws-cdk-lib';
const cfnTemplateProps: cases.CfnTemplateProps = {
  name: 'name',

  // the properties below are optional
  description: 'description',
  domainId: 'domainId',
  layoutConfiguration: {
    defaultLayout: 'defaultLayout',
  },
  requiredFields: [{
    fieldId: 'fieldId',
  }],
  rules: [{
    caseRuleId: 'caseRuleId',

    // the properties below are optional
    fieldId: 'fieldId',
  }],
  status: 'status',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `description`: string — A brief description of the template.

- `domainId`: string — The unique identifier of the Cases domain.

- `layoutConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.LayoutConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cases.CfnTemplate.LayoutConfigurationProperty.html) — Object to store configuration of layouts associated to the template.

- `name`: string (required) — The template name.

- `requiredFields`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.RequiredFieldProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cases.CfnTemplate.RequiredFieldProperty.html)[] — A list of fields that must contain a value for a case to be successfully created with this template.

- `rules`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.TemplateRuleProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cases.CfnTemplate.TemplateRuleProperty.html)[] — 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.

- `status`: string — The status of the template.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.
