/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the iam-2010-05-08.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.IdentityManagement.Model { /// /// Container for the parameters to the UpdateAccountPasswordPolicy operation. /// Updates the password policy settings for the Amazon Web Services account. /// /// /// /// This operation does not support partial updates. No parameters are required, but if /// you do not specify a parameter, that parameter's value reverts to its default value. /// See the Request Parameters section for each parameter's default value. Also /// note that some parameters do not allow the default parameter to be explicitly set. /// Instead, to invoke the default value, do not include that parameter when you invoke /// the operation. /// /// /// /// For more information about using a password policy, see Managing /// an IAM password policy in the IAM User Guide. /// /// public partial class UpdateAccountPasswordPolicyRequest : AmazonIdentityManagementServiceRequest { private bool? _allowUsersToChangePassword; private bool? _hardExpiry; private int? _maxPasswordAge; private int? _minimumPasswordLength; private int? _passwordReusePrevention; private bool? _requireLowercaseCharacters; private bool? _requireNumbers; private bool? _requireSymbols; private bool? _requireUppercaseCharacters; /// /// Gets and sets the property AllowUsersToChangePassword. /// /// Allows all IAM users in your account to use the Amazon Web Services Management Console /// to change their own passwords. For more information, see Permitting /// IAM users to change their own passwords in the IAM User Guide. /// /// /// /// If you do not specify a value for this parameter, then the operation uses the default /// value of false. The result is that IAM users in the account do not automatically /// have permissions to change their own password. /// /// public bool AllowUsersToChangePassword { get { return this._allowUsersToChangePassword.GetValueOrDefault(); } set { this._allowUsersToChangePassword = value; } } // Check to see if AllowUsersToChangePassword property is set internal bool IsSetAllowUsersToChangePassword() { return this._allowUsersToChangePassword.HasValue; } /// /// Gets and sets the property HardExpiry. /// /// Prevents IAM users who are accessing the account via the Amazon Web Services Management /// Console from setting a new console password after their password has expired. The /// IAM user cannot access the console until an administrator resets the password. /// /// /// /// If you do not specify a value for this parameter, then the operation uses the default /// value of false. The result is that IAM users can change their passwords /// after they expire and continue to sign in as the user. /// /// /// /// In the Amazon Web Services Management Console, the custom password policy option /// Allow users 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. IAM users with iam:ChangePassword /// permission and active access keys can reset their own expired console password using /// the CLI or API. /// /// /// public bool HardExpiry { get { return this._hardExpiry.GetValueOrDefault(); } set { this._hardExpiry = value; } } // Check to see if HardExpiry property is set internal bool IsSetHardExpiry() { return this._hardExpiry.HasValue; } /// /// Gets and sets the property MaxPasswordAge. /// /// The number of days that an IAM user password is valid. /// /// /// /// If you do not specify a value for this parameter, then the operation uses the default /// value of 0. The result is that IAM user passwords never expire. /// /// [AWSProperty(Min=1, Max=1095)] public int MaxPasswordAge { get { return this._maxPasswordAge.GetValueOrDefault(); } set { this._maxPasswordAge = value; } } // Check to see if MaxPasswordAge property is set internal bool IsSetMaxPasswordAge() { return this._maxPasswordAge.HasValue; } /// /// Gets and sets the property MinimumPasswordLength. /// /// The minimum number of characters allowed in an IAM user password. /// /// /// /// If you do not specify a value for this parameter, then the operation uses the default /// value of 6. /// /// [AWSProperty(Min=6, Max=128)] public int MinimumPasswordLength { get { return this._minimumPasswordLength.GetValueOrDefault(); } set { this._minimumPasswordLength = value; } } // Check to see if MinimumPasswordLength property is set internal bool IsSetMinimumPasswordLength() { return this._minimumPasswordLength.HasValue; } /// /// Gets and sets the property PasswordReusePrevention. /// /// Specifies the number of previous passwords that IAM users are prevented from reusing. /// /// /// /// If you do not specify a value for this parameter, then the operation uses the default /// value of 0. The result is that IAM users are not prevented from reusing /// previous passwords. /// /// [AWSProperty(Min=1, Max=24)] public int PasswordReusePrevention { get { return this._passwordReusePrevention.GetValueOrDefault(); } set { this._passwordReusePrevention = value; } } // Check to see if PasswordReusePrevention property is set internal bool IsSetPasswordReusePrevention() { return this._passwordReusePrevention.HasValue; } /// /// Gets and sets the property RequireLowercaseCharacters. /// /// Specifies whether IAM user passwords must contain at least one lowercase character /// from the ISO basic Latin alphabet (a to z). /// /// /// /// If you do not specify a value for this parameter, then the operation uses the default /// value of false. The result is that passwords do not require at least /// one lowercase character. /// /// public bool RequireLowercaseCharacters { get { return this._requireLowercaseCharacters.GetValueOrDefault(); } set { this._requireLowercaseCharacters = value; } } // Check to see if RequireLowercaseCharacters property is set internal bool IsSetRequireLowercaseCharacters() { return this._requireLowercaseCharacters.HasValue; } /// /// Gets and sets the property RequireNumbers. /// /// Specifies whether IAM user passwords must contain at least one numeric character (0 /// to 9). /// /// /// /// If you do not specify a value for this parameter, then the operation uses the default /// value of false. The result is that passwords do not require at least /// one numeric character. /// /// public bool RequireNumbers { get { return this._requireNumbers.GetValueOrDefault(); } set { this._requireNumbers = value; } } // Check to see if RequireNumbers property is set internal bool IsSetRequireNumbers() { return this._requireNumbers.HasValue; } /// /// Gets and sets the property RequireSymbols. /// /// Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric /// characters: /// /// /// /// ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' /// /// /// /// If you do not specify a value for this parameter, then the operation uses the default /// value of false. The result is that passwords do not require at least /// one symbol character. /// /// public bool RequireSymbols { get { return this._requireSymbols.GetValueOrDefault(); } set { this._requireSymbols = value; } } // Check to see if RequireSymbols property is set internal bool IsSetRequireSymbols() { return this._requireSymbols.HasValue; } /// /// Gets and sets the property RequireUppercaseCharacters. /// /// Specifies whether IAM user passwords must contain at least one uppercase character /// from the ISO basic Latin alphabet (A to Z). /// /// /// /// If you do not specify a value for this parameter, then the operation uses the default /// value of false. The result is that passwords do not require at least /// one uppercase character. /// /// public bool RequireUppercaseCharacters { get { return this._requireUppercaseCharacters.GetValueOrDefault(); } set { this._requireUppercaseCharacters = value; } } // Check to see if RequireUppercaseCharacters property is set internal bool IsSetRequireUppercaseCharacters() { return this._requireUppercaseCharacters.HasValue; } } }