Class AccountPasswordPolicy
Inherited Members
Namespace: Pulumi.AliCloud.Ram
Assembly: Pulumi.AliCloud.dll
Syntax
public class AccountPasswordPolicy : CustomResource
Constructors
View SourceAccountPasswordPolicy(String, AccountPasswordPolicyArgs, CustomResourceOptions)
Create a AccountPasswordPolicy resource with the given unique name, arguments, and options.
Declaration
public AccountPasswordPolicy(string name, AccountPasswordPolicyArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AccountPasswordPolicyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceHardExpiry
Specifies if a password can expire in a hard way. Default to false.
Declaration
public Output<bool?> HardExpiry { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
MaxLoginAttempts
Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5.
Declaration
public Output<int?> MaxLoginAttempts { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
MaxPasswordAge
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.
Declaration
public Output<int?> MaxPasswordAge { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
MinimumPasswordLength
Minimal required length of password for a user. Valid value range: [8-32]. Default to 12.
Declaration
public Output<int?> MinimumPasswordLength { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
PasswordReusePrevention
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.
Declaration
public Output<int?> PasswordReusePrevention { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
RequireLowercaseCharacters
Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true.
Declaration
public Output<bool?> RequireLowercaseCharacters { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
RequireNumbers
Specifies if the occurrence of a number in the password is mandatory. Default to true.
Declaration
public Output<bool?> RequireNumbers { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
RequireSymbols
(Optional Specifies if the occurrence of a special character in the password is mandatory. Default to true.
Declaration
public Output<bool?> RequireSymbols { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
RequireUppercaseCharacters
Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true.
Declaration
public Output<bool?> RequireUppercaseCharacters { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Methods
View SourceGet(String, Input<String>, AccountPasswordPolicyState, CustomResourceOptions)
Get an existing AccountPasswordPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AccountPasswordPolicy Get(string name, Input<string> id, AccountPasswordPolicyState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AccountPasswordPolicyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AccountPasswordPolicy |