@pulumi/pagerduty
Version:
A Pulumi package for creating and managing pagerduty cloud resources.
79 lines • 2.72 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get information about a specific [Incident Workflow](https://support.pagerduty.com/docs/incident-workflows) so that you can create a trigger for it.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const myWorkflow = pagerduty.getIncidentWorkflow({
* name: "Some Workflow Name",
* });
* const firstService = pagerduty.getService({
* name: "My First Service",
* });
* const automaticTrigger = new pagerduty.IncidentWorkflowTrigger("automatic_trigger", {
* type: "conditional",
* workflow: myWorkflow.then(myWorkflow => myWorkflow.id),
* services: [firstService.then(firstService => firstService.id)],
* condition: "incident.priority matches 'P1'",
* });
* ```
*/
export declare function getIncidentWorkflow(args: GetIncidentWorkflowArgs, opts?: pulumi.InvokeOptions): Promise<GetIncidentWorkflowResult>;
/**
* A collection of arguments for invoking getIncidentWorkflow.
*/
export interface GetIncidentWorkflowArgs {
/**
* The name of the workflow.
*/
name: string;
}
/**
* A collection of values returned by getIncidentWorkflow.
*/
export interface GetIncidentWorkflowResult {
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
}
/**
* Use this data source to get information about a specific [Incident Workflow](https://support.pagerduty.com/docs/incident-workflows) so that you can create a trigger for it.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const myWorkflow = pagerduty.getIncidentWorkflow({
* name: "Some Workflow Name",
* });
* const firstService = pagerduty.getService({
* name: "My First Service",
* });
* const automaticTrigger = new pagerduty.IncidentWorkflowTrigger("automatic_trigger", {
* type: "conditional",
* workflow: myWorkflow.then(myWorkflow => myWorkflow.id),
* services: [firstService.then(firstService => firstService.id)],
* condition: "incident.priority matches 'P1'",
* });
* ```
*/
export declare function getIncidentWorkflowOutput(args: GetIncidentWorkflowOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIncidentWorkflowResult>;
/**
* A collection of arguments for invoking getIncidentWorkflow.
*/
export interface GetIncidentWorkflowOutputArgs {
/**
* The name of the workflow.
*/
name: pulumi.Input<string>;
}
//# sourceMappingURL=getIncidentWorkflow.d.ts.map