getAccountPath()

in cdk/lib/concierge-graphql.ts [165:172]


  getAccountPath(scope:GuStack, isPreview:boolean, elementName: string) {
    const basePath = "/account/vpc";
    if(isPreview) {
      return scope.stage.startsWith("CODE") ? `${basePath}/CODE-preview/${elementName}` : `${basePath}/PROD-preview/${elementName}`;
    } else {
      return scope.stage.startsWith("CODE") ? `${basePath}/CODE-live/${elementName}` : `${basePath}/PROD-live/${elementName}`;
    }
  }