Changes the status of the specified access key from Active to Inactive, or vice versa. This operation can be used to disable a user's key as part of a key rotation workflow.

Example

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

import { IdentityClient, UpdateAccessKeyCommand } from "@stedi/sdk-client-identity"; // ES Modules import
// const { IdentityClient, UpdateAccessKeyCommand } = require("@stedi/sdk-client-identity"); // CommonJS import
const client = new IdentityClient(config);
const input = { // UpdateAccessKeyInput
status: "Active" || "Inactive", // required
accessKeyId: "STRING_VALUE", // required
machineUserName: "STRING_VALUE", // required
};
const command = new UpdateAccessKeyCommand(input);
const response = await client.send(command);
// { // UpdateAccessKeyOutput
// status: "Active" || "Inactive", // required
// accessKeyId: "STRING_VALUE", // required
// };

Param

UpdateAccessKeyCommandInput

Returns

UpdateAccessKeyCommandOutput

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