public static getInstance()

in src/experimental/patterns/ec2-app.ts [123:129]


  public static getInstance(stack: GuStack): HorizontallyScalingDeploymentProperties {
    if (!this.instance || !isSingletonPresentInStack(stack, this.instance)) {
      this.instance = new HorizontallyScalingDeploymentProperties(stack);
    }

    return this.instance;
  }