lib/plugins/aws/package/compile/events/apiGateway/lib/apiKeys.js/createApiKeyResource
function createApiKeyResource(that, apiKey) {
  const resourceTemplate = {
    Type: 'AWS::ApiGateway::ApiKey',
    Properties: {
      Enabled: true,
      Name: apiKey,
      StageKeys: [{
        RestApiId: that.provider.getApiGatewayRestApiId(),
        StageName: that.provider.getStage(),
      }],
    },
    DependsOn: that.apiGatewayDeploymentLogicalId,
  };

  return _.cloneDeep(resourceTemplate);
}