incident 5.4.2 published on Tuesday, Apr 22, 2025 by incident-io
incident.getAlertAttribute
Explore with Pulumi AI
incident 5.4.2 published on Tuesday, Apr 22, 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 dictionaryThe 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:
Package Details
- Repository
 - incident incident-io/terraform-provider-incident
 - License
 - Notes
 - This Pulumi package is based on the 
incidentTerraform Provider. 
incident 5.4.2 published on Tuesday, Apr 22, 2025 by incident-io