published on Thursday, May 7, 2026 by rootlyhq
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:
- Ends
At string - End datetime of shift
- Starts
At string - Start datetime of shift
- User
Id int - Override shift user
- Rotation
Id string - ID of rotation
- Schedule
Id string - ID of schedule
- Ends
At string - End datetime of shift
- Starts
At string - Start datetime of shift
- User
Id int - Override shift user
- Rotation
Id string - ID of rotation
- Schedule
Id string - ID of schedule
- ends
At String - End datetime of shift
- starts
At String - Start datetime of shift
- user
Id Integer - Override shift user
- rotation
Id String - ID of rotation
- schedule
Id String - ID of schedule
- ends
At string - End datetime of shift
- starts
At string - Start datetime of shift
- user
Id number - Override shift user
- rotation
Id string - ID of rotation
- schedule
Id 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
- ends
At String - End datetime of shift
- starts
At String - Start datetime of shift
- user
Id Number - Override shift user
- rotation
Id String - ID of rotation
- schedule
Id 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) -> OverrideShiftfunc 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.
- Ends
At string - End datetime of shift
- Rotation
Id string - ID of rotation
- Schedule
Id string - ID of schedule
- Starts
At string - Start datetime of shift
- User
Id int - Override shift user
- Ends
At string - End datetime of shift
- Rotation
Id string - ID of rotation
- Schedule
Id string - ID of schedule
- Starts
At string - Start datetime of shift
- User
Id int - Override shift user
- ends
At String - End datetime of shift
- rotation
Id String - ID of rotation
- schedule
Id String - ID of schedule
- starts
At String - Start datetime of shift
- user
Id Integer - Override shift user
- ends
At string - End datetime of shift
- rotation
Id string - ID of rotation
- schedule
Id string - ID of schedule
- starts
At string - Start datetime of shift
- user
Id 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
- ends
At String - End datetime of shift
- rotation
Id String - ID of rotation
- schedule
Id String - ID of schedule
- starts
At String - Start datetime of shift
- user
Id Number - Override shift user
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootlyTerraform Provider.
published on Thursday, May 7, 2026 by rootlyhq
