getUser

abstract suspend fun getUser(input: GetUserRequest = GetUserRequest { }): GetUserResponse

Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN.

If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web Services access key ID used to sign the request to this operation.

Samples

// The following command gets information about the IAM user named Bob.
val resp = iamClient.getUser {
    userName = "Bob"
}