Deletes the specified Machine User. When you delete a user, you must delete the Access Keys (using DeleteAccessKey) attached to the user, or the deletion fails.

Example

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

import { IdentityClient, DeleteMachineUserCommand } from "@stedi/sdk-client-identity"; // ES Modules import
// const { IdentityClient, DeleteMachineUserCommand } = require("@stedi/sdk-client-identity"); // CommonJS import
const client = new IdentityClient(config);
const input = { // DeleteMachineUserInput
idempotencyKey: "STRING_VALUE",
machineUserName: "STRING_VALUE", // required
};
const command = new DeleteMachineUserCommand(input);
const response = await client.send(command);
// { // DeleteMachineUserOutput
// machineUserName: "STRING_VALUE", // required
// resourceDetail: { // DeleteResourceDetail
// idempotencyKey: "STRING_VALUE", // required
// },
// };

Param

DeleteMachineUserCommandInput

Returns

DeleteMachineUserCommandOutput

See

Throws

AccessDeniedException (client fault)

Throws

ProductUnavailableException (client fault)

Throws

ResourceAlreadyExistsException (client fault)

Throws

ResourceNotFoundException (client fault)

Throws

ResourceUnderChangeException (client fault)

Throws

ServiceException (server fault)

Throws

IdentityServiceException

Base exception class for all service exceptions from Identity service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Returns EndpointParameterInstructions