Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UpdateUserCommand

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.

example

Use a bare-bones client and the command you need to make an API call.

import { IAMClient, UpdateUserCommand } from "@aws-sdk/client-iam"; // ES Modules import
// const { IAMClient, UpdateUserCommand } = require("@aws-sdk/client-iam"); // CommonJS import
const client = new IAMClient(config);
const command = new UpdateUserCommand(input);
const response = await client.send(command);
see

UpdateUserCommandInput for command's input shape.

see

UpdateUserCommandOutput for command's response shape.

see

config for IAMClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: UpdateUserCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<UpdateUserCommandInput, UpdateUserCommandOutput>

Methods

Static getEndpointParameterInstructions