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

export interface DsDbSubnetGroupArgs {
  name: string | core.StringOut;
}

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsDbSubnetGroupArgs) {
    super(name, "aws_db_subnet_group", args);
  }

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