zenduty.Schedules
Explore with Pulumi AI
zenduty.Schedules
is a resource to manage schedules in a team
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleteam = new zenduty.Teams("exampleteam", {});
import pulumi
import pulumi_zenduty as zenduty
exampleteam = zenduty.Teams("exampleteam")
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.NewTeams(ctx, "exampleteam", 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");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Teams;
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");
}
}
resources:
exampleteam:
type: zenduty:Teams
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleschedule = new zenduty.Schedules("exampleschedule", {
teamId: zenduty_teams.exampleteam.id,
timeZone: "",
});
import pulumi
import pulumi_zenduty as zenduty
exampleschedule = zenduty.Schedules("exampleschedule",
team_id=zenduty_teams["exampleteam"]["id"],
time_zone="")
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.NewSchedules(ctx, "exampleschedule", &zenduty.SchedulesArgs{
TeamId: pulumi.Any(zenduty_teams.Exampleteam.Id),
TimeZone: 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 exampleschedule = new Zenduty.Schedules("exampleschedule", new()
{
TeamId = zenduty_teams.Exampleteam.Id,
TimeZone = "",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Schedules;
import com.pulumi.zenduty.SchedulesArgs;
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 exampleschedule = new Schedules("exampleschedule", SchedulesArgs.builder()
.teamId(zenduty_teams.exampleteam().id())
.timeZone("")
.build());
}
}
resources:
exampleschedule:
type: zenduty:Schedules
properties:
teamId: ${zenduty_teams.exampleteam.id}
timeZone: ""
Layers and Daily Restrictions
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) {
}
}
{}
Layers and Weekly Restrictions
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) {
}
}
{}
Overrides
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) {
}
}
{}
Schedule Example
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const demoSchedule = new zenduty.Schedules("demoSchedule", {
teamId: zenduty_teams.exampleteam.id,
timeZone: "Asia/Kolkata",
layers: [
{
name: "layer1",
rotationEndTime: "2021-03-01 11:36",
rotationStartTime: "2022-03-01 11:36",
shiftLength: 86400,
users: [
"user1",
"user2",
],
restrictionType: 2,
restrictions: [{
startTimeOfDay: "08:00:00",
startDayOfWeek: 1,
duration: 86400,
}],
},
{
name: "layer2",
rotationEndTime: "2023-02-09T16:21:00+05:30",
rotationStartTime: "2022-02-09T12:21:11+05:30",
shiftLength: 86400,
users: [
"user3",
"user4",
],
restrictionType: 1,
restrictions: [{
startTimeOfDay: "08:00:00",
startDayOfWeek: 7,
duration: 3600,
}],
},
],
overrides: [{
name: "example override",
startTime: "2021-03-01 11:36",
endTime: "2021-03-02 11:36",
user: "",
}],
});
import pulumi
import pulumi_zenduty as zenduty
demo_schedule = zenduty.Schedules("demoSchedule",
team_id=zenduty_teams["exampleteam"]["id"],
time_zone="Asia/Kolkata",
layers=[
{
"name": "layer1",
"rotation_end_time": "2021-03-01 11:36",
"rotation_start_time": "2022-03-01 11:36",
"shift_length": 86400,
"users": [
"user1",
"user2",
],
"restriction_type": 2,
"restrictions": [{
"start_time_of_day": "08:00:00",
"start_day_of_week": 1,
"duration": 86400,
}],
},
{
"name": "layer2",
"rotation_end_time": "2023-02-09T16:21:00+05:30",
"rotation_start_time": "2022-02-09T12:21:11+05:30",
"shift_length": 86400,
"users": [
"user3",
"user4",
],
"restriction_type": 1,
"restrictions": [{
"start_time_of_day": "08:00:00",
"start_day_of_week": 7,
"duration": 3600,
}],
},
],
overrides=[{
"name": "example override",
"start_time": "2021-03-01 11:36",
"end_time": "2021-03-02 11:36",
"user": "",
}])
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.NewSchedules(ctx, "demoSchedule", &zenduty.SchedulesArgs{
TeamId: pulumi.Any(zenduty_teams.Exampleteam.Id),
TimeZone: pulumi.String("Asia/Kolkata"),
Layers: zenduty.SchedulesLayerArray{
&zenduty.SchedulesLayerArgs{
Name: pulumi.String("layer1"),
RotationEndTime: pulumi.String("2021-03-01 11:36"),
RotationStartTime: pulumi.String("2022-03-01 11:36"),
ShiftLength: pulumi.Float64(86400),
Users: pulumi.StringArray{
pulumi.String("user1"),
pulumi.String("user2"),
},
RestrictionType: pulumi.Float64(2),
Restrictions: zenduty.SchedulesLayerRestrictionArray{
&zenduty.SchedulesLayerRestrictionArgs{
StartTimeOfDay: pulumi.String("08:00:00"),
StartDayOfWeek: pulumi.Float64(1),
Duration: pulumi.Float64(86400),
},
},
},
&zenduty.SchedulesLayerArgs{
Name: pulumi.String("layer2"),
RotationEndTime: pulumi.String("2023-02-09T16:21:00+05:30"),
RotationStartTime: pulumi.String("2022-02-09T12:21:11+05:30"),
ShiftLength: pulumi.Float64(86400),
Users: pulumi.StringArray{
pulumi.String("user3"),
pulumi.String("user4"),
},
RestrictionType: pulumi.Float64(1),
Restrictions: zenduty.SchedulesLayerRestrictionArray{
&zenduty.SchedulesLayerRestrictionArgs{
StartTimeOfDay: pulumi.String("08:00:00"),
StartDayOfWeek: pulumi.Float64(7),
Duration: pulumi.Float64(3600),
},
},
},
},
Overrides: zenduty.SchedulesOverrideArray{
&zenduty.SchedulesOverrideArgs{
Name: pulumi.String("example override"),
StartTime: pulumi.String("2021-03-01 11:36"),
EndTime: pulumi.String("2021-03-02 11:36"),
User: 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 demoSchedule = new Zenduty.Schedules("demoSchedule", new()
{
TeamId = zenduty_teams.Exampleteam.Id,
TimeZone = "Asia/Kolkata",
Layers = new[]
{
new Zenduty.Inputs.SchedulesLayerArgs
{
Name = "layer1",
RotationEndTime = "2021-03-01 11:36",
RotationStartTime = "2022-03-01 11:36",
ShiftLength = 86400,
Users = new[]
{
"user1",
"user2",
},
RestrictionType = 2,
Restrictions = new[]
{
new Zenduty.Inputs.SchedulesLayerRestrictionArgs
{
StartTimeOfDay = "08:00:00",
StartDayOfWeek = 1,
Duration = 86400,
},
},
},
new Zenduty.Inputs.SchedulesLayerArgs
{
Name = "layer2",
RotationEndTime = "2023-02-09T16:21:00+05:30",
RotationStartTime = "2022-02-09T12:21:11+05:30",
ShiftLength = 86400,
Users = new[]
{
"user3",
"user4",
},
RestrictionType = 1,
Restrictions = new[]
{
new Zenduty.Inputs.SchedulesLayerRestrictionArgs
{
StartTimeOfDay = "08:00:00",
StartDayOfWeek = 7,
Duration = 3600,
},
},
},
},
Overrides = new[]
{
new Zenduty.Inputs.SchedulesOverrideArgs
{
Name = "example override",
StartTime = "2021-03-01 11:36",
EndTime = "2021-03-02 11:36",
User = "",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Schedules;
import com.pulumi.zenduty.SchedulesArgs;
import com.pulumi.zenduty.inputs.SchedulesLayerArgs;
import com.pulumi.zenduty.inputs.SchedulesOverrideArgs;
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 demoSchedule = new Schedules("demoSchedule", SchedulesArgs.builder()
.teamId(zenduty_teams.exampleteam().id())
.timeZone("Asia/Kolkata")
.layers(
SchedulesLayerArgs.builder()
.name("layer1")
.rotationEndTime("2021-03-01 11:36")
.rotationStartTime("2022-03-01 11:36")
.shiftLength(86400)
.users(
"user1",
"user2")
.restrictionType(2)
.restrictions(SchedulesLayerRestrictionArgs.builder()
.startTimeOfDay("08:00:00")
.startDayOfWeek(1)
.duration(86400)
.build())
.build(),
SchedulesLayerArgs.builder()
.name("layer2")
.rotationEndTime("2023-02-09T16:21:00+05:30")
.rotationStartTime("2022-02-09T12:21:11+05:30")
.shiftLength(86400)
.users(
"user3",
"user4")
.restrictionType(1)
.restrictions(SchedulesLayerRestrictionArgs.builder()
.startTimeOfDay("08:00:00")
.startDayOfWeek(7)
.duration(3600)
.build())
.build())
.overrides(SchedulesOverrideArgs.builder()
.name("example override")
.startTime("2021-03-01 11:36")
.endTime("2021-03-02 11:36")
.user("")
.build())
.build());
}
}
resources:
demoSchedule:
type: zenduty:Schedules
properties:
teamId: ${zenduty_teams.exampleteam.id}
timeZone: Asia/Kolkata
layers:
- name: layer1
rotationEndTime: 2021-03-01 11:36
rotationStartTime: 2022-03-01 11:36
shiftLength: 86400
users:
- user1
- user2
restrictionType: 2
restrictions:
- startTimeOfDay: 08:00:00
startDayOfWeek: 1
duration: 86400
- name: layer2
rotationEndTime: 2023-02-09T16:21:00+05:30
rotationStartTime: 2022-02-09T12:21:11+05:30
shiftLength: 86400
users:
- user3
- user4
restrictionType: 1
restrictions:
- startTimeOfDay: 08:00:00
startDayOfWeek: 7
duration: 3600
overrides:
- name: example override
startTime: 2021-03-01 11:36
endTime: 2021-03-02 11:36
user: ""
Create Schedules Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Schedules(name: string, args: SchedulesArgs, opts?: CustomResourceOptions);
@overload
def Schedules(resource_name: str,
args: SchedulesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Schedules(resource_name: str,
opts: Optional[ResourceOptions] = None,
team_id: Optional[str] = None,
time_zone: Optional[str] = None,
description: Optional[str] = None,
layers: Optional[Sequence[SchedulesLayerArgs]] = None,
name: Optional[str] = None,
overrides: Optional[Sequence[SchedulesOverrideArgs]] = None,
schedules_id: Optional[str] = None,
summary: Optional[str] = None)
func NewSchedules(ctx *Context, name string, args SchedulesArgs, opts ...ResourceOption) (*Schedules, error)
public Schedules(string name, SchedulesArgs args, CustomResourceOptions? opts = null)
public Schedules(String name, SchedulesArgs args)
public Schedules(String name, SchedulesArgs args, CustomResourceOptions options)
type: zenduty:Schedules
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 SchedulesArgs
- 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 SchedulesArgs
- 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 SchedulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchedulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchedulesArgs
- 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 schedulesResource = new Zenduty.Schedules("schedulesResource", new()
{
TeamId = "string",
TimeZone = "string",
Description = "string",
Layers = new[]
{
new Zenduty.Inputs.SchedulesLayerArgs
{
Name = "string",
RotationStartTime = "string",
ShiftLength = 0,
Users = new[]
{
"string",
},
RestrictionType = 0,
Restrictions = new[]
{
new Zenduty.Inputs.SchedulesLayerRestrictionArgs
{
Duration = 0,
StartDayOfWeek = 0,
StartTimeOfDay = "string",
},
},
RotationEndTime = "string",
},
},
Name = "string",
Overrides = new[]
{
new Zenduty.Inputs.SchedulesOverrideArgs
{
EndTime = "string",
Name = "string",
StartTime = "string",
User = "string",
},
},
SchedulesId = "string",
Summary = "string",
});
example, err := zenduty.NewSchedules(ctx, "schedulesResource", &zenduty.SchedulesArgs{
TeamId: pulumi.String("string"),
TimeZone: pulumi.String("string"),
Description: pulumi.String("string"),
Layers: .SchedulesLayerArray{
&.SchedulesLayerArgs{
Name: pulumi.String("string"),
RotationStartTime: pulumi.String("string"),
ShiftLength: pulumi.Float64(0),
Users: pulumi.StringArray{
pulumi.String("string"),
},
RestrictionType: pulumi.Float64(0),
Restrictions: .SchedulesLayerRestrictionArray{
&.SchedulesLayerRestrictionArgs{
Duration: pulumi.Float64(0),
StartDayOfWeek: pulumi.Float64(0),
StartTimeOfDay: pulumi.String("string"),
},
},
RotationEndTime: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Overrides: .SchedulesOverrideArray{
&.SchedulesOverrideArgs{
EndTime: pulumi.String("string"),
Name: pulumi.String("string"),
StartTime: pulumi.String("string"),
User: pulumi.String("string"),
},
},
SchedulesId: pulumi.String("string"),
Summary: pulumi.String("string"),
})
var schedulesResource = new Schedules("schedulesResource", SchedulesArgs.builder()
.teamId("string")
.timeZone("string")
.description("string")
.layers(SchedulesLayerArgs.builder()
.name("string")
.rotationStartTime("string")
.shiftLength(0)
.users("string")
.restrictionType(0)
.restrictions(SchedulesLayerRestrictionArgs.builder()
.duration(0)
.startDayOfWeek(0)
.startTimeOfDay("string")
.build())
.rotationEndTime("string")
.build())
.name("string")
.overrides(SchedulesOverrideArgs.builder()
.endTime("string")
.name("string")
.startTime("string")
.user("string")
.build())
.schedulesId("string")
.summary("string")
.build());
schedules_resource = zenduty.Schedules("schedulesResource",
team_id="string",
time_zone="string",
description="string",
layers=[{
"name": "string",
"rotation_start_time": "string",
"shift_length": 0,
"users": ["string"],
"restriction_type": 0,
"restrictions": [{
"duration": 0,
"start_day_of_week": 0,
"start_time_of_day": "string",
}],
"rotation_end_time": "string",
}],
name="string",
overrides=[{
"end_time": "string",
"name": "string",
"start_time": "string",
"user": "string",
}],
schedules_id="string",
summary="string")
const schedulesResource = new zenduty.Schedules("schedulesResource", {
teamId: "string",
timeZone: "string",
description: "string",
layers: [{
name: "string",
rotationStartTime: "string",
shiftLength: 0,
users: ["string"],
restrictionType: 0,
restrictions: [{
duration: 0,
startDayOfWeek: 0,
startTimeOfDay: "string",
}],
rotationEndTime: "string",
}],
name: "string",
overrides: [{
endTime: "string",
name: "string",
startTime: "string",
user: "string",
}],
schedulesId: "string",
summary: "string",
});
type: zenduty:Schedules
properties:
description: string
layers:
- name: string
restrictionType: 0
restrictions:
- duration: 0
startDayOfWeek: 0
startTimeOfDay: string
rotationEndTime: string
rotationStartTime: string
shiftLength: 0
users:
- string
name: string
overrides:
- endTime: string
name: string
startTime: string
user: string
schedulesId: string
summary: string
teamId: string
timeZone: string
Schedules 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 Schedules resource accepts the following input properties:
- Team
Id string - The unique_id of the team to create the escalation policy in.
- Time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- Description string
- The description of the schedule.
- Layers
List<Schedules
Layer> - The layers of the schedule. (see below for nested schema)
- Name string
- The name of the override.
- Overrides
List<Schedules
Override> - The overrides of the schedule. (see below for nested schema)
- Schedules
Id string - The ID of the Schedule.
- Summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- Team
Id string - The unique_id of the team to create the escalation policy in.
- Time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- Description string
- The description of the schedule.
- Layers
[]Schedules
Layer Args - The layers of the schedule. (see below for nested schema)
- Name string
- The name of the override.
- Overrides
[]Schedules
Override Args - The overrides of the schedule. (see below for nested schema)
- Schedules
Id string - The ID of the Schedule.
- Summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team
Id String - The unique_id of the team to create the escalation policy in.
- time
Zone String - The time_zone of the layer. ex: "Asia/Kolkata"
- description String
- The description of the schedule.
- layers
List<Schedules
Layer> - The layers of the schedule. (see below for nested schema)
- name String
- The name of the override.
- overrides
List<Schedules
Override> - The overrides of the schedule. (see below for nested schema)
- schedules
Id String - The ID of the Schedule.
- summary String
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team
Id string - The unique_id of the team to create the escalation policy in.
- time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- description string
- The description of the schedule.
- layers
Schedules
Layer[] - The layers of the schedule. (see below for nested schema)
- name string
- The name of the override.
- overrides
Schedules
Override[] - The overrides of the schedule. (see below for nested schema)
- schedules
Id string - The ID of the Schedule.
- summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team_
id str - The unique_id of the team to create the escalation policy in.
- time_
zone str - The time_zone of the layer. ex: "Asia/Kolkata"
- description str
- The description of the schedule.
- layers
Sequence[Schedules
Layer Args] - The layers of the schedule. (see below for nested schema)
- name str
- The name of the override.
- overrides
Sequence[Schedules
Override Args] - The overrides of the schedule. (see below for nested schema)
- schedules_
id str - The ID of the Schedule.
- summary str
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team
Id String - The unique_id of the team to create the escalation policy in.
- time
Zone String - The time_zone of the layer. ex: "Asia/Kolkata"
- description String
- The description of the schedule.
- layers List<Property Map>
- The layers of the schedule. (see below for nested schema)
- name String
- The name of the override.
- overrides List<Property Map>
- The overrides of the schedule. (see below for nested schema)
- schedules
Id String - The ID of the Schedule.
- summary String
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
Outputs
All input properties are implicitly available as output properties. Additionally, the Schedules 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 Schedules Resource
Get an existing Schedules 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?: SchedulesState, opts?: CustomResourceOptions): Schedules
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
layers: Optional[Sequence[SchedulesLayerArgs]] = None,
name: Optional[str] = None,
overrides: Optional[Sequence[SchedulesOverrideArgs]] = None,
schedules_id: Optional[str] = None,
summary: Optional[str] = None,
team_id: Optional[str] = None,
time_zone: Optional[str] = None) -> Schedules
func GetSchedules(ctx *Context, name string, id IDInput, state *SchedulesState, opts ...ResourceOption) (*Schedules, error)
public static Schedules Get(string name, Input<string> id, SchedulesState? state, CustomResourceOptions? opts = null)
public static Schedules get(String name, Output<String> id, SchedulesState state, CustomResourceOptions options)
resources: _: type: zenduty:Schedules 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 schedule.
- Layers
List<Schedules
Layer> - The layers of the schedule. (see below for nested schema)
- Name string
- The name of the override.
- Overrides
List<Schedules
Override> - The overrides of the schedule. (see below for nested schema)
- Schedules
Id string - The ID of the Schedule.
- Summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- Team
Id string - The unique_id of the team to create the escalation policy in.
- Time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- Description string
- The description of the schedule.
- Layers
[]Schedules
Layer Args - The layers of the schedule. (see below for nested schema)
- Name string
- The name of the override.
- Overrides
[]Schedules
Override Args - The overrides of the schedule. (see below for nested schema)
- Schedules
Id string - The ID of the Schedule.
- Summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- Team
Id string - The unique_id of the team to create the escalation policy in.
- Time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- description String
- The description of the schedule.
- layers
List<Schedules
Layer> - The layers of the schedule. (see below for nested schema)
- name String
- The name of the override.
- overrides
List<Schedules
Override> - The overrides of the schedule. (see below for nested schema)
- schedules
Id String - The ID of the Schedule.
- summary String
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team
Id String - The unique_id of the team to create the escalation policy in.
- time
Zone String - The time_zone of the layer. ex: "Asia/Kolkata"
- description string
- The description of the schedule.
- layers
Schedules
Layer[] - The layers of the schedule. (see below for nested schema)
- name string
- The name of the override.
- overrides
Schedules
Override[] - The overrides of the schedule. (see below for nested schema)
- schedules
Id string - The ID of the Schedule.
- summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team
Id string - The unique_id of the team to create the escalation policy in.
- time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- description str
- The description of the schedule.
- layers
Sequence[Schedules
Layer Args] - The layers of the schedule. (see below for nested schema)
- name str
- The name of the override.
- overrides
Sequence[Schedules
Override Args] - The overrides of the schedule. (see below for nested schema)
- schedules_
id str - The ID of the Schedule.
- summary str
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team_
id str - The unique_id of the team to create the escalation policy in.
- time_
zone str - The time_zone of the layer. ex: "Asia/Kolkata"
- description String
- The description of the schedule.
- layers List<Property Map>
- The layers of the schedule. (see below for nested schema)
- name String
- The name of the override.
- overrides List<Property Map>
- The overrides of the schedule. (see below for nested schema)
- schedules
Id String - The ID of the Schedule.
- summary String
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")
using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { 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 { _, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }
variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team
Id String - The unique_id of the team to create the escalation policy in.
- time
Zone String - The time_zone of the layer. ex: "Asia/Kolkata"
Supporting Types
SchedulesLayer, SchedulesLayerArgs
- Name string
- The name of the override.
- Rotation
Start stringTime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- Shift
Length double - The shift_length of the layer in seconds.
- Users List<string>
- Array of username of users
- Restriction
Type double - The restriction_type of the layer. ex:
1
for day,2
for week ,0
for default - Restrictions
List<Schedules
Layer Restriction> The restrictions of the layer. (see below for nested schema)
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
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) { } }
{}
- Rotation
End stringTime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
- Name string
- The name of the override.
- Rotation
Start stringTime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- Shift
Length float64 - The shift_length of the layer in seconds.
- Users []string
- Array of username of users
- Restriction
Type float64 - The restriction_type of the layer. ex:
1
for day,2
for week ,0
for default - Restrictions
[]Schedules
Layer Restriction The restrictions of the layer. (see below for nested schema)
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
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) { } }
{}
- Rotation
End stringTime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
- name String
- The name of the override.
- rotation
Start StringTime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- shift
Length Double - The shift_length of the layer in seconds.
- users List<String>
- Array of username of users
- restriction
Type Double - The restriction_type of the layer. ex:
1
for day,2
for week ,0
for default - restrictions
List<Schedules
Layer Restriction> The restrictions of the layer. (see below for nested schema)
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
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) { } }
{}
- rotation
End StringTime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
- name string
- The name of the override.
- rotation
Start stringTime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- shift
Length number - The shift_length of the layer in seconds.
- users string[]
- Array of username of users
- restriction
Type number - The restriction_type of the layer. ex:
1
for day,2
for week ,0
for default - restrictions
Schedules
Layer Restriction[] The restrictions of the layer. (see below for nested schema)
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
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) { } }
{}
- rotation
End stringTime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
- name str
- The name of the override.
- rotation_
start_ strtime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- shift_
length float - The shift_length of the layer in seconds.
- users Sequence[str]
- Array of username of users
- restriction_
type float - The restriction_type of the layer. ex:
1
for day,2
for week ,0
for default - restrictions
Sequence[Schedules
Layer Restriction] The restrictions of the layer. (see below for nested schema)
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
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) { } }
{}
- rotation_
end_ strtime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
- name String
- The name of the override.
- rotation
Start StringTime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- shift
Length Number - The shift_length of the layer in seconds.
- users List<String>
- Array of username of users
- restriction
Type Number - The restriction_type of the layer. ex:
1
for day,2
for week ,0
for default - restrictions List<Property Map>
The restrictions of the layer. (see below for nested schema)
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
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) { } }
{}
- rotation
End StringTime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
SchedulesLayerRestriction, SchedulesLayerRestrictionArgs
- Duration double
- The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
- Start
Day doubleOf Week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- Start
Time stringOf Day - The start_time_of_day of the restriction. time in HH:MM:SS format.
- Duration float64
- The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
- Start
Day float64Of Week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- Start
Time stringOf Day - The start_time_of_day of the restriction. time in HH:MM:SS format.
- duration Double
- The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
- start
Day DoubleOf Week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- start
Time StringOf Day - The start_time_of_day of the restriction. time in HH:MM:SS format.
- duration number
- The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
- start
Day numberOf Week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- start
Time stringOf Day - The start_time_of_day of the restriction. time in HH:MM:SS format.
- duration float
- The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
- start_
day_ floatof_ week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- start_
time_ strof_ day - The start_time_of_day of the restriction. time in HH:MM:SS format.
- duration Number
- The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
- start
Day NumberOf Week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- start
Time StringOf Day - The start_time_of_day of the restriction. time in HH:MM:SS format.
SchedulesOverride, SchedulesOverrideArgs
- end_
time str - The end_time of the override. time in YYYY-MM-DD HH:MM.
- name str
- The name of the override.
- start_
time str - The start_time of the override. time in YYYY-MM-DD HH:MM.
- user str
- The user of the override.
Import
Team Schedules can be imported using the team_id
(ie. unique_id of the team) and schedule_id
(ie. unique_id of the schedule), e.g.
hcl
resource “zenduty_schedules” “schedule1” {
}
$ pulumi import zenduty:index/schedules:Schedules schedule1 team_id/schedule_id`
$ terraform state show zenduty_schedules.schedule1
* copy the output data and paste inside zenduty_schedules.schedule1 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.