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

export interface LoadBalancerListenerPolicyArgs extends core.ResourceArgs {
  loadBalancerName: string | core.StringOut;

  loadBalancerPort: number | core.NumberOut;

  policyNames?: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class LoadBalancerListenerPolicy extends core.Resource<LoadBalancerListenerPolicyArgs> {
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

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

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

  @core.attr(String, { kind: "array" })
  public policyNames?: core.Array<string> | core.ArrayOut<core.StringOut>;

  constructor(name: string, args?: LoadBalancerListenerPolicyArgs) {
    super(name, "aws_load_balancer_listener_policy", args);
  }

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