import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* A [response play](https://developer.pagerduty.com/api-reference/b3A6Mjc0ODE2Ng-create-a-response-play) allows you to create packages of Incident Actions that can be applied during an Incident's life cycle.
*
*
*
End-of-Life
*
* Response Play will end-of-life soon. We highly recommend that you
* migrate to Incident Workflows
* as soon as possible so you can take advantage of the new functionality.
* With Incident Workflows, customers are able to define if-this-then-that
* logic to effortlessly trigger a sequence of common incident actions, advanced conditions, REST APIs
* and Terraform support.
*
*
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const example = new pagerduty.User("example", {
* name: "Earline Greenholt",
* email: "125.greenholt.earline@graham.name",
* teams: [examplePagerdutyTeam.id],
* });
* const exampleEscalationPolicy = new pagerduty.EscalationPolicy("example", {
* name: "Engineering Escalation Policy",
* numLoops: 2,
* rules: [{
* escalationDelayInMinutes: 10,
* targets: [{
* type: "user",
* id: example.id,
* }],
* }],
* });
* const exampleResponsePlay = new pagerduty.ResponsePlay("example", {
* name: "My Response Play",
* from: example.email,
* responders: [{
* type: "escalation_policy_reference",
* id: exampleEscalationPolicy.id,
* }],
* subscribers: [{
* type: "user_reference",
* id: example.id,
* }],
* runnability: "services",
* });
* ```
*
* ## Import
*
* Response Plays can be imported using the `id.from(email)`, e.g.
*
* ```sh
* $ pulumi import pagerduty:index/responsePlay:ResponsePlay main 16208303-022b-f745-f2f5-560e537a2a74.user@email.com
* ```
*/
export declare class ResponsePlay extends pulumi.CustomResource {
/**
* Get an existing ResponsePlay resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input, state?: ResponsePlayState, opts?: pulumi.CustomResourceOptions): ResponsePlay;
/**
* Returns true if the given object is an instance of ResponsePlay. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is ResponsePlay;
/**
* The telephone number that will be set as the conference number for any incident on which this response play is run.
*/
readonly conferenceNumber: pulumi.Output;
/**
* The URL that will be set as the conference URL for any incident on which this response play is run.
*/
readonly conferenceUrl: pulumi.Output;
/**
* A human-friendly description of the response play.
* If not set, a placeholder of "Managed by Pulumi" will be set.
*/
readonly description: pulumi.Output;
/**
* The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
*/
readonly from: pulumi.Output;
/**
* The name of the response play.
*/
readonly name: pulumi.Output;
/**
* A user and/or escalation policy to be requested as a responder to any incident on which this response play is run. There can be multiple responders defined on a single response play.
*/
readonly responders: pulumi.Output;
/**
* The message body of the notification that will be sent to this response play's set of responders. If empty, a default response request notification will be sent.
*/
readonly respondersMessage: pulumi.Output;
/**
* String representing how this response play is allowed to be run. Valid options are:
*/
readonly runnability: pulumi.Output;
/**
* A user and/or team to be added as a subscriber to any incident on which this response play is run. There can be multiple subscribers defined on a single response play.
*/
readonly subscribers: pulumi.Output;
/**
* The content of the notification that will be sent to all incident subscribers upon the running of this response play. Note that this includes any users who may have already been subscribed to the incident prior to the running of this response play. If empty, no notifications will be sent.
*/
readonly subscribersMessage: pulumi.Output;
/**
* The ID of the team associated with the response play.
*/
readonly team: pulumi.Output;
/**
* A string that determines the schema of the object. If not set, the default value is "responsePlay".
*/
readonly type: pulumi.Output;
/**
* Create a ResponsePlay resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: ResponsePlayArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ResponsePlay resources.
*/
export interface ResponsePlayState {
/**
* The telephone number that will be set as the conference number for any incident on which this response play is run.
*/
conferenceNumber?: pulumi.Input;
/**
* The URL that will be set as the conference URL for any incident on which this response play is run.
*/
conferenceUrl?: pulumi.Input;
/**
* A human-friendly description of the response play.
* If not set, a placeholder of "Managed by Pulumi" will be set.
*/
description?: pulumi.Input;
/**
* The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
*/
from?: pulumi.Input;
/**
* The name of the response play.
*/
name?: pulumi.Input;
/**
* A user and/or escalation policy to be requested as a responder to any incident on which this response play is run. There can be multiple responders defined on a single response play.
*/
responders?: pulumi.Input[]>;
/**
* The message body of the notification that will be sent to this response play's set of responders. If empty, a default response request notification will be sent.
*/
respondersMessage?: pulumi.Input;
/**
* String representing how this response play is allowed to be run. Valid options are:
*/
runnability?: pulumi.Input;
/**
* A user and/or team to be added as a subscriber to any incident on which this response play is run. There can be multiple subscribers defined on a single response play.
*/
subscribers?: pulumi.Input[]>;
/**
* The content of the notification that will be sent to all incident subscribers upon the running of this response play. Note that this includes any users who may have already been subscribed to the incident prior to the running of this response play. If empty, no notifications will be sent.
*/
subscribersMessage?: pulumi.Input;
/**
* The ID of the team associated with the response play.
*/
team?: pulumi.Input;
/**
* A string that determines the schema of the object. If not set, the default value is "responsePlay".
*/
type?: pulumi.Input;
}
/**
* The set of arguments for constructing a ResponsePlay resource.
*/
export interface ResponsePlayArgs {
/**
* The telephone number that will be set as the conference number for any incident on which this response play is run.
*/
conferenceNumber?: pulumi.Input;
/**
* The URL that will be set as the conference URL for any incident on which this response play is run.
*/
conferenceUrl?: pulumi.Input;
/**
* A human-friendly description of the response play.
* If not set, a placeholder of "Managed by Pulumi" will be set.
*/
description?: pulumi.Input;
/**
* The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
*/
from: pulumi.Input;
/**
* The name of the response play.
*/
name?: pulumi.Input;
/**
* A user and/or escalation policy to be requested as a responder to any incident on which this response play is run. There can be multiple responders defined on a single response play.
*/
responders?: pulumi.Input[]>;
/**
* The message body of the notification that will be sent to this response play's set of responders. If empty, a default response request notification will be sent.
*/
respondersMessage?: pulumi.Input;
/**
* String representing how this response play is allowed to be run. Valid options are:
*/
runnability?: pulumi.Input;
/**
* A user and/or team to be added as a subscriber to any incident on which this response play is run. There can be multiple subscribers defined on a single response play.
*/
subscribers?: pulumi.Input[]>;
/**
* The content of the notification that will be sent to all incident subscribers upon the running of this response play. Note that this includes any users who may have already been subscribed to the incident prior to the running of this response play. If empty, no notifications will be sent.
*/
subscribersMessage?: pulumi.Input;
/**
* The ID of the team associated with the response play.
*/
team?: pulumi.Input;
/**
* A string that determines the schema of the object. If not set, the default value is "responsePlay".
*/
type?: pulumi.Input;
}