We recommend new projects start with resources from the AWS provider.
We recommend new projects start with resources from the AWS provider.
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.
Create Template Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Template(name: string, args?: TemplateArgs, opts?: CustomResourceOptions);@overload
def Template(resource_name: str,
args: Optional[TemplateArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Template(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
domain_id: Optional[str] = None,
layout_configuration: Optional[TemplateLayoutConfigurationArgs] = None,
name: Optional[str] = None,
required_fields: Optional[Sequence[TemplateRequiredFieldArgs]] = None,
rules: Optional[Sequence[TemplateRuleArgs]] = None,
status: Optional[TemplateStatus] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewTemplate(ctx *Context, name string, args *TemplateArgs, opts ...ResourceOption) (*Template, error)public Template(string name, TemplateArgs? args = null, CustomResourceOptions? opts = null)
public Template(String name, TemplateArgs args)
public Template(String name, TemplateArgs args, CustomResourceOptions options)
type: aws-native:cases:Template
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Template Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Template resource accepts the following input properties:
- Description string
- A description explaining the purpose and use case for this template. Should indicate what types of cases this template is designed for and any specific workflow it supports.
- Domain
Id string - The unique identifier of the Cases domain.
- Layout
Configuration Pulumi.Aws Native. Cases. Inputs. Template Layout Configuration - Name string
- A name for the template. It must be unique per domain.
- Required
Fields List<Pulumi.Aws Native. Cases. Inputs. Template Required Field> - A list of fields that must contain a value for a case to be successfully created with this template.
- Rules
List<Pulumi.
Aws Native. Cases. Inputs. Template Rule> - A list of case rules (also known as case field conditions) on a template.
- Status
Pulumi.
Aws Native. Cases. Template Status -
List<Pulumi.
Aws Native. Inputs. Tag> - The tags that you attach to this template.
- Description string
- A description explaining the purpose and use case for this template. Should indicate what types of cases this template is designed for and any specific workflow it supports.
- Domain
Id string - The unique identifier of the Cases domain.
- Layout
Configuration TemplateLayout Configuration Args - Name string
- A name for the template. It must be unique per domain.
- Required
Fields []TemplateRequired Field Args - A list of fields that must contain a value for a case to be successfully created with this template.
- Rules
[]Template
Rule Args - A list of case rules (also known as case field conditions) on a template.
- Status
Template
Status -
Tag
Args - The tags that you attach to this template.
- description String
- A description explaining the purpose and use case for this template. Should indicate what types of cases this template is designed for and any specific workflow it supports.
- domain
Id String - The unique identifier of the Cases domain.
- layout
Configuration TemplateLayout Configuration - name String
- A name for the template. It must be unique per domain.
- required
Fields List<TemplateRequired Field> - A list of fields that must contain a value for a case to be successfully created with this template.
- rules
List<Template
Rule> - A list of case rules (also known as case field conditions) on a template.
- status
Template
Status - List<Tag>
- The tags that you attach to this template.
- description string
- A description explaining the purpose and use case for this template. Should indicate what types of cases this template is designed for and any specific workflow it supports.
- domain
Id string - The unique identifier of the Cases domain.
- layout
Configuration TemplateLayout Configuration - name string
- A name for the template. It must be unique per domain.
- required
Fields TemplateRequired Field[] - A list of fields that must contain a value for a case to be successfully created with this template.
- rules
Template
Rule[] - A list of case rules (also known as case field conditions) on a template.
- status
Template
Status - Tag[]
- The tags that you attach to this template.
- description str
- A description explaining the purpose and use case for this template. Should indicate what types of cases this template is designed for and any specific workflow it supports.
- domain_
id str - The unique identifier of the Cases domain.
- layout_
configuration TemplateLayout Configuration Args - name str
- A name for the template. It must be unique per domain.
- required_
fields Sequence[TemplateRequired Field Args] - A list of fields that must contain a value for a case to be successfully created with this template.
- rules
Sequence[Template
Rule Args] - A list of case rules (also known as case field conditions) on a template.
- status
Template
Status -
Sequence[Tag
Args] - The tags that you attach to this template.
- description String
- A description explaining the purpose and use case for this template. Should indicate what types of cases this template is designed for and any specific workflow it supports.
- domain
Id String - The unique identifier of the Cases domain.
- layout
Configuration Property Map - name String
- A name for the template. It must be unique per domain.
- required
Fields List<Property Map> - A list of fields that must contain a value for a case to be successfully created with this template.
- rules List<Property Map>
- A list of case rules (also known as case field conditions) on a template.
- status "Active" | "Inactive"
- List<Property Map>
- The tags that you attach to this template.
Outputs
All input properties are implicitly available as output properties. Additionally, the Template resource produces the following output properties:
- Created
Time string - The time at which the template was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - The time at which the template was created or last modified.
- Template
Arn string - The Amazon Resource Name (ARN) of the template.
- Template
Id string - The unique identifier of a template.
- Created
Time string - The time at which the template was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - The time at which the template was created or last modified.
- Template
Arn string - The Amazon Resource Name (ARN) of the template.
- Template
Id string - The unique identifier of a template.
- created
Time String - The time at which the template was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - The time at which the template was created or last modified.
- template
Arn String - The Amazon Resource Name (ARN) of the template.
- template
Id String - The unique identifier of a template.
- created
Time string - The time at which the template was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringTime - The time at which the template was created or last modified.
- template
Arn string - The Amazon Resource Name (ARN) of the template.
- template
Id string - The unique identifier of a template.
- created_
time str - The time at which the template was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified_ strtime - The time at which the template was created or last modified.
- template_
arn str - The Amazon Resource Name (ARN) of the template.
- template_
id str - The unique identifier of a template.
- created
Time String - The time at which the template was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - The time at which the template was created or last modified.
- template
Arn String - The Amazon Resource Name (ARN) of the template.
- template
Id String - The unique identifier of a template.
Supporting Types
Tag, TagArgs
A set of tags to apply to the resource.TemplateLayoutConfiguration, TemplateLayoutConfigurationArgs
Specifies the default layout to use when displaying cases created from this template. The layout determines which fields are visible and their arrangement in the agent interface.- Default
Layout string - The unique identifier of a layout.
- Default
Layout string - The unique identifier of a layout.
- default
Layout String - The unique identifier of a layout.
- default
Layout string - The unique identifier of a layout.
- default_
layout str - The unique identifier of a layout.
- default
Layout String - The unique identifier of a layout.
TemplateRequiredField, TemplateRequiredFieldArgs
Wrapper object containing a field identifier- Field
Id string - The unique identifier of a field.
- Field
Id string - The unique identifier of a field.
- field
Id String - The unique identifier of a field.
- field
Id string - The unique identifier of a field.
- field_
id str - The unique identifier of a field.
- field
Id String - The unique identifier of a field.
TemplateRule, TemplateRuleArgs
Links a case rule to a specific field within this template. When specified, the rule's conditions will be evaluated for the associated field, controlling behavior like required status, visibility, or available options.- Case
Rule stringId - The unique identifier of a case rule.
- Field
Id string - The ID of the field that this rule applies to.
- Case
Rule stringId - The unique identifier of a case rule.
- Field
Id string - The ID of the field that this rule applies to.
- case
Rule StringId - The unique identifier of a case rule.
- field
Id String - The ID of the field that this rule applies to.
- case
Rule stringId - The unique identifier of a case rule.
- field
Id string - The ID of the field that this rule applies to.
- case_
rule_ strid - The unique identifier of a case rule.
- field_
id str - The ID of the field that this rule applies to.
- case
Rule StringId - The unique identifier of a case rule.
- field
Id String - The ID of the field that this rule applies to.
TemplateStatus, TemplateStatusArgs
- Active
- Active
- Inactive
- Inactive
- Template
Status Active - Active
- Template
Status Inactive - Inactive
- Active
- Active
- Inactive
- Inactive
- Active
- Active
- Inactive
- Inactive
- ACTIVE
- Active
- INACTIVE
- Inactive
- "Active"
- Active
- "Inactive"
- Inactive
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
