AccountPasswordPolicyArgs

data class AccountPasswordPolicyArgs(val hardExpiry: Output<Boolean>? = null, val maxLoginAttempts: Output<Int>? = null, val maxPasswordAge: Output<Int>? = null, val minimumPasswordLength: Output<Int>? = null, val passwordReusePrevention: Output<Int>? = null, val requireLowercaseCharacters: Output<Boolean>? = null, val requireNumbers: Output<Boolean>? = null, val requireSymbols: Output<Boolean>? = null, val requireUppercaseCharacters: Output<Boolean>? = null) : ConvertibleToJava<AccountPasswordPolicyArgs>

Example Usage

Empty resource sets defaults values for every property.

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");
}
}

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

Constructors

Link copied to clipboard
fun AccountPasswordPolicyArgs(hardExpiry: Output<Boolean>? = null, maxLoginAttempts: Output<Int>? = null, maxPasswordAge: Output<Int>? = null, minimumPasswordLength: Output<Int>? = null, passwordReusePrevention: Output<Int>? = null, requireLowercaseCharacters: Output<Boolean>? = null, requireNumbers: Output<Boolean>? = null, requireSymbols: Output<Boolean>? = null, requireUppercaseCharacters: Output<Boolean>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AccountPasswordPolicyArgs

Properties

Link copied to clipboard
val hardExpiry: Output<Boolean>? = null

Specifies if a password can expire in a hard way. Default to false.

Link copied to clipboard
val maxLoginAttempts: Output<Int>? = null

Maximum logon attempts with an incorrect password within an hour. Valid value range: 0-32. Default to 5.

Link copied to clipboard
val maxPasswordAge: Output<Int>? = null

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.

Link copied to clipboard
val minimumPasswordLength: Output<Int>? = null

Minimal required length of password for a user. Valid value range: 8-32. Default to 12.

Link copied to clipboard
val passwordReusePrevention: Output<Int>? = null

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.

Link copied to clipboard
val requireLowercaseCharacters: Output<Boolean>? = null

Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.

Link copied to clipboard
val requireNumbers: Output<Boolean>? = null

Specifies if the occurrence of a number in the password is mandatory. Default to true.

Link copied to clipboard
val requireSymbols: Output<Boolean>? = null

Specifies if the occurrence of a special character in the password is mandatory. Default to true.

Link copied to clipboard
val requireUppercaseCharacters: Output<Boolean>? = null

Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.