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

export interface PhysicalConnectionRequirementsArgs extends core.SchemaArgs {
  availabilityZone: string | core.StringOut;

  securityGroupIdList: core.Array<string> | core.ArrayOut<core.StringOut>;

  subnetId: string | core.StringOut;
}

export class PhysicalConnectionRequirements extends core.Schema<PhysicalConnectionRequirementsArgs> {
  @core.attr(String, { computed: true })
  public availabilityZone!: string | core.StringOut;

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

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

export interface DsConnectionArgs {
  id: string | core.StringOut;

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

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

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

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

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

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

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

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

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

  @core.attr(PhysicalConnectionRequirements, { computed: true, kind: "array" })
  public physicalConnectionRequirements!:
    | core.Array<PhysicalConnectionRequirements>
    | core.ArrayOut<PhysicalConnectionRequirements>;

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

  constructor(name: string, args?: DsConnectionArgs) {
    super(name, "aws_glue_connection", args);
  }

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