1. Packages
  2. Packages
  3. Incident Provider
  4. API Docs
  5. ScheduleBeta
Viewing docs for incident 6.0.0
published on Monday, Aug 3, 2026 by incident-io
Viewing docs for incident 6.0.0
published on Monday, Aug 3, 2026 by incident-io

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as incident from "@pulumi/incident";
    
    // A schedule holds the rotations that decide who is on call. This resource covers
    // the schedule itself; rotations are managed separately, so a schedule created
    // here has none and nobody is on call until one is added.
    const platform = new incident.ScheduleBeta("platform", {
        name: "Platform on-call",
        timezone: "Europe/London",
        teamIds: [platformTeam.id],
        holidaysPublicConfig: {
            countryCodes: [
                "GB",
                "FR",
            ],
        },
    });
    
    import pulumi
    import pulumi_incident as incident
    
    # A schedule holds the rotations that decide who is on call. This resource covers
    # the schedule itself; rotations are managed separately, so a schedule created
    # here has none and nobody is on call until one is added.
    platform = incident.ScheduleBeta("platform",
        name="Platform on-call",
        timezone="Europe/London",
        team_ids=[platform_team["id"]],
        holidays_public_config={
            "country_codes": [
                "GB",
                "FR",
            ],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/incident/v6/incident"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// A schedule holds the rotations that decide who is on call. This resource covers
    		// the schedule itself; rotations are managed separately, so a schedule created
    		// here has none and nobody is on call until one is added.
    		_, err := incident.NewScheduleBeta(ctx, "platform", &incident.ScheduleBetaArgs{
    			Name:     pulumi.String("Platform on-call"),
    			Timezone: pulumi.String("Europe/London"),
    			TeamIds: pulumi.StringArray{
    				platformTeam.Id,
    			},
    			HolidaysPublicConfig: &incident.ScheduleBetaHolidaysPublicConfigArgs{
    				CountryCodes: pulumi.StringArray{
    					pulumi.String("GB"),
    					pulumi.String("FR"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Incident = Pulumi.Incident;
    
    return await Deployment.RunAsync(() => 
    {
        // A schedule holds the rotations that decide who is on call. This resource covers
        // the schedule itself; rotations are managed separately, so a schedule created
        // here has none and nobody is on call until one is added.
        var platform = new Incident.ScheduleBeta("platform", new()
        {
            Name = "Platform on-call",
            Timezone = "Europe/London",
            TeamIds = new[]
            {
                platformTeam.Id,
            },
            HolidaysPublicConfig = new Incident.Inputs.ScheduleBetaHolidaysPublicConfigArgs
            {
                CountryCodes = new[]
                {
                    "GB",
                    "FR",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.incident.ScheduleBeta;
    import com.pulumi.incident.ScheduleBetaArgs;
    import com.pulumi.incident.inputs.ScheduleBetaHolidaysPublicConfigArgs;
    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) {
            // A schedule holds the rotations that decide who is on call. This resource covers
            // the schedule itself; rotations are managed separately, so a schedule created
            // here has none and nobody is on call until one is added.
            var platform = new ScheduleBeta("platform", ScheduleBetaArgs.builder()
                .name("Platform on-call")
                .timezone("Europe/London")
                .teamIds(platformTeam.id())
                .holidaysPublicConfig(ScheduleBetaHolidaysPublicConfigArgs.builder()
                    .countryCodes(                
                        "GB",
                        "FR")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # A schedule holds the rotations that decide who is on call. This resource covers
      # the schedule itself; rotations are managed separately, so a schedule created
      # here has none and nobody is on call until one is added.
      platform:
        type: incident:ScheduleBeta
        properties:
          name: Platform on-call
          timezone: Europe/London
          teamIds:
            - ${platformTeam.id}
          holidaysPublicConfig:
            countryCodes:
              - GB
              - FR
    
    Example coming soon!
    

    Create ScheduleBeta Resource

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

    Constructor syntax

    new ScheduleBeta(name: string, args: ScheduleBetaArgs, opts?: CustomResourceOptions);
    @overload
    def ScheduleBeta(resource_name: str,
                     args: ScheduleBetaArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ScheduleBeta(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     timezone: Optional[str] = None,
                     holidays_public_config: Optional[ScheduleBetaHolidaysPublicConfigArgs] = None,
                     name: Optional[str] = None,
                     team_ids: Optional[Sequence[str]] = None)
    func NewScheduleBeta(ctx *Context, name string, args ScheduleBetaArgs, opts ...ResourceOption) (*ScheduleBeta, error)
    public ScheduleBeta(string name, ScheduleBetaArgs args, CustomResourceOptions? opts = null)
    public ScheduleBeta(String name, ScheduleBetaArgs args)
    public ScheduleBeta(String name, ScheduleBetaArgs args, CustomResourceOptions options)
    
    type: incident:ScheduleBeta
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "incident_schedule_beta" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ScheduleBetaArgs
    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 ScheduleBetaArgs
    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 ScheduleBetaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScheduleBetaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScheduleBetaArgs
    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 scheduleBetaResource = new Incident.ScheduleBeta("scheduleBetaResource", new()
    {
        Timezone = "string",
        HolidaysPublicConfig = new Incident.Inputs.ScheduleBetaHolidaysPublicConfigArgs
        {
            CountryCodes = new[]
            {
                "string",
            },
        },
        Name = "string",
        TeamIds = new[]
        {
            "string",
        },
    });
    
    example, err := incident.NewScheduleBeta(ctx, "scheduleBetaResource", &incident.ScheduleBetaArgs{
    	Timezone: pulumi.String("string"),
    	HolidaysPublicConfig: &incident.ScheduleBetaHolidaysPublicConfigArgs{
    		CountryCodes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    	TeamIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "incident_schedule_beta" "scheduleBetaResource" {
      lifecycle {
        create_before_destroy = true
      }
      timezone = "string"
      holidays_public_config = {
        country_codes = ["string"]
      }
      name     = "string"
      team_ids = ["string"]
    }
    
    var scheduleBetaResource = new ScheduleBeta("scheduleBetaResource", ScheduleBetaArgs.builder()
        .timezone("string")
        .holidaysPublicConfig(ScheduleBetaHolidaysPublicConfigArgs.builder()
            .countryCodes("string")
            .build())
        .name("string")
        .teamIds("string")
        .build());
    
    schedule_beta_resource = incident.ScheduleBeta("scheduleBetaResource",
        timezone="string",
        holidays_public_config={
            "country_codes": ["string"],
        },
        name="string",
        team_ids=["string"])
    
    const scheduleBetaResource = new incident.ScheduleBeta("scheduleBetaResource", {
        timezone: "string",
        holidaysPublicConfig: {
            countryCodes: ["string"],
        },
        name: "string",
        teamIds: ["string"],
    });
    
    type: incident:ScheduleBeta
    properties:
        holidaysPublicConfig:
            countryCodes:
                - string
        name: string
        teamIds:
            - string
        timezone: string
    

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

    Timezone string
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    HolidaysPublicConfig ScheduleBetaHolidaysPublicConfig
    Public holidays to show on this schedule. Omit the block entirely to show none.
    Name string
    Human readable name for the schedule
    TeamIds List<string>
    IDs of teams that own this schedule
    Timezone string
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    HolidaysPublicConfig ScheduleBetaHolidaysPublicConfigArgs
    Public holidays to show on this schedule. Omit the block entirely to show none.
    Name string
    Human readable name for the schedule
    TeamIds []string
    IDs of teams that own this schedule
    timezone string
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    holidays_public_config object
    Public holidays to show on this schedule. Omit the block entirely to show none.
    name string
    Human readable name for the schedule
    team_ids list(string)
    IDs of teams that own this schedule
    timezone String
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    holidaysPublicConfig ScheduleBetaHolidaysPublicConfig
    Public holidays to show on this schedule. Omit the block entirely to show none.
    name String
    Human readable name for the schedule
    teamIds List<String>
    IDs of teams that own this schedule
    timezone string
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    holidaysPublicConfig ScheduleBetaHolidaysPublicConfig
    Public holidays to show on this schedule. Omit the block entirely to show none.
    name string
    Human readable name for the schedule
    teamIds string[]
    IDs of teams that own this schedule
    timezone str
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    holidays_public_config ScheduleBetaHolidaysPublicConfigArgs
    Public holidays to show on this schedule. Omit the block entirely to show none.
    name str
    Human readable name for the schedule
    team_ids Sequence[str]
    IDs of teams that own this schedule
    timezone String
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    holidaysPublicConfig Property Map
    Public holidays to show on this schedule. Omit the block entirely to show none.
    name String
    Human readable name for the schedule
    teamIds List<String>
    IDs of teams that own this schedule

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ScheduleBeta 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 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 ScheduleBeta Resource

    Get an existing ScheduleBeta 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?: ScheduleBetaState, opts?: CustomResourceOptions): ScheduleBeta
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            holidays_public_config: Optional[ScheduleBetaHolidaysPublicConfigArgs] = None,
            name: Optional[str] = None,
            team_ids: Optional[Sequence[str]] = None,
            timezone: Optional[str] = None) -> ScheduleBeta
    func GetScheduleBeta(ctx *Context, name string, id IDInput, state *ScheduleBetaState, opts ...ResourceOption) (*ScheduleBeta, error)
    public static ScheduleBeta Get(string name, Input<string> id, ScheduleBetaState? state, CustomResourceOptions? opts = null)
    public static ScheduleBeta get(String name, Output<String> id, ScheduleBetaState state, CustomResourceOptions options)
    resources:  _:    type: incident:ScheduleBeta    get:      id: ${id}
    import {
      to = incident_schedule_beta.example
      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.
    The following state arguments are supported:
    HolidaysPublicConfig ScheduleBetaHolidaysPublicConfig
    Public holidays to show on this schedule. Omit the block entirely to show none.
    Name string
    Human readable name for the schedule
    TeamIds List<string>
    IDs of teams that own this schedule
    Timezone string
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    HolidaysPublicConfig ScheduleBetaHolidaysPublicConfigArgs
    Public holidays to show on this schedule. Omit the block entirely to show none.
    Name string
    Human readable name for the schedule
    TeamIds []string
    IDs of teams that own this schedule
    Timezone string
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    holidays_public_config object
    Public holidays to show on this schedule. Omit the block entirely to show none.
    name string
    Human readable name for the schedule
    team_ids list(string)
    IDs of teams that own this schedule
    timezone string
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    holidaysPublicConfig ScheduleBetaHolidaysPublicConfig
    Public holidays to show on this schedule. Omit the block entirely to show none.
    name String
    Human readable name for the schedule
    teamIds List<String>
    IDs of teams that own this schedule
    timezone String
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    holidaysPublicConfig ScheduleBetaHolidaysPublicConfig
    Public holidays to show on this schedule. Omit the block entirely to show none.
    name string
    Human readable name for the schedule
    teamIds string[]
    IDs of teams that own this schedule
    timezone string
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    holidays_public_config ScheduleBetaHolidaysPublicConfigArgs
    Public holidays to show on this schedule. Omit the block entirely to show none.
    name str
    Human readable name for the schedule
    team_ids Sequence[str]
    IDs of teams that own this schedule
    timezone str
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
    holidaysPublicConfig Property Map
    Public holidays to show on this schedule. Omit the block entirely to show none.
    name String
    Human readable name for the schedule
    teamIds List<String>
    IDs of teams that own this schedule
    timezone String
    Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.

    Supporting Types

    ScheduleBetaHolidaysPublicConfig, ScheduleBetaHolidaysPublicConfigArgs

    CountryCodes List<string>
    ISO 3166-1 alpha-2 country codes for the countries that this schedule is configured to view holidays for
    CountryCodes []string
    ISO 3166-1 alpha-2 country codes for the countries that this schedule is configured to view holidays for
    country_codes list(string)
    ISO 3166-1 alpha-2 country codes for the countries that this schedule is configured to view holidays for
    countryCodes List<String>
    ISO 3166-1 alpha-2 country codes for the countries that this schedule is configured to view holidays for
    countryCodes string[]
    ISO 3166-1 alpha-2 country codes for the countries that this schedule is configured to view holidays for
    country_codes Sequence[str]
    ISO 3166-1 alpha-2 country codes for the countries that this schedule is configured to view holidays for
    countryCodes List<String>
    ISO 3166-1 alpha-2 country codes for the countries that this schedule is configured to view holidays for

    Import

    The pulumi import command can be used, for example:

    #!/bin/bash

    Import a schedule using its ID

    Replace the ID with a real ID from your incident.io organization

    $ pulumi import incident:index/scheduleBeta:ScheduleBeta example 01ABC123DEF456GHI789JKL
    

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

    Package Details

    Repository
    incident incident-io/terraform-provider-incident
    License
    Notes
    This Pulumi package is based on the incident Terraform Provider.
    Viewing docs for incident 6.0.0
    published on Monday, Aug 3, 2026 by incident-io

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial