/*
* 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 ChangePassword operation.
/// Changes the password of the IAM user who is calling this operation. This operation
/// can be performed using the CLI, the Amazon Web Services API, or the My Security
/// Credentials page in the Amazon Web Services Management Console. The Amazon Web
/// Services account root user password is not affected by this operation.
///
///
///
/// Use UpdateLoginProfile to use the CLI, the Amazon Web Services API, or the
/// Users page in the IAM console to change the password for any IAM user. For
/// more information about modifying passwords, see Managing
/// passwords in the IAM User Guide.
///
///
public partial class ChangePasswordRequest : AmazonIdentityManagementServiceRequest
{
private string _newPassword;
private string _oldPassword;
///
/// Gets and sets the property NewPassword.
///
/// The new password. The new password must conform to the Amazon Web Services account's
/// password policy, if one exists.
///
///
///
/// The regex pattern that is used to validate
/// this parameter is a string of characters. That string can include almost any printable
/// ASCII character from the space (\u0020
) through the end of the ASCII
/// character range (\u00FF
). You can also include the tab (\u0009
),
/// line feed (\u000A
), and carriage return (\u000D
) characters.
/// Any of these characters are valid in a password. However, many tools, such as the
/// Amazon Web Services Management Console, might restrict the ability to type certain
/// characters because they have special meaning within that tool.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=128)]
public string NewPassword
{
get { return this._newPassword; }
set { this._newPassword = value; }
}
// Check to see if NewPassword property is set
internal bool IsSetNewPassword()
{
return this._newPassword != null;
}
///
/// Gets and sets the property OldPassword.
///
/// The IAM user's current password.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=128)]
public string OldPassword
{
get { return this._oldPassword; }
set { this._oldPassword = value; }
}
// Check to see if OldPassword property is set
internal bool IsSetOldPassword()
{
return this._oldPassword != null;
}
}
}