AmplifyGen3 / Client / list_api_keys
list_api_keys¶
- AmplifyGen3.Client.list_api_keys(**kwargs)¶
Returns a list of the API keys for a branch. The response includes only the metadata for each key, not the key value. To get the value of a key, use GetApiKey.
See also: AWS API Documentation
Request Syntax
response = client.list_api_keys( BranchArn='string', Status='ACTIVE'|'INACTIVE', MaxResults=123, NextToken='string' )
- Parameters:
BranchArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the branch to list the API keys for.
Status (string) – The status to filter by. If you specify a status, the response includes only the keys that have that status. If you omit this, the response includes keys in every status.
MaxResults (integer) – The maximum number of results to return in a single response.
NextToken (string) – The pagination token returned in a previous response, used to retrieve the next page of results.
- Return type:
dict
- Returns:
Response Syntax
{ 'ApiKeys': [ { 'ApiKeyId': 'string', 'Status': 'ACTIVE'|'INACTIVE', 'CreatedAt': datetime(2015, 1, 1), 'UpdatedAt': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) –
ApiKeys (list) –
The API keys for the branch. Each item includes the key’s metadata, not its value.
(dict) –
Summary information about an API key. The summary doesn’t include the key value.
ApiKeyId (string) –
The ID of the API key.
Status (string) –
The status of the API key.
CreatedAt (datetime) –
The time at which the API key was created. The value is in ISO-8601 format.
UpdatedAt (datetime) –
The time at which the API key was last updated. The value is in ISO-8601 format. For a key that was never updated, this is the same as the creation time.
NextToken (string) –
The pagination token to use to retrieve the next page of results. This value is null when there are no more results to return.
Exceptions