Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
published on Friday, Aug 14, 2026 by zenduty
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
published on Friday, Aug 14, 2026 by zenduty
zenduty.NotificationRules lists the notification rules of a user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({
email: "demouser@gmail.com",
});
const userRules = user1.then(user1 => zenduty.getNotificationRules({
username: user1.users?.[0]?.username,
}));
import pulumi
import pulumi_zenduty as zenduty
user1 = zenduty.get_user(email="demouser@gmail.com")
user_rules = zenduty.get_notification_rules(username=user1.users[0].username)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/v2/zenduty"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
user1, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{
Email: "demouser@gmail.com",
}, nil)
if err != nil {
return err
}
_, err = zenduty.LookupNotificationRules(ctx, &zenduty.LookupNotificationRulesArgs{
Username: user1.Users[0].Username,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;
return await Deployment.RunAsync(() =>
{
var user1 = Zenduty.GetUser.Invoke(new()
{
Email = "demouser@gmail.com",
});
var userRules = Zenduty.GetNotificationRules.Invoke(new()
{
Username = user1.Apply(getUserResult => getUserResult.Users[0]?.Username),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.ZendutyFunctions;
import com.pulumi.zenduty.inputs.GetUserArgs;
import com.pulumi.zenduty.inputs.GetNotificationRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var user1 = ZendutyFunctions.getUser(GetUserArgs.builder()
.email("demouser@gmail.com")
.build());
final var userRules = ZendutyFunctions.getNotificationRules(GetNotificationRulesArgs.builder()
.username(user1.users()[0].username())
.build());
}
}
variables:
user1:
fn::invoke:
function: zenduty:getUser
arguments:
email: demouser@gmail.com
userRules:
fn::invoke:
function: zenduty:getNotificationRules
arguments:
username: ${user1.users[0].username}
Example coming soon!
Using getNotificationRules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNotificationRules(args: GetNotificationRulesArgs, opts?: InvokeOptions): Promise<GetNotificationRulesResult>
function getNotificationRulesOutput(args: GetNotificationRulesOutputArgs, opts?: InvokeOutputOptions): Output<GetNotificationRulesResult>def get_notification_rules(id: Optional[str] = None,
username: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNotificationRulesResult
def get_notification_rules_output(id: pulumi.Input[Optional[str]] = None,
username: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetNotificationRulesResult]func LookupNotificationRules(ctx *Context, args *LookupNotificationRulesArgs, opts ...InvokeOption) (*LookupNotificationRulesResult, error)
func LookupNotificationRulesOutput(ctx *Context, args *LookupNotificationRulesOutputArgs, opts ...InvokeOption) LookupNotificationRulesResultOutput> Note: This function is named LookupNotificationRules in the Go SDK.
public static class GetNotificationRules
{
public static Task<GetNotificationRulesResult> InvokeAsync(GetNotificationRulesArgs args, InvokeOptions? opts = null)
public static Output<GetNotificationRulesResult> Invoke(GetNotificationRulesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetNotificationRulesResult> Invoke(GetNotificationRulesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetNotificationRulesResult> getNotificationRules(GetNotificationRulesArgs args, InvokeOptions options)
public static Output<GetNotificationRulesResult> getNotificationRules(GetNotificationRulesArgs args, InvokeOptions options)
public static Output<GetNotificationRulesResult> getNotificationRules(GetNotificationRulesArgs args, InvokeOutputOptions options)
fn::invoke:
function: zenduty:index/getNotificationRules:getNotificationRules
arguments:
# arguments dictionarydata "zenduty_get_notification_rules" "name" {
# arguments
}The following arguments are supported:
getNotificationRules Result
The following output properties are available:
- Id string
- Notification
Rules List<GetNotification Rules Notification Rule> - The list of notification rules, each with:
- Username string
- Id string
- Notification
Rules []GetNotification Rules Notification Rule - The list of notification rules, each with:
- Username string
- id string
- notification_
rules list(object) - The list of notification rules, each with:
- username string
- id String
- notification
Rules List<GetNotification Rules Notification Rule> - The list of notification rules, each with:
- username String
- id string
- notification
Rules GetNotification Rules Notification Rule[] - The list of notification rules, each with:
- username string
- id str
- notification_
rules Sequence[GetNotification Rules Notification Rule] - The list of notification rules, each with:
- username str
- id String
- notification
Rules List<Property Map> - The list of notification rules, each with:
- username String
Supporting Types
GetNotificationRulesNotificationRule
- Contact string
- The unique_id of the contact method to notify.
- Start
Delay double - Seconds to wait before notifying.
- Type string
- The type of the notification rule.
- Unique
Id string - The unique_id of the notification rule.
- Urgency double
- The urgency the rule applies to:
0for low,1for high.
- Contact string
- The unique_id of the contact method to notify.
- Start
Delay float64 - Seconds to wait before notifying.
- Type string
- The type of the notification rule.
- Unique
Id string - The unique_id of the notification rule.
- Urgency float64
- The urgency the rule applies to:
0for low,1for high.
- contact string
- The unique_id of the contact method to notify.
- start_
delay number - Seconds to wait before notifying.
- type string
- The type of the notification rule.
- unique_
id string - The unique_id of the notification rule.
- urgency number
- The urgency the rule applies to:
0for low,1for high.
- contact String
- The unique_id of the contact method to notify.
- start
Delay Double - Seconds to wait before notifying.
- type String
- The type of the notification rule.
- unique
Id String - The unique_id of the notification rule.
- urgency Double
- The urgency the rule applies to:
0for low,1for high.
- contact string
- The unique_id of the contact method to notify.
- start
Delay number - Seconds to wait before notifying.
- type string
- The type of the notification rule.
- unique
Id string - The unique_id of the notification rule.
- urgency number
- The urgency the rule applies to:
0for low,1for high.
- contact str
- The unique_id of the contact method to notify.
- start_
delay float - Seconds to wait before notifying.
- type str
- The type of the notification rule.
- unique_
id str - The unique_id of the notification rule.
- urgency float
- The urgency the rule applies to:
0for low,1for high.
- contact String
- The unique_id of the contact method to notify.
- start
Delay Number - Seconds to wait before notifying.
- type String
- The type of the notification rule.
- unique
Id String - The unique_id of the notification rule.
- urgency Number
- The urgency the rule applies to:
0for low,1for high.
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zendutyTerraform Provider.
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
published on Friday, Aug 14, 2026 by zenduty