zenduty.Esp
Explore with Pulumi AI
zenduty.Esp is a resource to manage escalation policies in a team
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleteam = new zenduty.Teams("exampleteam", {});
const exampleSchedule = new zenduty.Schedules("exampleSchedule", {
    teamId: exampleteam.teamsId,
    timeZone: "",
});
const user1 = zenduty.getUser({
    email: "demouser@gmail.com",
});
import pulumi
import pulumi_zenduty as zenduty
exampleteam = zenduty.Teams("exampleteam")
example_schedule = zenduty.Schedules("exampleSchedule",
    team_id=exampleteam.teams_id,
    time_zone="")
user1 = zenduty.get_user(email="demouser@gmail.com")
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 {
		exampleteam, err := zenduty.NewTeams(ctx, "exampleteam", nil)
		if err != nil {
			return err
		}
		_, err = zenduty.NewSchedules(ctx, "exampleSchedule", &zenduty.SchedulesArgs{
			TeamId:   exampleteam.TeamsId,
			TimeZone: pulumi.String(""),
		})
		if err != nil {
			return err
		}
		_, err = zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{
			Email: "demouser@gmail.com",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;
return await Deployment.RunAsync(() => 
{
    var exampleteam = new Zenduty.Teams("exampleteam");
    var exampleSchedule = new Zenduty.Schedules("exampleSchedule", new()
    {
        TeamId = exampleteam.TeamsId,
        TimeZone = "",
    });
    var user1 = Zenduty.GetUser.Invoke(new()
    {
        Email = "demouser@gmail.com",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Teams;
import com.pulumi.zenduty.Schedules;
import com.pulumi.zenduty.SchedulesArgs;
import com.pulumi.zenduty.ZendutyFunctions;
import com.pulumi.zenduty.inputs.GetUserArgs;
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 exampleteam = new Teams("exampleteam");
        var exampleSchedule = new Schedules("exampleSchedule", SchedulesArgs.builder()
            .teamId(exampleteam.teamsId())
            .timeZone("")
            .build());
        final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder()
            .email("demouser@gmail.com")
            .build());
    }
}
resources:
  exampleteam:
    type: zenduty:Teams
  exampleSchedule:
    type: zenduty:Schedules
    properties:
      teamId: ${exampleteam.teamsId}
      timeZone: ""
variables:
  user1:
    fn::invoke:
      function: zenduty:getUser
      arguments:
        email: demouser@gmail.com
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleEsp = new zenduty.Esp("exampleEsp", {
    teamId: zenduty_teams.exampleteam.id,
    description: "",
});
import pulumi
import pulumi_zenduty as zenduty
example_esp = zenduty.Esp("exampleEsp",
    team_id=zenduty_teams["exampleteam"]["id"],
    description="")
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.NewEsp(ctx, "exampleEsp", &zenduty.EspArgs{
			TeamId:      pulumi.Any(zenduty_teams.Exampleteam.Id),
			Description: pulumi.String(""),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;
return await Deployment.RunAsync(() => 
{
    var exampleEsp = new Zenduty.Esp("exampleEsp", new()
    {
        TeamId = zenduty_teams.Exampleteam.Id,
        Description = "",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Esp;
import com.pulumi.zenduty.EspArgs;
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 exampleEsp = new Esp("exampleEsp", EspArgs.builder()
            .teamId(zenduty_teams.exampleteam().id())
            .description("")
            .build());
    }
}
resources:
  exampleEsp:
    type: zenduty:Esp
    properties:
      teamId: ${zenduty_teams.exampleteam.id}
      description: ""
Rules
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() => 
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
{}
- delay(Required) (Number) - The delay of the rule in minutes.
- targets(see below for nested schema)
Targets
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() => 
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
{}
- target_type(Required) (Number) - values are- 1for schedule- 2for user
- target_id(Required) (String) - username of the user to assign. or unique_id of schedule
Escalation Policy Example
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const esp1 = new zenduty.Esp("esp1", {
    teamId: "",
    summary: "This is the summary for the new ESP",
    description: "This is the description for the new ESP",
    rules: [
        {
            delay: 0,
            targets: [
                {
                    targetType: 2,
                    targetId: data.zenduty_user.user1.users[0].username,
                },
                {
                    targetType: 1,
                    targetId: zenduty_schedules.example_schedule.id,
                },
            ],
        },
        {
            delay: 5,
            targets: [
                {
                    targetType: 2,
                    targetId: "",
                },
                {
                    targetType: 2,
                    targetId: "",
                },
            ],
        },
    ],
    moveToNext: true,
    repeatPolicy: 8,
});
import pulumi
import pulumi_zenduty as zenduty
esp1 = zenduty.Esp("esp1",
    team_id="",
    summary="This is the summary for the new ESP",
    description="This is the description for the new ESP",
    rules=[
        {
            "delay": 0,
            "targets": [
                {
                    "target_type": 2,
                    "target_id": data["zenduty_user"]["user1"]["users"][0]["username"],
                },
                {
                    "target_type": 1,
                    "target_id": zenduty_schedules["example_schedule"]["id"],
                },
            ],
        },
        {
            "delay": 5,
            "targets": [
                {
                    "target_type": 2,
                    "target_id": "",
                },
                {
                    "target_type": 2,
                    "target_id": "",
                },
            ],
        },
    ],
    move_to_next=True,
    repeat_policy=8)
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.NewEsp(ctx, "esp1", &zenduty.EspArgs{
			TeamId:      pulumi.String(""),
			Summary:     pulumi.String("This is the summary for the new ESP"),
			Description: pulumi.String("This is the description for the new ESP"),
			Rules: zenduty.EspRuleArray{
				&zenduty.EspRuleArgs{
					Delay: pulumi.Float64(0),
					Targets: zenduty.EspRuleTargetArray{
						&zenduty.EspRuleTargetArgs{
							TargetType: pulumi.Float64(2),
							TargetId:   pulumi.Any(data.Zenduty_user.User1.Users[0].Username),
						},
						&zenduty.EspRuleTargetArgs{
							TargetType: pulumi.Float64(1),
							TargetId:   pulumi.Any(zenduty_schedules.Example_schedule.Id),
						},
					},
				},
				&zenduty.EspRuleArgs{
					Delay: pulumi.Float64(5),
					Targets: zenduty.EspRuleTargetArray{
						&zenduty.EspRuleTargetArgs{
							TargetType: pulumi.Float64(2),
							TargetId:   pulumi.String(""),
						},
						&zenduty.EspRuleTargetArgs{
							TargetType: pulumi.Float64(2),
							TargetId:   pulumi.String(""),
						},
					},
				},
			},
			MoveToNext:   pulumi.Bool(true),
			RepeatPolicy: pulumi.Float64(8),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;
return await Deployment.RunAsync(() => 
{
    var esp1 = new Zenduty.Esp("esp1", new()
    {
        TeamId = "",
        Summary = "This is the summary for the new ESP",
        Description = "This is the description for the new ESP",
        Rules = new[]
        {
            new Zenduty.Inputs.EspRuleArgs
            {
                Delay = 0,
                Targets = new[]
                {
                    new Zenduty.Inputs.EspRuleTargetArgs
                    {
                        TargetType = 2,
                        TargetId = data.Zenduty_user.User1.Users[0].Username,
                    },
                    new Zenduty.Inputs.EspRuleTargetArgs
                    {
                        TargetType = 1,
                        TargetId = zenduty_schedules.Example_schedule.Id,
                    },
                },
            },
            new Zenduty.Inputs.EspRuleArgs
            {
                Delay = 5,
                Targets = new[]
                {
                    new Zenduty.Inputs.EspRuleTargetArgs
                    {
                        TargetType = 2,
                        TargetId = "",
                    },
                    new Zenduty.Inputs.EspRuleTargetArgs
                    {
                        TargetType = 2,
                        TargetId = "",
                    },
                },
            },
        },
        MoveToNext = true,
        RepeatPolicy = 8,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Esp;
import com.pulumi.zenduty.EspArgs;
import com.pulumi.zenduty.inputs.EspRuleArgs;
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 esp1 = new Esp("esp1", EspArgs.builder()
            .teamId("")
            .summary("This is the summary for the new ESP")
            .description("This is the description for the new ESP")
            .rules(            
                EspRuleArgs.builder()
                    .delay(0)
                    .targets(                    
                        EspRuleTargetArgs.builder()
                            .targetType(2)
                            .targetId(data.zenduty_user().user1().users()[0].username())
                            .build(),
                        EspRuleTargetArgs.builder()
                            .targetType(1)
                            .targetId(zenduty_schedules.example_schedule().id())
                            .build())
                    .build(),
                EspRuleArgs.builder()
                    .delay(5)
                    .targets(                    
                        EspRuleTargetArgs.builder()
                            .targetType(2)
                            .targetId("")
                            .build(),
                        EspRuleTargetArgs.builder()
                            .targetType(2)
                            .targetId("")
                            .build())
                    .build())
            .moveToNext(true)
            .repeatPolicy(8)
            .build());
    }
}
resources:
  esp1:
    type: zenduty:Esp
    properties:
      teamId: ""
      summary: This is the summary for the new ESP
      description: This is the description for the new ESP
      rules:
        - delay: 0
          targets:
            - targetType: 2
              targetId: ${data.zenduty_user.user1.users[0].username}
            - targetType: 1
              targetId: ${zenduty_schedules.example_schedule.id}
        - delay: 5
          targets:
            - targetType: 2
              targetId: ""
            - targetType: 2
              targetId: ""
      moveToNext: true
      repeatPolicy: 8
DataTypes
Required Fields:
- name (String)
- team_id (String)
Optional
- description (String)
- move_to_next (Boolean)
- repeat_policy (Number) > range from 1to10
- rules (Block List) (see above rules schema)
- summary (String)
Create Esp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Esp(name: string, args: EspArgs, opts?: CustomResourceOptions);@overload
def Esp(resource_name: str,
        args: EspArgs,
        opts: Optional[ResourceOptions] = None)
@overload
def Esp(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        team_id: Optional[str] = None,
        description: Optional[str] = None,
        esp_id: Optional[str] = None,
        move_to_next: Optional[bool] = None,
        name: Optional[str] = None,
        repeat_policy: Optional[float] = None,
        rules: Optional[Sequence[EspRuleArgs]] = None,
        summary: Optional[str] = None)func NewEsp(ctx *Context, name string, args EspArgs, opts ...ResourceOption) (*Esp, error)public Esp(string name, EspArgs args, CustomResourceOptions? opts = null)type: zenduty:Esp
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 EspArgs
- 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 EspArgs
- 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 EspArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EspArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EspArgs
- 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 espResource = new Zenduty.Esp("espResource", new()
{
    TeamId = "string",
    Description = "string",
    EspId = "string",
    MoveToNext = false,
    Name = "string",
    RepeatPolicy = 0,
    Rules = new[]
    {
        new Zenduty.Inputs.EspRuleArgs
        {
            Delay = 0,
            Targets = new[]
            {
                new Zenduty.Inputs.EspRuleTargetArgs
                {
                    TargetId = "string",
                    TargetType = 0,
                },
            },
        },
    },
    Summary = "string",
});
example, err := zenduty.NewEsp(ctx, "espResource", &zenduty.EspArgs{
TeamId: pulumi.String("string"),
Description: pulumi.String("string"),
EspId: pulumi.String("string"),
MoveToNext: pulumi.Bool(false),
Name: pulumi.String("string"),
RepeatPolicy: pulumi.Float64(0),
Rules: .EspRuleArray{
&.EspRuleArgs{
Delay: pulumi.Float64(0),
Targets: .EspRuleTargetArray{
&.EspRuleTargetArgs{
TargetId: pulumi.String("string"),
TargetType: pulumi.Float64(0),
},
},
},
},
Summary: pulumi.String("string"),
})
var espResource = new Esp("espResource", EspArgs.builder()
    .teamId("string")
    .description("string")
    .espId("string")
    .moveToNext(false)
    .name("string")
    .repeatPolicy(0)
    .rules(EspRuleArgs.builder()
        .delay(0)
        .targets(EspRuleTargetArgs.builder()
            .targetId("string")
            .targetType(0)
            .build())
        .build())
    .summary("string")
    .build());
esp_resource = zenduty.Esp("espResource",
    team_id="string",
    description="string",
    esp_id="string",
    move_to_next=False,
    name="string",
    repeat_policy=0,
    rules=[{
        "delay": 0,
        "targets": [{
            "target_id": "string",
            "target_type": 0,
        }],
    }],
    summary="string")
const espResource = new zenduty.Esp("espResource", {
    teamId: "string",
    description: "string",
    espId: "string",
    moveToNext: false,
    name: "string",
    repeatPolicy: 0,
    rules: [{
        delay: 0,
        targets: [{
            targetId: "string",
            targetType: 0,
        }],
    }],
    summary: "string",
});
type: zenduty:Esp
properties:
    description: string
    espId: string
    moveToNext: false
    name: string
    repeatPolicy: 0
    rules:
        - delay: 0
          targets:
            - targetId: string
              targetType: 0
    summary: string
    teamId: string
Esp 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 Esp resource accepts the following input properties:
- TeamId string
- The unique_id of the team to create the escalation policy in.
- Description string
- The description of the escalation policy
- EspId string
- The ID of the Escalation Policy.
- MoveTo boolNext 
- The move_to_next of the escalation policy.
- Name string
- The name of the escalation policy.
- RepeatPolicy double
- The repeat_policy of the escalation policy.
- Rules
List<EspRule> 
- The rules of the escalation policy. (see above for nested schema)
- Summary string
- The summary of the escalation policy.
- TeamId string
- The unique_id of the team to create the escalation policy in.
- Description string
- The description of the escalation policy
- EspId string
- The ID of the Escalation Policy.
- MoveTo boolNext 
- The move_to_next of the escalation policy.
- Name string
- The name of the escalation policy.
- RepeatPolicy float64
- The repeat_policy of the escalation policy.
- Rules
[]EspRule Args 
- The rules of the escalation policy. (see above for nested schema)
- Summary string
- The summary of the escalation policy.
- teamId String
- The unique_id of the team to create the escalation policy in.
- description String
- The description of the escalation policy
- espId String
- The ID of the Escalation Policy.
- moveTo BooleanNext 
- The move_to_next of the escalation policy.
- name String
- The name of the escalation policy.
- repeatPolicy Double
- The repeat_policy of the escalation policy.
- rules
List<EspRule> 
- The rules of the escalation policy. (see above for nested schema)
- summary String
- The summary of the escalation policy.
- teamId string
- The unique_id of the team to create the escalation policy in.
- description string
- The description of the escalation policy
- espId string
- The ID of the Escalation Policy.
- moveTo booleanNext 
- The move_to_next of the escalation policy.
- name string
- The name of the escalation policy.
- repeatPolicy number
- The repeat_policy of the escalation policy.
- rules
EspRule[] 
- The rules of the escalation policy. (see above for nested schema)
- summary string
- The summary of the escalation policy.
- team_id str
- The unique_id of the team to create the escalation policy in.
- description str
- The description of the escalation policy
- esp_id str
- The ID of the Escalation Policy.
- move_to_ boolnext 
- The move_to_next of the escalation policy.
- name str
- The name of the escalation policy.
- repeat_policy float
- The repeat_policy of the escalation policy.
- rules
Sequence[EspRule Args] 
- The rules of the escalation policy. (see above for nested schema)
- summary str
- The summary of the escalation policy.
- teamId String
- The unique_id of the team to create the escalation policy in.
- description String
- The description of the escalation policy
- espId String
- The ID of the Escalation Policy.
- moveTo BooleanNext 
- The move_to_next of the escalation policy.
- name String
- The name of the escalation policy.
- repeatPolicy Number
- The repeat_policy of the escalation policy.
- rules List<Property Map>
- The rules of the escalation policy. (see above for nested schema)
- summary String
- The summary of the escalation policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the Esp resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Esp Resource
Get an existing Esp 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?: EspState, opts?: CustomResourceOptions): Esp@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        esp_id: Optional[str] = None,
        move_to_next: Optional[bool] = None,
        name: Optional[str] = None,
        repeat_policy: Optional[float] = None,
        rules: Optional[Sequence[EspRuleArgs]] = None,
        summary: Optional[str] = None,
        team_id: Optional[str] = None) -> Espfunc GetEsp(ctx *Context, name string, id IDInput, state *EspState, opts ...ResourceOption) (*Esp, error)public static Esp Get(string name, Input<string> id, EspState? state, CustomResourceOptions? opts = null)public static Esp get(String name, Output<String> id, EspState state, CustomResourceOptions options)resources:  _:    type: zenduty:Esp    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Description string
- The description of the escalation policy
- EspId string
- The ID of the Escalation Policy.
- MoveTo boolNext 
- The move_to_next of the escalation policy.
- Name string
- The name of the escalation policy.
- RepeatPolicy double
- The repeat_policy of the escalation policy.
- Rules
List<EspRule> 
- The rules of the escalation policy. (see above for nested schema)
- Summary string
- The summary of the escalation policy.
- TeamId string
- The unique_id of the team to create the escalation policy in.
- Description string
- The description of the escalation policy
- EspId string
- The ID of the Escalation Policy.
- MoveTo boolNext 
- The move_to_next of the escalation policy.
- Name string
- The name of the escalation policy.
- RepeatPolicy float64
- The repeat_policy of the escalation policy.
- Rules
[]EspRule Args 
- The rules of the escalation policy. (see above for nested schema)
- Summary string
- The summary of the escalation policy.
- TeamId string
- The unique_id of the team to create the escalation policy in.
- description String
- The description of the escalation policy
- espId String
- The ID of the Escalation Policy.
- moveTo BooleanNext 
- The move_to_next of the escalation policy.
- name String
- The name of the escalation policy.
- repeatPolicy Double
- The repeat_policy of the escalation policy.
- rules
List<EspRule> 
- The rules of the escalation policy. (see above for nested schema)
- summary String
- The summary of the escalation policy.
- teamId String
- The unique_id of the team to create the escalation policy in.
- description string
- The description of the escalation policy
- espId string
- The ID of the Escalation Policy.
- moveTo booleanNext 
- The move_to_next of the escalation policy.
- name string
- The name of the escalation policy.
- repeatPolicy number
- The repeat_policy of the escalation policy.
- rules
EspRule[] 
- The rules of the escalation policy. (see above for nested schema)
- summary string
- The summary of the escalation policy.
- teamId string
- The unique_id of the team to create the escalation policy in.
- description str
- The description of the escalation policy
- esp_id str
- The ID of the Escalation Policy.
- move_to_ boolnext 
- The move_to_next of the escalation policy.
- name str
- The name of the escalation policy.
- repeat_policy float
- The repeat_policy of the escalation policy.
- rules
Sequence[EspRule Args] 
- The rules of the escalation policy. (see above for nested schema)
- summary str
- The summary of the escalation policy.
- team_id str
- The unique_id of the team to create the escalation policy in.
- description String
- The description of the escalation policy
- espId String
- The ID of the Escalation Policy.
- moveTo BooleanNext 
- The move_to_next of the escalation policy.
- name String
- The name of the escalation policy.
- repeatPolicy Number
- The repeat_policy of the escalation policy.
- rules List<Property Map>
- The rules of the escalation policy. (see above for nested schema)
- summary String
- The summary of the escalation policy.
- teamId String
- The unique_id of the team to create the escalation policy in.
Supporting Types
EspRule, EspRuleArgs    
- Delay double
- The delay of the rule in minutes.
- Targets
List<EspRule Target> 
- )
- Delay float64
- The delay of the rule in minutes.
- Targets
[]EspRule Target 
- )
- delay Double
- The delay of the rule in minutes.
- targets
List<EspRule Target> 
- )
- delay number
- The delay of the rule in minutes.
- targets
EspRule Target[] 
- )
- delay float
- The delay of the rule in minutes.
- targets
Sequence[EspRule Target] 
- )
- delay Number
- The delay of the rule in minutes.
- targets List<Property Map>
- )
EspRuleTarget, EspRuleTargetArgs      
- TargetId string
- username of the user to assign. or unique_id of schedule
- TargetType double
- values are 1for schedule2for user
- TargetId string
- username of the user to assign. or unique_id of schedule
- TargetType float64
- values are 1for schedule2for user
- targetId String
- username of the user to assign. or unique_id of schedule
- targetType Double
- values are 1for schedule2for user
- targetId string
- username of the user to assign. or unique_id of schedule
- targetType number
- values are 1for schedule2for user
- target_id str
- username of the user to assign. or unique_id of schedule
- target_type float
- values are 1for schedule2for user
- targetId String
- username of the user to assign. or unique_id of schedule
- targetType Number
- values are 1for schedule2for user
Import
Escalation Policy can be imported using the team_id(ie. unique_id of the team) and esp_id(ie. unique_id of the escalation policy), e.g.
hcl
resource “zenduty_esp” “esp1” {
}
$ pulumi import zenduty:index/esp:Esp esp1 team_id/esp_id`
$ terraform state show zenduty_esp.esp1
* copy the output data and paste inside zenduty_esp.esp1 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 zendutyTerraform Provider.