Viewing docs for Rootly v1.5.0
published on Thursday, Apr 25, 2024 by Rootly
published on Thursday, Apr 25, 2024 by Rootly
Viewing docs for Rootly v1.5.0
published on Thursday, Apr 25, 2024 by Rootly
published on Thursday, Apr 25, 2024 by Rootly
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rootly = Pulumi.Rootly;
return await Deployment.RunAsync(() =>
{
var my_incident_role = Rootly.GetIncidentRole.Invoke(new()
{
Slug = "my-incident-role",
});
});
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.LookupIncidentRole(ctx, &rootly.LookupIncidentRoleArgs{
Slug: pulumi.StringRef("my-incident-role"),
}, 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.GetIncidentRoleArgs;
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-incident-role = RootlyFunctions.getIncidentRole(GetIncidentRoleArgs.builder()
.slug("my-incident-role")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as rootly from "@pulumi/rootly";
const my-incident-role = rootly.getIncidentRole({
slug: "my-incident-role",
});
import pulumi
import pulumi_rootly as rootly
my_incident_role = rootly.get_incident_role(slug="my-incident-role")
variables:
my-incident-role:
fn::invoke:
Function: rootly:getIncidentRole
Arguments:
slug: my-incident-role
Using getIncidentRole
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 getIncidentRole(args: GetIncidentRoleArgs, opts?: InvokeOptions): Promise<GetIncidentRoleResult>
function getIncidentRoleOutput(args: GetIncidentRoleOutputArgs, opts?: InvokeOptions): Output<GetIncidentRoleResult>def get_incident_role(created_at: Optional[Mapping[str, Any]] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
slug: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIncidentRoleResult
def get_incident_role_output(created_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
slug: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIncidentRoleResult]func LookupIncidentRole(ctx *Context, args *LookupIncidentRoleArgs, opts ...InvokeOption) (*LookupIncidentRoleResult, error)
func LookupIncidentRoleOutput(ctx *Context, args *LookupIncidentRoleOutputArgs, opts ...InvokeOption) LookupIncidentRoleResultOutput> Note: This function is named LookupIncidentRole in the Go SDK.
public static class GetIncidentRole
{
public static Task<GetIncidentRoleResult> InvokeAsync(GetIncidentRoleArgs args, InvokeOptions? opts = null)
public static Output<GetIncidentRoleResult> Invoke(GetIncidentRoleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIncidentRoleResult> getIncidentRole(GetIncidentRoleArgs args, InvokeOptions options)
public static Output<GetIncidentRoleResult> getIncidentRole(GetIncidentRoleArgs args, InvokeOptions options)
fn::invoke:
function: rootly:index/getIncidentRole:getIncidentRole
arguments:
# arguments dictionaryThe following arguments are supported:
- created_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
- enabled bool
- name str
- slug str
getIncidentRole Result
The following output properties are available:
- id str
- The ID of this resource.
- name str
- slug str
- created_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
- enabled bool
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootlyTerraform Provider.
Viewing docs for Rootly v1.5.0
published on Thursday, Apr 25, 2024 by Rootly
published on Thursday, Apr 25, 2024 by Rootly
