CfnTemplateProps Struct
Properties for defining a CfnTemplate.
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',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cases as cases
cfn_template_props = cases.CfnTemplateProps(
name="name",
# the properties below are optional
description="description",
domain_id="domainId",
layout_configuration=cases.CfnTemplate.LayoutConfigurationProperty(
default_layout="defaultLayout"
),
required_fields=[cases.CfnTemplate.RequiredFieldProperty(
field_id="fieldId"
)],
rules=[cases.CfnTemplate.TemplateRuleProperty(
case_rule_id="caseRuleId",
# the properties below are optional
field_id="fieldId"
)],
status="status",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cases.*;
CfnTemplateProps cfnTemplateProps = CfnTemplateProps.builder()
.name("name")
// the properties below are optional
.description("description")
.domainId("domainId")
.layoutConfiguration(LayoutConfigurationProperty.builder()
.defaultLayout("defaultLayout")
.build())
.requiredFields(List.of(RequiredFieldProperty.builder()
.fieldId("fieldId")
.build()))
.rules(List.of(TemplateRuleProperty.builder()
.caseRuleId("caseRuleId")
// the properties below are optional
.fieldId("fieldId")
.build()))
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cases;
var cfnTemplateProps = new CfnTemplateProps {
Name = "name",
// the properties below are optional
Description = "description",
DomainId = "domainId",
LayoutConfiguration = new LayoutConfigurationProperty {
DefaultLayout = "defaultLayout"
},
RequiredFields = new [] { new RequiredFieldProperty {
FieldId = "fieldId"
} },
Rules = new [] { new TemplateRuleProperty {
CaseRuleId = "caseRuleId",
// the properties below are optional
FieldId = "fieldId"
} },
Status = "status",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnTemplateProps := &CfnTemplateProps{
Name: jsii.String("name"),
// the properties below are optional
Description: jsii.String("description"),
DomainId: jsii.String("domainId"),
LayoutConfiguration: &LayoutConfigurationProperty{
DefaultLayout: jsii.String("defaultLayout"),
},
RequiredFields: []interface{}{
&RequiredFieldProperty{
FieldId: jsii.String("fieldId"),
},
},
Rules: []interface{}{
&TemplateRuleProperty{
CaseRuleId: jsii.String("caseRuleId"),
// the properties below are optional
FieldId: jsii.String("fieldId"),
},
},
Status: jsii.String("status"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#A brief description of the template.
domainIdoptionalstringdomain_idoptionalstrdomainIdoptionalStringDomainIdoptionalstringDomainIdoptional*string#The unique identifier of the Cases domain.
layoutConfigurationoptionalIResolvable | CfnTemplate.LayoutConfigurationPropertylayout_configurationoptionaltyping.Union[IResolvable, LayoutConfigurationProperty]layoutConfigurationoptionalIResolvableLayoutConfigurationoptionalIResolvableLayoutConfigurationoptionalinterface{}#Object to store configuration of layouts associated to the template.
The template name.
requiredFieldsoptionalIResolvable | IResolvable | CfnTemplate.RequiredFieldProperty[]required_fieldsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RequiredFieldProperty]]]requiredFieldsoptionalIResolvableRequiredFieldsoptionalIResolvableRequiredFieldsoptionalinterface{}#A list of fields that must contain a value for a case to be successfully created with this template.
rulesoptionalIResolvable | IResolvable | CfnTemplate.TemplateRuleProperty[]rulesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TemplateRuleProperty]]]rulesoptionalIResolvableRulesoptionalIResolvableRulesoptionalinterface{}#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.
The status of the template.