Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.CreateUser C# (CSharp) Method

CreateUser() public method

Creates a new IAM user for your AWS account.

For information about limitations on the number of IAM users you can create, see Limitations on IAM Entities in the IAM User Guide.

/// The request was rejected because it attempted to create a resource that already exists. /// /// The request was rejected because it attempted to create resources beyond the current /// AWS account limits. The error message describes the limit exceeded. /// /// The request was rejected because it referenced an entity that does not exist. The /// error message describes the entity. /// /// The request processing has failed because of an unknown error, exception or failure. ///
public CreateUser ( CreateUserRequest request ) : CreateUserResponse
request Amazon.IdentityManagement.Model.CreateUserRequest Container for the necessary parameters to execute the CreateUser service method.
return Amazon.IdentityManagement.Model.CreateUserResponse
        public CreateUserResponse CreateUser(CreateUserRequest request)
        {
            var marshaller = new CreateUserRequestMarshaller();
            var unmarshaller = CreateUserResponseUnmarshaller.Instance;

            return Invoke<CreateUserRequest,CreateUserResponse>(request, marshaller, unmarshaller);
        }

Usage Example

示例#1
0
        private static void CreateUser()
        {
            Console.WriteLine("** Create User **");
            var iamClient = new AmazonIdentityManagementServiceClient();
            var request = new CreateUserRequest
            {
                UserName = "******",
                Path = @"/IT/architecture/"
            };

            var response = iamClient.CreateUser(request);

            Console.WriteLine("User Created");

        }
All Usage Examples Of Amazon.IdentityManagement.AmazonIdentityManagementServiceClient::CreateUser
AmazonIdentityManagementServiceClient