list_api_keys
async
¶
list_api_keys(
branch_arn: BranchArn,
*,
config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
status: Optional[ApiKeyStatus] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListApiKeysResponse
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.
Parameters:
-
branch_arn(BranchArn) –The Amazon Resource Name (ARN) of the branch to list the API keys for.
-
status(Optional[ApiKeyStatus], default:None) –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.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in a single response.
-
next_token(Optional[NextToken], default:None) –The pagination token returned in a previous response, used to retrieve the next page of results.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServerException–An internal error occurred. Retry the request.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was denied because the request rate exceeds the allowed limit.
-
ValidationException–The request contains invalid parameters or is otherwise malformed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amplifygen3/_services/async_amplify_gen3.py
1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 | |