Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class DeleteSigningCertificateCommandProtected

Deletes a signing certificate 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 IAM users.

Example

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

import { IAMClient, DeleteSigningCertificateCommand } from "@aws-sdk/client-iam"; // ES Modules import
// const { IAMClient, DeleteSigningCertificateCommand } = require("@aws-sdk/client-iam"); // CommonJS import
const client = new IAMClient(config);
const input = { // DeleteSigningCertificateRequest
UserName: "STRING_VALUE",
CertificateId: "STRING_VALUE", // required
};
const command = new DeleteSigningCertificateCommand(input);
const response = await client.send(command);
// {};

Param

DeleteSigningCertificateCommandInput

Returns

DeleteSigningCertificateCommandOutput

See

Throws

ConcurrentModificationException (client fault)

The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.

Throws

LimitExceededException (client fault)

The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.

Throws

NoSuchEntityException (client fault)

The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.

Throws

ServiceFailureException (server fault)

The request processing has failed because of an unknown error, exception or failure.

Throws

IAMServiceException

Base exception class for all service exceptions from IAM service.

Example

To delete a signing certificate for an IAM user

// The following command deletes the specified signing certificate for the IAM user named Anika.
const input = {
"CertificateId": "TA7SMP42TDN5Z26OBPJE7EXAMPLE",
"UserName": "Anika"
};
const command = new DeleteSigningCertificateCommand(input);
await client.send(command);
// example id: e3357586-ba9c-4070-b35b-d1a899b71987

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods