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

export interface DsDbInstanceArgs {
  dbInstanceIdentifier: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(String, { computed: true })
  public dbSubnetGroup!: 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 hostedZoneId!: string | core.StringOut;

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

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

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

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

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

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

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

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public optionGroupMemberships!:
    | core.Array<string>
    | core.ArrayOut<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(Boolean, { computed: true })
  public publiclyAccessible!: boolean | core.BooleanOut;

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

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

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

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

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

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

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

  constructor(name: string, args?: DsDbInstanceArgs) {
    super(name, "aws_db_instance", args);
  }

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