Show / Hide Table of Contents

Class UserContactMethod

A contact method is a contact method for a PagerDuty user (email, phone or SMS).

Example Usage

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
public MyStack()
{
    var example = new Pagerduty.User("example", new Pagerduty.UserArgs
    {
        Email = "125.greenholt.earline@graham.name",
        Teams = 
        {
            pagerduty_team.Example.Id,
        },
    });
    var email = new Pagerduty.UserContactMethod("email", new Pagerduty.UserContactMethodArgs
    {
        Address = "foo@bar.com",
        Label = "Work",
        Type = "email_contact_method",
        UserId = example.Id,
    });
    var phone = new Pagerduty.UserContactMethod("phone", new Pagerduty.UserContactMethodArgs
    {
        Address = "2025550199",
        CountryCode = "+1",
        Label = "Work",
        Type = "phone_contact_method",
        UserId = example.Id,
    });
    var sms = new Pagerduty.UserContactMethod("sms", new Pagerduty.UserContactMethodArgs
    {
        Address = "2025550199",
        CountryCode = "+1",
        Label = "Work",
        Type = "sms_contact_method",
        UserId = example.Id,
    });
}

}
Inheritance
System.Object
Pulumi.Resource
Pulumi.CustomResource
UserContactMethod
Inherited Members
Pulumi.CustomResource.Id
Pulumi.Resource.GetResourceType()
Pulumi.Resource.GetResourceName()
Pulumi.Resource.Urn
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 class UserContactMethod : CustomResource

Constructors

View Source

UserContactMethod(String, UserContactMethodArgs, CustomResourceOptions)

Create a UserContactMethod resource with the given unique name, arguments, and options.

Declaration
public UserContactMethod(string name, UserContactMethodArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

UserContactMethodArgs args

The arguments used to populate this resource's properties

Pulumi.CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Address

The "address" to deliver to: email, phone number, etc., depending on the type.

Declaration
public Output<string> Address { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

Blacklisted

If true, this phone has been blacklisted by PagerDuty and no messages will be sent to it.

Declaration
public Output<bool> Blacklisted { get; }
Property Value
Type Description
Pulumi.Output<System.Boolean>
View Source

CountryCode

The 1-to-3 digit country calling code. Required when using phone_contact_method or sms_contact_method.

Declaration
public Output<int?> CountryCode { get; }
Property Value
Type Description
Pulumi.Output<System.Nullable<System.Int32>>
View Source

Enabled

If true, this phone is capable of receiving SMS messages.

Declaration
public Output<bool> Enabled { get; }
Property Value
Type Description
Pulumi.Output<System.Boolean>
View Source

Label

The label (e.g., "Work", "Mobile", etc.).

Declaration
public Output<string> Label { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

SendShortEmail

Send an abbreviated email message instead of the standard email output.

Declaration
public Output<bool?> SendShortEmail { get; }
Property Value
Type Description
Pulumi.Output<System.Nullable<System.Boolean>>
View Source

Type

The contact method type. May be (email_contact_method, phone_contact_method, sms_contact_method, push_notification_contact_method).

Declaration
public Output<string> Type { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

UserId

The ID of the user.

Declaration
public Output<string> UserId { get; }
Property Value
Type Description
Pulumi.Output<System.String>

Methods

View Source

Get(String, Input<String>, UserContactMethodState, CustomResourceOptions)

Get an existing UserContactMethod resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static UserContactMethod Get(string name, Input<string> id, UserContactMethodState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Pulumi.Input<System.String> id

The unique provider ID of the resource to lookup.

UserContactMethodState state

Any extra arguments used during the lookup.

Pulumi.CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
UserContactMethod
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.