1. Packages
  2. Zitadel
  3. API Docs
  4. DefaultNotificationPolicy
zitadel v0.2.0 published on Monday, Mar 24, 2025 by pulumiverse

zitadel.DefaultNotificationPolicy

Explore with Pulumi AI

Resource representing the default notification policy.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zitadel = Pulumiverse.Zitadel;

return await Deployment.RunAsync(() => 
{
    var @default = new Zitadel.DefaultNotificationPolicy("default", new()
    {
        PasswordChange = false,
    });

});
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zitadel.NewDefaultNotificationPolicy(ctx, "default", &zitadel.DefaultNotificationPolicyArgs{
			PasswordChange: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zitadel.DefaultNotificationPolicy;
import com.pulumi.zitadel.DefaultNotificationPolicyArgs;
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) {
        var default_ = new DefaultNotificationPolicy("default", DefaultNotificationPolicyArgs.builder()        
            .passwordChange(false)
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as zitadel from "@pulumiverse/zitadel";

const _default = new zitadel.DefaultNotificationPolicy("default", {passwordChange: false});
Copy
import pulumi
import pulumiverse_zitadel as zitadel

default = zitadel.DefaultNotificationPolicy("default", password_change=False)
Copy
resources:
  default:
    type: zitadel:DefaultNotificationPolicy
    properties:
      passwordChange: false
Copy

Create DefaultNotificationPolicy Resource

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

Constructor syntax

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

@overload
def DefaultNotificationPolicy(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              password_change: Optional[bool] = None)
func NewDefaultNotificationPolicy(ctx *Context, name string, args DefaultNotificationPolicyArgs, opts ...ResourceOption) (*DefaultNotificationPolicy, error)
public DefaultNotificationPolicy(string name, DefaultNotificationPolicyArgs args, CustomResourceOptions? opts = null)
public DefaultNotificationPolicy(String name, DefaultNotificationPolicyArgs args)
public DefaultNotificationPolicy(String name, DefaultNotificationPolicyArgs args, CustomResourceOptions options)
type: zitadel:DefaultNotificationPolicy
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. DefaultNotificationPolicyArgs
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. DefaultNotificationPolicyArgs
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. DefaultNotificationPolicyArgs
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. DefaultNotificationPolicyArgs
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. DefaultNotificationPolicyArgs
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 defaultNotificationPolicyResource = new Zitadel.DefaultNotificationPolicy("defaultNotificationPolicyResource", new()
{
    PasswordChange = false,
});
Copy
example, err := zitadel.NewDefaultNotificationPolicy(ctx, "defaultNotificationPolicyResource", &zitadel.DefaultNotificationPolicyArgs{
	PasswordChange: pulumi.Bool(false),
})
Copy
var defaultNotificationPolicyResource = new DefaultNotificationPolicy("defaultNotificationPolicyResource", DefaultNotificationPolicyArgs.builder()
    .passwordChange(false)
    .build());
Copy
default_notification_policy_resource = zitadel.DefaultNotificationPolicy("defaultNotificationPolicyResource", password_change=False)
Copy
const defaultNotificationPolicyResource = new zitadel.DefaultNotificationPolicy("defaultNotificationPolicyResource", {passwordChange: false});
Copy
type: zitadel:DefaultNotificationPolicy
properties:
    passwordChange: false
Copy

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

PasswordChange This property is required. bool
Send notification if a user changes his password
PasswordChange This property is required. bool
Send notification if a user changes his password
passwordChange This property is required. Boolean
Send notification if a user changes his password
passwordChange This property is required. boolean
Send notification if a user changes his password
password_change This property is required. bool
Send notification if a user changes his password
passwordChange This property is required. Boolean
Send notification if a user changes his password

Outputs

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

Get an existing DefaultNotificationPolicy 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?: DefaultNotificationPolicyState, opts?: CustomResourceOptions): DefaultNotificationPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        password_change: Optional[bool] = None) -> DefaultNotificationPolicy
func GetDefaultNotificationPolicy(ctx *Context, name string, id IDInput, state *DefaultNotificationPolicyState, opts ...ResourceOption) (*DefaultNotificationPolicy, error)
public static DefaultNotificationPolicy Get(string name, Input<string> id, DefaultNotificationPolicyState? state, CustomResourceOptions? opts = null)
public static DefaultNotificationPolicy get(String name, Output<String> id, DefaultNotificationPolicyState state, CustomResourceOptions options)
resources:  _:    type: zitadel:DefaultNotificationPolicy    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:
PasswordChange bool
Send notification if a user changes his password
PasswordChange bool
Send notification if a user changes his password
passwordChange Boolean
Send notification if a user changes his password
passwordChange boolean
Send notification if a user changes his password
password_change bool
Send notification if a user changes his password
passwordChange Boolean
Send notification if a user changes his password

Import

bash The resource can be imported using the ID format <>, e.g.

 $ pulumi import zitadel:index/defaultNotificationPolicy:DefaultNotificationPolicy imported ''
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
zitadel pulumiverse/pulumi-zitadel
License
Apache-2.0
Notes
This Pulumi package is based on the zitadel Terraform Provider.