1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ram
  5. AccountPasswordPolicy
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.ram.AccountPasswordPolicy

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    Example Usage

    Empty resource sets defaults values for every property.

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = new alicloud.ram.AccountPasswordPolicy("default", {});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.ram.AccountPasswordPolicy("default")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ram.NewAccountPasswordPolicy(ctx, "default", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new AliCloud.Ram.AccountPasswordPolicy("default");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ram.AccountPasswordPolicy;
    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 AccountPasswordPolicy("default");
    
        }
    }
    
    resources:
      default:
        type: alicloud:ram:AccountPasswordPolicy
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const corporate = new alicloud.ram.AccountPasswordPolicy("corporate", {
        minimumPasswordLength: 9,
        requireLowercaseCharacters: false,
        requireUppercaseCharacters: false,
        requireNumbers: false,
        requireSymbols: false,
        hardExpiry: true,
        maxPasswordAge: 12,
        passwordReusePrevention: 5,
        maxLoginAttempts: 3,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    corporate = alicloud.ram.AccountPasswordPolicy("corporate",
        minimum_password_length=9,
        require_lowercase_characters=False,
        require_uppercase_characters=False,
        require_numbers=False,
        require_symbols=False,
        hard_expiry=True,
        max_password_age=12,
        password_reuse_prevention=5,
        max_login_attempts=3)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ram.NewAccountPasswordPolicy(ctx, "corporate", &ram.AccountPasswordPolicyArgs{
    			MinimumPasswordLength:      pulumi.Int(9),
    			RequireLowercaseCharacters: pulumi.Bool(false),
    			RequireUppercaseCharacters: pulumi.Bool(false),
    			RequireNumbers:             pulumi.Bool(false),
    			RequireSymbols:             pulumi.Bool(false),
    			HardExpiry:                 pulumi.Bool(true),
    			MaxPasswordAge:             pulumi.Int(12),
    			PasswordReusePrevention:    pulumi.Int(5),
    			MaxLoginAttempts:           pulumi.Int(3),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var corporate = new AliCloud.Ram.AccountPasswordPolicy("corporate", new()
        {
            MinimumPasswordLength = 9,
            RequireLowercaseCharacters = false,
            RequireUppercaseCharacters = false,
            RequireNumbers = false,
            RequireSymbols = false,
            HardExpiry = true,
            MaxPasswordAge = 12,
            PasswordReusePrevention = 5,
            MaxLoginAttempts = 3,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ram.AccountPasswordPolicy;
    import com.pulumi.alicloud.ram.AccountPasswordPolicyArgs;
    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 corporate = new AccountPasswordPolicy("corporate", AccountPasswordPolicyArgs.builder()        
                .minimumPasswordLength(9)
                .requireLowercaseCharacters(false)
                .requireUppercaseCharacters(false)
                .requireNumbers(false)
                .requireSymbols(false)
                .hardExpiry(true)
                .maxPasswordAge(12)
                .passwordReusePrevention(5)
                .maxLoginAttempts(3)
                .build());
    
        }
    }
    
    resources:
      corporate:
        type: alicloud:ram:AccountPasswordPolicy
        properties:
          minimumPasswordLength: 9
          requireLowercaseCharacters: false
          requireUppercaseCharacters: false
          requireNumbers: false
          requireSymbols: false
          hardExpiry: true
          maxPasswordAge: 12
          passwordReusePrevention: 5
          maxLoginAttempts: 3
    

    For not specified values sets defaults.

    Create AccountPasswordPolicy Resource

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

    Constructor syntax

    new AccountPasswordPolicy(name: string, args?: AccountPasswordPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def AccountPasswordPolicy(resource_name: str,
                              args: Optional[AccountPasswordPolicyArgs] = None,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountPasswordPolicy(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              hard_expiry: Optional[bool] = None,
                              max_login_attempts: Optional[int] = None,
                              max_password_age: Optional[int] = None,
                              minimum_password_length: Optional[int] = None,
                              password_reuse_prevention: Optional[int] = None,
                              require_lowercase_characters: Optional[bool] = None,
                              require_numbers: Optional[bool] = None,
                              require_symbols: Optional[bool] = None,
                              require_uppercase_characters: Optional[bool] = None)
    func NewAccountPasswordPolicy(ctx *Context, name string, args *AccountPasswordPolicyArgs, opts ...ResourceOption) (*AccountPasswordPolicy, error)
    public AccountPasswordPolicy(string name, AccountPasswordPolicyArgs? args = null, CustomResourceOptions? opts = null)
    public AccountPasswordPolicy(String name, AccountPasswordPolicyArgs args)
    public AccountPasswordPolicy(String name, AccountPasswordPolicyArgs args, CustomResourceOptions options)
    
    type: alicloud:ram:AccountPasswordPolicy
    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 AccountPasswordPolicyArgs
    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 AccountPasswordPolicyArgs
    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 AccountPasswordPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountPasswordPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountPasswordPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var accountPasswordPolicyResource = new AliCloud.Ram.AccountPasswordPolicy("accountPasswordPolicyResource", new()
    {
        HardExpiry = false,
        MaxLoginAttempts = 0,
        MaxPasswordAge = 0,
        MinimumPasswordLength = 0,
        PasswordReusePrevention = 0,
        RequireLowercaseCharacters = false,
        RequireNumbers = false,
        RequireSymbols = false,
        RequireUppercaseCharacters = false,
    });
    
    example, err := ram.NewAccountPasswordPolicy(ctx, "accountPasswordPolicyResource", &ram.AccountPasswordPolicyArgs{
    	HardExpiry:                 pulumi.Bool(false),
    	MaxLoginAttempts:           pulumi.Int(0),
    	MaxPasswordAge:             pulumi.Int(0),
    	MinimumPasswordLength:      pulumi.Int(0),
    	PasswordReusePrevention:    pulumi.Int(0),
    	RequireLowercaseCharacters: pulumi.Bool(false),
    	RequireNumbers:             pulumi.Bool(false),
    	RequireSymbols:             pulumi.Bool(false),
    	RequireUppercaseCharacters: pulumi.Bool(false),
    })
    
    var accountPasswordPolicyResource = new AccountPasswordPolicy("accountPasswordPolicyResource", AccountPasswordPolicyArgs.builder()        
        .hardExpiry(false)
        .maxLoginAttempts(0)
        .maxPasswordAge(0)
        .minimumPasswordLength(0)
        .passwordReusePrevention(0)
        .requireLowercaseCharacters(false)
        .requireNumbers(false)
        .requireSymbols(false)
        .requireUppercaseCharacters(false)
        .build());
    
    account_password_policy_resource = alicloud.ram.AccountPasswordPolicy("accountPasswordPolicyResource",
        hard_expiry=False,
        max_login_attempts=0,
        max_password_age=0,
        minimum_password_length=0,
        password_reuse_prevention=0,
        require_lowercase_characters=False,
        require_numbers=False,
        require_symbols=False,
        require_uppercase_characters=False)
    
    const accountPasswordPolicyResource = new alicloud.ram.AccountPasswordPolicy("accountPasswordPolicyResource", {
        hardExpiry: false,
        maxLoginAttempts: 0,
        maxPasswordAge: 0,
        minimumPasswordLength: 0,
        passwordReusePrevention: 0,
        requireLowercaseCharacters: false,
        requireNumbers: false,
        requireSymbols: false,
        requireUppercaseCharacters: false,
    });
    
    type: alicloud:ram:AccountPasswordPolicy
    properties:
        hardExpiry: false
        maxLoginAttempts: 0
        maxPasswordAge: 0
        minimumPasswordLength: 0
        passwordReusePrevention: 0
        requireLowercaseCharacters: false
        requireNumbers: false
        requireSymbols: false
        requireUppercaseCharacters: false
    

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

    HardExpiry bool
    Specifies if a password can expire in a hard way. Default to false.
    MaxLoginAttempts int
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    MaxPasswordAge int
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    MinimumPasswordLength int
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    PasswordReusePrevention int
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    RequireLowercaseCharacters bool
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    RequireNumbers bool
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    RequireSymbols bool
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    RequireUppercaseCharacters bool
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.
    HardExpiry bool
    Specifies if a password can expire in a hard way. Default to false.
    MaxLoginAttempts int
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    MaxPasswordAge int
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    MinimumPasswordLength int
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    PasswordReusePrevention int
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    RequireLowercaseCharacters bool
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    RequireNumbers bool
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    RequireSymbols bool
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    RequireUppercaseCharacters bool
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.
    hardExpiry Boolean
    Specifies if a password can expire in a hard way. Default to false.
    maxLoginAttempts Integer
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    maxPasswordAge Integer
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    minimumPasswordLength Integer
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    passwordReusePrevention Integer
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    requireLowercaseCharacters Boolean
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    requireNumbers Boolean
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    requireSymbols Boolean
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    requireUppercaseCharacters Boolean
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.
    hardExpiry boolean
    Specifies if a password can expire in a hard way. Default to false.
    maxLoginAttempts number
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    maxPasswordAge number
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    minimumPasswordLength number
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    passwordReusePrevention number
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    requireLowercaseCharacters boolean
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    requireNumbers boolean
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    requireSymbols boolean
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    requireUppercaseCharacters boolean
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.
    hard_expiry bool
    Specifies if a password can expire in a hard way. Default to false.
    max_login_attempts int
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    max_password_age int
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    minimum_password_length int
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    password_reuse_prevention int
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    require_lowercase_characters bool
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    require_numbers bool
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    require_symbols bool
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    require_uppercase_characters bool
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.
    hardExpiry Boolean
    Specifies if a password can expire in a hard way. Default to false.
    maxLoginAttempts Number
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    maxPasswordAge Number
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    minimumPasswordLength Number
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    passwordReusePrevention Number
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    requireLowercaseCharacters Boolean
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    requireNumbers Boolean
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    requireSymbols Boolean
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    requireUppercaseCharacters Boolean
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.

    Outputs

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

    Get an existing AccountPasswordPolicy 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?: AccountPasswordPolicyState, opts?: CustomResourceOptions): AccountPasswordPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            hard_expiry: Optional[bool] = None,
            max_login_attempts: Optional[int] = None,
            max_password_age: Optional[int] = None,
            minimum_password_length: Optional[int] = None,
            password_reuse_prevention: Optional[int] = None,
            require_lowercase_characters: Optional[bool] = None,
            require_numbers: Optional[bool] = None,
            require_symbols: Optional[bool] = None,
            require_uppercase_characters: Optional[bool] = None) -> AccountPasswordPolicy
    func GetAccountPasswordPolicy(ctx *Context, name string, id IDInput, state *AccountPasswordPolicyState, opts ...ResourceOption) (*AccountPasswordPolicy, error)
    public static AccountPasswordPolicy Get(string name, Input<string> id, AccountPasswordPolicyState? state, CustomResourceOptions? opts = null)
    public static AccountPasswordPolicy get(String name, Output<String> id, AccountPasswordPolicyState 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:
    HardExpiry bool
    Specifies if a password can expire in a hard way. Default to false.
    MaxLoginAttempts int
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    MaxPasswordAge int
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    MinimumPasswordLength int
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    PasswordReusePrevention int
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    RequireLowercaseCharacters bool
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    RequireNumbers bool
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    RequireSymbols bool
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    RequireUppercaseCharacters bool
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.
    HardExpiry bool
    Specifies if a password can expire in a hard way. Default to false.
    MaxLoginAttempts int
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    MaxPasswordAge int
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    MinimumPasswordLength int
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    PasswordReusePrevention int
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    RequireLowercaseCharacters bool
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    RequireNumbers bool
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    RequireSymbols bool
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    RequireUppercaseCharacters bool
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.
    hardExpiry Boolean
    Specifies if a password can expire in a hard way. Default to false.
    maxLoginAttempts Integer
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    maxPasswordAge Integer
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    minimumPasswordLength Integer
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    passwordReusePrevention Integer
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    requireLowercaseCharacters Boolean
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    requireNumbers Boolean
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    requireSymbols Boolean
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    requireUppercaseCharacters Boolean
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.
    hardExpiry boolean
    Specifies if a password can expire in a hard way. Default to false.
    maxLoginAttempts number
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    maxPasswordAge number
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    minimumPasswordLength number
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    passwordReusePrevention number
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    requireLowercaseCharacters boolean
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    requireNumbers boolean
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    requireSymbols boolean
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    requireUppercaseCharacters boolean
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.
    hard_expiry bool
    Specifies if a password can expire in a hard way. Default to false.
    max_login_attempts int
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    max_password_age int
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    minimum_password_length int
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    password_reuse_prevention int
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    require_lowercase_characters bool
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    require_numbers bool
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    require_symbols bool
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    require_uppercase_characters bool
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.
    hardExpiry Boolean
    Specifies if a password can expire in a hard way. Default to false.
    maxLoginAttempts Number
    Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
    maxPasswordAge Number
    The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0.
    minimumPasswordLength Number
    Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
    passwordReusePrevention Number
    User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0.
    requireLowercaseCharacters Boolean
    Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
    requireNumbers Boolean
    Specifies if the occurrence of a number in the password is mandatory. Default to true.
    requireSymbols Boolean
    Specifies if the occurrence of a special character in the password is mandatory. Default to true.
    requireUppercaseCharacters Boolean
    Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.

    Import

    RAM account password policy can be imported using the id, e.g.

    bash

    $ pulumi import alicloud:ram/accountPasswordPolicy:AccountPasswordPolicy example ram-account-password-policy
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi