Module Values.CreateTemplateRequestSource

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: DeleteTemplate GetTemplate ListTemplates UpdateTemplate

Sourcetype nonrec t = {
  1. domainId : DomainId.t;
    (*

    The unique identifier of the Cases domain.

    *)
  2. name : TemplateName.t;
    (*

    A name for the template. It must be unique per domain.

    *)
  3. description : TemplateDescription.t option;
    (*

    A brief description of the template.

    *)
  4. layoutConfiguration : LayoutConfiguration.t option;
    (*

    Configuration of layouts associated to the template.

    *)
  5. requiredFields : RequiredFieldList.t option;
    (*

    A list of fields that must contain a value for a case to be successfully created with this template.

    *)
  6. status : TemplateStatus.t option;
    (*

    The status of the template.

    *)
  7. rules : TemplateCaseRuleList.t option;
    (*

    A list of case rules (also known as case field conditions) on a template.

    *)
  8. tagPropagationConfigurations : TagPropagationConfigurationList.t option;
    (*

    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.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?layoutConfiguration:??? -> ?requiredFields:??? -> ?status:??? -> ?rules:??? -> ?tagPropagationConfigurations:??? -> domainId:DomainId.t -> name:TemplateName.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `Map of ([> `String of MutableTagKey.t ] * [> `String of TagValueString.t ]) list | `String of FieldId.t ]) list ] list | `String of DomainId.t | `Structure of (string * [> `String of LayoutId.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t