1. Packages
  2. Zenduty Provider
  3. API Docs
  4. TaskTemplateTasks
zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty

zenduty.TaskTemplateTasks

Explore with Pulumi AI

Provides a Zenduty TaskTemplateTasks Resource. This allows TaskTemplateTasks to be created, updated, and deleted.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  exampleteam:
    type: zenduty:Teams
  demotemplate:
    type: zenduty:TaskTemplateTasks
    properties:
      name: example template
      summary: this is an example template
      teamId: ${exampleteam.teamsId}
  exampleRole:
    type: zenduty:Roles
    properties:
      team: ${exampleteam.teamsId}
      title: Example Role
      description: Role Description
Copy
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";

const demotask = new zenduty.TaskTemplateTasks("demotask", {
    teamId: "af0e6c8a-c895-434c-b667-2f44833e15b6",
    taskTemplateId: zenduty_task_template_tasks.demotemplate.id,
    title: "demo task",
    description: "this is a description of demo task",
    role: zenduty_roles.example_role.id,
});
Copy
import pulumi
import pulumi_zenduty as zenduty

demotask = zenduty.TaskTemplateTasks("demotask",
    team_id="af0e6c8a-c895-434c-b667-2f44833e15b6",
    task_template_id=zenduty_task_template_tasks["demotemplate"]["id"],
    title="demo task",
    description="this is a description of demo task",
    role=zenduty_roles["example_role"]["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/zenduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zenduty.NewTaskTemplateTasks(ctx, "demotask", &zenduty.TaskTemplateTasksArgs{
			TeamId:         pulumi.String("af0e6c8a-c895-434c-b667-2f44833e15b6"),
			TaskTemplateId: pulumi.Any(zenduty_task_template_tasks.Demotemplate.Id),
			Title:          pulumi.String("demo task"),
			Description:    pulumi.String("this is a description of demo task"),
			Role:           pulumi.Any(zenduty_roles.Example_role.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;

return await Deployment.RunAsync(() => 
{
    var demotask = new Zenduty.TaskTemplateTasks("demotask", new()
    {
        TeamId = "af0e6c8a-c895-434c-b667-2f44833e15b6",
        TaskTemplateId = zenduty_task_template_tasks.Demotemplate.Id,
        Title = "demo task",
        Description = "this is a description of demo task",
        Role = zenduty_roles.Example_role.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.TaskTemplateTasks;
import com.pulumi.zenduty.TaskTemplateTasksArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var demotask = new TaskTemplateTasks("demotask", TaskTemplateTasksArgs.builder()
            .teamId("af0e6c8a-c895-434c-b667-2f44833e15b6")
            .taskTemplateId(zenduty_task_template_tasks.demotemplate().id())
            .title("demo task")
            .description("this is a description of demo task")
            .role(zenduty_roles.example_role().id())
            .build());

    }
}
Copy
resources:
  demotask:
    type: zenduty:TaskTemplateTasks
    properties:
      teamId: af0e6c8a-c895-434c-b667-2f44833e15b6
      taskTemplateId: ${zenduty_task_template_tasks.demotemplate.id}
      title: demo task
      description: this is a description of demo task
      role: ${zenduty_roles.example_role.id}
Copy

Create TaskTemplateTasks Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new TaskTemplateTasks(name: string, args: TaskTemplateTasksArgs, opts?: CustomResourceOptions);
@overload
def TaskTemplateTasks(resource_name: str,
                      args: TaskTemplateTasksArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def TaskTemplateTasks(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      description: Optional[str] = None,
                      task_template_id: Optional[str] = None,
                      team_id: Optional[str] = None,
                      title: Optional[str] = None,
                      due_in: Optional[float] = None,
                      role: Optional[str] = None,
                      task_template_tasks_id: Optional[str] = None)
func NewTaskTemplateTasks(ctx *Context, name string, args TaskTemplateTasksArgs, opts ...ResourceOption) (*TaskTemplateTasks, error)
public TaskTemplateTasks(string name, TaskTemplateTasksArgs args, CustomResourceOptions? opts = null)
public TaskTemplateTasks(String name, TaskTemplateTasksArgs args)
public TaskTemplateTasks(String name, TaskTemplateTasksArgs args, CustomResourceOptions options)
type: zenduty:TaskTemplateTasks
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TaskTemplateTasksArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TaskTemplateTasksArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TaskTemplateTasksArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TaskTemplateTasksArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TaskTemplateTasksArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var taskTemplateTasksResource = new Zenduty.TaskTemplateTasks("taskTemplateTasksResource", new()
{
    Description = "string",
    TaskTemplateId = "string",
    TeamId = "string",
    Title = "string",
    DueIn = 0,
    Role = "string",
    TaskTemplateTasksId = "string",
});
Copy
example, err := zenduty.NewTaskTemplateTasks(ctx, "taskTemplateTasksResource", &zenduty.TaskTemplateTasksArgs{
	Description:         pulumi.String("string"),
	TaskTemplateId:      pulumi.String("string"),
	TeamId:              pulumi.String("string"),
	Title:               pulumi.String("string"),
	DueIn:               pulumi.Float64(0),
	Role:                pulumi.String("string"),
	TaskTemplateTasksId: pulumi.String("string"),
})
Copy
var taskTemplateTasksResource = new TaskTemplateTasks("taskTemplateTasksResource", TaskTemplateTasksArgs.builder()
    .description("string")
    .taskTemplateId("string")
    .teamId("string")
    .title("string")
    .dueIn(0)
    .role("string")
    .taskTemplateTasksId("string")
    .build());
Copy
task_template_tasks_resource = zenduty.TaskTemplateTasks("taskTemplateTasksResource",
    description="string",
    task_template_id="string",
    team_id="string",
    title="string",
    due_in=0,
    role="string",
    task_template_tasks_id="string")
Copy
const taskTemplateTasksResource = new zenduty.TaskTemplateTasks("taskTemplateTasksResource", {
    description: "string",
    taskTemplateId: "string",
    teamId: "string",
    title: "string",
    dueIn: 0,
    role: "string",
    taskTemplateTasksId: "string",
});
Copy
type: zenduty:TaskTemplateTasks
properties:
    description: string
    dueIn: 0
    role: string
    taskTemplateId: string
    taskTemplateTasksId: string
    teamId: string
    title: string
Copy

TaskTemplateTasks 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 TaskTemplateTasks resource accepts the following input properties:

Description This property is required. string
The description of the task.
TaskTemplateId This property is required. string
The unique_id of tasktemplate to create the tasktemplatetasks in.
TeamId This property is required. string
The unique_id of team.
Title This property is required. string
The title of the task.
DueIn double
Time in minutes to complete the task -1 => no due time
Role string
The unique_id of incident role attached to the task
TaskTemplateTasksId string
The ID of the Zenduty TaskTemplateTask.
Description This property is required. string
The description of the task.
TaskTemplateId This property is required. string
The unique_id of tasktemplate to create the tasktemplatetasks in.
TeamId This property is required. string
The unique_id of team.
Title This property is required. string
The title of the task.
DueIn float64
Time in minutes to complete the task -1 => no due time
Role string
The unique_id of incident role attached to the task
TaskTemplateTasksId string
The ID of the Zenduty TaskTemplateTask.
description This property is required. String
The description of the task.
taskTemplateId This property is required. String
The unique_id of tasktemplate to create the tasktemplatetasks in.
teamId This property is required. String
The unique_id of team.
title This property is required. String
The title of the task.
dueIn Double
Time in minutes to complete the task -1 => no due time
role String
The unique_id of incident role attached to the task
taskTemplateTasksId String
The ID of the Zenduty TaskTemplateTask.
description This property is required. string
The description of the task.
taskTemplateId This property is required. string
The unique_id of tasktemplate to create the tasktemplatetasks in.
teamId This property is required. string
The unique_id of team.
title This property is required. string
The title of the task.
dueIn number
Time in minutes to complete the task -1 => no due time
role string
The unique_id of incident role attached to the task
taskTemplateTasksId string
The ID of the Zenduty TaskTemplateTask.
description This property is required. str
The description of the task.
task_template_id This property is required. str
The unique_id of tasktemplate to create the tasktemplatetasks in.
team_id This property is required. str
The unique_id of team.
title This property is required. str
The title of the task.
due_in float
Time in minutes to complete the task -1 => no due time
role str
The unique_id of incident role attached to the task
task_template_tasks_id str
The ID of the Zenduty TaskTemplateTask.
description This property is required. String
The description of the task.
taskTemplateId This property is required. String
The unique_id of tasktemplate to create the tasktemplatetasks in.
teamId This property is required. String
The unique_id of team.
title This property is required. String
The title of the task.
dueIn Number
Time in minutes to complete the task -1 => no due time
role String
The unique_id of incident role attached to the task
taskTemplateTasksId String
The ID of the Zenduty TaskTemplateTask.

Outputs

All input properties are implicitly available as output properties. Additionally, the TaskTemplateTasks resource produces the following output properties:

CreationDate string
Id string
The provider-assigned unique ID for this managed resource.
Position double
UniqueId string
CreationDate string
Id string
The provider-assigned unique ID for this managed resource.
Position float64
UniqueId string
creationDate String
id String
The provider-assigned unique ID for this managed resource.
position Double
uniqueId String
creationDate string
id string
The provider-assigned unique ID for this managed resource.
position number
uniqueId string
creation_date str
id str
The provider-assigned unique ID for this managed resource.
position float
unique_id str
creationDate String
id String
The provider-assigned unique ID for this managed resource.
position Number
uniqueId String

Look up Existing TaskTemplateTasks Resource

Get an existing TaskTemplateTasks resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: TaskTemplateTasksState, opts?: CustomResourceOptions): TaskTemplateTasks
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        creation_date: Optional[str] = None,
        description: Optional[str] = None,
        due_in: Optional[float] = None,
        position: Optional[float] = None,
        role: Optional[str] = None,
        task_template_id: Optional[str] = None,
        task_template_tasks_id: Optional[str] = None,
        team_id: Optional[str] = None,
        title: Optional[str] = None,
        unique_id: Optional[str] = None) -> TaskTemplateTasks
func GetTaskTemplateTasks(ctx *Context, name string, id IDInput, state *TaskTemplateTasksState, opts ...ResourceOption) (*TaskTemplateTasks, error)
public static TaskTemplateTasks Get(string name, Input<string> id, TaskTemplateTasksState? state, CustomResourceOptions? opts = null)
public static TaskTemplateTasks get(String name, Output<String> id, TaskTemplateTasksState state, CustomResourceOptions options)
resources:  _:    type: zenduty:TaskTemplateTasks    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreationDate string
Description string
The description of the task.
DueIn double
Time in minutes to complete the task -1 => no due time
Position double
Role string
The unique_id of incident role attached to the task
TaskTemplateId string
The unique_id of tasktemplate to create the tasktemplatetasks in.
TaskTemplateTasksId string
The ID of the Zenduty TaskTemplateTask.
TeamId string
The unique_id of team.
Title string
The title of the task.
UniqueId string
CreationDate string
Description string
The description of the task.
DueIn float64
Time in minutes to complete the task -1 => no due time
Position float64
Role string
The unique_id of incident role attached to the task
TaskTemplateId string
The unique_id of tasktemplate to create the tasktemplatetasks in.
TaskTemplateTasksId string
The ID of the Zenduty TaskTemplateTask.
TeamId string
The unique_id of team.
Title string
The title of the task.
UniqueId string
creationDate String
description String
The description of the task.
dueIn Double
Time in minutes to complete the task -1 => no due time
position Double
role String
The unique_id of incident role attached to the task
taskTemplateId String
The unique_id of tasktemplate to create the tasktemplatetasks in.
taskTemplateTasksId String
The ID of the Zenduty TaskTemplateTask.
teamId String
The unique_id of team.
title String
The title of the task.
uniqueId String
creationDate string
description string
The description of the task.
dueIn number
Time in minutes to complete the task -1 => no due time
position number
role string
The unique_id of incident role attached to the task
taskTemplateId string
The unique_id of tasktemplate to create the tasktemplatetasks in.
taskTemplateTasksId string
The ID of the Zenduty TaskTemplateTask.
teamId string
The unique_id of team.
title string
The title of the task.
uniqueId string
creation_date str
description str
The description of the task.
due_in float
Time in minutes to complete the task -1 => no due time
position float
role str
The unique_id of incident role attached to the task
task_template_id str
The unique_id of tasktemplate to create the tasktemplatetasks in.
task_template_tasks_id str
The ID of the Zenduty TaskTemplateTask.
team_id str
The unique_id of team.
title str
The title of the task.
unique_id str
creationDate String
description String
The description of the task.
dueIn Number
Time in minutes to complete the task -1 => no due time
position Number
role String
The unique_id of incident role attached to the task
taskTemplateId String
The unique_id of tasktemplate to create the tasktemplatetasks in.
taskTemplateTasksId String
The ID of the Zenduty TaskTemplateTask.
teamId String
The unique_id of team.
title String
The title of the task.
uniqueId String

Import

Team TaskTemplate can be imported using the team_id(ie. unique_id of the team) and task_template_id(ie. unique_id of the task template), and task_template_task_id (ie. unique_id of the task template task id) .

hcl

resource “zenduty_task_template_tasks” “demotemplatetask” {

}

$ pulumi import zenduty:index/taskTemplateTasks:TaskTemplateTasks demotemplatetask team_id/task_template_id/task_template_task_id`
Copy

$ terraform state show zenduty_task_template_tasks.demotemplatetask

* copy the output data and paste inside zenduty_task_template_tasks.demotemplatetask resource block and remove the id attribute

$ pulumi preview to verify the import

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
zenduty zenduty/terraform-provider-zenduty
License
Notes
This Pulumi package is based on the zenduty Terraform Provider.