rootly.WorkflowPulse
Explore with Pulumi AI
Example Usage
using Pulumi;
using Rootly = Pulumi.Rootly;
class MyStack : Stack
{
public MyStack()
{
var my_workflow = new Rootly.WorkflowPulse("my-workflow", new Rootly.WorkflowPulseArgs
{
Description = "This workflow will trigger when a pulse is created",
Enabled = true,
TriggerParams = new Rootly.Inputs.WorkflowPulseTriggerParamsArgs
{
Triggers =
{
"pulse_created",
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-rootly/sdk/go/rootly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rootly.NewWorkflowPulse(ctx, "my-workflow", &rootly.WorkflowPulseArgs{
Description: pulumi.String("This workflow will trigger when a pulse is created"),
Enabled: pulumi.Bool(true),
TriggerParams: &WorkflowPulseTriggerParamsArgs{
Triggers: pulumi.StringArray{
pulumi.String("pulse_created"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_rootly as rootly
my_workflow = rootly.WorkflowPulse("my-workflow",
description="This workflow will trigger when a pulse is created",
enabled=True,
trigger_params=rootly.WorkflowPulseTriggerParamsArgs(
triggers=["pulse_created"],
))
import * as pulumi from "@pulumi/pulumi";
import * as rootly from "@pulumi/rootly";
const my_workflow = new rootly.WorkflowPulse("my-workflow", {
description: "This workflow will trigger when a pulse is created",
enabled: true,
triggerParams: {
triggers: ["pulse_created"],
},
});
Coming soon!
Create WorkflowPulse Resource
new WorkflowPulse(name: string, args?: WorkflowPulseArgs, opts?: CustomResourceOptions);
@overload
def WorkflowPulse(resource_name: str,
opts: Optional[ResourceOptions] = None,
command: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
environment_ids: Optional[Sequence[str]] = None,
group_ids: Optional[Sequence[str]] = None,
incident_role_ids: Optional[Sequence[str]] = None,
incident_type_ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
position: Optional[int] = None,
repeat_every_duration: Optional[str] = None,
repeat_ons: Optional[Sequence[str]] = None,
service_ids: Optional[Sequence[str]] = None,
severity_ids: Optional[Sequence[str]] = None,
slug: Optional[str] = None,
trigger_params: Optional[WorkflowPulseTriggerParamsArgs] = None,
wait: Optional[str] = None,
workflow_group_id: Optional[str] = None)
@overload
def WorkflowPulse(resource_name: str,
args: Optional[WorkflowPulseArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewWorkflowPulse(ctx *Context, name string, args *WorkflowPulseArgs, opts ...ResourceOption) (*WorkflowPulse, error)
public WorkflowPulse(string name, WorkflowPulseArgs? args = null, CustomResourceOptions? opts = null)
public WorkflowPulse(String name, WorkflowPulseArgs args)
public WorkflowPulse(String name, WorkflowPulseArgs args, CustomResourceOptions options)
type: rootly:WorkflowPulse
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkflowPulseArgs
- 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 WorkflowPulseArgs
- 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 WorkflowPulseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkflowPulseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkflowPulseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WorkflowPulse Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The WorkflowPulse resource accepts the following input properties:
- Command string
Workflow command.
- Description string
The description of the workflow
- Enabled bool
- Environment
Ids List<string> - Group
Ids List<string> - Incident
Role List<string>Ids - Incident
Type List<string>Ids - Name string
The title of the workflow
- Position int
The order which the workflow should run with other workflows.
- Repeat
Every stringDuration Repeat workflow every duration.
- Repeat
Ons List<string> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- Service
Ids List<string> - Severity
Ids List<string> - Slug string
The slug of the workflow
- Trigger
Params WorkflowPulse Trigger Params - Wait string
Wait this duration before executing.
- Workflow
Group stringId The group this workflow belongs to.
- Command string
Workflow command.
- Description string
The description of the workflow
- Enabled bool
- Environment
Ids []string - Group
Ids []string - Incident
Role []stringIds - Incident
Type []stringIds - Name string
The title of the workflow
- Position int
The order which the workflow should run with other workflows.
- Repeat
Every stringDuration Repeat workflow every duration.
- Repeat
Ons []string Value must be one of
S
,M
,T
,W
,R
,F
,U
.- Service
Ids []string - Severity
Ids []string - Slug string
The slug of the workflow
- Trigger
Params WorkflowPulse Trigger Params Args - Wait string
Wait this duration before executing.
- Workflow
Group stringId The group this workflow belongs to.
- command String
Workflow command.
- description String
The description of the workflow
- enabled Boolean
- environment
Ids List<String> - group
Ids List<String> - incident
Role List<String>Ids - incident
Type List<String>Ids - name String
The title of the workflow
- position Integer
The order which the workflow should run with other workflows.
- repeat
Every StringDuration Repeat workflow every duration.
- repeat
Ons List<String> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids List<String> - severity
Ids List<String> - slug String
The slug of the workflow
- trigger
Params WorkflowPulse Trigger Params - wait_ String
Wait this duration before executing.
- workflow
Group StringId The group this workflow belongs to.
- command string
Workflow command.
- description string
The description of the workflow
- enabled boolean
- environment
Ids string[] - group
Ids string[] - incident
Role string[]Ids - incident
Type string[]Ids - name string
The title of the workflow
- position number
The order which the workflow should run with other workflows.
- repeat
Every stringDuration Repeat workflow every duration.
- repeat
Ons string[] Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids string[] - severity
Ids string[] - slug string
The slug of the workflow
- trigger
Params WorkflowPulse Trigger Params - wait string
Wait this duration before executing.
- workflow
Group stringId The group this workflow belongs to.
- command str
Workflow command.
- description str
The description of the workflow
- enabled bool
- environment_
ids Sequence[str] - group_
ids Sequence[str] - incident_
role_ Sequence[str]ids - incident_
type_ Sequence[str]ids - name str
The title of the workflow
- position int
The order which the workflow should run with other workflows.
- repeat_
every_ strduration Repeat workflow every duration.
- repeat_
ons Sequence[str] Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service_
ids Sequence[str] - severity_
ids Sequence[str] - slug str
The slug of the workflow
- trigger_
params WorkflowPulse Trigger Params Args - wait str
Wait this duration before executing.
- workflow_
group_ strid The group this workflow belongs to.
- command String
Workflow command.
- description String
The description of the workflow
- enabled Boolean
- environment
Ids List<String> - group
Ids List<String> - incident
Role List<String>Ids - incident
Type List<String>Ids - name String
The title of the workflow
- position Number
The order which the workflow should run with other workflows.
- repeat
Every StringDuration Repeat workflow every duration.
- repeat
Ons List<String> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids List<String> - severity
Ids List<String> - slug String
The slug of the workflow
- trigger
Params Property Map - wait String
Wait this duration before executing.
- workflow
Group StringId The group this workflow belongs to.
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkflowPulse 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 WorkflowPulse Resource
Get an existing WorkflowPulse 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?: WorkflowPulseState, opts?: CustomResourceOptions): WorkflowPulse
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
command: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
environment_ids: Optional[Sequence[str]] = None,
group_ids: Optional[Sequence[str]] = None,
incident_role_ids: Optional[Sequence[str]] = None,
incident_type_ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
position: Optional[int] = None,
repeat_every_duration: Optional[str] = None,
repeat_ons: Optional[Sequence[str]] = None,
service_ids: Optional[Sequence[str]] = None,
severity_ids: Optional[Sequence[str]] = None,
slug: Optional[str] = None,
trigger_params: Optional[WorkflowPulseTriggerParamsArgs] = None,
wait: Optional[str] = None,
workflow_group_id: Optional[str] = None) -> WorkflowPulse
func GetWorkflowPulse(ctx *Context, name string, id IDInput, state *WorkflowPulseState, opts ...ResourceOption) (*WorkflowPulse, error)
public static WorkflowPulse Get(string name, Input<string> id, WorkflowPulseState? state, CustomResourceOptions? opts = null)
public static WorkflowPulse get(String name, Output<String> id, WorkflowPulseState 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.
- Command string
Workflow command.
- Description string
The description of the workflow
- Enabled bool
- Environment
Ids List<string> - Group
Ids List<string> - Incident
Role List<string>Ids - Incident
Type List<string>Ids - Name string
The title of the workflow
- Position int
The order which the workflow should run with other workflows.
- Repeat
Every stringDuration Repeat workflow every duration.
- Repeat
Ons List<string> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- Service
Ids List<string> - Severity
Ids List<string> - Slug string
The slug of the workflow
- Trigger
Params WorkflowPulse Trigger Params - Wait string
Wait this duration before executing.
- Workflow
Group stringId The group this workflow belongs to.
- Command string
Workflow command.
- Description string
The description of the workflow
- Enabled bool
- Environment
Ids []string - Group
Ids []string - Incident
Role []stringIds - Incident
Type []stringIds - Name string
The title of the workflow
- Position int
The order which the workflow should run with other workflows.
- Repeat
Every stringDuration Repeat workflow every duration.
- Repeat
Ons []string Value must be one of
S
,M
,T
,W
,R
,F
,U
.- Service
Ids []string - Severity
Ids []string - Slug string
The slug of the workflow
- Trigger
Params WorkflowPulse Trigger Params Args - Wait string
Wait this duration before executing.
- Workflow
Group stringId The group this workflow belongs to.
- command String
Workflow command.
- description String
The description of the workflow
- enabled Boolean
- environment
Ids List<String> - group
Ids List<String> - incident
Role List<String>Ids - incident
Type List<String>Ids - name String
The title of the workflow
- position Integer
The order which the workflow should run with other workflows.
- repeat
Every StringDuration Repeat workflow every duration.
- repeat
Ons List<String> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids List<String> - severity
Ids List<String> - slug String
The slug of the workflow
- trigger
Params WorkflowPulse Trigger Params - wait_ String
Wait this duration before executing.
- workflow
Group StringId The group this workflow belongs to.
- command string
Workflow command.
- description string
The description of the workflow
- enabled boolean
- environment
Ids string[] - group
Ids string[] - incident
Role string[]Ids - incident
Type string[]Ids - name string
The title of the workflow
- position number
The order which the workflow should run with other workflows.
- repeat
Every stringDuration Repeat workflow every duration.
- repeat
Ons string[] Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids string[] - severity
Ids string[] - slug string
The slug of the workflow
- trigger
Params WorkflowPulse Trigger Params - wait string
Wait this duration before executing.
- workflow
Group stringId The group this workflow belongs to.
- command str
Workflow command.
- description str
The description of the workflow
- enabled bool
- environment_
ids Sequence[str] - group_
ids Sequence[str] - incident_
role_ Sequence[str]ids - incident_
type_ Sequence[str]ids - name str
The title of the workflow
- position int
The order which the workflow should run with other workflows.
- repeat_
every_ strduration Repeat workflow every duration.
- repeat_
ons Sequence[str] Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service_
ids Sequence[str] - severity_
ids Sequence[str] - slug str
The slug of the workflow
- trigger_
params WorkflowPulse Trigger Params Args - wait str
Wait this duration before executing.
- workflow_
group_ strid The group this workflow belongs to.
- command String
Workflow command.
- description String
The description of the workflow
- enabled Boolean
- environment
Ids List<String> - group
Ids List<String> - incident
Role List<String>Ids - incident
Type List<String>Ids - name String
The title of the workflow
- position Number
The order which the workflow should run with other workflows.
- repeat
Every StringDuration Repeat workflow every duration.
- repeat
Ons List<String> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids List<String> - severity
Ids List<String> - slug String
The slug of the workflow
- trigger
Params Property Map - wait String
Wait this duration before executing.
- workflow
Group StringId The group this workflow belongs to.
Supporting Types
WorkflowPulseTriggerParams, WorkflowPulseTriggerParamsArgs
- Pulse
Condition string - Pulse
Condition stringLabel - Pulse
Condition boolLabel Use Regexp - Pulse
Condition stringPayload - Pulse
Condition boolPayload Use Regexp - Pulse
Condition stringSource - Pulse
Condition boolSource Use Regexp - Pulse
Labels List<string> - Pulse
Payloads List<string> - Pulse
Query stringPayload - Pulse
Sources List<string> - Trigger
Type string - Triggers List<string>
- Pulse
Condition string - Pulse
Condition stringLabel - Pulse
Condition boolLabel Use Regexp - Pulse
Condition stringPayload - Pulse
Condition boolPayload Use Regexp - Pulse
Condition stringSource - Pulse
Condition boolSource Use Regexp - Pulse
Labels []string - Pulse
Payloads []string - Pulse
Query stringPayload - Pulse
Sources []string - Trigger
Type string - Triggers []string
- pulse
Condition String - pulse
Condition StringLabel - pulse
Condition BooleanLabel Use Regexp - pulse
Condition StringPayload - pulse
Condition BooleanPayload Use Regexp - pulse
Condition StringSource - pulse
Condition BooleanSource Use Regexp - pulse
Labels List<String> - pulse
Payloads List<String> - pulse
Query StringPayload - pulse
Sources List<String> - trigger
Type String - triggers List<String>
- pulse
Condition string - pulse
Condition stringLabel - pulse
Condition booleanLabel Use Regexp - pulse
Condition stringPayload - pulse
Condition booleanPayload Use Regexp - pulse
Condition stringSource - pulse
Condition booleanSource Use Regexp - pulse
Labels string[] - pulse
Payloads string[] - pulse
Query stringPayload - pulse
Sources string[] - trigger
Type string - triggers string[]
- pulse_
condition str - pulse_
condition_ strlabel - pulse_
condition_ boollabel_ use_ regexp - pulse_
condition_ strpayload - pulse_
condition_ boolpayload_ use_ regexp - pulse_
condition_ strsource - pulse_
condition_ boolsource_ use_ regexp - pulse_
labels Sequence[str] - pulse_
payloads Sequence[str] - pulse_
query_ strpayload - pulse_
sources Sequence[str] - trigger_
type str - triggers Sequence[str]
- pulse
Condition String - pulse
Condition StringLabel - pulse
Condition BooleanLabel Use Regexp - pulse
Condition StringPayload - pulse
Condition BooleanPayload Use Regexp - pulse
Condition StringSource - pulse
Condition BooleanSource Use Regexp - pulse
Labels List<String> - pulse
Payloads List<String> - pulse
Query StringPayload - pulse
Sources List<String> - trigger
Type String - triggers List<String>
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
rootly
Terraform Provider.