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

export interface ProxyProtocolPolicyArgs extends core.ResourceArgs {
  instancePorts: core.Array<string> | core.ArrayOut<core.StringOut>;

  loadBalancer: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: ProxyProtocolPolicyArgs) {
    super(name, "aws_proxy_protocol_policy", args);
  }

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