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

zitadel.PasswordComplexityPolicy

Explore with Pulumi AI

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

    Resource representing the custom password complexity 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.PasswordComplexityPolicy("default", new()
        {
            OrgId = data.Zitadel_org.Default.Id,
            MinLength = 8,
            HasUppercase = true,
            HasLowercase = true,
            HasNumber = true,
            HasSymbol = true,
        });
    
    });
    
    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.NewPasswordComplexityPolicy(ctx, "default", &zitadel.PasswordComplexityPolicyArgs{
    			OrgId:        pulumi.Any(data.Zitadel_org.Default.Id),
    			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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zitadel.PasswordComplexityPolicy;
    import com.pulumi.zitadel.PasswordComplexityPolicyArgs;
    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 PasswordComplexityPolicy("default", PasswordComplexityPolicyArgs.builder()        
                .orgId(data.zitadel_org().default().id())
                .minLength("8")
                .hasUppercase(true)
                .hasLowercase(true)
                .hasNumber(true)
                .hasSymbol(true)
                .build());
    
        }
    }
    
    import pulumi
    import pulumiverse_zitadel as zitadel
    
    default = zitadel.PasswordComplexityPolicy("default",
        org_id=data["zitadel_org"]["default"]["id"],
        min_length=8,
        has_uppercase=True,
        has_lowercase=True,
        has_number=True,
        has_symbol=True)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zitadel from "@pulumiverse/zitadel";
    
    const _default = new zitadel.PasswordComplexityPolicy("default", {
        orgId: data.zitadel_org["default"].id,
        minLength: 8,
        hasUppercase: true,
        hasLowercase: true,
        hasNumber: true,
        hasSymbol: true,
    });
    
    resources:
      default:
        type: zitadel:PasswordComplexityPolicy
        properties:
          orgId: ${data.zitadel_org.default.id}
          minLength: '8'
          hasUppercase: true
          hasLowercase: true
          hasNumber: true
          hasSymbol: true
    

    Create PasswordComplexityPolicy Resource

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

    Constructor syntax

    new PasswordComplexityPolicy(name: string, args: PasswordComplexityPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def PasswordComplexityPolicy(resource_name: str,
                                 args: PasswordComplexityPolicyArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def PasswordComplexityPolicy(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,
                                 org_id: Optional[str] = None)
    func NewPasswordComplexityPolicy(ctx *Context, name string, args PasswordComplexityPolicyArgs, opts ...ResourceOption) (*PasswordComplexityPolicy, error)
    public PasswordComplexityPolicy(string name, PasswordComplexityPolicyArgs args, CustomResourceOptions? opts = null)
    public PasswordComplexityPolicy(String name, PasswordComplexityPolicyArgs args)
    public PasswordComplexityPolicy(String name, PasswordComplexityPolicyArgs args, CustomResourceOptions options)
    
    type: zitadel:PasswordComplexityPolicy
    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 PasswordComplexityPolicyArgs
    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 PasswordComplexityPolicyArgs
    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 PasswordComplexityPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PasswordComplexityPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PasswordComplexityPolicyArgs
    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 passwordComplexityPolicyResource = new Zitadel.PasswordComplexityPolicy("passwordComplexityPolicyResource", new()
    {
        HasLowercase = false,
        HasNumber = false,
        HasSymbol = false,
        HasUppercase = false,
        MinLength = 0,
        OrgId = "string",
    });
    
    example, err := zitadel.NewPasswordComplexityPolicy(ctx, "passwordComplexityPolicyResource", &zitadel.PasswordComplexityPolicyArgs{
    	HasLowercase: pulumi.Bool(false),
    	HasNumber:    pulumi.Bool(false),
    	HasSymbol:    pulumi.Bool(false),
    	HasUppercase: pulumi.Bool(false),
    	MinLength:    pulumi.Int(0),
    	OrgId:        pulumi.String("string"),
    })
    
    var passwordComplexityPolicyResource = new PasswordComplexityPolicy("passwordComplexityPolicyResource", PasswordComplexityPolicyArgs.builder()
        .hasLowercase(false)
        .hasNumber(false)
        .hasSymbol(false)
        .hasUppercase(false)
        .minLength(0)
        .orgId("string")
        .build());
    
    password_complexity_policy_resource = zitadel.PasswordComplexityPolicy("passwordComplexityPolicyResource",
        has_lowercase=False,
        has_number=False,
        has_symbol=False,
        has_uppercase=False,
        min_length=0,
        org_id="string")
    
    const passwordComplexityPolicyResource = new zitadel.PasswordComplexityPolicy("passwordComplexityPolicyResource", {
        hasLowercase: false,
        hasNumber: false,
        hasSymbol: false,
        hasUppercase: false,
        minLength: 0,
        orgId: "string",
    });
    
    type: zitadel:PasswordComplexityPolicy
    properties:
        hasLowercase: false
        hasNumber: false
        hasSymbol: false
        hasUppercase: false
        minLength: 0
        orgId: string
    

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

    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
    OrgId string
    ID of the organization
    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
    OrgId string
    ID of the organization
    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
    orgId String
    ID of the organization
    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
    orgId string
    ID of the organization
    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
    org_id str
    ID of the organization
    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
    orgId String
    ID of the organization

    Outputs

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

    Get an existing PasswordComplexityPolicy 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?: PasswordComplexityPolicyState, opts?: CustomResourceOptions): PasswordComplexityPolicy
    @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,
            org_id: Optional[str] = None) -> PasswordComplexityPolicy
    func GetPasswordComplexityPolicy(ctx *Context, name string, id IDInput, state *PasswordComplexityPolicyState, opts ...ResourceOption) (*PasswordComplexityPolicy, error)
    public static PasswordComplexityPolicy Get(string name, Input<string> id, PasswordComplexityPolicyState? state, CustomResourceOptions? opts = null)
    public static PasswordComplexityPolicy get(String name, Output<String> id, PasswordComplexityPolicyState 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:
    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
    OrgId string
    ID of the organization
    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
    OrgId string
    ID of the organization
    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
    orgId String
    ID of the organization
    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
    orgId string
    ID of the organization
    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
    org_id str
    ID of the organization
    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
    orgId String
    ID of the organization

    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