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

export interface DxLagArgs extends core.ResourceArgs {
  connectionId?: string | core.StringOut;

  connectionsBandwidth: string | core.StringOut;

  forceDestroy?: boolean | core.BooleanOut;

  location: string | core.StringOut;

  name: string | core.StringOut;

  providerName?: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

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

  @core.attr(String)
  public connectionId?: string | core.StringOut;

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

  @core.attr(Boolean)
  public forceDestroy?: boolean | core.BooleanOut;

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

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

  @core.attr(Boolean, { computed: true })
  public jumboFrameCapable!: boolean | core.BooleanOut;

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

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

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

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

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: DxLagArgs) {
    super(name, "aws_dx_lag", args);
  }

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