Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteAccessKeyCommand

Deletes the access key pair associated with the specified IAM user.

If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web Services access key ID signing the request. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users.

example

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

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

DeleteAccessKeyCommandInput for command's input shape.

see

DeleteAccessKeyCommandOutput for command's response shape.

see

config for command's input shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: DeleteAccessKeyCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<DeleteAccessKeyCommandInput, DeleteAccessKeyCommandOutput>