datadog.MonitorNotificationRule
Explore with Pulumi AI
Provides a Datadog MonitorNotificationRule resource.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
# Create new monitor_notification_rule resource
foo:
type: datadog:MonitorNotificationRule
properties:
name: A notification rule name
recipients:
- slack-test-channel
- jira-test
filter:
- tags:
- env:foo
Create MonitorNotificationRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorNotificationRule(name: string, args: MonitorNotificationRuleArgs, opts?: CustomResourceOptions);
@overload
def MonitorNotificationRule(resource_name: str,
args: MonitorNotificationRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorNotificationRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
recipients: Optional[Sequence[str]] = None,
filter: Optional[MonitorNotificationRuleFilterArgs] = None)
func NewMonitorNotificationRule(ctx *Context, name string, args MonitorNotificationRuleArgs, opts ...ResourceOption) (*MonitorNotificationRule, error)
public MonitorNotificationRule(string name, MonitorNotificationRuleArgs args, CustomResourceOptions? opts = null)
public MonitorNotificationRule(String name, MonitorNotificationRuleArgs args)
public MonitorNotificationRule(String name, MonitorNotificationRuleArgs args, CustomResourceOptions options)
type: datadog:MonitorNotificationRule
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 MonitorNotificationRuleArgs
- 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 MonitorNotificationRuleArgs
- 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 MonitorNotificationRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorNotificationRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorNotificationRuleArgs
- 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 monitorNotificationRuleResource = new Datadog.MonitorNotificationRule("monitorNotificationRuleResource", new()
{
Name = "string",
Recipients = new[]
{
"string",
},
Filter = new Datadog.Inputs.MonitorNotificationRuleFilterArgs
{
Tags = new[]
{
"string",
},
},
});
example, err := datadog.NewMonitorNotificationRule(ctx, "monitorNotificationRuleResource", &datadog.MonitorNotificationRuleArgs{
Name: pulumi.String("string"),
Recipients: pulumi.StringArray{
pulumi.String("string"),
},
Filter: &datadog.MonitorNotificationRuleFilterArgs{
Tags: pulumi.StringArray{
pulumi.String("string"),
},
},
})
var monitorNotificationRuleResource = new MonitorNotificationRule("monitorNotificationRuleResource", MonitorNotificationRuleArgs.builder()
.name("string")
.recipients("string")
.filter(MonitorNotificationRuleFilterArgs.builder()
.tags("string")
.build())
.build());
monitor_notification_rule_resource = datadog.MonitorNotificationRule("monitorNotificationRuleResource",
name="string",
recipients=["string"],
filter={
"tags": ["string"],
})
const monitorNotificationRuleResource = new datadog.MonitorNotificationRule("monitorNotificationRuleResource", {
name: "string",
recipients: ["string"],
filter: {
tags: ["string"],
},
});
type: datadog:MonitorNotificationRule
properties:
filter:
tags:
- string
name: string
recipients:
- string
MonitorNotificationRule 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 MonitorNotificationRule resource accepts the following input properties:
- Name string
- The name of the monitor notification rule.
- Recipients List<string>
- List of recipients to notify.
- Filter
Monitor
Notification Rule Filter
- Name string
- The name of the monitor notification rule.
- Recipients []string
- List of recipients to notify.
- Filter
Monitor
Notification Rule Filter Args
- name String
- The name of the monitor notification rule.
- recipients List<String>
- List of recipients to notify.
- filter
Monitor
Notification Rule Filter
- name string
- The name of the monitor notification rule.
- recipients string[]
- List of recipients to notify.
- filter
Monitor
Notification Rule Filter
- name str
- The name of the monitor notification rule.
- recipients Sequence[str]
- List of recipients to notify.
- filter
Monitor
Notification Rule Filter Args
- name String
- The name of the monitor notification rule.
- recipients List<String>
- List of recipients to notify.
- filter Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorNotificationRule 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 MonitorNotificationRule Resource
Get an existing MonitorNotificationRule 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?: MonitorNotificationRuleState, opts?: CustomResourceOptions): MonitorNotificationRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
filter: Optional[MonitorNotificationRuleFilterArgs] = None,
name: Optional[str] = None,
recipients: Optional[Sequence[str]] = None) -> MonitorNotificationRule
func GetMonitorNotificationRule(ctx *Context, name string, id IDInput, state *MonitorNotificationRuleState, opts ...ResourceOption) (*MonitorNotificationRule, error)
public static MonitorNotificationRule Get(string name, Input<string> id, MonitorNotificationRuleState? state, CustomResourceOptions? opts = null)
public static MonitorNotificationRule get(String name, Output<String> id, MonitorNotificationRuleState state, CustomResourceOptions options)
resources: _: type: datadog:MonitorNotificationRule 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.
- Filter
Monitor
Notification Rule Filter - Name string
- The name of the monitor notification rule.
- Recipients List<string>
- List of recipients to notify.
- Filter
Monitor
Notification Rule Filter Args - Name string
- The name of the monitor notification rule.
- Recipients []string
- List of recipients to notify.
- filter
Monitor
Notification Rule Filter - name String
- The name of the monitor notification rule.
- recipients List<String>
- List of recipients to notify.
- filter
Monitor
Notification Rule Filter - name string
- The name of the monitor notification rule.
- recipients string[]
- List of recipients to notify.
- filter
Monitor
Notification Rule Filter Args - name str
- The name of the monitor notification rule.
- recipients Sequence[str]
- List of recipients to notify.
- filter Property Map
- name String
- The name of the monitor notification rule.
- recipients List<String>
- List of recipients to notify.
Supporting Types
MonitorNotificationRuleFilter, MonitorNotificationRuleFilterArgs
- List<string>
- All tags that target monitors must match.
- []string
- All tags that target monitors must match.
- List<String>
- All tags that target monitors must match.
- string[]
- All tags that target monitors must match.
- Sequence[str]
- All tags that target monitors must match.
- List<String>
- All tags that target monitors must match.
Import
$ pulumi import datadog:index/monitorNotificationRule:MonitorNotificationRule new_list "00e000000-0000-1234-0000-000000000000"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.