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

export interface ParametersArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  value: string | core.StringOut;
}

export class Parameters extends core.Schema<ParametersArgs> {
  @core.attr(String)
  public name!: string | core.StringOut;

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

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

  name: string | core.StringOut;

  parameters?: core.Array<Parameters> | core.ArrayOut<Parameters>;
}

export class DaxParameterGroup extends core.Resource<DaxParameterGroupArgs> {
  @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(Parameters, { computed: true, kind: "array" })
  public parameters?: core.Array<Parameters> | core.ArrayOut<Parameters>;

  constructor(name: string, args?: DaxParameterGroupArgs) {
    super(name, "aws_dax_parameter_group", args);
  }

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