1. Packages
  2. Zenduty Provider
  3. API Docs
  4. NotificationRules
zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty

zenduty.NotificationRules

Explore with Pulumi AI

Create NotificationRules Resource

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

Constructor syntax

new NotificationRules(name: string, args: NotificationRulesArgs, opts?: CustomResourceOptions);
@overload
def NotificationRules(resource_name: str,
                      args: NotificationRulesArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def NotificationRules(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      contact: Optional[str] = None,
                      delay: Optional[float] = None,
                      urgency: Optional[float] = None,
                      username: Optional[str] = None,
                      notification_rules_id: Optional[str] = None)
func NewNotificationRules(ctx *Context, name string, args NotificationRulesArgs, opts ...ResourceOption) (*NotificationRules, error)
public NotificationRules(string name, NotificationRulesArgs args, CustomResourceOptions? opts = null)
public NotificationRules(String name, NotificationRulesArgs args)
public NotificationRules(String name, NotificationRulesArgs args, CustomResourceOptions options)
type: zenduty:NotificationRules
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. NotificationRulesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. NotificationRulesArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. NotificationRulesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NotificationRulesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. NotificationRulesArgs
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 notificationRulesResource = new Zenduty.NotificationRules("notificationRulesResource", new()
{
    Contact = "string",
    Delay = 0,
    Urgency = 0,
    Username = "string",
    NotificationRulesId = "string",
});
Copy
example, err := zenduty.NewNotificationRules(ctx, "notificationRulesResource", &zenduty.NotificationRulesArgs{
Contact: pulumi.String("string"),
Delay: pulumi.Float64(0),
Urgency: pulumi.Float64(0),
Username: pulumi.String("string"),
NotificationRulesId: pulumi.String("string"),
})
Copy
var notificationRulesResource = new NotificationRules("notificationRulesResource", NotificationRulesArgs.builder()
    .contact("string")
    .delay(0)
    .urgency(0)
    .username("string")
    .notificationRulesId("string")
    .build());
Copy
notification_rules_resource = zenduty.NotificationRules("notificationRulesResource",
    contact="string",
    delay=0,
    urgency=0,
    username="string",
    notification_rules_id="string")
Copy
const notificationRulesResource = new zenduty.NotificationRules("notificationRulesResource", {
    contact: "string",
    delay: 0,
    urgency: 0,
    username: "string",
    notificationRulesId: "string",
});
Copy
type: zenduty:NotificationRules
properties:
    contact: string
    delay: 0
    notificationRulesId: string
    urgency: 0
    username: string
Copy

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

Contact This property is required. string
Delay This property is required. double
Urgency This property is required. double
Username This property is required. string
NotificationRulesId string
Contact This property is required. string
Delay This property is required. float64
Urgency This property is required. float64
Username This property is required. string
NotificationRulesId string
contact This property is required. String
delay This property is required. Double
urgency This property is required. Double
username This property is required. String
notificationRulesId String
contact This property is required. string
delay This property is required. number
urgency This property is required. number
username This property is required. string
notificationRulesId string
contact This property is required. str
delay This property is required. float
urgency This property is required. float
username This property is required. str
notification_rules_id str
contact This property is required. String
delay This property is required. Number
urgency This property is required. Number
username This property is required. String
notificationRulesId String

Outputs

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

Get an existing NotificationRules 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?: NotificationRulesState, opts?: CustomResourceOptions): NotificationRules
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        contact: Optional[str] = None,
        delay: Optional[float] = None,
        notification_rules_id: Optional[str] = None,
        urgency: Optional[float] = None,
        username: Optional[str] = None) -> NotificationRules
func GetNotificationRules(ctx *Context, name string, id IDInput, state *NotificationRulesState, opts ...ResourceOption) (*NotificationRules, error)
public static NotificationRules Get(string name, Input<string> id, NotificationRulesState? state, CustomResourceOptions? opts = null)
public static NotificationRules get(String name, Output<String> id, NotificationRulesState state, CustomResourceOptions options)
resources:  _:    type: zenduty:NotificationRules    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Contact string
Delay double
NotificationRulesId string
Urgency double
Username string
Contact string
Delay float64
NotificationRulesId string
Urgency float64
Username string
contact String
delay Double
notificationRulesId String
urgency Double
username String
contact string
delay number
notificationRulesId string
urgency number
username string
contact String
delay Number
notificationRulesId String
urgency Number
username String

Package Details

Repository
zenduty zenduty/terraform-provider-zenduty
License
Notes
This Pulumi package is based on the zenduty Terraform Provider.