pagerduty.getEventOrchestration
Use this data source to get information about a specific Global Event Orchestration
Example Usage
Coming soon!
Coming soon!
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.GetEventOrchestrationArgs;
import com.pulumi.pagerduty.EventOrchestrationRouter;
import com.pulumi.pagerduty.EventOrchestrationRouterArgs;
import com.pulumi.pagerduty.inputs.EventOrchestrationRouterCatchAllArgs;
import com.pulumi.pagerduty.inputs.EventOrchestrationRouterCatchAllActionsArgs;
import com.pulumi.pagerduty.inputs.EventOrchestrationRouterSetArgs;
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 tfOrchA = new EventOrchestration("tfOrchA");
final var tfMyMonitor = PagerdutyFunctions.getEventOrchestration(GetEventOrchestrationArgs.builder()
.name(tfOrchA.name())
.build());
var router = new EventOrchestrationRouter("router", EventOrchestrationRouterArgs.builder()
.parent(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.catchAll(EventOrchestrationRouterCatchAllArgs.builder()
.actions(EventOrchestrationRouterCatchAllActionsArgs.builder()
.routeTo("unrouted")
.build())
.build())
.set(EventOrchestrationRouterSetArgs.builder()
.id("start")
.rules(EventOrchestrationRouterSetRuleArgs.builder()
.actions(EventOrchestrationRouterSetRuleActionsArgs.builder()
.routeTo(pagerduty_service.db().id())
.build())
.build())
.build())
.build());
}
}
Coming soon!
Coming soon!
resources:
tfOrchA:
type: pagerduty:EventOrchestration
router:
type: pagerduty:EventOrchestrationRouter
properties:
parent:
- id: ${tfMyMonitor.id}
catchAll:
actions:
routeTo: unrouted
set:
id: start
rules:
- actions:
routeTo: ${pagerduty_service.db.id}
variables:
tfMyMonitor:
fn::invoke:
Function: pagerduty:getEventOrchestration
Arguments:
name: ${tfOrchA.name}
Using getEventOrchestration
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 getEventOrchestration(args: GetEventOrchestrationArgs, opts?: InvokeOptions): Promise<GetEventOrchestrationResult>
function getEventOrchestrationOutput(args: GetEventOrchestrationOutputArgs, opts?: InvokeOptions): Output<GetEventOrchestrationResult>
def get_event_orchestration(integrations: Optional[Sequence[GetEventOrchestrationIntegration]] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEventOrchestrationResult
def get_event_orchestration_output(integrations: Optional[pulumi.Input[Sequence[pulumi.Input[GetEventOrchestrationIntegrationArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEventOrchestrationResult]
func LookupEventOrchestration(ctx *Context, args *LookupEventOrchestrationArgs, opts ...InvokeOption) (*LookupEventOrchestrationResult, error)
func LookupEventOrchestrationOutput(ctx *Context, args *LookupEventOrchestrationOutputArgs, opts ...InvokeOption) LookupEventOrchestrationResultOutput
> Note: This function is named LookupEventOrchestration
in the Go SDK.
public static class GetEventOrchestration
{
public static Task<GetEventOrchestrationResult> InvokeAsync(GetEventOrchestrationArgs args, InvokeOptions? opts = null)
public static Output<GetEventOrchestrationResult> Invoke(GetEventOrchestrationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEventOrchestrationResult> getEventOrchestration(GetEventOrchestrationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: pagerduty:index/getEventOrchestration:getEventOrchestration
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
The name of the Global Event orchestration to find in the PagerDuty API.
- Integrations
List<Get
Event Orchestration Integration> An integration for the Event Orchestration.
- Name string
The name of the Global Event orchestration to find in the PagerDuty API.
- Integrations
[]Get
Event Orchestration Integration An integration for the Event Orchestration.
- name String
The name of the Global Event orchestration to find in the PagerDuty API.
- integrations
List<Get
Event Orchestration Integration> An integration for the Event Orchestration.
- name string
The name of the Global Event orchestration to find in the PagerDuty API.
- integrations
Get
Event Orchestration Integration[] An integration for the Event Orchestration.
- name str
The name of the Global Event orchestration to find in the PagerDuty API.
- integrations
Sequence[Get
Event Orchestration Integration] An integration for the Event Orchestration.
- name String
The name of the Global Event orchestration to find in the PagerDuty API.
- integrations List<Property Map>
An integration for the Event Orchestration.
getEventOrchestration Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Integrations
List<Get
Event Orchestration Integration> An integration for the Event Orchestration.
- Name string
The name of the found Event Orchestration.
- Id string
The provider-assigned unique ID for this managed resource.
- Integrations
[]Get
Event Orchestration Integration An integration for the Event Orchestration.
- Name string
The name of the found Event Orchestration.
- id String
The provider-assigned unique ID for this managed resource.
- integrations
List<Get
Event Orchestration Integration> An integration for the Event Orchestration.
- name String
The name of the found Event Orchestration.
- id string
The provider-assigned unique ID for this managed resource.
- integrations
Get
Event Orchestration Integration[] An integration for the Event Orchestration.
- name string
The name of the found Event Orchestration.
- id str
The provider-assigned unique ID for this managed resource.
- integrations
Sequence[Get
Event Orchestration Integration] An integration for the Event Orchestration.
- name str
The name of the found Event Orchestration.
- id String
The provider-assigned unique ID for this managed resource.
- integrations List<Property Map>
An integration for the Event Orchestration.
- name String
The name of the found Event Orchestration.
Supporting Types
GetEventOrchestrationIntegration
- Id string
ID of the integration
- Parameters
List<Get
Event Orchestration Integration Parameter>
- Id string
ID of the integration
- Parameters
[]Get
Event Orchestration Integration Parameter
- id String
ID of the integration
- parameters
List<Get
Event Orchestration Integration Parameter>
- id string
ID of the integration
- parameters
Get
Event Orchestration Integration Parameter[]
- id str
ID of the integration
- parameters
Sequence[Get
Event Orchestration Integration Parameter]
- id String
ID of the integration
- parameters List<Property Map>
GetEventOrchestrationIntegrationParameter
- Routing
Key string Routing key that routes to this Orchestration.
- Type string
Type of the routing key.
global
is the default type.
- Routing
Key string Routing key that routes to this Orchestration.
- Type string
Type of the routing key.
global
is the default type.
- routing
Key String Routing key that routes to this Orchestration.
- type String
Type of the routing key.
global
is the default type.
- routing
Key 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.
- routing
Key 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.