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

export interface DsDbSnapshotArgs {
  dbInstanceIdentifier?: string | core.StringOut;

  dbSnapshotIdentifier?: string | core.StringOut;

  includePublic?: boolean | core.BooleanOut;

  includeShared?: boolean | core.BooleanOut;

  mostRecent?: boolean | core.BooleanOut;

  snapshotType?: string | core.StringOut;
}

export class DsDbSnapshot extends core.Data<DsDbSnapshotArgs> {
  @core.attr(Number, { computed: true })
  public allocatedStorage!: number | core.NumberOut;

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

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

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

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

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

  @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 id!: string | core.StringOut;

  @core.attr(Boolean)
  public includePublic?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public includeShared?: boolean | core.BooleanOut;

  @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(Boolean)
  public mostRecent?: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsDbSnapshotArgs) {
    super(name, "aws_db_snapshot", args);
  }

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