CloudFront / Client / delete_public_key

delete_public_key#

CloudFront.Client.delete_public_key(**kwargs)#

Remove a public key you previously added to CloudFront.

See also: AWS API Documentation

Request Syntax

response = client.delete_public_key(
    Id='string',
    IfMatch='string'
)
Parameters:
  • Id (string) –

    [REQUIRED]

    The ID of the public key you want to remove from CloudFront.

  • IfMatch (string) – The value of the ETag header that you received when retrieving the public key identity to delete. For example: E2QWRUHAPOMQZL.

Returns:

None

Exceptions

  • CloudFront.Client.exceptions.AccessDenied

  • CloudFront.Client.exceptions.PublicKeyInUse

  • CloudFront.Client.exceptions.InvalidIfMatchVersion

  • CloudFront.Client.exceptions.NoSuchPublicKey

  • CloudFront.Client.exceptions.PreconditionFailed