IAM / Client / delete_signing_certificate

delete_signing_certificate#

IAM.Client.delete_signing_certificate(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.delete_signing_certificate(
    UserName='string',
    CertificateId='string'
)
Parameters:
  • UserName (string) –

    The name of the user the signing certificate belongs to.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

  • CertificateId (string) –

    [REQUIRED]

    The ID of the signing certificate to delete.

    The format of this parameter, as described by its regex pattern, is a string of characters that can be upper- or lower-cased letters or digits.

Returns:

None

Exceptions

  • IAM.Client.exceptions.NoSuchEntityException

  • IAM.Client.exceptions.LimitExceededException

  • IAM.Client.exceptions.ConcurrentModificationException

  • IAM.Client.exceptions.ServiceFailureException

Examples

The following command deletes the specified signing certificate for the IAM user named Anika.

response = client.delete_signing_certificate(
    CertificateId='TA7SMP42TDN5Z26OBPJE7EXAMPLE',
    UserName='Anika',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}