PagerDuty v4.10.1 published on Wednesday, Mar 27, 2024 by Pulumi
pagerduty.ResponsePlay
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";
const exampleUser = new pagerduty.User("exampleUser", {
email: "125.greenholt.earline@graham.name",
teams: [pagerduty_team.example.id],
});
const exampleEscalationPolicy = new pagerduty.EscalationPolicy("exampleEscalationPolicy", {
numLoops: 2,
rules: [{
escalationDelayInMinutes: 10,
targets: [{
type: "user",
id: exampleUser.id,
}],
}],
});
const exampleResponsePlay = new pagerduty.ResponsePlay("exampleResponsePlay", {
from: exampleUser.email,
responders: [{
type: "escalation_policy_reference",
id: exampleEscalationPolicy.id,
}],
subscribers: [{
type: "user_reference",
id: exampleUser.id,
}],
runnability: "services",
});
import pulumi
import pulumi_pagerduty as pagerduty
example_user = pagerduty.User("exampleUser",
email="125.greenholt.earline@graham.name",
teams=[pagerduty_team["example"]["id"]])
example_escalation_policy = pagerduty.EscalationPolicy("exampleEscalationPolicy",
num_loops=2,
rules=[pagerduty.EscalationPolicyRuleArgs(
escalation_delay_in_minutes=10,
targets=[pagerduty.EscalationPolicyRuleTargetArgs(
type="user",
id=example_user.id,
)],
)])
example_response_play = pagerduty.ResponsePlay("exampleResponsePlay",
from_=example_user.email,
responders=[pagerduty.ResponsePlayResponderArgs(
type="escalation_policy_reference",
id=example_escalation_policy.id,
)],
subscribers=[pagerduty.ResponsePlaySubscriberArgs(
type="user_reference",
id=example_user.id,
)],
runnability="services")
package main
import (
"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleUser, err := pagerduty.NewUser(ctx, "exampleUser", &pagerduty.UserArgs{
Email: pulumi.String("125.greenholt.earline@graham.name"),
Teams: pulumi.StringArray{
pagerduty_team.Example.Id,
},
})
if err != nil {
return err
}
exampleEscalationPolicy, err := pagerduty.NewEscalationPolicy(ctx, "exampleEscalationPolicy", &pagerduty.EscalationPolicyArgs{
NumLoops: pulumi.Int(2),
Rules: pagerduty.EscalationPolicyRuleArray{
&pagerduty.EscalationPolicyRuleArgs{
EscalationDelayInMinutes: pulumi.Int(10),
Targets: pagerduty.EscalationPolicyRuleTargetArray{
&pagerduty.EscalationPolicyRuleTargetArgs{
Type: pulumi.String("user"),
Id: exampleUser.ID(),
},
},
},
},
})
if err != nil {
return err
}
_, err = pagerduty.NewResponsePlay(ctx, "exampleResponsePlay", &pagerduty.ResponsePlayArgs{
From: exampleUser.Email,
Responders: pagerduty.ResponsePlayResponderArray{
&pagerduty.ResponsePlayResponderArgs{
Type: pulumi.String("escalation_policy_reference"),
Id: exampleEscalationPolicy.ID(),
},
},
Subscribers: pagerduty.ResponsePlaySubscriberArray{
&pagerduty.ResponsePlaySubscriberArgs{
Type: pulumi.String("user_reference"),
Id: exampleUser.ID(),
},
},
Runnability: pulumi.String("services"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
return await Deployment.RunAsync(() =>
{
var exampleUser = new Pagerduty.User("exampleUser", new()
{
Email = "125.greenholt.earline@graham.name",
Teams = new[]
{
pagerduty_team.Example.Id,
},
});
var exampleEscalationPolicy = new Pagerduty.EscalationPolicy("exampleEscalationPolicy", new()
{
NumLoops = 2,
Rules = new[]
{
new Pagerduty.Inputs.EscalationPolicyRuleArgs
{
EscalationDelayInMinutes = 10,
Targets = new[]
{
new Pagerduty.Inputs.EscalationPolicyRuleTargetArgs
{
Type = "user",
Id = exampleUser.Id,
},
},
},
},
});
var exampleResponsePlay = new Pagerduty.ResponsePlay("exampleResponsePlay", new()
{
From = exampleUser.Email,
Responders = new[]
{
new Pagerduty.Inputs.ResponsePlayResponderArgs
{
Type = "escalation_policy_reference",
Id = exampleEscalationPolicy.Id,
},
},
Subscribers = new[]
{
new Pagerduty.Inputs.ResponsePlaySubscriberArgs
{
Type = "user_reference",
Id = exampleUser.Id,
},
},
Runnability = "services",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.pagerduty.User;
import com.pulumi.pagerduty.UserArgs;
import com.pulumi.pagerduty.EscalationPolicy;
import com.pulumi.pagerduty.EscalationPolicyArgs;
import com.pulumi.pagerduty.inputs.EscalationPolicyRuleArgs;
import com.pulumi.pagerduty.ResponsePlay;
import com.pulumi.pagerduty.ResponsePlayArgs;
import com.pulumi.pagerduty.inputs.ResponsePlayResponderArgs;
import com.pulumi.pagerduty.inputs.ResponsePlaySubscriberArgs;
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 exampleUser = new User("exampleUser", UserArgs.builder()
.email("125.greenholt.earline@graham.name")
.teams(pagerduty_team.example().id())
.build());
var exampleEscalationPolicy = new EscalationPolicy("exampleEscalationPolicy", EscalationPolicyArgs.builder()
.numLoops(2)
.rules(EscalationPolicyRuleArgs.builder()
.escalationDelayInMinutes(10)
.targets(EscalationPolicyRuleTargetArgs.builder()
.type("user")
.id(exampleUser.id())
.build())
.build())
.build());
var exampleResponsePlay = new ResponsePlay("exampleResponsePlay", ResponsePlayArgs.builder()
.from(exampleUser.email())
.responders(ResponsePlayResponderArgs.builder()
.type("escalation_policy_reference")
.id(exampleEscalationPolicy.id())
.build())
.subscribers(ResponsePlaySubscriberArgs.builder()
.type("user_reference")
.id(exampleUser.id())
.build())
.runnability("services")
.build());
}
}
resources:
exampleUser:
type: pagerduty:User
properties:
email: 125.greenholt.earline@graham.name
teams:
- ${pagerduty_team.example.id}
exampleEscalationPolicy:
type: pagerduty:EscalationPolicy
properties:
numLoops: 2
rules:
- escalationDelayInMinutes: 10
targets:
- type: user
id: ${exampleUser.id}
exampleResponsePlay:
type: pagerduty:ResponsePlay
properties:
from: ${exampleUser.email}
responders:
- type: escalation_policy_reference
id: ${exampleEscalationPolicy.id}
subscribers:
- type: user_reference
id: ${exampleUser.id}
runnability: services
Create ResponsePlay Resource
new ResponsePlay(name: string, args: ResponsePlayArgs, opts?: CustomResourceOptions);
@overload
def ResponsePlay(resource_name: str,
opts: Optional[ResourceOptions] = None,
conference_number: Optional[str] = None,
conference_url: Optional[str] = None,
description: Optional[str] = None,
from_: Optional[str] = None,
name: Optional[str] = None,
responders: Optional[Sequence[ResponsePlayResponderArgs]] = None,
responders_message: Optional[str] = None,
runnability: Optional[str] = None,
subscribers: Optional[Sequence[ResponsePlaySubscriberArgs]] = None,
subscribers_message: Optional[str] = None,
team: Optional[str] = None,
type: Optional[str] = None)
@overload
def ResponsePlay(resource_name: str,
args: ResponsePlayArgs,
opts: Optional[ResourceOptions] = None)
func NewResponsePlay(ctx *Context, name string, args ResponsePlayArgs, opts ...ResourceOption) (*ResponsePlay, error)
public ResponsePlay(string name, ResponsePlayArgs args, CustomResourceOptions? opts = null)
public ResponsePlay(String name, ResponsePlayArgs args)
public ResponsePlay(String name, ResponsePlayArgs args, CustomResourceOptions options)
type: pagerduty:ResponsePlay
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResponsePlayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ResponsePlayArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ResponsePlayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResponsePlayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResponsePlayArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ResponsePlay Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ResponsePlay resource accepts the following input properties:
- From string
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- Conference
Number string - The telephone number that will be set as the conference number for any incident on which this response play is run.
- Conference
Url string - The URL that will be set as the conference URL for any incident on which this response play is run.
- Description string
- Name string
- The name of the response play.
- Responders
List<Response
Play Responder> - 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
Message string - 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.
- Runnability string
- String representing how this response play is allowed to be run. Valid options are:
- Subscribers
List<Response
Play Subscriber> - 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
Message string - 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.
- Team string
- The ID of the team associated with the response play.
- Type string
- A string that determines the schema of the object. If not set, the default value is "response_play".
- From string
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- Conference
Number string - The telephone number that will be set as the conference number for any incident on which this response play is run.
- Conference
Url string - The URL that will be set as the conference URL for any incident on which this response play is run.
- Description string
- Name string
- The name of the response play.
- Responders
[]Response
Play Responder Args - 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
Message string - 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.
- Runnability string
- String representing how this response play is allowed to be run. Valid options are:
- Subscribers
[]Response
Play Subscriber Args - 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
Message string - 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.
- Team string
- The ID of the team associated with the response play.
- Type string
- A string that determines the schema of the object. If not set, the default value is "response_play".
- from String
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- conference
Number String - The telephone number that will be set as the conference number for any incident on which this response play is run.
- conference
Url String - The URL that will be set as the conference URL for any incident on which this response play is run.
- description String
- name String
- The name of the response play.
- responders
List<Response
Play Responder> - 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
Message String - 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.
- runnability String
- String representing how this response play is allowed to be run. Valid options are:
- subscribers
List<Response
Play Subscriber> - 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
Message String - 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.
- team String
- The ID of the team associated with the response play.
- type String
- A string that determines the schema of the object. If not set, the default value is "response_play".
- from string
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- conference
Number string - The telephone number that will be set as the conference number for any incident on which this response play is run.
- conference
Url string - The URL that will be set as the conference URL for any incident on which this response play is run.
- description string
- name string
- The name of the response play.
- responders
Response
Play Responder[] - 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
Message string - 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.
- runnability string
- String representing how this response play is allowed to be run. Valid options are:
- subscribers
Response
Play Subscriber[] - 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
Message string - 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.
- team string
- The ID of the team associated with the response play.
- type string
- A string that determines the schema of the object. If not set, the default value is "response_play".
- from_ str
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- conference_
number str - The telephone number that will be set as the conference number for any incident on which this response play is run.
- conference_
url str - The URL that will be set as the conference URL for any incident on which this response play is run.
- description str
- name str
- The name of the response play.
- responders
Sequence[Response
Play Responder Args] - 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_
message str - 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.
- runnability str
- String representing how this response play is allowed to be run. Valid options are:
- subscribers
Sequence[Response
Play Subscriber Args] - 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_
message str - 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.
- team str
- The ID of the team associated with the response play.
- type str
- A string that determines the schema of the object. If not set, the default value is "response_play".
- from String
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- conference
Number String - The telephone number that will be set as the conference number for any incident on which this response play is run.
- conference
Url String - The URL that will be set as the conference URL for any incident on which this response play is run.
- description String
- name String
- The name of the response play.
- responders List<Property Map>
- 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
Message String - 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.
- runnability String
- String representing how this response play is allowed to be run. Valid options are:
- subscribers List<Property Map>
- 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
Message String - 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.
- team String
- The ID of the team associated with the response play.
- type String
- A string that determines the schema of the object. If not set, the default value is "response_play".
Outputs
All input properties are implicitly available as output properties. Additionally, the ResponsePlay resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ResponsePlay Resource
Get an existing ResponsePlay resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ResponsePlayState, opts?: CustomResourceOptions): ResponsePlay
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
conference_number: Optional[str] = None,
conference_url: Optional[str] = None,
description: Optional[str] = None,
from_: Optional[str] = None,
name: Optional[str] = None,
responders: Optional[Sequence[ResponsePlayResponderArgs]] = None,
responders_message: Optional[str] = None,
runnability: Optional[str] = None,
subscribers: Optional[Sequence[ResponsePlaySubscriberArgs]] = None,
subscribers_message: Optional[str] = None,
team: Optional[str] = None,
type: Optional[str] = None) -> ResponsePlay
func GetResponsePlay(ctx *Context, name string, id IDInput, state *ResponsePlayState, opts ...ResourceOption) (*ResponsePlay, error)
public static ResponsePlay Get(string name, Input<string> id, ResponsePlayState? state, CustomResourceOptions? opts = null)
public static ResponsePlay get(String name, Output<String> id, ResponsePlayState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Conference
Number string - The telephone number that will be set as the conference number for any incident on which this response play is run.
- Conference
Url string - The URL that will be set as the conference URL for any incident on which this response play is run.
- Description string
- From string
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- Name string
- The name of the response play.
- Responders
List<Response
Play Responder> - 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
Message string - 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.
- Runnability string
- String representing how this response play is allowed to be run. Valid options are:
- Subscribers
List<Response
Play Subscriber> - 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
Message string - 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.
- Team string
- The ID of the team associated with the response play.
- Type string
- A string that determines the schema of the object. If not set, the default value is "response_play".
- Conference
Number string - The telephone number that will be set as the conference number for any incident on which this response play is run.
- Conference
Url string - The URL that will be set as the conference URL for any incident on which this response play is run.
- Description string
- From string
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- Name string
- The name of the response play.
- Responders
[]Response
Play Responder Args - 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
Message string - 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.
- Runnability string
- String representing how this response play is allowed to be run. Valid options are:
- Subscribers
[]Response
Play Subscriber Args - 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
Message string - 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.
- Team string
- The ID of the team associated with the response play.
- Type string
- A string that determines the schema of the object. If not set, the default value is "response_play".
- conference
Number String - The telephone number that will be set as the conference number for any incident on which this response play is run.
- conference
Url String - The URL that will be set as the conference URL for any incident on which this response play is run.
- description String
- from String
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- name String
- The name of the response play.
- responders
List<Response
Play Responder> - 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
Message String - 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.
- runnability String
- String representing how this response play is allowed to be run. Valid options are:
- subscribers
List<Response
Play Subscriber> - 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
Message String - 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.
- team String
- The ID of the team associated with the response play.
- type String
- A string that determines the schema of the object. If not set, the default value is "response_play".
- conference
Number string - The telephone number that will be set as the conference number for any incident on which this response play is run.
- conference
Url string - The URL that will be set as the conference URL for any incident on which this response play is run.
- description string
- from string
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- name string
- The name of the response play.
- responders
Response
Play Responder[] - 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
Message string - 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.
- runnability string
- String representing how this response play is allowed to be run. Valid options are:
- subscribers
Response
Play Subscriber[] - 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
Message string - 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.
- team string
- The ID of the team associated with the response play.
- type string
- A string that determines the schema of the object. If not set, the default value is "response_play".
- conference_
number str - The telephone number that will be set as the conference number for any incident on which this response play is run.
- conference_
url str - The URL that will be set as the conference URL for any incident on which this response play is run.
- description str
- from_ str
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- name str
- The name of the response play.
- responders
Sequence[Response
Play Responder Args] - 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_
message str - 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.
- runnability str
- String representing how this response play is allowed to be run. Valid options are:
- subscribers
Sequence[Response
Play Subscriber Args] - 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_
message str - 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.
- team str
- The ID of the team associated with the response play.
- type str
- A string that determines the schema of the object. If not set, the default value is "response_play".
- conference
Number String - The telephone number that will be set as the conference number for any incident on which this response play is run.
- conference
Url String - The URL that will be set as the conference URL for any incident on which this response play is run.
- description String
- from String
- The email of the user attributed to the request. Needs to be a valid email address of a user in the PagerDuty account.
- name String
- The name of the response play.
- responders List<Property Map>
- 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
Message String - 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.
- runnability String
- String representing how this response play is allowed to be run. Valid options are:
- subscribers List<Property Map>
- 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
Message String - 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.
- team String
- The ID of the team associated with the response play.
- type String
- A string that determines the schema of the object. If not set, the default value is "response_play".
Supporting Types
ResponsePlayResponder, ResponsePlayResponderArgs
- Description string
- Description of escalation policy
- Escalation
Rules List<ResponsePlay Responder Escalation Rule> - The escalation rules
- Id string
- ID of the user defined as the responder
- Name string
- Name of the escalation policy
- Num
Loops int - The number of times the escalation policy will repeat after reaching the end of its escalation.
- On
Call stringHandoff Notifications - Determines how on call handoff notifications will be sent for users on the escalation policy. Defaults to "if_has_services". Could be "if_has_services", "always
- Services
List<Response
Play Responder Service> - There can be multiple services associated with a policy.
- Teams
List<Response
Play Responder Team> - Teams associated with the policy. Account must have the
teams
ability to use this parameter. There can be multiple teams associated with a policy. - Type string
- Type of object of the target. Supported types are
user_reference
,schedule_reference
.
- Description string
- Description of escalation policy
- Escalation
Rules []ResponsePlay Responder Escalation Rule - The escalation rules
- Id string
- ID of the user defined as the responder
- Name string
- Name of the escalation policy
- Num
Loops int - The number of times the escalation policy will repeat after reaching the end of its escalation.
- On
Call stringHandoff Notifications - Determines how on call handoff notifications will be sent for users on the escalation policy. Defaults to "if_has_services". Could be "if_has_services", "always
- Services
[]Response
Play Responder Service - There can be multiple services associated with a policy.
- Teams
[]Response
Play Responder Team - Teams associated with the policy. Account must have the
teams
ability to use this parameter. There can be multiple teams associated with a policy. - Type string
- Type of object of the target. Supported types are
user_reference
,schedule_reference
.
- description String
- Description of escalation policy
- escalation
Rules List<ResponsePlay Responder Escalation Rule> - The escalation rules
- id String
- ID of the user defined as the responder
- name String
- Name of the escalation policy
- num
Loops Integer - The number of times the escalation policy will repeat after reaching the end of its escalation.
- on
Call StringHandoff Notifications - Determines how on call handoff notifications will be sent for users on the escalation policy. Defaults to "if_has_services". Could be "if_has_services", "always
- services
List<Response
Play Responder Service> - There can be multiple services associated with a policy.
- teams
List<Response
Play Responder Team> - Teams associated with the policy. Account must have the
teams
ability to use this parameter. There can be multiple teams associated with a policy. - type String
- Type of object of the target. Supported types are
user_reference
,schedule_reference
.
- description string
- Description of escalation policy
- escalation
Rules ResponsePlay Responder Escalation Rule[] - The escalation rules
- id string
- ID of the user defined as the responder
- name string
- Name of the escalation policy
- num
Loops number - The number of times the escalation policy will repeat after reaching the end of its escalation.
- on
Call stringHandoff Notifications - Determines how on call handoff notifications will be sent for users on the escalation policy. Defaults to "if_has_services". Could be "if_has_services", "always
- services
Response
Play Responder Service[] - There can be multiple services associated with a policy.
- teams
Response
Play Responder Team[] - Teams associated with the policy. Account must have the
teams
ability to use this parameter. There can be multiple teams associated with a policy. - type string
- Type of object of the target. Supported types are
user_reference
,schedule_reference
.
- description str
- Description of escalation policy
- escalation_
rules Sequence[ResponsePlay Responder Escalation Rule] - The escalation rules
- id str
- ID of the user defined as the responder
- name str
- Name of the escalation policy
- num_
loops int - The number of times the escalation policy will repeat after reaching the end of its escalation.
- on_
call_ strhandoff_ notifications - Determines how on call handoff notifications will be sent for users on the escalation policy. Defaults to "if_has_services". Could be "if_has_services", "always
- services
Sequence[Response
Play Responder Service] - There can be multiple services associated with a policy.
- teams
Sequence[Response
Play Responder Team] - Teams associated with the policy. Account must have the
teams
ability to use this parameter. There can be multiple teams associated with a policy. - type str
- Type of object of the target. Supported types are
user_reference
,schedule_reference
.
- description String
- Description of escalation policy
- escalation
Rules List<Property Map> - The escalation rules
- id String
- ID of the user defined as the responder
- name String
- Name of the escalation policy
- num
Loops Number - The number of times the escalation policy will repeat after reaching the end of its escalation.
- on
Call StringHandoff Notifications - Determines how on call handoff notifications will be sent for users on the escalation policy. Defaults to "if_has_services". Could be "if_has_services", "always
- services List<Property Map>
- There can be multiple services associated with a policy.
- teams List<Property Map>
- Teams associated with the policy. Account must have the
teams
ability to use this parameter. There can be multiple teams associated with a policy. - type String
- Type of object of the target. Supported types are
user_reference
,schedule_reference
.
ResponsePlayResponderEscalationRule, ResponsePlayResponderEscalationRuleArgs
- Targets
List<Response
Play Responder Escalation Rule Target> - The targets an incident should be assigned to upon reaching this rule.
- Escalation
Delay intIn Minutes - The number of minutes before an unacknowledged incident escalates away from this rule.
- Id string
- ID of the user defined as the responder
- Targets
[]Response
Play Responder Escalation Rule Target - The targets an incident should be assigned to upon reaching this rule.
- Escalation
Delay intIn Minutes - The number of minutes before an unacknowledged incident escalates away from this rule.
- Id string
- ID of the user defined as the responder
- targets
List<Response
Play Responder Escalation Rule Target> - The targets an incident should be assigned to upon reaching this rule.
- escalation
Delay IntegerIn Minutes - The number of minutes before an unacknowledged incident escalates away from this rule.
- id String
- ID of the user defined as the responder
- targets
Response
Play Responder Escalation Rule Target[] - The targets an incident should be assigned to upon reaching this rule.
- escalation
Delay numberIn Minutes - The number of minutes before an unacknowledged incident escalates away from this rule.
- id string
- ID of the user defined as the responder
- targets
Sequence[Response
Play Responder Escalation Rule Target] - The targets an incident should be assigned to upon reaching this rule.
- escalation_
delay_ intin_ minutes - The number of minutes before an unacknowledged incident escalates away from this rule.
- id str
- ID of the user defined as the responder
- targets List<Property Map>
- The targets an incident should be assigned to upon reaching this rule.
- escalation
Delay NumberIn Minutes - The number of minutes before an unacknowledged incident escalates away from this rule.
- id String
- ID of the user defined as the responder
ResponsePlayResponderEscalationRuleTarget, ResponsePlayResponderEscalationRuleTargetArgs
ResponsePlayResponderService, ResponsePlayResponderServiceArgs
ResponsePlayResponderTeam, ResponsePlayResponderTeamArgs
ResponsePlaySubscriber, ResponsePlaySubscriberArgs
Import
Response Plays can be imported using the id.from(email)
, e.g.
$ pulumi import pagerduty:index/responsePlay:ResponsePlay main 16208303-022b-f745-f2f5-560e537a2a74.user@email.com
Package Details
- Repository
- PagerDuty pulumi/pulumi-pagerduty
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
pagerduty
Terraform Provider.