TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Function setRuntimeRegion

    • Set region in-memory to be inherited by other modules when set in the Analysis runtime with Analysis.use().

      Parameters

      Returns void

      async function myAnalysis(context, scope) {
      // this uses the region defined through `use`
      const resources = new Resources({ token });

      // it's still possible to override if needed
      const europeResources = new Resources({ token, region: "eu-w1" });
      }

      Analysis.use(myAnalysis, { region: "us-e1" });