AppSync.Client.update_api_key(**kwargs)¶Updates an API key. You can update the key as long as it's not deleted.
See also: AWS API Documentation
Request Syntax
response = client.update_api_key(
apiId='string',
id='string',
description='string',
expires=123
)
[REQUIRED]
The ID for the GraphQL API.
[REQUIRED]
The API key ID.
dict
Response Syntax
{
'apiKey': {
'id': 'string',
'description': 'string',
'expires': 123,
'deletes': 123
}
}
Response Structure
(dict) --
apiKey (dict) --
The API key.
id (string) --
The API key ID.
description (string) --
A description of the purpose of the API key.
expires (integer) --
The time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour.
deletes (integer) --
The time after which the API key is deleted. The date is represented as seconds since the epoch, rounded down to the nearest hour.
Exceptions
AppSync.Client.exceptions.BadRequestExceptionAppSync.Client.exceptions.NotFoundExceptionAppSync.Client.exceptions.UnauthorizedExceptionAppSync.Client.exceptions.LimitExceededExceptionAppSync.Client.exceptions.InternalFailureExceptionAppSync.Client.exceptions.ApiKeyValidityOutOfBoundsException