import * as core from "@terrascript/core";

export interface AppCookieStickinessPolicyArgs extends core.ResourceArgs {
  cookieName: string | core.StringOut;

  lbPort: number | core.NumberOut;

  loadBalancer: string | core.StringOut;

  name: string | core.StringOut;
}

export class AppCookieStickinessPolicy extends core.Resource<AppCookieStickinessPolicyArgs> {
  @core.attr(String)
  public cookieName!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(Number)
  public lbPort!: number | core.NumberOut;

  @core.attr(String)
  public loadBalancer!: string | core.StringOut;

  @core.attr(String)
  public name!: string | core.StringOut;

  constructor(name: string, args?: AppCookieStickinessPolicyArgs) {
    super(name, "aws_app_cookie_stickiness_policy", args);
  }

  public override getNamespace(): string {
    return "aws_elb_classic";
  }
}
