LocationService / Client / delete_key
delete_key¶
- LocationService.Client.delete_key(**kwargs)¶
Deletes the specified API key. The API key must have been deactivated more than 90 days previously.
For more information, see Use API keys to authenticate in the Amazon Location Service Developer Guide.
See also: AWS API Documentation
Request Syntax
response = client.delete_key( KeyName='string', ForceDelete=True|False )
- Parameters:
KeyName (string) –
[REQUIRED]
The name of the API key to delete.
ForceDelete (boolean) –
ForceDelete bypasses an API key’s expiry conditions and deletes the key. Set the parameter
trueto delete the key or tofalseto not preemptively delete the API key.Valid values:
true, orfalse.Required: No
Note
This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions