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

zitadel.DefaultPasswordComplexityPolicy

Explore with Pulumi AI

Resource representing the default password complexity policy.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var @default = new Zitadel.DefaultPasswordComplexityPolicy("default", new()
    {
        MinLength = 8,
        HasUppercase = true,
        HasLowercase = true,
        HasNumber = true,
        HasSymbol = true,
    });

});
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.NewDefaultPasswordComplexityPolicy(ctx, "default", &zitadel.DefaultPasswordComplexityPolicyArgs{
			MinLength:    pulumi.Int(8),
			HasUppercase: pulumi.Bool(true),
			HasLowercase: pulumi.Bool(true),
			HasNumber:    pulumi.Bool(true),
			HasSymbol:    pulumi.Bool(true),
		})
		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.DefaultPasswordComplexityPolicy;
import com.pulumi.zitadel.DefaultPasswordComplexityPolicyArgs;
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 DefaultPasswordComplexityPolicy("default", DefaultPasswordComplexityPolicyArgs.builder()        
            .minLength("8")
            .hasUppercase(true)
            .hasLowercase(true)
            .hasNumber(true)
            .hasSymbol(true)
            .build());

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

const _default = new zitadel.DefaultPasswordComplexityPolicy("default", {
    minLength: 8,
    hasUppercase: true,
    hasLowercase: true,
    hasNumber: true,
    hasSymbol: true,
});
Copy
import pulumi
import pulumiverse_zitadel as zitadel

default = zitadel.DefaultPasswordComplexityPolicy("default",
    min_length=8,
    has_uppercase=True,
    has_lowercase=True,
    has_number=True,
    has_symbol=True)
Copy
resources:
  default:
    type: zitadel:DefaultPasswordComplexityPolicy
    properties:
      minLength: '8'
      hasUppercase: true
      hasLowercase: true
      hasNumber: true
      hasSymbol: true
Copy

Create DefaultPasswordComplexityPolicy Resource

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

Constructor syntax

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

@overload
def DefaultPasswordComplexityPolicy(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    has_lowercase: Optional[bool] = None,
                                    has_number: Optional[bool] = None,
                                    has_symbol: Optional[bool] = None,
                                    has_uppercase: Optional[bool] = None,
                                    min_length: Optional[int] = None)
func NewDefaultPasswordComplexityPolicy(ctx *Context, name string, args DefaultPasswordComplexityPolicyArgs, opts ...ResourceOption) (*DefaultPasswordComplexityPolicy, error)
public DefaultPasswordComplexityPolicy(string name, DefaultPasswordComplexityPolicyArgs args, CustomResourceOptions? opts = null)
public DefaultPasswordComplexityPolicy(String name, DefaultPasswordComplexityPolicyArgs args)
public DefaultPasswordComplexityPolicy(String name, DefaultPasswordComplexityPolicyArgs args, CustomResourceOptions options)
type: zitadel:DefaultPasswordComplexityPolicy
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. DefaultPasswordComplexityPolicyArgs
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. DefaultPasswordComplexityPolicyArgs
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. DefaultPasswordComplexityPolicyArgs
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. DefaultPasswordComplexityPolicyArgs
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. DefaultPasswordComplexityPolicyArgs
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 defaultPasswordComplexityPolicyResource = new Zitadel.DefaultPasswordComplexityPolicy("defaultPasswordComplexityPolicyResource", new()
{
    HasLowercase = false,
    HasNumber = false,
    HasSymbol = false,
    HasUppercase = false,
    MinLength = 0,
});
Copy
example, err := zitadel.NewDefaultPasswordComplexityPolicy(ctx, "defaultPasswordComplexityPolicyResource", &zitadel.DefaultPasswordComplexityPolicyArgs{
	HasLowercase: pulumi.Bool(false),
	HasNumber:    pulumi.Bool(false),
	HasSymbol:    pulumi.Bool(false),
	HasUppercase: pulumi.Bool(false),
	MinLength:    pulumi.Int(0),
})
Copy
var defaultPasswordComplexityPolicyResource = new DefaultPasswordComplexityPolicy("defaultPasswordComplexityPolicyResource", DefaultPasswordComplexityPolicyArgs.builder()
    .hasLowercase(false)
    .hasNumber(false)
    .hasSymbol(false)
    .hasUppercase(false)
    .minLength(0)
    .build());
Copy
default_password_complexity_policy_resource = zitadel.DefaultPasswordComplexityPolicy("defaultPasswordComplexityPolicyResource",
    has_lowercase=False,
    has_number=False,
    has_symbol=False,
    has_uppercase=False,
    min_length=0)
Copy
const defaultPasswordComplexityPolicyResource = new zitadel.DefaultPasswordComplexityPolicy("defaultPasswordComplexityPolicyResource", {
    hasLowercase: false,
    hasNumber: false,
    hasSymbol: false,
    hasUppercase: false,
    minLength: 0,
});
Copy
type: zitadel:DefaultPasswordComplexityPolicy
properties:
    hasLowercase: false
    hasNumber: false
    hasSymbol: false
    hasUppercase: false
    minLength: 0
Copy

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

HasLowercase This property is required. bool
defines if the password MUST contain a lower case letter
HasNumber This property is required. bool
defines if the password MUST contain a number
HasSymbol This property is required. bool
defines if the password MUST contain a symbol. E.g. "$"
HasUppercase This property is required. bool
defines if the password MUST contain an upper case letter
MinLength This property is required. int
Minimal length for the password
HasLowercase This property is required. bool
defines if the password MUST contain a lower case letter
HasNumber This property is required. bool
defines if the password MUST contain a number
HasSymbol This property is required. bool
defines if the password MUST contain a symbol. E.g. "$"
HasUppercase This property is required. bool
defines if the password MUST contain an upper case letter
MinLength This property is required. int
Minimal length for the password
hasLowercase This property is required. Boolean
defines if the password MUST contain a lower case letter
hasNumber This property is required. Boolean
defines if the password MUST contain a number
hasSymbol This property is required. Boolean
defines if the password MUST contain a symbol. E.g. "$"
hasUppercase This property is required. Boolean
defines if the password MUST contain an upper case letter
minLength This property is required. Integer
Minimal length for the password
hasLowercase This property is required. boolean
defines if the password MUST contain a lower case letter
hasNumber This property is required. boolean
defines if the password MUST contain a number
hasSymbol This property is required. boolean
defines if the password MUST contain a symbol. E.g. "$"
hasUppercase This property is required. boolean
defines if the password MUST contain an upper case letter
minLength This property is required. number
Minimal length for the password
has_lowercase This property is required. bool
defines if the password MUST contain a lower case letter
has_number This property is required. bool
defines if the password MUST contain a number
has_symbol This property is required. bool
defines if the password MUST contain a symbol. E.g. "$"
has_uppercase This property is required. bool
defines if the password MUST contain an upper case letter
min_length This property is required. int
Minimal length for the password
hasLowercase This property is required. Boolean
defines if the password MUST contain a lower case letter
hasNumber This property is required. Boolean
defines if the password MUST contain a number
hasSymbol This property is required. Boolean
defines if the password MUST contain a symbol. E.g. "$"
hasUppercase This property is required. Boolean
defines if the password MUST contain an upper case letter
minLength This property is required. Number
Minimal length for the password

Outputs

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

Get an existing DefaultPasswordComplexityPolicy 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?: DefaultPasswordComplexityPolicyState, opts?: CustomResourceOptions): DefaultPasswordComplexityPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        has_lowercase: Optional[bool] = None,
        has_number: Optional[bool] = None,
        has_symbol: Optional[bool] = None,
        has_uppercase: Optional[bool] = None,
        min_length: Optional[int] = None) -> DefaultPasswordComplexityPolicy
func GetDefaultPasswordComplexityPolicy(ctx *Context, name string, id IDInput, state *DefaultPasswordComplexityPolicyState, opts ...ResourceOption) (*DefaultPasswordComplexityPolicy, error)
public static DefaultPasswordComplexityPolicy Get(string name, Input<string> id, DefaultPasswordComplexityPolicyState? state, CustomResourceOptions? opts = null)
public static DefaultPasswordComplexityPolicy get(String name, Output<String> id, DefaultPasswordComplexityPolicyState state, CustomResourceOptions options)
resources:  _:    type: zitadel:DefaultPasswordComplexityPolicy    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:
HasLowercase bool
defines if the password MUST contain a lower case letter
HasNumber bool
defines if the password MUST contain a number
HasSymbol bool
defines if the password MUST contain a symbol. E.g. "$"
HasUppercase bool
defines if the password MUST contain an upper case letter
MinLength int
Minimal length for the password
HasLowercase bool
defines if the password MUST contain a lower case letter
HasNumber bool
defines if the password MUST contain a number
HasSymbol bool
defines if the password MUST contain a symbol. E.g. "$"
HasUppercase bool
defines if the password MUST contain an upper case letter
MinLength int
Minimal length for the password
hasLowercase Boolean
defines if the password MUST contain a lower case letter
hasNumber Boolean
defines if the password MUST contain a number
hasSymbol Boolean
defines if the password MUST contain a symbol. E.g. "$"
hasUppercase Boolean
defines if the password MUST contain an upper case letter
minLength Integer
Minimal length for the password
hasLowercase boolean
defines if the password MUST contain a lower case letter
hasNumber boolean
defines if the password MUST contain a number
hasSymbol boolean
defines if the password MUST contain a symbol. E.g. "$"
hasUppercase boolean
defines if the password MUST contain an upper case letter
minLength number
Minimal length for the password
has_lowercase bool
defines if the password MUST contain a lower case letter
has_number bool
defines if the password MUST contain a number
has_symbol bool
defines if the password MUST contain a symbol. E.g. "$"
has_uppercase bool
defines if the password MUST contain an upper case letter
min_length int
Minimal length for the password
hasLowercase Boolean
defines if the password MUST contain a lower case letter
hasNumber Boolean
defines if the password MUST contain a number
hasSymbol Boolean
defines if the password MUST contain a symbol. E.g. "$"
hasUppercase Boolean
defines if the password MUST contain an upper case letter
minLength Number
Minimal length for the password

Import

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

 $ pulumi import zitadel:index/defaultPasswordComplexityPolicy:DefaultPasswordComplexityPolicy 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.