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

export interface ReplicationTaskArgs extends core.ResourceArgs {
  cdcStartPosition?: string | core.StringOut;

  cdcStartTime?: string | core.StringOut;

  migrationType: string | core.StringOut;

  replicationInstanceArn: string | core.StringOut;

  replicationTaskId: string | core.StringOut;

  replicationTaskSettings?: string | core.StringOut;

  sourceEndpointArn: string | core.StringOut;

  startReplicationTask?: boolean | core.BooleanOut;

  tableMappings: string | core.StringOut;

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

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

  targetEndpointArn: string | core.StringOut;
}

export class ReplicationTask extends core.Resource<ReplicationTaskArgs> {
  @core.attr(String, { computed: true })
  public cdcStartPosition?: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: ReplicationTaskArgs) {
    super(name, "aws_dms_replication_task", args);
  }

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