alicloud.ram.PasswordPolicy
Explore with Pulumi AI
Import
RAM Password Policy can be imported using the id, e.g.
$ pulumi import alicloud:ram/passwordPolicy:PasswordPolicy example <id>.
Create PasswordPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PasswordPolicy(name: string, args?: PasswordPolicyArgs, opts?: CustomResourceOptions);
@overload
def PasswordPolicy(resource_name: str,
args: Optional[PasswordPolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def PasswordPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
hard_expiry: Optional[bool] = None,
max_login_attemps: Optional[int] = None,
max_password_age: Optional[int] = None,
minimum_password_different_character: Optional[int] = None,
minimum_password_length: Optional[int] = None,
password_not_contain_user_name: Optional[bool] = 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 NewPasswordPolicy(ctx *Context, name string, args *PasswordPolicyArgs, opts ...ResourceOption) (*PasswordPolicy, error)
public PasswordPolicy(string name, PasswordPolicyArgs? args = null, CustomResourceOptions? opts = null)
public PasswordPolicy(String name, PasswordPolicyArgs args)
public PasswordPolicy(String name, PasswordPolicyArgs args, CustomResourceOptions options)
type: alicloud:ram:PasswordPolicy
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 PasswordPolicyArgs
- 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 PasswordPolicyArgs
- 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 PasswordPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PasswordPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PasswordPolicyArgs
- 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 passwordPolicyResource = new AliCloud.Ram.PasswordPolicy("passwordPolicyResource", new()
{
HardExpiry = false,
MaxLoginAttemps = 0,
MaxPasswordAge = 0,
MinimumPasswordDifferentCharacter = 0,
MinimumPasswordLength = 0,
PasswordNotContainUserName = false,
PasswordReusePrevention = 0,
RequireLowercaseCharacters = false,
RequireNumbers = false,
RequireSymbols = false,
RequireUppercaseCharacters = false,
});
example, err := ram.NewPasswordPolicy(ctx, "passwordPolicyResource", &ram.PasswordPolicyArgs{
HardExpiry: pulumi.Bool(false),
MaxLoginAttemps: pulumi.Int(0),
MaxPasswordAge: pulumi.Int(0),
MinimumPasswordDifferentCharacter: pulumi.Int(0),
MinimumPasswordLength: pulumi.Int(0),
PasswordNotContainUserName: pulumi.Bool(false),
PasswordReusePrevention: pulumi.Int(0),
RequireLowercaseCharacters: pulumi.Bool(false),
RequireNumbers: pulumi.Bool(false),
RequireSymbols: pulumi.Bool(false),
RequireUppercaseCharacters: pulumi.Bool(false),
})
var passwordPolicyResource = new PasswordPolicy("passwordPolicyResource", PasswordPolicyArgs.builder()
.hardExpiry(false)
.maxLoginAttemps(0)
.maxPasswordAge(0)
.minimumPasswordDifferentCharacter(0)
.minimumPasswordLength(0)
.passwordNotContainUserName(false)
.passwordReusePrevention(0)
.requireLowercaseCharacters(false)
.requireNumbers(false)
.requireSymbols(false)
.requireUppercaseCharacters(false)
.build());
password_policy_resource = alicloud.ram.PasswordPolicy("passwordPolicyResource",
hard_expiry=False,
max_login_attemps=0,
max_password_age=0,
minimum_password_different_character=0,
minimum_password_length=0,
password_not_contain_user_name=False,
password_reuse_prevention=0,
require_lowercase_characters=False,
require_numbers=False,
require_symbols=False,
require_uppercase_characters=False)
const passwordPolicyResource = new alicloud.ram.PasswordPolicy("passwordPolicyResource", {
hardExpiry: false,
maxLoginAttemps: 0,
maxPasswordAge: 0,
minimumPasswordDifferentCharacter: 0,
minimumPasswordLength: 0,
passwordNotContainUserName: false,
passwordReusePrevention: 0,
requireLowercaseCharacters: false,
requireNumbers: false,
requireSymbols: false,
requireUppercaseCharacters: false,
});
type: alicloud:ram:PasswordPolicy
properties:
hardExpiry: false
maxLoginAttemps: 0
maxPasswordAge: 0
minimumPasswordDifferentCharacter: 0
minimumPasswordLength: 0
passwordNotContainUserName: false
passwordReusePrevention: 0
requireLowercaseCharacters: false
requireNumbers: false
requireSymbols: false
requireUppercaseCharacters: false
PasswordPolicy 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 PasswordPolicy resource accepts the following input properties:
- Hard
Expiry bool - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- Max
Login intAttemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- Max
Password intAge - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- Minimum
Password intDifferent Character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- Minimum
Password intLength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- Password
Not boolContain User Name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- Password
Reuse intPrevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- Require
Lowercase boolCharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- Require
Numbers bool - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- Require
Symbols bool - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- Require
Uppercase boolCharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
- Hard
Expiry bool - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- Max
Login intAttemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- Max
Password intAge - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- Minimum
Password intDifferent Character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- Minimum
Password intLength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- Password
Not boolContain User Name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- Password
Reuse intPrevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- Require
Lowercase boolCharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- Require
Numbers bool - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- Require
Symbols bool - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- Require
Uppercase boolCharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
- hard
Expiry Boolean - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- max
Login IntegerAttemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- max
Password IntegerAge - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- minimum
Password IntegerDifferent Character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- minimum
Password IntegerLength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- password
Not BooleanContain User Name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- password
Reuse IntegerPrevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- require
Lowercase BooleanCharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- require
Numbers Boolean - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- require
Symbols Boolean - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- require
Uppercase BooleanCharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
- hard
Expiry boolean - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- max
Login numberAttemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- max
Password numberAge - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- minimum
Password numberDifferent Character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- minimum
Password numberLength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- password
Not booleanContain User Name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- password
Reuse numberPrevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- require
Lowercase booleanCharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- require
Numbers boolean - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- require
Symbols boolean - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- require
Uppercase booleanCharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
- hard_
expiry bool - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- max_
login_ intattemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- max_
password_ intage - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- minimum_
password_ intdifferent_ character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- minimum_
password_ intlength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- password_
not_ boolcontain_ user_ name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- password_
reuse_ intprevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- require_
lowercase_ boolcharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- require_
numbers bool - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- require_
symbols bool - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- require_
uppercase_ boolcharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
- hard
Expiry Boolean - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- max
Login NumberAttemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- max
Password NumberAge - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- minimum
Password NumberDifferent Character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- minimum
Password NumberLength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- password
Not BooleanContain User Name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- password
Reuse NumberPrevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- require
Lowercase BooleanCharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- require
Numbers Boolean - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- require
Symbols Boolean - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- require
Uppercase BooleanCharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
Outputs
All input properties are implicitly available as output properties. Additionally, the PasswordPolicy 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 PasswordPolicy Resource
Get an existing PasswordPolicy 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?: PasswordPolicyState, opts?: CustomResourceOptions): PasswordPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
hard_expiry: Optional[bool] = None,
max_login_attemps: Optional[int] = None,
max_password_age: Optional[int] = None,
minimum_password_different_character: Optional[int] = None,
minimum_password_length: Optional[int] = None,
password_not_contain_user_name: Optional[bool] = 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) -> PasswordPolicy
func GetPasswordPolicy(ctx *Context, name string, id IDInput, state *PasswordPolicyState, opts ...ResourceOption) (*PasswordPolicy, error)
public static PasswordPolicy Get(string name, Input<string> id, PasswordPolicyState? state, CustomResourceOptions? opts = null)
public static PasswordPolicy get(String name, Output<String> id, PasswordPolicyState state, CustomResourceOptions options)
resources: _: type: alicloud:ram:PasswordPolicy get: id: ${id}
- 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.
- Hard
Expiry bool - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- Max
Login intAttemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- Max
Password intAge - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- Minimum
Password intDifferent Character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- Minimum
Password intLength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- Password
Not boolContain User Name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- Password
Reuse intPrevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- Require
Lowercase boolCharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- Require
Numbers bool - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- Require
Symbols bool - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- Require
Uppercase boolCharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
- Hard
Expiry bool - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- Max
Login intAttemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- Max
Password intAge - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- Minimum
Password intDifferent Character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- Minimum
Password intLength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- Password
Not boolContain User Name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- Password
Reuse intPrevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- Require
Lowercase boolCharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- Require
Numbers bool - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- Require
Symbols bool - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- Require
Uppercase boolCharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
- hard
Expiry Boolean - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- max
Login IntegerAttemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- max
Password IntegerAge - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- minimum
Password IntegerDifferent Character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- minimum
Password IntegerLength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- password
Not BooleanContain User Name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- password
Reuse IntegerPrevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- require
Lowercase BooleanCharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- require
Numbers Boolean - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- require
Symbols Boolean - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- require
Uppercase BooleanCharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
- hard
Expiry boolean - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- max
Login numberAttemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- max
Password numberAge - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- minimum
Password numberDifferent Character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- minimum
Password numberLength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- password
Not booleanContain User Name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- password
Reuse numberPrevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- require
Lowercase booleanCharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- require
Numbers boolean - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- require
Symbols boolean - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- require
Uppercase booleanCharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
- hard_
expiry bool - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- max_
login_ intattemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- max_
password_ intage - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- minimum_
password_ intdifferent_ character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- minimum_
password_ intlength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- password_
not_ boolcontain_ user_ name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- password_
reuse_ intprevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- require_
lowercase_ boolcharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- require_
numbers bool - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- require_
symbols bool - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- require_
uppercase_ boolcharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
- hard
Expiry Boolean - Whether to restrict logon after the password expires. Value:
- true: After the password expires, you cannot log in to the console. You must reset the password of the RAM user through the main account or a RAM user with administrator permissions to log on normally.
- false (default): After the password expires, the RAM user can change the password and log on normally.
- max
Login NumberAttemps - Password retry constraint. After entering the wrong password continuously for the set number of times, the account will be locked for one hour. Value range: 0~32. Default value: 0, which means that the password retry constraint is not enabled.
- max
Password NumberAge - Password validity period. Value range: 0~1095. Unit: days. Default value: 0, which means never expires.
- minimum
Password NumberDifferent Character - The minimum number of unique characters in the password. Valid values: 0 to 8. The default value is 0, which indicates that no limits are imposed on the number of unique characters in a password.
- minimum
Password NumberLength - The minimum number of characters in the password. Valid values: 8 to 32. Default value: 8.
- password
Not BooleanContain User Name - Whether the user name is not allowed in the password. Value:
- true: The password cannot contain the user name.
- false (default): The user name can be included in the password.
- password
Reuse NumberPrevention - Historical password check policy. Do not use the previous N Passwords. The value range of N is 0 to 24. Default value: 0, indicating that the historical password check policy is not enabled.
- require
Lowercase BooleanCharacters - Specifies whether the password must contain lowercase letters. Valid values:
- true
- false (default)
- require
Numbers Boolean - Specifies whether the password must contain digits. Valid values:
- true
- false (default)
- require
Symbols Boolean - Specifies whether the password must contain special characters. Valid values:
- true
- false (default)
- require
Uppercase BooleanCharacters - Specifies whether the password must contain uppercase letters. Valid values:
- true
- false (default)
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.