Instance

class Instance : KotlinCustomResource

Provides a Dts Instance resource. For information about Dts Instance and how to use it, see What is Instance.

NOTE: Available since v1.198.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
import com.pulumi.alicloud.dts.Instance;
import com.pulumi.alicloud.dts.InstanceArgs;
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 defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.status("OK")
.build());
final var defaultRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
.current(true)
.build());
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.type("sync")
.resourceGroupId(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.ids()[0]))
.paymentType("Subscription")
.instanceClass("large")
.sourceEndpointEngineName("MySQL")
.sourceRegion(defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
.destinationEndpointEngineName("MySQL")
.destinationRegion(defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
.build());
}
}

Import

Dts Instance can be imported using the id, e.g.

$ pulumi import alicloud:dts/instance:Instance example <id>

Properties

Link copied to clipboard
val autoPay: Output<Boolean>?

Whether to automatically renew the fee when it expires. Valid values:

Link copied to clipboard
val autoStart: Output<Boolean>?

Whether to start the task automatically after the purchase is completed. Value:

Link copied to clipboard
val computeUnit: Output<Int>?

Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.

Link copied to clipboard
val createTime: Output<String>

Instance creation time

Link copied to clipboard
val databaseCount: Output<Int>

The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.

Link copied to clipboard

The target database engine type.

Link copied to clipboard

The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.

Link copied to clipboard
val dtsInstanceId: Output<String>

The ID of the subscription instance.

Link copied to clipboard
val du: Output<Int>?

Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.

Link copied to clipboard
val feeType: Output<String>?

Subscription billing type, Valid values: ONLY_CONFIGURATION_FEE: charges only configuration fees; CONFIGURATION_FEE_AND_DATA_FEE: charges configuration fees and data traffic fees.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceClass: Output<String>?

The type of the migration or synchronization instance.

Link copied to clipboard
val instanceName: Output<String>

The name of Dts instance.

Link copied to clipboard
val jobId: Output<String>?

The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.

Link copied to clipboard
val paymentType: Output<String>?

The payment type of the resource. Valid values: Subscription, PayAsYouGo.

Link copied to clipboard
val period: Output<String>?

The billing method of the subscription instance. Value: Year, Month. NOTE: This parameter is valid and must be passed in only when payment_type is Subscription.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceGroupId: Output<String>

Resource Group ID.

Link copied to clipboard

Source instance database engine type.

Link copied to clipboard
val sourceRegion: Output<String>?

The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.

Link copied to clipboard
val status: Output<String>

Instance status.

Link copied to clipboard
val syncArchitecture: Output<String>?

Synchronization topology, value:

Link copied to clipboard

The synchronization direction. Default value: Forward. Valid values:

Link copied to clipboard
val tags: Output<Map<String, Any>>?

The tag value corresponding to the tag key.See the following Block Tags.

Link copied to clipboard
val type: Output<String>?

The instance type. Valid values:

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val usedTime: Output<Int>?

Prepaid instance purchase duration.