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

export interface ClusterConfigurationArgs extends core.SchemaArgs {
  description: string | core.StringOut;

  engineVersion: string | core.StringOut;

  maintenanceWindow: string | core.StringOut;

  name: string | core.StringOut;

  nodeType: string | core.StringOut;

  numShards: number | core.NumberOut;

  parameterGroupName: string | core.StringOut;

  port: number | core.NumberOut;

  snapshotRetentionLimit: number | core.NumberOut;

  snapshotWindow: string | core.StringOut;

  subnetGroupName: string | core.StringOut;

  topicArn: string | core.StringOut;

  vpcId: string | core.StringOut;
}

export class ClusterConfiguration extends core.Schema<ClusterConfigurationArgs> {
  @core.attr(String, { computed: true })
  public description!: string | core.StringOut;

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

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

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

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

  @core.attr(Number, { computed: true })
  public numShards!: number | core.NumberOut;

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

  @core.attr(Number, { computed: true })
  public port!: number | core.NumberOut;

  @core.attr(Number, { computed: true })
  public snapshotRetentionLimit!: number | core.NumberOut;

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

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

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

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

export interface DsSnapshotArgs {
  name: string | core.StringOut;

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

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

  @core.attr(ClusterConfiguration, { computed: true, kind: "array" })
  public clusterConfiguration!:
    | core.Array<ClusterConfiguration>
    | core.ArrayOut<ClusterConfiguration>;

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

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

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

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

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

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

  constructor(name: string, args?: DsSnapshotArgs) {
    super(name, "aws_memorydb_snapshot", args);
  }

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