zitadel.DefaultPasswordComplexityPolicy
Explore with Pulumi AI
Resource representing the default password complexity policy.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Zitadel = Pulumiverse.Zitadel;
return await Deployment.RunAsync(() =>
{
var passwordComplexityPolicy = new Zitadel.DefaultPasswordComplexityPolicy("passwordComplexityPolicy", new()
{
HasLowercase = true,
HasNumber = true,
HasSymbol = true,
HasUppercase = true,
MinLength = 8,
});
});
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, "passwordComplexityPolicy", &zitadel.DefaultPasswordComplexityPolicyArgs{
HasLowercase: pulumi.Bool(true),
HasNumber: pulumi.Bool(true),
HasSymbol: pulumi.Bool(true),
HasUppercase: pulumi.Bool(true),
MinLength: pulumi.Int(8),
})
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.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 passwordComplexityPolicy = new DefaultPasswordComplexityPolicy("passwordComplexityPolicy", DefaultPasswordComplexityPolicyArgs.builder()
.hasLowercase(true)
.hasNumber(true)
.hasSymbol(true)
.hasUppercase(true)
.minLength("8")
.build());
}
}
import pulumi
import pulumiverse_zitadel as zitadel
password_complexity_policy = zitadel.DefaultPasswordComplexityPolicy("passwordComplexityPolicy",
has_lowercase=True,
has_number=True,
has_symbol=True,
has_uppercase=True,
min_length=8)
import * as pulumi from "@pulumi/pulumi";
import * as zitadel from "@pulumi/zitadel";
const passwordComplexityPolicy = new zitadel.DefaultPasswordComplexityPolicy("password_complexity_policy", {
hasLowercase: true,
hasNumber: true,
hasSymbol: true,
hasUppercase: true,
minLength: 8,
});
resources:
passwordComplexityPolicy:
type: zitadel:DefaultPasswordComplexityPolicy
properties:
hasLowercase: true
hasNumber: true
hasSymbol: true
hasUppercase: true
minLength: 8
Create DefaultPasswordComplexityPolicy Resource
new DefaultPasswordComplexityPolicy(name: string, args: DefaultPasswordComplexityPolicyArgs, opts?: CustomResourceOptions);
@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)
@overload
def DefaultPasswordComplexityPolicy(resource_name: str,
args: DefaultPasswordComplexityPolicyArgs,
opts: Optional[ResourceOptions] = 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.
- name string
- The unique name of the resource.
- args DefaultPasswordComplexityPolicyArgs
- 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 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 string
- The unique name of the resource.
- args DefaultPasswordComplexityPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefaultPasswordComplexityPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DefaultPasswordComplexityPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
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
The DefaultPasswordComplexityPolicy resource accepts the following input properties:
- 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
- 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
- has
Lowercase Boolean defines if the password MUST contain a lower case letter
- has
Number Boolean defines if the password MUST contain a number
- has
Symbol Boolean defines if the password MUST contain a symbol. E.g. "$"
- has
Uppercase Boolean defines if the password MUST contain an upper case letter
- min
Length Integer Minimal length for the password
- has
Lowercase boolean defines if the password MUST contain a lower case letter
- has
Number boolean defines if the password MUST contain a number
- has
Symbol boolean defines if the password MUST contain a symbol. E.g. "$"
- has
Uppercase boolean defines if the password MUST contain an upper case letter
- min
Length 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
- has
Lowercase Boolean defines if the password MUST contain a lower case letter
- has
Number Boolean defines if the password MUST contain a number
- has
Symbol Boolean defines if the password MUST contain a symbol. E.g. "$"
- has
Uppercase Boolean defines if the password MUST contain an upper case letter
- min
Length 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)
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.
- 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
- 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
- has
Lowercase Boolean defines if the password MUST contain a lower case letter
- has
Number Boolean defines if the password MUST contain a number
- has
Symbol Boolean defines if the password MUST contain a symbol. E.g. "$"
- has
Uppercase Boolean defines if the password MUST contain an upper case letter
- min
Length Integer Minimal length for the password
- has
Lowercase boolean defines if the password MUST contain a lower case letter
- has
Number boolean defines if the password MUST contain a number
- has
Symbol boolean defines if the password MUST contain a symbol. E.g. "$"
- has
Uppercase boolean defines if the password MUST contain an upper case letter
- min
Length 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
- has
Lowercase Boolean defines if the password MUST contain a lower case letter
- has
Number Boolean defines if the password MUST contain a number
- has
Symbol Boolean defines if the password MUST contain a symbol. E.g. "$"
- has
Uppercase Boolean defines if the password MUST contain an upper case letter
- min
Length Number Minimal length for the password
Package Details
- Repository
- zitadel pulumiverse/pulumi-zitadel
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
zitadel
Terraform Provider.