1. Packages
  2. Packages
  3. Rootly
  4. API Docs
  5. OverrideShift
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq
rootly logo
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq

    Import

    rootly.OverrideShift can be imported using the import command.

    $ pulumi import rootly:index/overrideShift:OverrideShift primary a816421c-6ceb-481a-87c4-585e47451f24
    

    Or using an import block.

    Locate the resource id in the web app, or retrieve it by listing resources through the API if it’s not visible in the web app.

    HCL can be generated from the import block using the -generate-config-out flag.

    pulumi preview -generate-config-out=generated.tf
    

    Create OverrideShift Resource

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

    Constructor syntax

    new OverrideShift(name: string, args: OverrideShiftArgs, opts?: CustomResourceOptions);
    @overload
    def OverrideShift(resource_name: str,
                      args: OverrideShiftArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def OverrideShift(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      ends_at: Optional[str] = None,
                      starts_at: Optional[str] = None,
                      user_id: Optional[int] = None,
                      rotation_id: Optional[str] = None,
                      schedule_id: Optional[str] = None)
    func NewOverrideShift(ctx *Context, name string, args OverrideShiftArgs, opts ...ResourceOption) (*OverrideShift, error)
    public OverrideShift(string name, OverrideShiftArgs args, CustomResourceOptions? opts = null)
    public OverrideShift(String name, OverrideShiftArgs args)
    public OverrideShift(String name, OverrideShiftArgs args, CustomResourceOptions options)
    
    type: rootly:OverrideShift
    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 OverrideShiftArgs
    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 OverrideShiftArgs
    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 OverrideShiftArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OverrideShiftArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OverrideShiftArgs
    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 overrideShiftResource = new Rootly.OverrideShift("overrideShiftResource", new()
    {
        EndsAt = "string",
        StartsAt = "string",
        UserId = 0,
        RotationId = "string",
        ScheduleId = "string",
    });
    
    example, err := rootly.NewOverrideShift(ctx, "overrideShiftResource", &rootly.OverrideShiftArgs{
    	EndsAt:     pulumi.String("string"),
    	StartsAt:   pulumi.String("string"),
    	UserId:     pulumi.Int(0),
    	RotationId: pulumi.String("string"),
    	ScheduleId: pulumi.String("string"),
    })
    
    var overrideShiftResource = new OverrideShift("overrideShiftResource", OverrideShiftArgs.builder()
        .endsAt("string")
        .startsAt("string")
        .userId(0)
        .rotationId("string")
        .scheduleId("string")
        .build());
    
    override_shift_resource = rootly.OverrideShift("overrideShiftResource",
        ends_at="string",
        starts_at="string",
        user_id=0,
        rotation_id="string",
        schedule_id="string")
    
    const overrideShiftResource = new rootly.OverrideShift("overrideShiftResource", {
        endsAt: "string",
        startsAt: "string",
        userId: 0,
        rotationId: "string",
        scheduleId: "string",
    });
    
    type: rootly:OverrideShift
    properties:
        endsAt: string
        rotationId: string
        scheduleId: string
        startsAt: string
        userId: 0
    

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

    EndsAt string
    End datetime of shift
    StartsAt string
    Start datetime of shift
    UserId int
    Override shift user
    RotationId string
    ID of rotation
    ScheduleId string
    ID of schedule
    EndsAt string
    End datetime of shift
    StartsAt string
    Start datetime of shift
    UserId int
    Override shift user
    RotationId string
    ID of rotation
    ScheduleId string
    ID of schedule
    endsAt String
    End datetime of shift
    startsAt String
    Start datetime of shift
    userId Integer
    Override shift user
    rotationId String
    ID of rotation
    scheduleId String
    ID of schedule
    endsAt string
    End datetime of shift
    startsAt string
    Start datetime of shift
    userId number
    Override shift user
    rotationId string
    ID of rotation
    scheduleId string
    ID of schedule
    ends_at str
    End datetime of shift
    starts_at str
    Start datetime of shift
    user_id int
    Override shift user
    rotation_id str
    ID of rotation
    schedule_id str
    ID of schedule
    endsAt String
    End datetime of shift
    startsAt String
    Start datetime of shift
    userId Number
    Override shift user
    rotationId String
    ID of rotation
    scheduleId String
    ID of schedule

    Outputs

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

    Get an existing OverrideShift 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?: OverrideShiftState, opts?: CustomResourceOptions): OverrideShift
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ends_at: Optional[str] = None,
            rotation_id: Optional[str] = None,
            schedule_id: Optional[str] = None,
            starts_at: Optional[str] = None,
            user_id: Optional[int] = None) -> OverrideShift
    func GetOverrideShift(ctx *Context, name string, id IDInput, state *OverrideShiftState, opts ...ResourceOption) (*OverrideShift, error)
    public static OverrideShift Get(string name, Input<string> id, OverrideShiftState? state, CustomResourceOptions? opts = null)
    public static OverrideShift get(String name, Output<String> id, OverrideShiftState state, CustomResourceOptions options)
    resources:  _:    type: rootly:OverrideShift    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.
    The following state arguments are supported:
    EndsAt string
    End datetime of shift
    RotationId string
    ID of rotation
    ScheduleId string
    ID of schedule
    StartsAt string
    Start datetime of shift
    UserId int
    Override shift user
    EndsAt string
    End datetime of shift
    RotationId string
    ID of rotation
    ScheduleId string
    ID of schedule
    StartsAt string
    Start datetime of shift
    UserId int
    Override shift user
    endsAt String
    End datetime of shift
    rotationId String
    ID of rotation
    scheduleId String
    ID of schedule
    startsAt String
    Start datetime of shift
    userId Integer
    Override shift user
    endsAt string
    End datetime of shift
    rotationId string
    ID of rotation
    scheduleId string
    ID of schedule
    startsAt string
    Start datetime of shift
    userId number
    Override shift user
    ends_at str
    End datetime of shift
    rotation_id str
    ID of rotation
    schedule_id str
    ID of schedule
    starts_at str
    Start datetime of shift
    user_id int
    Override shift user
    endsAt String
    End datetime of shift
    rotationId String
    ID of rotation
    scheduleId String
    ID of schedule
    startsAt String
    Start datetime of shift
    userId Number
    Override shift user

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Viewing docs for Rootly v3.3.0
    published on Thursday, May 7, 2026 by rootlyhq
      Try Pulumi Cloud free. Your team will thank you.