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

export interface DsClusterArgs {
  clusterIdentifier: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsClusterArgs) {
    super(name, "aws_rds_cluster", args);
  }

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