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

export interface LbCookieStickinessPolicyArgs extends core.ResourceArgs {
  cookieExpirationPeriod?: number | core.NumberOut;

  lbPort: number | core.NumberOut;

  loadBalancer: string | core.StringOut;

  name: string | core.StringOut;
}

export class LbCookieStickinessPolicy extends core.Resource<LbCookieStickinessPolicyArgs> {
  @core.attr(Number)
  public cookieExpirationPeriod?: number | core.NumberOut;

  @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?: LbCookieStickinessPolicyArgs) {
    super(name, "aws_lb_cookie_stickiness_policy", args);
  }

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