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

export interface AttributeArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  value: string | core.StringOut;
}

export class Attribute extends core.Schema<AttributeArgs> {
  @core.attr(String)
  public name!: string | core.StringOut;

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

export interface LbSslNegotiationPolicyArgs extends core.ResourceArgs {
  attribute?: core.Array<Attribute> | core.ArrayOut<Attribute>;

  lbPort: number | core.NumberOut;

  loadBalancer: string | core.StringOut;

  name: string | core.StringOut;
}

export class LbSslNegotiationPolicy extends core.Resource<LbSslNegotiationPolicyArgs> {
  @core.attr(Attribute, { kind: "array" })
  public attribute?: core.Array<Attribute> | core.ArrayOut<Attribute>;

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

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