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

export interface ReplicationInstanceArgs extends core.ResourceArgs {
  allocatedStorage?: number | core.NumberOut;

  allowMajorVersionUpgrade?: boolean | core.BooleanOut;

  applyImmediately?: boolean | core.BooleanOut;

  autoMinorVersionUpgrade?: boolean | core.BooleanOut;

  availabilityZone?: string | core.StringOut;

  engineVersion?: string | core.StringOut;

  kmsKeyArn?: string | core.StringOut;

  multiAz?: boolean | core.BooleanOut;

  preferredMaintenanceWindow?: string | core.StringOut;

  publiclyAccessible?: boolean | core.BooleanOut;

  replicationInstanceClass: string | core.StringOut;

  replicationInstanceId: string | core.StringOut;

  replicationSubnetGroupId?: string | core.StringOut;

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

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

  vpcSecurityGroupIds?: core.Array<string> | core.ArrayOut<core.StringOut>;
}

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(String, { computed: true })
  public replicationSubnetGroupId?: 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, { computed: true, kind: "array" })
  public vpcSecurityGroupIds?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  constructor(name: string, args?: ReplicationInstanceArgs) {
    super(name, "aws_dms_replication_instance", args);
  }

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