Using Console
Using CLI
list-graphql-apis
. The command is as follows:<region-name>
with the name of the AWS region where the APIs are hosted.get-graphql-api
. The command is as follows:
<api-id>
with the ‘arn’ of the API you want to check and <region-name>
with the name of the AWS region where the API is hosted.Using Python
aws configure
.
list_graphql_apis
method to get a list of all AppSync APIs. Then, for each API, you can use the get_graphql_api
method to get its details and check its authorization configuration. Here’s a sample script:
list_graphql_apis
method returns a maximum of 25 APIs at a time. If you have more APIs, you need to handle pagination by using the nextToken
parameter. Here’s how you can modify the above script to handle pagination: