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

export interface DbSnapshotCopyArgs extends core.ResourceArgs {
  copyTags?: boolean | core.BooleanOut;

  destinationRegion?: string | core.StringOut;

  kmsKeyId?: string | core.StringOut;

  optionGroupName?: string | core.StringOut;

  presignedUrl?: string | core.StringOut;

  sourceDbSnapshotIdentifier: string | core.StringOut;

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

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

  targetCustomAvailabilityZone?: string | core.StringOut;

  targetDbSnapshotIdentifier: string | core.StringOut;
}

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

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

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

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

  @core.attr(String)
  public destinationRegion?: 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(Number, { computed: true })
  public iops!: number | core.NumberOut;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DbSnapshotCopyArgs) {
    super(name, "aws_db_snapshot_copy", args);
  }

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