pagerduty.getEventOrchestrationIntegration

Explore with Pulumi AI

Use this data source to get information about a specific Integration for an Event Orchestration.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

return await Deployment.RunAsync(() => 
{
    var eventOrchestration = new Pagerduty.EventOrchestration("eventOrchestration");

    var integration = Pagerduty.GetEventOrchestrationIntegration.Invoke(new()
    {
        EventOrchestration = eventOrchestration.Id,
        Label = "Test Event Orchestration Default Integration",
    });

});
package main

import (
	"github.com/pulumi/pulumi-pagerduty/sdk/v3/go/pagerduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		eventOrchestration, err := pagerduty.NewEventOrchestration(ctx, "eventOrchestration", nil)
		if err != nil {
			return err
		}
		_ = pagerduty.LookupEventOrchestrationIntegrationOutput(ctx, pagerduty.GetEventOrchestrationIntegrationOutputArgs{
			EventOrchestration: eventOrchestration.ID(),
			Label:              pulumi.String("Test Event Orchestration Default Integration"),
		}, nil)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.pagerduty.EventOrchestration;
import com.pulumi.pagerduty.PagerdutyFunctions;
import com.pulumi.pagerduty.inputs.GetEventOrchestrationIntegrationArgs;
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) {
        var eventOrchestration = new EventOrchestration("eventOrchestration");

        final var integration = PagerdutyFunctions.getEventOrchestrationIntegration(GetEventOrchestrationIntegrationArgs.builder()
            .eventOrchestration(eventOrchestration.id())
            .label("Test Event Orchestration Default Integration")
            .build());

    }
}
import pulumi
import pulumi_pagerduty as pagerduty

event_orchestration = pagerduty.EventOrchestration("eventOrchestration")
integration = pagerduty.get_event_orchestration_integration_output(event_orchestration=event_orchestration.id,
    label="Test Event Orchestration Default Integration")
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const eventOrchestration = new pagerduty.EventOrchestration("eventOrchestration", {});
const integration = pagerduty.getEventOrchestrationIntegrationOutput({
    eventOrchestration: eventOrchestration.id,
    label: "Test Event Orchestration Default Integration",
});
resources:
  eventOrchestration:
    type: pagerduty:EventOrchestration
variables:
  integration:
    fn::invoke:
      Function: pagerduty:getEventOrchestrationIntegration
      Arguments:
        eventOrchestration: ${eventOrchestration.id}
        label: Test Event Orchestration Default Integration

Using getEventOrchestrationIntegration

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 getEventOrchestrationIntegration(args: GetEventOrchestrationIntegrationArgs, opts?: InvokeOptions): Promise<GetEventOrchestrationIntegrationResult>
function getEventOrchestrationIntegrationOutput(args: GetEventOrchestrationIntegrationOutputArgs, opts?: InvokeOptions): Output<GetEventOrchestrationIntegrationResult>
def get_event_orchestration_integration(event_orchestration: Optional[str] = None,
                                        id: Optional[str] = None,
                                        label: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetEventOrchestrationIntegrationResult
def get_event_orchestration_integration_output(event_orchestration: Optional[pulumi.Input[str]] = None,
                                        id: Optional[pulumi.Input[str]] = None,
                                        label: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetEventOrchestrationIntegrationResult]
func LookupEventOrchestrationIntegration(ctx *Context, args *LookupEventOrchestrationIntegrationArgs, opts ...InvokeOption) (*LookupEventOrchestrationIntegrationResult, error)
func LookupEventOrchestrationIntegrationOutput(ctx *Context, args *LookupEventOrchestrationIntegrationOutputArgs, opts ...InvokeOption) LookupEventOrchestrationIntegrationResultOutput

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

public static class GetEventOrchestrationIntegration 
{
    public static Task<GetEventOrchestrationIntegrationResult> InvokeAsync(GetEventOrchestrationIntegrationArgs args, InvokeOptions? opts = null)
    public static Output<GetEventOrchestrationIntegrationResult> Invoke(GetEventOrchestrationIntegrationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEventOrchestrationIntegrationResult> getEventOrchestrationIntegration(GetEventOrchestrationIntegrationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: pagerduty:index/getEventOrchestrationIntegration:getEventOrchestrationIntegration
  arguments:
    # arguments dictionary

The following arguments are supported:

EventOrchestration string

ID of the Event Orchestration to which this Integration belongs.

Id string

ID of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence.

Label string

Name/description of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence. The value of label is not unique. Potentially there might be multiple Integrations with the same label value associated with the Event Orchestration and retrieving data by label attribute will result in an error during the planning step.

EventOrchestration string

ID of the Event Orchestration to which this Integration belongs.

Id string

ID of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence.

Label string

Name/description of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence. The value of label is not unique. Potentially there might be multiple Integrations with the same label value associated with the Event Orchestration and retrieving data by label attribute will result in an error during the planning step.

eventOrchestration String

ID of the Event Orchestration to which this Integration belongs.

id String

ID of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence.

label String

Name/description of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence. The value of label is not unique. Potentially there might be multiple Integrations with the same label value associated with the Event Orchestration and retrieving data by label attribute will result in an error during the planning step.

eventOrchestration string

ID of the Event Orchestration to which this Integration belongs.

id string

ID of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence.

label string

Name/description of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence. The value of label is not unique. Potentially there might be multiple Integrations with the same label value associated with the Event Orchestration and retrieving data by label attribute will result in an error during the planning step.

event_orchestration str

ID of the Event Orchestration to which this Integration belongs.

id str

ID of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence.

label str

Name/description of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence. The value of label is not unique. Potentially there might be multiple Integrations with the same label value associated with the Event Orchestration and retrieving data by label attribute will result in an error during the planning step.

eventOrchestration String

ID of the Event Orchestration to which this Integration belongs.

id String

ID of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence.

label String

Name/description of the Integration associated with the Event Orchestration. Specify either id or label. If both are specified id takes precedence. The value of label is not unique. Potentially there might be multiple Integrations with the same label value associated with the Event Orchestration and retrieving data by label attribute will result in an error during the planning step.

getEventOrchestrationIntegration Result

The following output properties are available:

Supporting Types

GetEventOrchestrationIntegrationParameter

RoutingKey string

Routing key that routes to this Orchestration.

Type string

Type of the routing key. global is the default type.

RoutingKey string

Routing key that routes to this Orchestration.

Type string

Type of the routing key. global is the default type.

routingKey String

Routing key that routes to this Orchestration.

type String

Type of the routing key. global is the default type.

routingKey string

Routing key that routes to this Orchestration.

type string

Type of the routing key. global is the default type.

routing_key str

Routing key that routes to this Orchestration.

type str

Type of the routing key. global is the default type.

routingKey String

Routing key that routes to this Orchestration.

type String

Type of the routing key. global is the default type.

Package Details

Repository
PagerDuty pulumi/pulumi-pagerduty
License
Apache-2.0
Notes

This Pulumi package is based on the pagerduty Terraform Provider.