createUser

abstract suspend fun createUser(input: CreateUserRequest): CreateUserResponse

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.

Samples


fun main() { 
   //sampleStart 
   // The following create user command creates an IAM user named Bob in the current account.
val resp = iamClient.createUser {
    userName = "Bob"
} 
   //sampleEnd
}