Show / Hide Table of Contents

Class GetUser

Inheritance
System.Object
GetUser
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 GetUser

Methods

View Source

InvokeAsync(GetUserArgs, InvokeOptions)

Use this data source to get information about a specific user that you can use for other PagerDuty resources.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
public MyStack()
{
    var me = Output.Create(Pagerduty.GetUser.InvokeAsync(new Pagerduty.GetUserArgs
    {
        Email = "me@example.com",
    }));
    var foo = new Pagerduty.EscalationPolicy("foo", new Pagerduty.EscalationPolicyArgs
    {
        NumLoops = 2,
        Rules = 
        {
            new Pagerduty.Inputs.EscalationPolicyRuleArgs
            {
                EscalationDelayInMinutes = 10,
                Target = 
                {

                    {
                        { "id", me.Apply(me => me.Id) },
                        { "type", "user" },
                    },
                },
            },
        },
    });
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetUserArgs args
Pulumi.InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetUserResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.