@zarpay/zar-cdk-lib - v0.32.0
    Preparing search index...

    Function generateListenerPriority

    • Generates a deterministic listener rule priority based on app name and environment. Priority range: 1-50000 (max supported by ALB).

      Parameters

      • appName: string

        Application name

      • deployEnvironment: string

        Deployment environment

      Returns number

      A number between 1 and 50000

      const priority = generateListenerPriority('ZarCore', 'staging');
      // Returns same value every time for the same inputs