1. Packages
  2. Datadog Provider
  3. API Docs
  4. OnCallUserNotificationRule
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 rule resource.

    Create OnCallUserNotificationRule Resource

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

    Constructor syntax

    new OnCallUserNotificationRule(name: string, args: OnCallUserNotificationRuleArgs, opts?: CustomResourceOptions);
    @overload
    def OnCallUserNotificationRule(resource_name: str,
                                   args: OnCallUserNotificationRuleArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def OnCallUserNotificationRule(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   category: Optional[str] = None,
                                   channel_id: Optional[str] = None,
                                   delay_minutes: Optional[int] = None,
                                   user_id: Optional[str] = None,
                                   phone: Optional[OnCallUserNotificationRulePhoneArgs] = None)
    func NewOnCallUserNotificationRule(ctx *Context, name string, args OnCallUserNotificationRuleArgs, opts ...ResourceOption) (*OnCallUserNotificationRule, error)
    public OnCallUserNotificationRule(string name, OnCallUserNotificationRuleArgs args, CustomResourceOptions? opts = null)
    public OnCallUserNotificationRule(String name, OnCallUserNotificationRuleArgs args)
    public OnCallUserNotificationRule(String name, OnCallUserNotificationRuleArgs args, CustomResourceOptions options)
    
    type: datadog:OnCallUserNotificationRule
    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 OnCallUserNotificationRuleArgs
    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 OnCallUserNotificationRuleArgs
    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 OnCallUserNotificationRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OnCallUserNotificationRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OnCallUserNotificationRuleArgs
    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 onCallUserNotificationRuleResource = new Datadog.OnCallUserNotificationRule("onCallUserNotificationRuleResource", new()
    {
        Category = "string",
        ChannelId = "string",
        DelayMinutes = 0,
        UserId = "string",
        Phone = new Datadog.Inputs.OnCallUserNotificationRulePhoneArgs
        {
            Method = "string",
        },
    });
    
    example, err := datadog.NewOnCallUserNotificationRule(ctx, "onCallUserNotificationRuleResource", &datadog.OnCallUserNotificationRuleArgs{
    	Category:     pulumi.String("string"),
    	ChannelId:    pulumi.String("string"),
    	DelayMinutes: pulumi.Int(0),
    	UserId:       pulumi.String("string"),
    	Phone: &datadog.OnCallUserNotificationRulePhoneArgs{
    		Method: pulumi.String("string"),
    	},
    })
    
    var onCallUserNotificationRuleResource = new OnCallUserNotificationRule("onCallUserNotificationRuleResource", OnCallUserNotificationRuleArgs.builder()
        .category("string")
        .channelId("string")
        .delayMinutes(0)
        .userId("string")
        .phone(OnCallUserNotificationRulePhoneArgs.builder()
            .method("string")
            .build())
        .build());
    
    on_call_user_notification_rule_resource = datadog.OnCallUserNotificationRule("onCallUserNotificationRuleResource",
        category="string",
        channel_id="string",
        delay_minutes=0,
        user_id="string",
        phone={
            "method": "string",
        })
    
    const onCallUserNotificationRuleResource = new datadog.OnCallUserNotificationRule("onCallUserNotificationRuleResource", {
        category: "string",
        channelId: "string",
        delayMinutes: 0,
        userId: "string",
        phone: {
            method: "string",
        },
    });
    
    type: datadog:OnCallUserNotificationRule
    properties:
        category: string
        channelId: string
        delayMinutes: 0
        phone:
            method: string
        userId: string
    

    OnCallUserNotificationRule 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 OnCallUserNotificationRule resource accepts the following input properties:

    Category string
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    ChannelId string
    ID of the notification channel to associate the notification rule with.
    DelayMinutes int
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    UserId string
    ID of the user to associate the notification rule with.
    Phone OnCallUserNotificationRulePhone
    Category string
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    ChannelId string
    ID of the notification channel to associate the notification rule with.
    DelayMinutes int
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    UserId string
    ID of the user to associate the notification rule with.
    Phone OnCallUserNotificationRulePhoneArgs
    category String
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    channelId String
    ID of the notification channel to associate the notification rule with.
    delayMinutes Integer
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    userId String
    ID of the user to associate the notification rule with.
    phone OnCallUserNotificationRulePhone
    category string
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    channelId string
    ID of the notification channel to associate the notification rule with.
    delayMinutes number
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    userId string
    ID of the user to associate the notification rule with.
    phone OnCallUserNotificationRulePhone
    category str
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    channel_id str
    ID of the notification channel to associate the notification rule with.
    delay_minutes int
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    user_id str
    ID of the user to associate the notification rule with.
    phone OnCallUserNotificationRulePhoneArgs
    category String
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    channelId String
    ID of the notification channel to associate the notification rule with.
    delayMinutes Number
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    userId String
    ID of the user to associate the notification rule with.
    phone Property Map

    Outputs

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

    Get an existing OnCallUserNotificationRule 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?: OnCallUserNotificationRuleState, opts?: CustomResourceOptions): OnCallUserNotificationRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            category: Optional[str] = None,
            channel_id: Optional[str] = None,
            delay_minutes: Optional[int] = None,
            phone: Optional[OnCallUserNotificationRulePhoneArgs] = None,
            user_id: Optional[str] = None) -> OnCallUserNotificationRule
    func GetOnCallUserNotificationRule(ctx *Context, name string, id IDInput, state *OnCallUserNotificationRuleState, opts ...ResourceOption) (*OnCallUserNotificationRule, error)
    public static OnCallUserNotificationRule Get(string name, Input<string> id, OnCallUserNotificationRuleState? state, CustomResourceOptions? opts = null)
    public static OnCallUserNotificationRule get(String name, Output<String> id, OnCallUserNotificationRuleState state, CustomResourceOptions options)
    resources:  _:    type: datadog:OnCallUserNotificationRule    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:
    Category string
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    ChannelId string
    ID of the notification channel to associate the notification rule with.
    DelayMinutes int
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    Phone OnCallUserNotificationRulePhone
    UserId string
    ID of the user to associate the notification rule with.
    Category string
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    ChannelId string
    ID of the notification channel to associate the notification rule with.
    DelayMinutes int
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    Phone OnCallUserNotificationRulePhoneArgs
    UserId string
    ID of the user to associate the notification rule with.
    category String
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    channelId String
    ID of the notification channel to associate the notification rule with.
    delayMinutes Integer
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    phone OnCallUserNotificationRulePhone
    userId String
    ID of the user to associate the notification rule with.
    category string
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    channelId string
    ID of the notification channel to associate the notification rule with.
    delayMinutes number
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    phone OnCallUserNotificationRulePhone
    userId string
    ID of the user to associate the notification rule with.
    category str
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    channel_id str
    ID of the notification channel to associate the notification rule with.
    delay_minutes int
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    phone OnCallUserNotificationRulePhoneArgs
    user_id str
    ID of the user to associate the notification rule with.
    category String
    Notification category to associate the rule with. Valid values are high_urgency, low_urgency.
    channelId String
    ID of the notification channel to associate the notification rule with.
    delayMinutes Number
    Number of minutes to elapse before this rule is evaluated. 0 indicates immediate evaluation.
    phone Property Map
    userId String
    ID of the user to associate the notification rule with.

    Supporting Types

    OnCallUserNotificationRulePhone, OnCallUserNotificationRulePhoneArgs

    Method string
    Specifies the method in which a phone is used in a notification rule. Valid values are sms, voice.
    Method string
    Specifies the method in which a phone is used in a notification rule. Valid values are sms, voice.
    method String
    Specifies the method in which a phone is used in a notification rule. Valid values are sms, voice.
    method string
    Specifies the method in which a phone is used in a notification rule. Valid values are sms, voice.
    method str
    Specifies the method in which a phone is used in a notification rule. Valid values are sms, voice.
    method String
    Specifies the method in which a phone is used in a notification rule. Valid values are sms, voice.

    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