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

export interface LogDeliveryConfigurationArgs extends core.SchemaArgs {
  destination: string | core.StringOut;

  destinationType: string | core.StringOut;

  logFormat: string | core.StringOut;

  logType: string | core.StringOut;
}

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

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

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

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

export interface DsReplicationGroupArgs {
  replicationGroupId: string | core.StringOut;
}

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

  @core.attr(Boolean, { computed: true })
  public authTokenEnabled!: boolean | core.BooleanOut;

  @core.attr(Boolean, { computed: true })
  public automaticFailoverEnabled!: boolean | core.BooleanOut;

  @core.attr(String, { computed: true })
  public configurationEndpointAddress!: 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(LogDeliveryConfiguration, { computed: true, kind: "array" })
  public logDeliveryConfiguration!:
    | core.Array<LogDeliveryConfiguration>
    | core.ArrayOut<LogDeliveryConfiguration>;

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

  @core.attr(Boolean, { computed: true })
  public multiAzEnabled!: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsReplicationGroupArgs) {
    super(name, "aws_elasticache_replication_group", args);
  }

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