This template creates an API key and associates it with the Test stage of the TestAPIDeployment deployment. The API key is named TestApiKey and has a description of CloudFormation API Key V1. It is enabled and associated with the RestApi and Stage resources specified in the template.

CloudFormation Template