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

export interface ParameterArgs extends core.SchemaArgs {
  applyMethod?: string | core.StringOut;

  name: string | core.StringOut;

  value: string | core.StringOut;
}

export class Parameter extends core.Schema<ParameterArgs> {
  @core.attr(String)
  public applyMethod?: string | core.StringOut;

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

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

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

  family: string | core.StringOut;

  name?: string | core.StringOut;

  namePrefix?: string | core.StringOut;

  parameter?: core.Array<Parameter> | core.ArrayOut<Parameter>;

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

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

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

  @core.attr(String)
  public description?: string | core.StringOut;

  @core.attr(String)
  public family!: 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 namePrefix?: string | core.StringOut;

  @core.attr(Parameter, { kind: "array" })
  public parameter?: core.Array<Parameter> | core.ArrayOut<Parameter>;

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

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

  constructor(name: string, args?: ClusterParameterGroupArgs) {
    super(name, "aws_neptune_cluster_parameter_group", args);
  }

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