We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 21, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 21, 2026 by Pulumi
Resource Type definition for AWS::DMS::ReplicationTask
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var myReplicationTask = new AwsNative.Dms.ReplicationTask("myReplicationTask", new()
{
SourceEndpointArn = "11",
TargetEndpointArn = "12ff",
ReplicationInstanceArn = "ert1",
MigrationType = AwsNative.Dms.ReplicationTaskMigrationType.FullLoad,
TableMappings = "{ \"rules\": [ { \"rule-type\": \"selection\", \"rule-id\": \"1\", \"rule-name\": \"1\", \"object-locator\": { \"schema-name\": \"%\", \"table-name\": \"%\" }, \"rule-action\": \"include\" } ] }",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/dms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dms.NewReplicationTask(ctx, "myReplicationTask", &dms.ReplicationTaskArgs{
SourceEndpointArn: pulumi.String("11"),
TargetEndpointArn: pulumi.String("12ff"),
ReplicationInstanceArn: pulumi.String("ert1"),
MigrationType: dms.ReplicationTaskMigrationTypeFullLoad,
TableMappings: pulumi.String("{ \"rules\": [ { \"rule-type\": \"selection\", \"rule-id\": \"1\", \"rule-name\": \"1\", \"object-locator\": { \"schema-name\": \"%\", \"table-name\": \"%\" }, \"rule-action\": \"include\" } ] }"),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const myReplicationTask = new aws_native.dms.ReplicationTask("myReplicationTask", {
sourceEndpointArn: "11",
targetEndpointArn: "12ff",
replicationInstanceArn: "ert1",
migrationType: aws_native.dms.ReplicationTaskMigrationType.FullLoad,
tableMappings: "{ \"rules\": [ { \"rule-type\": \"selection\", \"rule-id\": \"1\", \"rule-name\": \"1\", \"object-locator\": { \"schema-name\": \"%\", \"table-name\": \"%\" }, \"rule-action\": \"include\" } ] }",
});
import pulumi
import pulumi_aws_native as aws_native
my_replication_task = aws_native.dms.ReplicationTask("myReplicationTask",
source_endpoint_arn="11",
target_endpoint_arn="12ff",
replication_instance_arn="ert1",
migration_type=aws_native.dms.ReplicationTaskMigrationType.FULL_LOAD,
table_mappings="{ \"rules\": [ { \"rule-type\": \"selection\", \"rule-id\": \"1\", \"rule-name\": \"1\", \"object-locator\": { \"schema-name\": \"%\", \"table-name\": \"%\" }, \"rule-action\": \"include\" } ] }")
Example coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var myReplicationTask = new AwsNative.Dms.ReplicationTask("myReplicationTask", new()
{
MigrationType = AwsNative.Dms.ReplicationTaskMigrationType.FullLoad,
ReplicationInstanceArn = "ReplicationInstance",
SourceEndpointArn = "SourceEndpoint",
TableMappings = "{ \"rules\": [ { \"rule-type\": \"selection\", \"rule-id\": \"1\", \"rule-name\": \"1\", \"object-locator\": { \"schema-name\": \"%\", \"table-name\": \"%\" }, \"rule-action\": \"include\" } ] }",
TargetEndpointArn = "TargetEndpoint",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/dms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dms.NewReplicationTask(ctx, "myReplicationTask", &dms.ReplicationTaskArgs{
MigrationType: dms.ReplicationTaskMigrationTypeFullLoad,
ReplicationInstanceArn: pulumi.String("ReplicationInstance"),
SourceEndpointArn: pulumi.String("SourceEndpoint"),
TableMappings: pulumi.String("{ \"rules\": [ { \"rule-type\": \"selection\", \"rule-id\": \"1\", \"rule-name\": \"1\", \"object-locator\": { \"schema-name\": \"%\", \"table-name\": \"%\" }, \"rule-action\": \"include\" } ] }"),
TargetEndpointArn: pulumi.String("TargetEndpoint"),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const myReplicationTask = new aws_native.dms.ReplicationTask("myReplicationTask", {
migrationType: aws_native.dms.ReplicationTaskMigrationType.FullLoad,
replicationInstanceArn: "ReplicationInstance",
sourceEndpointArn: "SourceEndpoint",
tableMappings: "{ \"rules\": [ { \"rule-type\": \"selection\", \"rule-id\": \"1\", \"rule-name\": \"1\", \"object-locator\": { \"schema-name\": \"%\", \"table-name\": \"%\" }, \"rule-action\": \"include\" } ] }",
targetEndpointArn: "TargetEndpoint",
});
import pulumi
import pulumi_aws_native as aws_native
my_replication_task = aws_native.dms.ReplicationTask("myReplicationTask",
migration_type=aws_native.dms.ReplicationTaskMigrationType.FULL_LOAD,
replication_instance_arn="ReplicationInstance",
source_endpoint_arn="SourceEndpoint",
table_mappings="{ \"rules\": [ { \"rule-type\": \"selection\", \"rule-id\": \"1\", \"rule-name\": \"1\", \"object-locator\": { \"schema-name\": \"%\", \"table-name\": \"%\" }, \"rule-action\": \"include\" } ] }",
target_endpoint_arn="TargetEndpoint")
Example coming soon!
Create ReplicationTask Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReplicationTask(name: string, args: ReplicationTaskArgs, opts?: CustomResourceOptions);@overload
def ReplicationTask(resource_name: str,
args: ReplicationTaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReplicationTask(resource_name: str,
opts: Optional[ResourceOptions] = None,
table_mappings: Optional[str] = None,
migration_type: Optional[ReplicationTaskMigrationType] = None,
replication_instance_arn: Optional[str] = None,
source_endpoint_arn: Optional[str] = None,
target_endpoint_arn: Optional[str] = None,
cdc_start_time: Optional[float] = None,
cdc_stop_position: Optional[str] = None,
replication_task_identifier: Optional[str] = None,
replication_task_settings: Optional[str] = None,
resource_identifier: Optional[str] = None,
cdc_start_position: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
task_data: Optional[str] = None)func NewReplicationTask(ctx *Context, name string, args ReplicationTaskArgs, opts ...ResourceOption) (*ReplicationTask, error)public ReplicationTask(string name, ReplicationTaskArgs args, CustomResourceOptions? opts = null)
public ReplicationTask(String name, ReplicationTaskArgs args)
public ReplicationTask(String name, ReplicationTaskArgs args, CustomResourceOptions options)
type: aws-native:dms:ReplicationTask
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_dms_replication_task" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ReplicationTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ReplicationTaskArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ReplicationTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReplicationTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReplicationTaskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ReplicationTask Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ReplicationTask resource accepts the following input properties:
- Migration
Type Pulumi.Aws Native. Dms. Replication Task Migration Type - The migration type.
- Replication
Instance stringArn - The Amazon Resource Name (ARN) of a replication instance.
- Source
Endpoint stringArn - An Amazon Resource Name (ARN) that uniquely identifies the source endpoint.
- Table
Mappings string - The table mappings for the task, in JSON format.
- Target
Endpoint stringArn - An Amazon Resource Name (ARN) that uniquely identifies the target endpoint.
- Cdc
Start stringPosition - Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
- Cdc
Start doubleTime - Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.
- Cdc
Stop stringPosition - Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
- Replication
Task stringIdentifier - An identifier for the replication task.
- Replication
Task stringSettings - Overall settings for the task, in JSON format
- Resource
Identifier string - A friendly name for the resource identifier at the end of the EndpointArn response parameter that is returned in the created Endpoint object.
-
List<Pulumi.
Aws Native. Inputs. Tag> - One or more tags to be assigned to the replication task.
- Task
Data string - Supplemental information that the task requires to migrate the data for certain source and target endpoints.
- Migration
Type ReplicationTask Migration Type - The migration type.
- Replication
Instance stringArn - The Amazon Resource Name (ARN) of a replication instance.
- Source
Endpoint stringArn - An Amazon Resource Name (ARN) that uniquely identifies the source endpoint.
- Table
Mappings string - The table mappings for the task, in JSON format.
- Target
Endpoint stringArn - An Amazon Resource Name (ARN) that uniquely identifies the target endpoint.
- Cdc
Start stringPosition - Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
- Cdc
Start float64Time - Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.
- Cdc
Stop stringPosition - Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
- Replication
Task stringIdentifier - An identifier for the replication task.
- Replication
Task stringSettings - Overall settings for the task, in JSON format
- Resource
Identifier string - A friendly name for the resource identifier at the end of the EndpointArn response parameter that is returned in the created Endpoint object.
-
Tag
Args - One or more tags to be assigned to the replication task.
- Task
Data string - Supplemental information that the task requires to migrate the data for certain source and target endpoints.
- migration_
type "full-load" | "cdc" | "full-load-and-cdc" - The migration type.
- replication_
instance_ stringarn - The Amazon Resource Name (ARN) of a replication instance.
- source_
endpoint_ stringarn - An Amazon Resource Name (ARN) that uniquely identifies the source endpoint.
- table_
mappings string - The table mappings for the task, in JSON format.
- target_
endpoint_ stringarn - An Amazon Resource Name (ARN) that uniquely identifies the target endpoint.
- cdc_
start_ stringposition - Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
- cdc_
start_ numbertime - Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.
- cdc_
stop_ stringposition - Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
- replication_
task_ stringidentifier - An identifier for the replication task.
- replication_
task_ stringsettings - Overall settings for the task, in JSON format
- resource_
identifier string - A friendly name for the resource identifier at the end of the EndpointArn response parameter that is returned in the created Endpoint object.
- list(object)
- One or more tags to be assigned to the replication task.
- task_
data string - Supplemental information that the task requires to migrate the data for certain source and target endpoints.
- migration
Type ReplicationTask Migration Type - The migration type.
- replication
Instance StringArn - The Amazon Resource Name (ARN) of a replication instance.
- source
Endpoint StringArn - An Amazon Resource Name (ARN) that uniquely identifies the source endpoint.
- table
Mappings String - The table mappings for the task, in JSON format.
- target
Endpoint StringArn - An Amazon Resource Name (ARN) that uniquely identifies the target endpoint.
- cdc
Start StringPosition - Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
- cdc
Start DoubleTime - Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.
- cdc
Stop StringPosition - Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
- replication
Task StringIdentifier - An identifier for the replication task.
- replication
Task StringSettings - Overall settings for the task, in JSON format
- resource
Identifier String - A friendly name for the resource identifier at the end of the EndpointArn response parameter that is returned in the created Endpoint object.
- List<Tag>
- One or more tags to be assigned to the replication task.
- task
Data String - Supplemental information that the task requires to migrate the data for certain source and target endpoints.
- migration
Type ReplicationTask Migration Type - The migration type.
- replication
Instance stringArn - The Amazon Resource Name (ARN) of a replication instance.
- source
Endpoint stringArn - An Amazon Resource Name (ARN) that uniquely identifies the source endpoint.
- table
Mappings string - The table mappings for the task, in JSON format.
- target
Endpoint stringArn - An Amazon Resource Name (ARN) that uniquely identifies the target endpoint.
- cdc
Start stringPosition - Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
- cdc
Start numberTime - Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.
- cdc
Stop stringPosition - Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
- replication
Task stringIdentifier - An identifier for the replication task.
- replication
Task stringSettings - Overall settings for the task, in JSON format
- resource
Identifier string - A friendly name for the resource identifier at the end of the EndpointArn response parameter that is returned in the created Endpoint object.
- Tag[]
- One or more tags to be assigned to the replication task.
- task
Data string - Supplemental information that the task requires to migrate the data for certain source and target endpoints.
- migration_
type ReplicationTask Migration Type - The migration type.
- replication_
instance_ strarn - The Amazon Resource Name (ARN) of a replication instance.
- source_
endpoint_ strarn - An Amazon Resource Name (ARN) that uniquely identifies the source endpoint.
- table_
mappings str - The table mappings for the task, in JSON format.
- target_
endpoint_ strarn - An Amazon Resource Name (ARN) that uniquely identifies the target endpoint.
- cdc_
start_ strposition - Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
- cdc_
start_ floattime - Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.
- cdc_
stop_ strposition - Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
- replication_
task_ stridentifier - An identifier for the replication task.
- replication_
task_ strsettings - Overall settings for the task, in JSON format
- resource_
identifier str - A friendly name for the resource identifier at the end of the EndpointArn response parameter that is returned in the created Endpoint object.
-
Sequence[Tag
Args] - One or more tags to be assigned to the replication task.
- task_
data str - Supplemental information that the task requires to migrate the data for certain source and target endpoints.
- migration
Type "full-load" | "cdc" | "full-load-and-cdc" - The migration type.
- replication
Instance StringArn - The Amazon Resource Name (ARN) of a replication instance.
- source
Endpoint StringArn - An Amazon Resource Name (ARN) that uniquely identifies the source endpoint.
- table
Mappings String - The table mappings for the task, in JSON format.
- target
Endpoint StringArn - An Amazon Resource Name (ARN) that uniquely identifies the target endpoint.
- cdc
Start StringPosition - Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
- cdc
Start NumberTime - Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.
- cdc
Stop StringPosition - Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
- replication
Task StringIdentifier - An identifier for the replication task.
- replication
Task StringSettings - Overall settings for the task, in JSON format
- resource
Identifier String - A friendly name for the resource identifier at the end of the EndpointArn response parameter that is returned in the created Endpoint object.
- List<Property Map>
- One or more tags to be assigned to the replication task.
- task
Data String - Supplemental information that the task requires to migrate the data for certain source and target endpoints.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReplicationTask resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Replication
Task stringArn - The ARN of the ReplicationTask. Also serves the purpise of Primary Identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- Replication
Task stringArn - The ARN of the ReplicationTask. Also serves the purpise of Primary Identifier.
- id string
- The provider-assigned unique ID for this managed resource.
- replication_
task_ stringarn - The ARN of the ReplicationTask. Also serves the purpise of Primary Identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- replication
Task StringArn - The ARN of the ReplicationTask. Also serves the purpise of Primary Identifier.
- id string
- The provider-assigned unique ID for this managed resource.
- replication
Task stringArn - The ARN of the ReplicationTask. Also serves the purpise of Primary Identifier.
- id str
- The provider-assigned unique ID for this managed resource.
- replication_
task_ strarn - The ARN of the ReplicationTask. Also serves the purpise of Primary Identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- replication
Task StringArn - The ARN of the ReplicationTask. Also serves the purpise of Primary Identifier.
Supporting Types
ReplicationTaskMigrationType, ReplicationTaskMigrationTypeArgs
- Full
Load full-load- Cdc
cdc- Full
Load And Cdc full-load-and-cdc
- Replication
Task Migration Type Full Load full-load- Replication
Task Migration Type Cdc cdc- Replication
Task Migration Type Full Load And Cdc full-load-and-cdc
- "full-load"
full-load- "cdc"
cdc- "full-load-and-cdc"
full-load-and-cdc
- Full
Load full-load- Cdc
cdc- Full
Load And Cdc full-load-and-cdc
- Full
Load full-load- Cdc
cdc- Full
Load And Cdc full-load-and-cdc
- FULL_LOAD
full-load- CDC
cdc- FULL_LOAD_AND_CDC
full-load-and-cdc
- "full-load"
full-load- "cdc"
cdc- "full-load-and-cdc"
full-load-and-cdc
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 21, 2026 by Pulumi