CmdID / aws / aws appsync
aws appsync create-api-key
Creates a unique key that you can distribute to clients who invoke your API. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--api-idThe ID for your GraphQL API.--descriptionA description of the purpose of the API key.--expiresFrom the creation time, the time after which the API key expires.