AWS v7.10.0 published on Friday, Oct 24, 2025 by Pulumi
aws.dms.getReplicationTask
Data source for managing an AWS DMS (Database Migration) Replication Task.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.dms.getReplicationTask({
replicationTaskId: testAwsDmsReplicationTask.replicationTaskId,
});
import pulumi
import pulumi_aws as aws
test = aws.dms.get_replication_task(replication_task_id=test_aws_dms_replication_task["replicationTaskId"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/dms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dms.LookupReplicationTask(ctx, &dms.LookupReplicationTaskArgs{
ReplicationTaskId: testAwsDmsReplicationTask.ReplicationTaskId,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = Aws.Dms.GetReplicationTask.Invoke(new()
{
ReplicationTaskId = testAwsDmsReplicationTask.ReplicationTaskId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.dms.DmsFunctions;
import com.pulumi.aws.dms.inputs.GetReplicationTaskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = DmsFunctions.getReplicationTask(GetReplicationTaskArgs.builder()
.replicationTaskId(testAwsDmsReplicationTask.replicationTaskId())
.build());
}
}
variables:
test:
fn::invoke:
function: aws:dms:getReplicationTask
arguments:
replicationTaskId: ${testAwsDmsReplicationTask.replicationTaskId}
Using getReplicationTask
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReplicationTask(args: GetReplicationTaskArgs, opts?: InvokeOptions): Promise<GetReplicationTaskResult>
function getReplicationTaskOutput(args: GetReplicationTaskOutputArgs, opts?: InvokeOptions): Output<GetReplicationTaskResult>def get_replication_task(region: Optional[str] = None,
replication_task_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetReplicationTaskResult
def get_replication_task_output(region: Optional[pulumi.Input[str]] = None,
replication_task_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReplicationTaskResult]func LookupReplicationTask(ctx *Context, args *LookupReplicationTaskArgs, opts ...InvokeOption) (*LookupReplicationTaskResult, error)
func LookupReplicationTaskOutput(ctx *Context, args *LookupReplicationTaskOutputArgs, opts ...InvokeOption) LookupReplicationTaskResultOutput> Note: This function is named LookupReplicationTask in the Go SDK.
public static class GetReplicationTask
{
public static Task<GetReplicationTaskResult> InvokeAsync(GetReplicationTaskArgs args, InvokeOptions? opts = null)
public static Output<GetReplicationTaskResult> Invoke(GetReplicationTaskInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReplicationTaskResult> getReplicationTask(GetReplicationTaskArgs args, InvokeOptions options)
public static Output<GetReplicationTaskResult> getReplicationTask(GetReplicationTaskArgs args, InvokeOptions options)
fn::invoke:
function: aws:dms/getReplicationTask:getReplicationTask
arguments:
# arguments dictionaryThe following arguments are supported:
- Replication
Task stringId - The replication task identifier.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Replication
Task stringId - The replication task identifier.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- replication
Task StringId - The replication task identifier.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- replication
Task stringId - The replication task identifier.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- replication_
task_ strid - The replication task identifier.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- replication
Task StringId - The replication task identifier.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
getReplicationTask Result
The following output properties are available:
- Cdc
Start stringPosition - (Conflicts with
cdc_start_time) Indicates when you want a change data capture (CDC) operation to start. The value can be in date, checkpoint, or LSN/SCN format depending on the source engine. For more information, see Determining a CDC native start point. - Cdc
Start stringTime - (Conflicts with
cdc_start_position) The Unix timestamp integer for the start of the Change Data Capture (CDC) operation. - Id string
- The provider-assigned unique ID for this managed resource.
- Migration
Type string - The migration type. Can be one of
full-load | cdc | full-load-and-cdc. - Region string
- Replication
Instance stringArn - The Amazon Resource Name (ARN) of the replication instance.
- Replication
Task stringArn - The Amazon Resource Name (ARN) for the replication task.
- Replication
Task stringId - Replication
Task stringSettings - An escaped JSON string that contains the task settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks.
- Source
Endpoint stringArn - The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint.
- Start
Replication boolTask - Whether to run or stop the replication task.
- Status string
- Replication Task status.
- Table
Mappings string - 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
- Dictionary<string, string>
- Target
Endpoint stringArn - The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint.
- Cdc
Start stringPosition - (Conflicts with
cdc_start_time) Indicates when you want a change data capture (CDC) operation to start. The value can be in date, checkpoint, or LSN/SCN format depending on the source engine. For more information, see Determining a CDC native start point. - Cdc
Start stringTime - (Conflicts with
cdc_start_position) The Unix timestamp integer for the start of the Change Data Capture (CDC) operation. - Id string
- The provider-assigned unique ID for this managed resource.
- Migration
Type string - The migration type. Can be one of
full-load | cdc | full-load-and-cdc. - Region string
- Replication
Instance stringArn - The Amazon Resource Name (ARN) of the replication instance.
- Replication
Task stringArn - The Amazon Resource Name (ARN) for the replication task.
- Replication
Task stringId - Replication
Task stringSettings - An escaped JSON string that contains the task settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks.
- Source
Endpoint stringArn - The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint.
- Start
Replication boolTask - Whether to run or stop the replication task.
- Status string
- Replication Task status.
- Table
Mappings string - 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
- map[string]string
- Target
Endpoint stringArn - The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint.
- cdc
Start StringPosition - (Conflicts with
cdc_start_time) Indicates when you want a change data capture (CDC) operation to start. The value can be in date, checkpoint, or LSN/SCN format depending on the source engine. For more information, see Determining a CDC native start point. - cdc
Start StringTime - (Conflicts with
cdc_start_position) The Unix timestamp integer for the start of the Change Data Capture (CDC) operation. - id String
- The provider-assigned unique ID for this managed resource.
- migration
Type String - The migration type. Can be one of
full-load | cdc | full-load-and-cdc. - region String
- replication
Instance StringArn - The Amazon Resource Name (ARN) of the replication instance.
- replication
Task StringArn - The Amazon Resource Name (ARN) for the replication task.
- replication
Task StringId - replication
Task StringSettings - An escaped JSON string that contains the task settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks.
- source
Endpoint StringArn - The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint.
- start
Replication BooleanTask - Whether to run or stop the replication task.
- status String
- Replication Task status.
- table
Mappings String - 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
- Map<String,String>
- target
Endpoint StringArn - The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint.
- cdc
Start stringPosition - (Conflicts with
cdc_start_time) Indicates when you want a change data capture (CDC) operation to start. The value can be in date, checkpoint, or LSN/SCN format depending on the source engine. For more information, see Determining a CDC native start point. - cdc
Start stringTime - (Conflicts with
cdc_start_position) The Unix timestamp integer for the start of the Change Data Capture (CDC) operation. - id string
- The provider-assigned unique ID for this managed resource.
- migration
Type string - The migration type. Can be one of
full-load | cdc | full-load-and-cdc. - region string
- replication
Instance stringArn - The Amazon Resource Name (ARN) of the replication instance.
- replication
Task stringArn - The Amazon Resource Name (ARN) for the replication task.
- replication
Task stringId - replication
Task stringSettings - An escaped JSON string that contains the task settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks.
- source
Endpoint stringArn - The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint.
- start
Replication booleanTask - Whether to run or stop the replication task.
- status string
- Replication Task status.
- table
Mappings string - 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
- {[key: string]: string}
- target
Endpoint stringArn - The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint.
- cdc_
start_ strposition - (Conflicts with
cdc_start_time) Indicates when you want a change data capture (CDC) operation to start. The value can be in date, checkpoint, or LSN/SCN format depending on the source engine. For more information, see Determining a CDC native start point. - cdc_
start_ strtime - (Conflicts with
cdc_start_position) The Unix timestamp integer for the start of the Change Data Capture (CDC) operation. - id str
- The provider-assigned unique ID for this managed resource.
- migration_
type str - The migration type. Can be one of
full-load | cdc | full-load-and-cdc. - region str
- replication_
instance_ strarn - The Amazon Resource Name (ARN) of the replication instance.
- replication_
task_ strarn - The Amazon Resource Name (ARN) for the replication task.
- replication_
task_ strid - replication_
task_ strsettings - An escaped JSON string that contains the task settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks.
- source_
endpoint_ strarn - The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint.
- start_
replication_ booltask - Whether to run or stop the replication task.
- status str
- Replication Task status.
- table_
mappings str - 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
- Mapping[str, str]
- target_
endpoint_ strarn - The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint.
- cdc
Start StringPosition - (Conflicts with
cdc_start_time) Indicates when you want a change data capture (CDC) operation to start. The value can be in date, checkpoint, or LSN/SCN format depending on the source engine. For more information, see Determining a CDC native start point. - cdc
Start StringTime - (Conflicts with
cdc_start_position) The Unix timestamp integer for the start of the Change Data Capture (CDC) operation. - id String
- The provider-assigned unique ID for this managed resource.
- migration
Type String - The migration type. Can be one of
full-load | cdc | full-load-and-cdc. - region String
- replication
Instance StringArn - The Amazon Resource Name (ARN) of the replication instance.
- replication
Task StringArn - The Amazon Resource Name (ARN) for the replication task.
- replication
Task StringId - replication
Task StringSettings - An escaped JSON string that contains the task settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks.
- source
Endpoint StringArn - The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint.
- start
Replication BooleanTask - Whether to run or stop the replication task.
- status String
- Replication Task status.
- table
Mappings String - 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
- Map<String>
- target
Endpoint StringArn - The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
