- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DeleteUserCommand
Deletes a user. The user will be removed from all ACLs and in turn removed from all clusters.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { MemoryDBClient, DeleteUserCommand } from "@aws-sdk/client-memorydb"; // ES Modules import
// const { MemoryDBClient, DeleteUserCommand } = require("@aws-sdk/client-memorydb"); // CommonJS import
const client = new MemoryDBClient(config);
const input = { // DeleteUserRequest
UserName: "STRING_VALUE", // required
};
const command = new DeleteUserCommand(input);
const response = await client.send(command);
// { // DeleteUserResponse
// User: { // User
// Name: "STRING_VALUE",
// Status: "STRING_VALUE",
// AccessString: "STRING_VALUE",
// ACLNames: [ // ACLNameList
// "STRING_VALUE",
// ],
// MinimumEngineVersion: "STRING_VALUE",
// Authentication: { // Authentication
// Type: "password" || "no-password" || "iam",
// PasswordCount: Number("int"),
// },
// ARN: "STRING_VALUE",
// },
// };
DeleteUserCommand Input
See DeleteUserCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
UserName Required | string | undefined | The name of the user to delete |
DeleteUserCommand Output
See DeleteUserCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
User | User | undefined | The user object that has been deleted. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
InvalidParameterValueException | client | |
InvalidUserStateFault | client | |
UserNotFoundFault | client | |
MemoryDBServiceException | Base exception class for all service exceptions from MemoryDB service. |