/* * 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 CreateUser operation. /// Creates a new IAM user for your Amazon Web Services account. /// /// /// /// For information about quotas for the number of IAM users you can create, see IAM /// and STS quotas in the IAM User Guide. /// /// public partial class CreateUserRequest : AmazonIdentityManagementServiceRequest { private string _path; private string _permissionsBoundary; private List _tags = new List(); private string _userName; /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public CreateUserRequest() { } /// /// Instantiates CreateUserRequest with the parameterized properties /// /// The name of the user to create. 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". public CreateUserRequest(string userName) { _userName = userName; } /// /// Gets and sets the property Path. /// /// The path for the user name. For more information about paths, see IAM /// identifiers in the IAM User Guide. /// /// /// /// This parameter is optional. If it is not included, it defaults to a slash (/). /// /// /// /// 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 Path { get { return this._path; } set { this._path = value; } } // Check to see if Path property is set internal bool IsSetPath() { return this._path != null; } /// /// Gets and sets the property PermissionsBoundary. /// /// The ARN of the managed policy that is used to set the permissions boundary for the /// user. /// /// /// /// A permissions boundary policy defines the maximum permissions that identity-based /// policies can grant to an entity, but does not grant permissions. Permissions boundaries /// do not define the maximum permissions that a resource-based policy can grant to an /// entity. To learn more, see Permissions /// boundaries for IAM entities in the IAM User Guide. /// /// /// /// For more information about policy types, see Policy /// types in the IAM User Guide. /// /// [AWSProperty(Min=20, Max=2048)] public string PermissionsBoundary { get { return this._permissionsBoundary; } set { this._permissionsBoundary = value; } } // Check to see if PermissionsBoundary property is set internal bool IsSetPermissionsBoundary() { return this._permissionsBoundary != null; } /// /// Gets and sets the property Tags. /// /// A list of tags that you want to attach to the new user. Each tag consists of a key /// name and an associated value. For more information about tagging, see Tagging /// IAM resources in the IAM User Guide. /// /// /// /// If any one of the tags is invalid or if you exceed the allowed maximum number of tags, /// then the entire request fails and the resource is not created. /// /// /// [AWSProperty(Max=50)] public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property UserName. /// /// The name of the user to create. /// /// /// /// 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(Required=true, Min=1, Max=64)] 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; } } }