code: def create_api_key(self, api_id, stage_name):
          
          response = self.apigateway_client.create_api_key(
              name='{}_{}'.format(stage_name, api_id),
              description='Api Key for {}'.format(api_id),
              enabled=True,
              stageKeys=[
                  {
                      'restApiId': '{}'.format(api_id),
                      'stageName': '{}'.format(stage_name)
                  },
              ]
          )
          print('Created a new x-api-key: {}'.format(response['id']))
docs: Create new API key and link it with an api_id and a stage_name