getApiGatewayRestApiId() {
    if (
      this.serverless.service.provider.apiGateway &&
      this.serverless.service.provider.apiGateway.restApiId
    ) {
      return this.serverless.service.provider.apiGateway.restApiId
    }

    return { Ref: this.naming.getRestApiLogicalId() }
  }
Get API Gateway Rest API ID from serverless config