Class GetEscalationPolicy
Inheritance
System.Object
GetEscalationPolicy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public static class GetEscalationPolicy
Methods
View SourceInvokeAsync(GetEscalationPolicyArgs, InvokeOptions)
Use this data source to get information about a specific escalation policy that you can use for other PagerDuty resources.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
class MyStack : Stack
{
public MyStack()
{
var testEscalationPolicy = Output.Create(Pagerduty.GetEscalationPolicy.InvokeAsync(new Pagerduty.GetEscalationPolicyArgs
{
Name = "Engineering Escalation Policy",
}));
var testService = new Pagerduty.Service("testService", new Pagerduty.ServiceArgs
{
AcknowledgementTimeout = 600,
AutoResolveTimeout = 14400,
EscalationPolicy = testEscalationPolicy.Apply(testEscalationPolicy => testEscalationPolicy.Id),
});
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetEscalationPolicyResult> InvokeAsync(GetEscalationPolicyArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetEscalationPolicyArgs | args | |
| Pulumi.InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetEscalationPolicyResult> |