1. Packages
  2. Incident Provider
  3. API Docs
  4. getAlertAttribute
incident 5.5.0 published on Wednesday, Apr 30, 2025 by incident-io

incident.getAlertAttribute

Explore with Pulumi AI

incident logo
incident 5.5.0 published on Wednesday, Apr 30, 2025 by incident-io

    This data source provides information about an alert attribute.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as incident from "@pulumi/incident";
    
    const githubUser = incident.getAlertAttribute({
        name: "Github user",
    });
    
    import pulumi
    import pulumi_incident as incident
    
    github_user = incident.get_alert_attribute(name="Github user")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/incident/v5/incident"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := incident.LookupAlertAttribute(ctx, &incident.LookupAlertAttributeArgs{
    			Name: "Github user",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Incident = Pulumi.Incident;
    
    return await Deployment.RunAsync(() => 
    {
        var githubUser = Incident.GetAlertAttribute.Invoke(new()
        {
            Name = "Github user",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.incident.IncidentFunctions;
    import com.pulumi.incident.inputs.GetAlertAttributeArgs;
    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 githubUser = IncidentFunctions.getAlertAttribute(GetAlertAttributeArgs.builder()
                .name("Github user")
                .build());
    
        }
    }
    
    variables:
      githubUser:
        fn::invoke:
          function: incident:getAlertAttribute
          arguments:
            name: Github user
    

    Using getAlertAttribute

    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 getAlertAttribute(args: GetAlertAttributeArgs, opts?: InvokeOptions): Promise<GetAlertAttributeResult>
    function getAlertAttributeOutput(args: GetAlertAttributeOutputArgs, opts?: InvokeOptions): Output<GetAlertAttributeResult>
    def get_alert_attribute(name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetAlertAttributeResult
    def get_alert_attribute_output(name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetAlertAttributeResult]
    func LookupAlertAttribute(ctx *Context, args *LookupAlertAttributeArgs, opts ...InvokeOption) (*LookupAlertAttributeResult, error)
    func LookupAlertAttributeOutput(ctx *Context, args *LookupAlertAttributeOutputArgs, opts ...InvokeOption) LookupAlertAttributeResultOutput

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

    public static class GetAlertAttribute 
    {
        public static Task<GetAlertAttributeResult> InvokeAsync(GetAlertAttributeArgs args, InvokeOptions? opts = null)
        public static Output<GetAlertAttributeResult> Invoke(GetAlertAttributeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlertAttributeResult> getAlertAttribute(GetAlertAttributeArgs args, InvokeOptions options)
    public static Output<GetAlertAttributeResult> getAlertAttribute(GetAlertAttributeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: incident:index/getAlertAttribute:getAlertAttribute
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Unique name of this attribute
    Name string
    Unique name of this attribute
    name String
    Unique name of this attribute
    name string
    Unique name of this attribute
    name str
    Unique name of this attribute
    name String
    Unique name of this attribute

    getAlertAttribute Result

    The following output properties are available:

    Array bool
    Whether this attribute is an array
    Id string
    The ID of this attribute
    Name string
    Unique name of this attribute
    Type string
    Engine resource name for this attribute
    Array bool
    Whether this attribute is an array
    Id string
    The ID of this attribute
    Name string
    Unique name of this attribute
    Type string
    Engine resource name for this attribute
    array Boolean
    Whether this attribute is an array
    id String
    The ID of this attribute
    name String
    Unique name of this attribute
    type String
    Engine resource name for this attribute
    array boolean
    Whether this attribute is an array
    id string
    The ID of this attribute
    name string
    Unique name of this attribute
    type string
    Engine resource name for this attribute
    array bool
    Whether this attribute is an array
    id str
    The ID of this attribute
    name str
    Unique name of this attribute
    type str
    Engine resource name for this attribute
    array Boolean
    Whether this attribute is an array
    id String
    The ID of this attribute
    name String
    Unique name of this attribute
    type String
    Engine resource name for this attribute

    Package Details

    Repository
    incident incident-io/terraform-provider-incident
    License
    Notes
    This Pulumi package is based on the incident Terraform Provider.
    incident logo
    incident 5.5.0 published on Wednesday, Apr 30, 2025 by incident-io