Replication Config Args
Provides a DMS Serverless replication config resource.
NOTE: Changing most arguments will stop the replication if it is running. You can set
start_replication
to resume the replication afterwards.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.dms.ReplicationConfig;
import com.pulumi.aws.dms.ReplicationConfigArgs;
import com.pulumi.aws.dms.inputs.ReplicationConfigComputeConfigArgs;
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) {
var name = new ReplicationConfig("name", ReplicationConfigArgs.builder()
.replicationConfigIdentifier("test-dms-serverless-replication-tf")
.resourceIdentifier("test-dms-serverless-replication-tf")
.replicationType("cdc")
.sourceEndpointArn(aws_dms_endpoint.source().endpoint_arn())
.targetEndpointArn(aws_dms_endpoint.target().endpoint_arn())
.tableMappings("""
{
"rules":[{"rule-type":"selection","rule-id":"1","rule-name":"1","object-locator":{"schema-name":"%%","table-name":"%%", "rule-action":"include"}]
}
""")
.startReplication(true)
.computeConfig(ReplicationConfigComputeConfigArgs.builder()
.replicationSubnetGroupId(aws_dms_replication_subnet_group.default().replication_subnet_group_id())
.maxCapacityUnits("64")
.minCapacityUnits("2")
.preferredMaintenanceWindow("sun:23:45-mon:00:30")
.build())
.build());
}
}
Import
Using pulumi import
, import a replication config using the arn
. For example:
$ pulumi import aws:dms/replicationConfig:ReplicationConfig example arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI
Constructors
Functions
Properties
An escaped JSON string that are used to provision this replication configuration. For example, Change processing tuning settings
Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see Fine-grained access control using resource names and tags
JSON settings for specifying supplemental data. For more information see Specifying supplemental data for task settings
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