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

export interface DxConnectionArgs extends core.ResourceArgs {
  bandwidth: string | core.StringOut;

  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 DxConnection extends core.Resource<DxConnectionArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

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

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

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

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