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. - Channel
Id string - ID of the notification channel to associate the notification rule with.
- Delay
Minutes int - Number of minutes to elapse before this rule is evaluated.
0indicates immediate evaluation. - User
Id string - ID of the user to associate the notification rule with.
- Phone
On
Call User Notification Rule Phone
- Category string
- Notification category to associate the rule with. Valid values are
high_urgency,low_urgency. - Channel
Id string - ID of the notification channel to associate the notification rule with.
- Delay
Minutes int - Number of minutes to elapse before this rule is evaluated.
0indicates immediate evaluation. - User
Id string - ID of the user to associate the notification rule with.
- Phone
On
Call User Notification Rule Phone Args
- category String
- Notification category to associate the rule with. Valid values are
high_urgency,low_urgency. - channel
Id String - ID of the notification channel to associate the notification rule with.
- delay
Minutes Integer - Number of minutes to elapse before this rule is evaluated.
0indicates immediate evaluation. - user
Id String - ID of the user to associate the notification rule with.
- phone
On
Call User Notification Rule Phone
- category string
- Notification category to associate the rule with. Valid values are
high_urgency,low_urgency. - channel
Id string - ID of the notification channel to associate the notification rule with.
- delay
Minutes number - Number of minutes to elapse before this rule is evaluated.
0indicates immediate evaluation. - user
Id string - ID of the user to associate the notification rule with.
- phone
On
Call User Notification Rule Phone
- 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.
0indicates immediate evaluation. - user_
id str - ID of the user to associate the notification rule with.
- phone
On
Call User Notification Rule Phone Args
- category String
- Notification category to associate the rule with. Valid values are
high_urgency,low_urgency. - channel
Id String - ID of the notification channel to associate the notification rule with.
- delay
Minutes Number - Number of minutes to elapse before this rule is evaluated.
0indicates immediate evaluation. - user
Id 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) -> OnCallUserNotificationRulefunc 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.
- Category string
- Notification category to associate the rule with. Valid values are
high_urgency,low_urgency. - Channel
Id string - ID of the notification channel to associate the notification rule with.
- Delay
Minutes int - Number of minutes to elapse before this rule is evaluated.
0indicates immediate evaluation. - Phone
On
Call User Notification Rule Phone - User
Id 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. - Channel
Id string - ID of the notification channel to associate the notification rule with.
- Delay
Minutes int - Number of minutes to elapse before this rule is evaluated.
0indicates immediate evaluation. - Phone
On
Call User Notification Rule Phone Args - User
Id 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. - channel
Id String - ID of the notification channel to associate the notification rule with.
- delay
Minutes Integer - Number of minutes to elapse before this rule is evaluated.
0indicates immediate evaluation. - phone
On
Call User Notification Rule Phone - user
Id 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. - channel
Id string - ID of the notification channel to associate the notification rule with.
- delay
Minutes number - Number of minutes to elapse before this rule is evaluated.
0indicates immediate evaluation. - phone
On
Call User Notification Rule Phone - user
Id 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.
0indicates immediate evaluation. - phone
On
Call User Notification Rule Phone Args - 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. - channel
Id String - ID of the notification channel to associate the notification rule with.
- delay
Minutes Number - Number of minutes to elapse before this rule is evaluated.
0indicates immediate evaluation. - phone Property Map
- user
Id 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
datadogTerraform Provider.
