Class CfnTemplate
- All Implemented Interfaces:
IInspectable,ITemplateRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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:
Example:
// 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.*;
CfnTemplate cfnTemplate = CfnTemplate.Builder.create(this, "MyCfnTemplate")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTemplate.static interfaceObject to store configuration of layouts associated to the template.static interfaceList of fields that must have a value provided to create a case.static interfaceAn association representing a case rule acting upon a field.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cases.ITemplateRef
ITemplateRef.Jsii$Default, ITemplateRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTemplate(software.amazon.jsii.JsiiObjectRef objRef) CfnTemplate(software.constructs.Construct scope, String id, CfnTemplateProps props) Create a newAWS::Cases::Template. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTemplate(ITemplateRef resource) Timestamp at which the resource was created.Timestamp at which the resource was created or last modified.The Amazon Resource Name (ARN) of the template.A unique identifier of a template.Tag Manager which manages the tags for this resource.A brief description of the template.The unique identifier of the Cases domain.Object to store configuration of layouts associated to the template.getName()The template name.A list of fields that must contain a value for a case to be successfully created with this template.getRules()A list of case rules (also known as case field conditions ) on a template.The status of the template.getTags()An array of key-value pairs to apply to this resource.A reference to a Template resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTemplate.renderProperties(Map<String, Object> props) voidsetDescription(String value) A brief description of the template.voidsetDomainId(String value) The unique identifier of the Cases domain.voidObject to store configuration of layouts associated to the template.voidObject to store configuration of layouts associated to the template.voidThe template name.voidsetRequiredFields(List<Object> value) A list of fields that must contain a value for a case to be successfully created with this template.voidsetRequiredFields(IResolvable value) A list of fields that must contain a value for a case to be successfully created with this template.voidA list of case rules (also known as case field conditions ) on a template.voidsetRules(IResolvable value) A list of case rules (also known as case field conditions ) on a template.voidThe status of the template.voidAn array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTemplate
protected CfnTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTemplate
protected CfnTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTemplate
@Stability(Stable) public CfnTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTemplateProps props) Create a newAWS::Cases::Template.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForTemplate
- Parameters:
resource- This parameter is required.
-
isCfnTemplate
Checks whether the given object is a CfnTemplate.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedTime
Timestamp at which the resource was created. -
getAttrLastModifiedTime
Timestamp at which the resource was created or last modified. -
getAttrTemplateArn
The Amazon Resource Name (ARN) of the template. -
getAttrTemplateId
A unique identifier of a template. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTemplateRef
A reference to a Template resource.- Specified by:
getTemplateRefin interfaceITemplateRef
-
getName
The template name. -
setName
The template name. -
getDescription
A brief description of the template. -
setDescription
A brief description of the template. -
getDomainId
The unique identifier of the Cases domain. -
setDomainId
The unique identifier of the Cases domain. -
getLayoutConfiguration
Object to store configuration of layouts associated to the template.Returns union: either
IResolvableorCfnTemplate.LayoutConfigurationProperty -
setLayoutConfiguration
Object to store configuration of layouts associated to the template. -
setLayoutConfiguration
@Stability(Stable) public void setLayoutConfiguration(@Nullable CfnTemplate.LayoutConfigurationProperty value) Object to store configuration of layouts associated to the template. -
getRequiredFields
A list of fields that must contain a value for a case to be successfully created with this template.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTemplate.RequiredFieldProperty> -
setRequiredFields
A list of fields that must contain a value for a case to be successfully created with this template. -
setRequiredFields
A list of fields that must contain a value for a case to be successfully created with this template. -
getRules
A list of case rules (also known as case field conditions ) on a template.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTemplate.TemplateRuleProperty> -
setRules
A list of case rules (also known as case field conditions ) on a template. -
setRules
A list of case rules (also known as case field conditions ) on a template. -
getStatus
The status of the template. -
setStatus
The status of the template. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-