1. Packages
  2. Rootly
  3. API Docs
  4. getIncidentType
Rootly v1.0.1 published on Friday, Jun 2, 2023 by Rootly

rootly.getIncidentType

Explore with Pulumi AI

rootly logo
Rootly v1.0.1 published on Friday, Jun 2, 2023 by Rootly

    Example Usage

    using Pulumi;
    using Rootly = Pulumi.Rootly;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var my_incident_type = Output.Create(Rootly.GetIncidentType.InvokeAsync(new Rootly.GetIncidentTypeArgs
            {
                Slug = "my-incident-type",
            }));
        }
    
    }
    
    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.LookupIncidentType(ctx, &GetIncidentTypeArgs{
    			Slug: pulumi.StringRef("my-incident-type"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_rootly as rootly
    
    my_incident_type = rootly.get_incident_type(slug="my-incident-type")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as rootly from "@pulumi/rootly";
    
    const my_incident_type = pulumi.output(rootly.getIncidentType({
        slug: "my-incident-type",
    }));
    

    Coming soon!

    Using getIncidentType

    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 getIncidentType(args: GetIncidentTypeArgs, opts?: InvokeOptions): Promise<GetIncidentTypeResult>
    function getIncidentTypeOutput(args: GetIncidentTypeOutputArgs, opts?: InvokeOptions): Output<GetIncidentTypeResult>
    def get_incident_type(color: Optional[str] = None,
                          created_at: Optional[Mapping[str, Any]] = None,
                          name: Optional[str] = None,
                          slug: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetIncidentTypeResult
    def get_incident_type_output(color: Optional[pulumi.Input[str]] = None,
                          created_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          slug: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetIncidentTypeResult]
    func LookupIncidentType(ctx *Context, args *LookupIncidentTypeArgs, opts ...InvokeOption) (*LookupIncidentTypeResult, error)
    func LookupIncidentTypeOutput(ctx *Context, args *LookupIncidentTypeOutputArgs, opts ...InvokeOption) LookupIncidentTypeResultOutput

    > Note: This function is named LookupIncidentType in the Go SDK.

    public static class GetIncidentType 
    {
        public static Task<GetIncidentTypeResult> InvokeAsync(GetIncidentTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetIncidentTypeResult> Invoke(GetIncidentTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIncidentTypeResult> getIncidentType(GetIncidentTypeArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: rootly:index/getIncidentType:getIncidentType
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Color string
    CreatedAt Dictionary<string, object>
    Name string
    Slug string
    Color string
    CreatedAt map[string]interface{}
    Name string
    Slug string
    color String
    createdAt Map<String,Object>
    name String
    slug String
    color string
    createdAt {[key: string]: any}
    name string
    slug string
    color str
    created_at Mapping[str, Any]
    name str
    slug str
    color String
    createdAt Map<Any>
    name String
    slug String

    getIncidentType Result

    The following output properties are available:

    Color string
    Id string
    Name string
    Slug string
    CreatedAt Dictionary<string, object>
    Color string
    Id string
    Name string
    Slug string
    CreatedAt map[string]interface{}
    color String
    id String
    name String
    slug String
    createdAt Map<String,Object>
    color string
    id string
    name string
    slug string
    createdAt {[key: string]: any}
    color str
    id str
    name str
    slug str
    created_at Mapping[str, Any]
    color String
    id String
    name String
    slug String
    createdAt Map<Any>

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the rootly Terraform Provider.

    rootly logo
    Rootly v1.0.1 published on Friday, Jun 2, 2023 by Rootly