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

zitadel.NotificationPolicy

Explore with Pulumi AI

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

    Resource representing the custom notification policy of an organization.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zitadel = Pulumiverse.Zitadel;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Zitadel.NotificationPolicy("default", new()
        {
            OrgId = data.Zitadel_org.Default.Id,
            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.NewNotificationPolicy(ctx, "default", &zitadel.NotificationPolicyArgs{
    			OrgId:          pulumi.Any(data.Zitadel_org.Default.Id),
    			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.NotificationPolicy;
    import com.pulumi.zitadel.NotificationPolicyArgs;
    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 NotificationPolicy("default", NotificationPolicyArgs.builder()        
                .orgId(data.zitadel_org().default().id())
                .passwordChange(false)
                .build());
    
        }
    }
    
    import pulumi
    import pulumiverse_zitadel as zitadel
    
    default = zitadel.NotificationPolicy("default",
        org_id=data["zitadel_org"]["default"]["id"],
        password_change=False)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zitadel from "@pulumiverse/zitadel";
    
    const _default = new zitadel.NotificationPolicy("default", {
        orgId: data.zitadel_org["default"].id,
        passwordChange: false,
    });
    
    resources:
      default:
        type: zitadel:NotificationPolicy
        properties:
          orgId: ${data.zitadel_org.default.id}
          passwordChange: false
    

    Create NotificationPolicy Resource

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

    Constructor syntax

    new NotificationPolicy(name: string, args: NotificationPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def NotificationPolicy(resource_name: str,
                           args: NotificationPolicyArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def NotificationPolicy(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           password_change: Optional[bool] = None,
                           org_id: Optional[str] = None)
    func NewNotificationPolicy(ctx *Context, name string, args NotificationPolicyArgs, opts ...ResourceOption) (*NotificationPolicy, error)
    public NotificationPolicy(string name, NotificationPolicyArgs args, CustomResourceOptions? opts = null)
    public NotificationPolicy(String name, NotificationPolicyArgs args)
    public NotificationPolicy(String name, NotificationPolicyArgs args, CustomResourceOptions options)
    
    type: zitadel:NotificationPolicy
    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 NotificationPolicyArgs
    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 NotificationPolicyArgs
    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 NotificationPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NotificationPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NotificationPolicyArgs
    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 notificationPolicyResource = new Zitadel.NotificationPolicy("notificationPolicyResource", new()
    {
        PasswordChange = false,
        OrgId = "string",
    });
    
    example, err := zitadel.NewNotificationPolicy(ctx, "notificationPolicyResource", &zitadel.NotificationPolicyArgs{
    	PasswordChange: pulumi.Bool(false),
    	OrgId:          pulumi.String("string"),
    })
    
    var notificationPolicyResource = new NotificationPolicy("notificationPolicyResource", NotificationPolicyArgs.builder()
        .passwordChange(false)
        .orgId("string")
        .build());
    
    notification_policy_resource = zitadel.NotificationPolicy("notificationPolicyResource",
        password_change=False,
        org_id="string")
    
    const notificationPolicyResource = new zitadel.NotificationPolicy("notificationPolicyResource", {
        passwordChange: false,
        orgId: "string",
    });
    
    type: zitadel:NotificationPolicy
    properties:
        orgId: string
        passwordChange: false
    

    NotificationPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The NotificationPolicy resource accepts the following input properties:

    PasswordChange bool
    Send notification if a user changes his password
    OrgId string
    ID of the organization
    PasswordChange bool
    Send notification if a user changes his password
    OrgId string
    ID of the organization
    passwordChange Boolean
    Send notification if a user changes his password
    orgId String
    ID of the organization
    passwordChange boolean
    Send notification if a user changes his password
    orgId string
    ID of the organization
    password_change bool
    Send notification if a user changes his password
    org_id str
    ID of the organization
    passwordChange Boolean
    Send notification if a user changes his password
    orgId String
    ID of the organization

    Outputs

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

    Get an existing NotificationPolicy 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?: NotificationPolicyState, opts?: CustomResourceOptions): NotificationPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            org_id: Optional[str] = None,
            password_change: Optional[bool] = None) -> NotificationPolicy
    func GetNotificationPolicy(ctx *Context, name string, id IDInput, state *NotificationPolicyState, opts ...ResourceOption) (*NotificationPolicy, error)
    public static NotificationPolicy Get(string name, Input<string> id, NotificationPolicyState? state, CustomResourceOptions? opts = null)
    public static NotificationPolicy get(String name, Output<String> id, NotificationPolicyState 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:
    OrgId string
    ID of the organization
    PasswordChange bool
    Send notification if a user changes his password
    OrgId string
    ID of the organization
    PasswordChange bool
    Send notification if a user changes his password
    orgId String
    ID of the organization
    passwordChange Boolean
    Send notification if a user changes his password
    orgId string
    ID of the organization
    passwordChange boolean
    Send notification if a user changes his password
    org_id str
    ID of the organization
    password_change bool
    Send notification if a user changes his password
    orgId String
    ID of the organization
    passwordChange Boolean
    Send notification if a user changes his password

    Import

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

     $ pulumi import zitadel:index/notificationPolicy:NotificationPolicy imported '123456789012345678'
    

    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