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

export interface DaxSubnetGroupArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  name: string | core.StringOut;

  subnetIds: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class DaxSubnetGroup extends core.Resource<DaxSubnetGroupArgs> {
  @core.attr(String)
  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, { kind: "array" })
  public subnetIds!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  constructor(name: string, args?: DaxSubnetGroupArgs) {
    super(name, "aws_dax_subnet_group", args);
  }

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