Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly
rootly.getWorkflowTask
Explore with Pulumi AI
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rootly = Pulumi.Rootly;
return await Deployment.RunAsync(() =>
{
var my_workflow_task = Rootly.GetWorkflowTask.Invoke(new()
{
Slug = "my-workflow-task",
});
});
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.GetWorkflowTask(ctx, &rootly.GetWorkflowTaskArgs{
Slug: pulumi.StringRef("my-workflow-task"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rootly.RootlyFunctions;
import com.pulumi.rootly.inputs.GetWorkflowTaskArgs;
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) {
final var my-workflow-task = RootlyFunctions.getWorkflowTask(GetWorkflowTaskArgs.builder()
.slug("my-workflow-task")
.build());
}
}
import pulumi
import pulumi_rootly as rootly
my_workflow_task = rootly.get_workflow_task(slug="my-workflow-task")
import * as pulumi from "@pulumi/pulumi";
import * as rootly from "@pulumi/rootly";
const my-workflow-task = rootly.getWorkflowTask({
slug: "my-workflow-task",
});
variables:
my-workflow-task:
fn::invoke:
Function: rootly:getWorkflowTask
Arguments:
slug: my-workflow-task
Using getWorkflowTask
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWorkflowTask(args: GetWorkflowTaskArgs, opts?: InvokeOptions): Promise<GetWorkflowTaskResult>
function getWorkflowTaskOutput(args: GetWorkflowTaskOutputArgs, opts?: InvokeOptions): Output<GetWorkflowTaskResult>
def get_workflow_task(name: Optional[str] = None,
slug: Optional[str] = None,
workflow_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkflowTaskResult
def get_workflow_task_output(name: Optional[pulumi.Input[str]] = None,
slug: Optional[pulumi.Input[str]] = None,
workflow_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkflowTaskResult]
func GetWorkflowTask(ctx *Context, args *GetWorkflowTaskArgs, opts ...InvokeOption) (*GetWorkflowTaskResult, error)
func GetWorkflowTaskOutput(ctx *Context, args *GetWorkflowTaskOutputArgs, opts ...InvokeOption) GetWorkflowTaskResultOutput
> Note: This function is named GetWorkflowTask
in the Go SDK.
public static class GetWorkflowTask
{
public static Task<GetWorkflowTaskResult> InvokeAsync(GetWorkflowTaskArgs args, InvokeOptions? opts = null)
public static Output<GetWorkflowTaskResult> Invoke(GetWorkflowTaskInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWorkflowTaskResult> getWorkflowTask(GetWorkflowTaskArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: rootly:index/getWorkflowTask:getWorkflowTask
arguments:
# arguments dictionary
The following arguments are supported:
- Workflow
Id string - Name string
- Slug string
- Workflow
Id string - Name string
- Slug string
- workflow
Id String - name String
- slug String
- workflow
Id string - name string
- slug string
- workflow_
id str - name str
- slug str
- workflow
Id String - name String
- slug String
getWorkflowTask Result
The following output properties are available:
- Id string
- The ID of this resource.
- Name string
- Slug string
- Workflow
Id string
- Id string
- The ID of this resource.
- Name string
- Slug string
- Workflow
Id string
- id String
- The ID of this resource.
- name String
- slug String
- workflow
Id String
- id string
- The ID of this resource.
- name string
- slug string
- workflow
Id string
- id str
- The ID of this resource.
- name str
- slug str
- workflow_
id str
- id String
- The ID of this resource.
- name String
- slug String
- workflow
Id String
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootly
Terraform Provider.