AccountPasswordPolicy

Create a AccountPasswordPolicy Resource

def AccountPasswordPolicy(resource_name, opts=None, hard_expiry=None, max_login_attempts=None, max_password_age=None, minimum_password_length=None, password_reuse_prevention=None, require_lowercase_characters=None, require_numbers=None, require_symbols=None, require_uppercase_characters=None, __props__=None);
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.
opts ResourceOptions
A bag of options that control this 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.

AccountPasswordPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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

(Optional 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

(Optional 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 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

(Optional 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 float

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

max_password_age float

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 float

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

password_reuse_prevention float

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

(Optional 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.

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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing AccountPasswordPolicy Resource

Get an existing AccountPasswordPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, hard_expiry=None, max_login_attempts=None, max_password_age=None, minimum_password_length=None, password_reuse_prevention=None, require_lowercase_characters=None, require_numbers=None, require_symbols=None, require_uppercase_characters=None, __props__=None);
func GetAccountPasswordPolicy(ctx *Context, name string, id IDInput, state *AccountPasswordPolicyState, opts ...ResourceOption) (*AccountPasswordPolicy, error)
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.

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

(Optional 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

(Optional 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 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

(Optional 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 float

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

max_password_age float

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 float

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

password_reuse_prevention float

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

(Optional 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.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.