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

export interface DsConnectionArgs {
  arn?: string | core.StringOut;

  name?: 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 connectionStatus!: string | core.StringOut;

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

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

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

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

  @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_codestarconnections_connection", args);
  }

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