getApiGatewayRestApiRootResourceId() {
    if (
      this.serverless.service.provider.apiGateway &&
      this.serverless.service.provider.apiGateway.restApiRootResourceId
    ) {
      return this.serverless.service.provider.apiGateway.restApiRootResourceId
    }
    return {
      'Fn::GetAtt': [this.naming.getRestApiLogicalId(), 'RootResourceId'],
    }
  }
Get Rest API Root Resource ID from serverless config