/*
* Copyright 2010-2014 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 Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.IdentityManagement.Model
{
///
/// Container for the parameters to the UpdateUser operation.
/// Updates the name and/or the path of the specified IAM user.
///
///
///
/// You should understand the implications of changing an IAM user's path or name. For
/// more information, see Renaming
/// an IAM User and Renaming
/// an IAM Group in the IAM User Guide.
///
///
///
/// To change a user name, the requester must have appropriate permissions on both the
/// source object and the target object. For example, to change Bob to Robert, the entity
/// making the request must have permission on Bob and Robert, or must have permission
/// on all (*). For more information about permissions, see Permissions
/// and Policies.
///
///
///
public partial class UpdateUserRequest : AmazonIdentityManagementServiceRequest
{
private string _newPath;
private string _newUserName;
private string _userName;
///
/// Empty constructor used to set properties independently even when a simple constructor is available
///
public UpdateUserRequest() { }
///
/// Instantiates UpdateUserRequest with the parameterized properties
///
/// Name of the user to update. If you're changing the name of the user, this is the original user name. This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
public UpdateUserRequest(string userName)
{
_userName = userName;
}
///
/// Gets and sets the property NewPath.
///
/// New path for the IAM user. Include this parameter only if you're changing the user's
/// path.
///
///
///
/// This parameter allows (through its regex
/// pattern) a string of characters consisting of either a forward slash (/) by itself
/// or a string that must begin and end with forward slashes. In addition, it can contain
/// any ASCII character from the ! (\u0021
) through the DEL character (\u007F
),
/// including most punctuation characters, digits, and upper and lowercased letters.
///
///
[AWSProperty(Min=1, Max=512)]
public string NewPath
{
get { return this._newPath; }
set { this._newPath = value; }
}
// Check to see if NewPath property is set
internal bool IsSetNewPath()
{
return this._newPath != null;
}
///
/// Gets and sets the property NewUserName.
///
/// New name for the user. Include this parameter only if you're changing the user's name.
///
///
///
/// IAM user, group, role, and policy names must be unique within the account. Names are
/// not distinguished by case. For example, you cannot create resources named both "MyResource"
/// and "myresource".
///
///
[AWSProperty(Min=1, Max=64)]
public string NewUserName
{
get { return this._newUserName; }
set { this._newUserName = value; }
}
// Check to see if NewUserName property is set
internal bool IsSetNewUserName()
{
return this._newUserName != null;
}
///
/// Gets and sets the property UserName.
///
/// Name of the user to update. If you're changing the name of the user, this is the original
/// user name.
///
///
///
/// This parameter allows (through its regex
/// pattern) a string of characters consisting of upper and lowercase alphanumeric
/// characters with no spaces. You can also include any of the following characters: _+=,.@-
///
///
[AWSProperty(Required=true, Min=1, Max=128)]
public string UserName
{
get { return this._userName; }
set { this._userName = value; }
}
// Check to see if UserName property is set
internal bool IsSetUserName()
{
return this._userName != null;
}
}
}