1. Packages
  2. Datadog Provider
  3. API Docs
  4. OnCallUserNotificationChannel
Datadog v4.63.0 published on Thursday, Jan 22, 2026 by Pulumi
datadog logo
Datadog v4.63.0 published on Thursday, Jan 22, 2026 by Pulumi

    Provides a Datadog On-Call user notification channel resource.

    Create OnCallUserNotificationChannel Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OnCallUserNotificationChannel(name: string, args: OnCallUserNotificationChannelArgs, opts?: CustomResourceOptions);
    @overload
    def OnCallUserNotificationChannel(resource_name: str,
                                      args: OnCallUserNotificationChannelArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def OnCallUserNotificationChannel(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      user_id: Optional[str] = None,
                                      email: Optional[OnCallUserNotificationChannelEmailArgs] = None,
                                      phone: Optional[OnCallUserNotificationChannelPhoneArgs] = None)
    func NewOnCallUserNotificationChannel(ctx *Context, name string, args OnCallUserNotificationChannelArgs, opts ...ResourceOption) (*OnCallUserNotificationChannel, error)
    public OnCallUserNotificationChannel(string name, OnCallUserNotificationChannelArgs args, CustomResourceOptions? opts = null)
    public OnCallUserNotificationChannel(String name, OnCallUserNotificationChannelArgs args)
    public OnCallUserNotificationChannel(String name, OnCallUserNotificationChannelArgs args, CustomResourceOptions options)
    
    type: datadog:OnCallUserNotificationChannel
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args OnCallUserNotificationChannelArgs
    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 OnCallUserNotificationChannelArgs
    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 OnCallUserNotificationChannelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OnCallUserNotificationChannelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OnCallUserNotificationChannelArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var onCallUserNotificationChannelResource = new Datadog.OnCallUserNotificationChannel("onCallUserNotificationChannelResource", new()
    {
        UserId = "string",
        Email = new Datadog.Inputs.OnCallUserNotificationChannelEmailArgs
        {
            Address = "string",
            Formats = new[]
            {
                "string",
            },
        },
        Phone = new Datadog.Inputs.OnCallUserNotificationChannelPhoneArgs
        {
            Number = "string",
        },
    });
    
    example, err := datadog.NewOnCallUserNotificationChannel(ctx, "onCallUserNotificationChannelResource", &datadog.OnCallUserNotificationChannelArgs{
    	UserId: pulumi.String("string"),
    	Email: &datadog.OnCallUserNotificationChannelEmailArgs{
    		Address: pulumi.String("string"),
    		Formats: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Phone: &datadog.OnCallUserNotificationChannelPhoneArgs{
    		Number: pulumi.String("string"),
    	},
    })
    
    var onCallUserNotificationChannelResource = new OnCallUserNotificationChannel("onCallUserNotificationChannelResource", OnCallUserNotificationChannelArgs.builder()
        .userId("string")
        .email(OnCallUserNotificationChannelEmailArgs.builder()
            .address("string")
            .formats("string")
            .build())
        .phone(OnCallUserNotificationChannelPhoneArgs.builder()
            .number("string")
            .build())
        .build());
    
    on_call_user_notification_channel_resource = datadog.OnCallUserNotificationChannel("onCallUserNotificationChannelResource",
        user_id="string",
        email={
            "address": "string",
            "formats": ["string"],
        },
        phone={
            "number": "string",
        })
    
    const onCallUserNotificationChannelResource = new datadog.OnCallUserNotificationChannel("onCallUserNotificationChannelResource", {
        userId: "string",
        email: {
            address: "string",
            formats: ["string"],
        },
        phone: {
            number: "string",
        },
    });
    
    type: datadog:OnCallUserNotificationChannel
    properties:
        email:
            address: string
            formats:
                - string
        phone:
            number: string
        userId: string
    

    OnCallUserNotificationChannel Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The OnCallUserNotificationChannel resource accepts the following input properties:

    UserId string
    ID of the user to associate the notification channel with.
    Email OnCallUserNotificationChannelEmail
    Phone OnCallUserNotificationChannelPhone
    UserId string
    ID of the user to associate the notification channel with.
    Email OnCallUserNotificationChannelEmailArgs
    Phone OnCallUserNotificationChannelPhoneArgs
    userId String
    ID of the user to associate the notification channel with.
    email OnCallUserNotificationChannelEmail
    phone OnCallUserNotificationChannelPhone
    userId string
    ID of the user to associate the notification channel with.
    email OnCallUserNotificationChannelEmail
    phone OnCallUserNotificationChannelPhone
    user_id str
    ID of the user to associate the notification channel with.
    email OnCallUserNotificationChannelEmailArgs
    phone OnCallUserNotificationChannelPhoneArgs
    userId String
    ID of the user to associate the notification channel with.
    email Property Map
    phone Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OnCallUserNotificationChannel 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 OnCallUserNotificationChannel Resource

    Get an existing OnCallUserNotificationChannel 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?: OnCallUserNotificationChannelState, opts?: CustomResourceOptions): OnCallUserNotificationChannel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            email: Optional[OnCallUserNotificationChannelEmailArgs] = None,
            phone: Optional[OnCallUserNotificationChannelPhoneArgs] = None,
            user_id: Optional[str] = None) -> OnCallUserNotificationChannel
    func GetOnCallUserNotificationChannel(ctx *Context, name string, id IDInput, state *OnCallUserNotificationChannelState, opts ...ResourceOption) (*OnCallUserNotificationChannel, error)
    public static OnCallUserNotificationChannel Get(string name, Input<string> id, OnCallUserNotificationChannelState? state, CustomResourceOptions? opts = null)
    public static OnCallUserNotificationChannel get(String name, Output<String> id, OnCallUserNotificationChannelState state, CustomResourceOptions options)
    resources:  _:    type: datadog:OnCallUserNotificationChannel    get:      id: ${id}
    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.
    The following state arguments are supported:
    Email OnCallUserNotificationChannelEmail
    Phone OnCallUserNotificationChannelPhone
    UserId string
    ID of the user to associate the notification channel with.
    Email OnCallUserNotificationChannelEmailArgs
    Phone OnCallUserNotificationChannelPhoneArgs
    UserId string
    ID of the user to associate the notification channel with.
    email OnCallUserNotificationChannelEmail
    phone OnCallUserNotificationChannelPhone
    userId String
    ID of the user to associate the notification channel with.
    email OnCallUserNotificationChannelEmail
    phone OnCallUserNotificationChannelPhone
    userId string
    ID of the user to associate the notification channel with.
    email OnCallUserNotificationChannelEmailArgs
    phone OnCallUserNotificationChannelPhoneArgs
    user_id str
    ID of the user to associate the notification channel with.
    email Property Map
    phone Property Map
    userId String
    ID of the user to associate the notification channel with.

    Supporting Types

    OnCallUserNotificationChannelEmail, OnCallUserNotificationChannelEmailArgs

    Address string
    The e-mail address to be notified
    Formats List<string>
    Preferred content formats for notifications
    Address string
    The e-mail address to be notified
    Formats []string
    Preferred content formats for notifications
    address String
    The e-mail address to be notified
    formats List<String>
    Preferred content formats for notifications
    address string
    The e-mail address to be notified
    formats string[]
    Preferred content formats for notifications
    address str
    The e-mail address to be notified
    formats Sequence[str]
    Preferred content formats for notifications
    address String
    The e-mail address to be notified
    formats List<String>
    Preferred content formats for notifications

    OnCallUserNotificationChannelPhone, OnCallUserNotificationChannelPhoneArgs

    Number string
    The E-164 formatted phone number (e.g. +3371234567)
    Number string
    The E-164 formatted phone number (e.g. +3371234567)
    number String
    The E-164 formatted phone number (e.g. +3371234567)
    number string
    The E-164 formatted phone number (e.g. +3371234567)
    number str
    The E-164 formatted phone number (e.g. +3371234567)
    number String
    The E-164 formatted phone number (e.g. +3371234567)

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.63.0 published on Thursday, Jan 22, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate