import * as core from "@terrascript/core"; export interface ReplicationTaskArgs extends core.ResourceArgs { /** * (Optional, Conflicts with `cdc_start_time`) Indicates when you want a change data capture (CDC) oper * ation to start. The value can be in date, checkpoint, or LSN/SCN format depending on the source engi * ne. For more information, see [Determining a CDC native start point](https://docs.aws.amazon.com/dms * /latest/userguide/CHAP_Task.CDC.html#CHAP_Task.CDC.StartPoint.Native). */ cdcStartPosition?: string | core.StringOut; /** * (Optional, Conflicts with `cdc_start_position`) The Unix timestamp integer for the start of the Chan * ge Data Capture (CDC) operation. */ cdcStartTime?: string | core.StringOut; /** * (Required) The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. */ migrationType: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) of the replication instance. */ replicationInstanceArn: string | core.StringOut; /** * (Required) The replication task identifier. */ replicationTaskId: string | core.StringOut; /** * (Optional) An escaped JSON string that contains the task settings. For a complete list of task setti * ngs, see [Task Settings for AWS Database Migration Service Tasks](http://docs.aws.amazon.com/dms/lat * est/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html). */ replicationTaskSettings?: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. */ sourceEndpointArn: string | core.StringOut; /** * (Optional) Whether to run or stop the replication task. */ startReplicationTask?: boolean | core.BooleanOut; /** * (Required) An escaped JSON string that contains the table mappings. For information on table mapping * see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](htt * p://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) */ tableMappings: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Required) The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. */ targetEndpointArn: string | core.StringOut; } export class ReplicationTask extends core.Resource { /** * (Optional, Conflicts with `cdc_start_time`) Indicates when you want a change data capture (CDC) oper * ation to start. The value can be in date, checkpoint, or LSN/SCN format depending on the source engi * ne. For more information, see [Determining a CDC native start point](https://docs.aws.amazon.com/dms * /latest/userguide/CHAP_Task.CDC.html#CHAP_Task.CDC.StartPoint.Native). */ @core.attr(String, { computed: true }) public cdcStartPosition?: string | core.StringOut; /** * (Optional, Conflicts with `cdc_start_position`) The Unix timestamp integer for the start of the Chan * ge Data Capture (CDC) operation. */ @core.attr(String) public cdcStartTime?: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. */ @core.attr(String) public migrationType!: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) of the replication instance. */ @core.attr(String) public replicationInstanceArn!: string | core.StringOut; /** * The Amazon Resource Name (ARN) for the replication task. */ @core.attr(String, { computed: true }) public replicationTaskArn!: string | core.StringOut; /** * (Required) The replication task identifier. */ @core.attr(String) public replicationTaskId!: string | core.StringOut; /** * (Optional) An escaped JSON string that contains the task settings. For a complete list of task setti * ngs, see [Task Settings for AWS Database Migration Service Tasks](http://docs.aws.amazon.com/dms/lat * est/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html). */ @core.attr(String) public replicationTaskSettings?: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. */ @core.attr(String) public sourceEndpointArn!: string | core.StringOut; /** * (Optional) Whether to run or stop the replication task. */ @core.attr(Boolean) public startReplicationTask?: boolean | core.BooleanOut; /** * Replication Task status. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; /** * (Required) An escaped JSON string that contains the table mappings. For information on table mapping * see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](htt * p://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) */ @core.attr(String) public tableMappings!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Required) The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. */ @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"; } }