rootly.OverrideShift
Explore with Pulumi AI
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,
is_override: Optional[bool] = None,
rotation_id: Optional[str] = None,
schedule_id: Optional[str] = None,
shift_override: Optional[Mapping[str, 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,
IsOverride = false,
RotationId = "string",
ScheduleId = "string",
ShiftOverride =
{
{ "string", "string" },
},
});
example, err := rootly.NewOverrideShift(ctx, "overrideShiftResource", &rootly.OverrideShiftArgs{
EndsAt: pulumi.String("string"),
StartsAt: pulumi.String("string"),
UserId: pulumi.Int(0),
IsOverride: pulumi.Bool(false),
RotationId: pulumi.String("string"),
ScheduleId: pulumi.String("string"),
ShiftOverride: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var overrideShiftResource = new OverrideShift("overrideShiftResource", OverrideShiftArgs.builder()
.endsAt("string")
.startsAt("string")
.userId(0)
.isOverride(false)
.rotationId("string")
.scheduleId("string")
.shiftOverride(Map.of("string", "string"))
.build());
override_shift_resource = rootly.OverrideShift("overrideShiftResource",
ends_at="string",
starts_at="string",
user_id=0,
is_override=False,
rotation_id="string",
schedule_id="string",
shift_override={
"string": "string",
})
const overrideShiftResource = new rootly.OverrideShift("overrideShiftResource", {
endsAt: "string",
startsAt: "string",
userId: 0,
isOverride: false,
rotationId: "string",
scheduleId: "string",
shiftOverride: {
string: "string",
},
});
type: rootly:OverrideShift
properties:
endsAt: string
isOverride: false
rotationId: string
scheduleId: string
shiftOverride:
string: 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 - User to whom override shift is assigned to
- Is
Override bool - Denotes shift is an override shift. Value must be one of true or false
- Rotation
Id string - ID of rotation
- Schedule
Id string - ID of schedule
- Shift
Override Dictionary<string, string> - Override metadata
- Ends
At string - End datetime of shift
- Starts
At string - Start datetime of shift
- User
Id int - User to whom override shift is assigned to
- Is
Override bool - Denotes shift is an override shift. Value must be one of true or false
- Rotation
Id string - ID of rotation
- Schedule
Id string - ID of schedule
- Shift
Override map[string]string - Override metadata
- ends
At String - End datetime of shift
- starts
At String - Start datetime of shift
- user
Id Integer - User to whom override shift is assigned to
- is
Override Boolean - Denotes shift is an override shift. Value must be one of true or false
- rotation
Id String - ID of rotation
- schedule
Id String - ID of schedule
- shift
Override Map<String,String> - Override metadata
- ends
At string - End datetime of shift
- starts
At string - Start datetime of shift
- user
Id number - User to whom override shift is assigned to
- is
Override boolean - Denotes shift is an override shift. Value must be one of true or false
- rotation
Id string - ID of rotation
- schedule
Id string - ID of schedule
- shift
Override {[key: string]: string} - Override metadata
- ends_
at str - End datetime of shift
- starts_
at str - Start datetime of shift
- user_
id int - User to whom override shift is assigned to
- is_
override bool - Denotes shift is an override shift. Value must be one of true or false
- rotation_
id str - ID of rotation
- schedule_
id str - ID of schedule
- shift_
override Mapping[str, str] - Override metadata
- ends
At String - End datetime of shift
- starts
At String - Start datetime of shift
- user
Id Number - User to whom override shift is assigned to
- is
Override Boolean - Denotes shift is an override shift. Value must be one of true or false
- rotation
Id String - ID of rotation
- schedule
Id String - ID of schedule
- shift
Override Map<String> - Override metadata
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,
is_override: Optional[bool] = None,
rotation_id: Optional[str] = None,
schedule_id: Optional[str] = None,
shift_override: Optional[Mapping[str, 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)
Resource lookup is not supported in YAML
- 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
- Is
Override bool - Denotes shift is an override shift. Value must be one of true or false
- Rotation
Id string - ID of rotation
- Schedule
Id string - ID of schedule
- Shift
Override Dictionary<string, string> - Override metadata
- Starts
At string - Start datetime of shift
- User
Id int - User to whom override shift is assigned to
- Ends
At string - End datetime of shift
- Is
Override bool - Denotes shift is an override shift. Value must be one of true or false
- Rotation
Id string - ID of rotation
- Schedule
Id string - ID of schedule
- Shift
Override map[string]string - Override metadata
- Starts
At string - Start datetime of shift
- User
Id int - User to whom override shift is assigned to
- ends
At String - End datetime of shift
- is
Override Boolean - Denotes shift is an override shift. Value must be one of true or false
- rotation
Id String - ID of rotation
- schedule
Id String - ID of schedule
- shift
Override Map<String,String> - Override metadata
- starts
At String - Start datetime of shift
- user
Id Integer - User to whom override shift is assigned to
- ends
At string - End datetime of shift
- is
Override boolean - Denotes shift is an override shift. Value must be one of true or false
- rotation
Id string - ID of rotation
- schedule
Id string - ID of schedule
- shift
Override {[key: string]: string} - Override metadata
- starts
At string - Start datetime of shift
- user
Id number - User to whom override shift is assigned to
- ends_
at str - End datetime of shift
- is_
override bool - Denotes shift is an override shift. Value must be one of true or false
- rotation_
id str - ID of rotation
- schedule_
id str - ID of schedule
- shift_
override Mapping[str, str] - Override metadata
- starts_
at str - Start datetime of shift
- user_
id int - User to whom override shift is assigned to
- ends
At String - End datetime of shift
- is
Override Boolean - Denotes shift is an override shift. Value must be one of true or false
- rotation
Id String - ID of rotation
- schedule
Id String - ID of schedule
- shift
Override Map<String> - Override metadata
- starts
At String - Start datetime of shift
- user
Id Number - User to whom override shift is assigned to
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootly
Terraform Provider.