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

export interface DsDbClusterSnapshotArgs {
  dbClusterIdentifier?: string | core.StringOut;

  dbClusterSnapshotIdentifier?: string | core.StringOut;

  includePublic?: boolean | core.BooleanOut;

  includeShared?: boolean | core.BooleanOut;

  mostRecent?: boolean | core.BooleanOut;

  snapshotType?: string | core.StringOut;

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

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

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

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

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

  @core.attr(String)
  public dbClusterSnapshotIdentifier?: 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 id!: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: DsDbClusterSnapshotArgs) {
    super(name, "aws_db_cluster_snapshot", args);
  }

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