1. Packages
  2. Zitadel
  3. API Docs
  4. DefaultNotificationPolicy
zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse

zitadel.DefaultNotificationPolicy

Explore with Pulumi AI

zitadel logo
zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse

    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,
        });
    
    });
    
    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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumiverse_zitadel as zitadel
    
    default = zitadel.DefaultNotificationPolicy("default", password_change=False)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zitadel from "@pulumiverse/zitadel";
    
    const _default = new zitadel.DefaultNotificationPolicy("default", {passwordChange: false});
    
    resources:
      default:
        type: zitadel:DefaultNotificationPolicy
        properties:
          passwordChange: false
    

    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 string
    The unique name of the resource.
    args DefaultNotificationPolicyArgs
    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 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 string
    The unique name of the resource.
    args DefaultNotificationPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DefaultNotificationPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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,
    });
    
    example, err := zitadel.NewDefaultNotificationPolicy(ctx, "defaultNotificationPolicyResource", &zitadel.DefaultNotificationPolicyArgs{
    	PasswordChange: pulumi.Bool(false),
    })
    
    var defaultNotificationPolicyResource = new DefaultNotificationPolicy("defaultNotificationPolicyResource", DefaultNotificationPolicyArgs.builder()
        .passwordChange(false)
        .build());
    
    default_notification_policy_resource = zitadel.DefaultNotificationPolicy("defaultNotificationPolicyResource", password_change=False)
    
    const defaultNotificationPolicyResource = new zitadel.DefaultNotificationPolicy("defaultNotificationPolicyResource", {passwordChange: false});
    
    type: zitadel:DefaultNotificationPolicy
    properties:
        passwordChange: false
    

    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 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

    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)
    Resource lookup is not supported in YAML
    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.
    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

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

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

    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.
    zitadel logo
    zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse