AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Contains information about the account password policy.

This data type is used as a response element in the GetAccountPasswordPolicy operation.

Inheritance Hierarchy

System.Object
  Amazon.IdentityManagement.Model.PasswordPolicy

Namespace: Amazon.IdentityManagement.Model
Assembly: AWSSDK.IdentityManagement.dll
Version: 3.x.y.z

Syntax

C#
public class PasswordPolicy

The PasswordPolicy type exposes the following members

Constructors

NameDescription
Public Method PasswordPolicy()

Properties

NameTypeDescription
Public Property AllowUsersToChangePassword System.Boolean

Gets and sets the property AllowUsersToChangePassword.

Specifies whether IAM users are allowed to change their own password. Gives IAM users permissions to iam:ChangePassword for only their user and to the iam:GetAccountPasswordPolicy action. This option does not attach a permissions policy to each user, rather the permissions are applied at the account-level for all users by IAM.

Public Property ExpirePasswords System.Boolean

Gets and sets the property ExpirePasswords.

Indicates whether passwords in the account expire. Returns true if MaxPasswordAge contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.

Public Property HardExpiry System.Boolean

Gets and sets the property HardExpiry.

Specifies whether IAM users are prevented from setting a new password via the Amazon Web Services Management Console after their password has expired. The IAM user cannot access the console until an administrator resets the password. IAM users with iam:ChangePassword permission and active access keys can reset their own expired console password using the CLI or API.

Public Property MaxPasswordAge System.Int32

Gets and sets the property MaxPasswordAge.

The number of days that an IAM user password is valid.

Public Property MinimumPasswordLength System.Int32

Gets and sets the property MinimumPasswordLength.

Minimum length to require for IAM user passwords.

Public Property PasswordReusePrevention System.Int32

Gets and sets the property PasswordReusePrevention.

Specifies the number of previous passwords that IAM users are prevented from reusing.

Public Property RequireLowercaseCharacters System.Boolean

Gets and sets the property RequireLowercaseCharacters.

Specifies whether IAM user passwords must contain at least one lowercase character (a to z).

Public Property RequireNumbers System.Boolean

Gets and sets the property RequireNumbers.

Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).

Public Property RequireSymbols System.Boolean

Gets and sets the property RequireSymbols.

Specifies whether IAM user passwords must contain at least one of the following symbols:

! @ # $ % ^ & * ( ) _ + - = [ ] { } | '

Public Property RequireUppercaseCharacters System.Boolean

Gets and sets the property RequireUppercaseCharacters.

Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5