/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the account password policy. This data
* type is used as a response element in the GetAccountPasswordPolicy
* operation. See Also:
AWS
* API Reference
Minimum length to require for IAM user passwords.
*/ inline int GetMinimumPasswordLength() const{ return m_minimumPasswordLength; } /** *Minimum length to require for IAM user passwords.
*/ inline bool MinimumPasswordLengthHasBeenSet() const { return m_minimumPasswordLengthHasBeenSet; } /** *Minimum length to require for IAM user passwords.
*/ inline void SetMinimumPasswordLength(int value) { m_minimumPasswordLengthHasBeenSet = true; m_minimumPasswordLength = value; } /** *Minimum length to require for IAM user passwords.
*/ inline PasswordPolicy& WithMinimumPasswordLength(int value) { SetMinimumPasswordLength(value); return *this;} /** *Specifies whether IAM user passwords must contain at least one of the * following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
*/ inline bool GetRequireSymbols() const{ return m_requireSymbols; } /** *Specifies whether IAM user passwords must contain at least one of the * following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
*/ inline bool RequireSymbolsHasBeenSet() const { return m_requireSymbolsHasBeenSet; } /** *Specifies whether IAM user passwords must contain at least one of the * following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
*/ inline void SetRequireSymbols(bool value) { m_requireSymbolsHasBeenSet = true; m_requireSymbols = value; } /** *Specifies whether IAM user passwords must contain at least one of the * following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
*/ inline PasswordPolicy& WithRequireSymbols(bool value) { SetRequireSymbols(value); return *this;} /** *Specifies whether IAM user passwords must contain at least one numeric * character (0 to 9).
*/ inline bool GetRequireNumbers() const{ return m_requireNumbers; } /** *Specifies whether IAM user passwords must contain at least one numeric * character (0 to 9).
*/ inline bool RequireNumbersHasBeenSet() const { return m_requireNumbersHasBeenSet; } /** *Specifies whether IAM user passwords must contain at least one numeric * character (0 to 9).
*/ inline void SetRequireNumbers(bool value) { m_requireNumbersHasBeenSet = true; m_requireNumbers = value; } /** *Specifies whether IAM user passwords must contain at least one numeric * character (0 to 9).
*/ inline PasswordPolicy& WithRequireNumbers(bool value) { SetRequireNumbers(value); return *this;} /** *Specifies whether IAM user passwords must contain at least one uppercase * character (A to Z).
*/ inline bool GetRequireUppercaseCharacters() const{ return m_requireUppercaseCharacters; } /** *Specifies whether IAM user passwords must contain at least one uppercase * character (A to Z).
*/ inline bool RequireUppercaseCharactersHasBeenSet() const { return m_requireUppercaseCharactersHasBeenSet; } /** *Specifies whether IAM user passwords must contain at least one uppercase * character (A to Z).
*/ inline void SetRequireUppercaseCharacters(bool value) { m_requireUppercaseCharactersHasBeenSet = true; m_requireUppercaseCharacters = value; } /** *Specifies whether IAM user passwords must contain at least one uppercase * character (A to Z).
*/ inline PasswordPolicy& WithRequireUppercaseCharacters(bool value) { SetRequireUppercaseCharacters(value); return *this;} /** *Specifies whether IAM user passwords must contain at least one lowercase * character (a to z).
*/ inline bool GetRequireLowercaseCharacters() const{ return m_requireLowercaseCharacters; } /** *Specifies whether IAM user passwords must contain at least one lowercase * character (a to z).
*/ inline bool RequireLowercaseCharactersHasBeenSet() const { return m_requireLowercaseCharactersHasBeenSet; } /** *Specifies whether IAM user passwords must contain at least one lowercase * character (a to z).
*/ inline void SetRequireLowercaseCharacters(bool value) { m_requireLowercaseCharactersHasBeenSet = true; m_requireLowercaseCharacters = value; } /** *Specifies whether IAM user passwords must contain at least one lowercase * character (a to z).
*/ inline PasswordPolicy& WithRequireLowercaseCharacters(bool value) { SetRequireLowercaseCharacters(value); return *this;} /** *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.
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.
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.
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.
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.
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.
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.
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.
The number of days that an IAM user password is valid.
*/ inline int GetMaxPasswordAge() const{ return m_maxPasswordAge; } /** *The number of days that an IAM user password is valid.
*/ inline bool MaxPasswordAgeHasBeenSet() const { return m_maxPasswordAgeHasBeenSet; } /** *The number of days that an IAM user password is valid.
*/ inline void SetMaxPasswordAge(int value) { m_maxPasswordAgeHasBeenSet = true; m_maxPasswordAge = value; } /** *The number of days that an IAM user password is valid.
*/ inline PasswordPolicy& WithMaxPasswordAge(int value) { SetMaxPasswordAge(value); return *this;} /** *Specifies the number of previous passwords that IAM users are prevented from * reusing.
*/ inline int GetPasswordReusePrevention() const{ return m_passwordReusePrevention; } /** *Specifies the number of previous passwords that IAM users are prevented from * reusing.
*/ inline bool PasswordReusePreventionHasBeenSet() const { return m_passwordReusePreventionHasBeenSet; } /** *Specifies the number of previous passwords that IAM users are prevented from * reusing.
*/ inline void SetPasswordReusePrevention(int value) { m_passwordReusePreventionHasBeenSet = true; m_passwordReusePrevention = value; } /** *Specifies the number of previous passwords that IAM users are prevented from * reusing.
*/ inline PasswordPolicy& WithPasswordReusePrevention(int value) { SetPasswordReusePrevention(value); return *this;} /** *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.
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.
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.
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.