Class ReplicationTask
Provides a DMS (Data Migration Service) replication task resource. DMS replication tasks can be created, updated, deleted, and imported.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
// Create a new replication task
var test = new Aws.Dms.ReplicationTask("test", new Aws.Dms.ReplicationTaskArgs
{
CdcStartTime = 1484346880,
MigrationType = "full-load",
ReplicationInstanceArn = aws_dms_replication_instance.Test_dms_replication_instance_tf.Replication_instance_arn,
ReplicationTaskId = "test-dms-replication-task-tf",
ReplicationTaskSettings = "...",
SourceEndpointArn = aws_dms_endpoint.Test_dms_source_endpoint_tf.Endpoint_arn,
TableMappings = "{\"rules\":[{\"rule-type\":\"selection\",\"rule-id\":\"1\",\"rule-name\":\"1\",\"object-locator\":{\"schema-name\":\"%\",\"table-name\":\"%\"},\"rule-action\":\"include\"}]}",
Tags =
{
{ "Name", "test" },
},
TargetEndpointArn = aws_dms_endpoint.Test_dms_target_endpoint_tf.Endpoint_arn,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Dms
Assembly: Pulumi.Aws.dll
Syntax
public class ReplicationTask : CustomResource
Constructors
View SourceReplicationTask(String, ReplicationTaskArgs, CustomResourceOptions)
Create a ReplicationTask resource with the given unique name, arguments, and options.
Declaration
public ReplicationTask(string name, ReplicationTaskArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ReplicationTaskArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCdcStartTime
The Unix timestamp integer for the start of the Change Data Capture (CDC) operation.
Declaration
public Output<string> CdcStartTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MigrationType
The migration type. Can be one of full-load | cdc | full-load-and-cdc.
Declaration
public Output<string> MigrationType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ReplicationInstanceArn
The Amazon Resource Name (ARN) of the replication instance.
Declaration
public Output<string> ReplicationInstanceArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ReplicationTaskArn
The Amazon Resource Name (ARN) for the replication task.
Declaration
public Output<string> ReplicationTaskArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ReplicationTaskId
The replication task identifier.
Declaration
public Output<string> ReplicationTaskId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ReplicationTaskSettings
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.
Declaration
public Output<string> ReplicationTaskSettings { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SourceEndpointArn
The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint.
Declaration
public Output<string> SourceEndpointArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TableMappings
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
Declaration
public Output<string> TableMappings { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A map of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
TargetEndpointArn
The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint.
Declaration
public Output<string> TargetEndpointArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ReplicationTaskState, CustomResourceOptions)
Get an existing ReplicationTask resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ReplicationTask Get(string name, Input<string> id, ReplicationTaskState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ReplicationTaskState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ReplicationTask |