published on Friday, Oct 23, 2026 by opentelekomcloud
published on Friday, Oct 23, 2026 by opentelekomcloud
Up-to-date reference of API arguments for DMS RocketMQ metadata migration task you can get at documentation portal
Manages a DMS RocketMQ metadata migration task in the OpenTelekomCloud DMS Service. The task migrates metadata of a self-built RocketMQ or RabbitMQ instance to a DMS RocketMQ instance. The resource waits until the task is finished.
Deleting the resource deletes only the task, the migrated topics and consumer groups stay in the instance.
Example Usage
Migrating metadata from RocketMQ
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const instanceId = config.requireObject<any>("instanceId");
const test = new opentelekomcloud.DmsRocketmqMigrationTaskV2("test", {
instanceId: instanceId,
name: "task_test",
type: "rocketmq",
overwrite: true,
topicConfigs: [{
topicName: "topic_test",
perm: 6,
readQueueNums: 3,
writeQueueNums: 3,
topicFilterType: "SINGLE_TAG",
}],
subscriptionGroups: [{
groupName: "group_test",
retryMaxTimes: 2,
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
instance_id = config.require_object("instanceId")
test = opentelekomcloud.DmsRocketmqMigrationTaskV2("test",
instance_id=instance_id,
name="task_test",
type="rocketmq",
overwrite=True,
topic_configs=[{
"topic_name": "topic_test",
"perm": 6,
"read_queue_nums": 3,
"write_queue_nums": 3,
"topic_filter_type": "SINGLE_TAG",
}],
subscription_groups=[{
"group_name": "group_test",
"retry_max_times": 2,
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
instanceId := cfg.RequireObject("instanceId")
_, err := opentelekomcloud.NewDmsRocketmqMigrationTaskV2(ctx, "test", &opentelekomcloud.DmsRocketmqMigrationTaskV2Args{
InstanceId: pulumi.Any(instanceId),
Name: pulumi.String("task_test"),
Type: pulumi.String("rocketmq"),
Overwrite: pulumi.Bool(true),
TopicConfigs: opentelekomcloud.DmsRocketmqMigrationTaskV2TopicConfigArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2TopicConfigArgs{
TopicName: pulumi.String("topic_test"),
Perm: pulumi.Float64(6),
ReadQueueNums: pulumi.Float64(3),
WriteQueueNums: pulumi.Float64(3),
TopicFilterType: pulumi.String("SINGLE_TAG"),
},
},
SubscriptionGroups: opentelekomcloud.DmsRocketmqMigrationTaskV2SubscriptionGroupArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2SubscriptionGroupArgs{
GroupName: pulumi.String("group_test"),
RetryMaxTimes: pulumi.Float64(2),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var test = new Opentelekomcloud.DmsRocketmqMigrationTaskV2("test", new()
{
InstanceId = instanceId,
Name = "task_test",
Type = "rocketmq",
Overwrite = true,
TopicConfigs = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2TopicConfigArgs
{
TopicName = "topic_test",
Perm = 6,
ReadQueueNums = 3,
WriteQueueNums = 3,
TopicFilterType = "SINGLE_TAG",
},
},
SubscriptionGroups = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2SubscriptionGroupArgs
{
GroupName = "group_test",
RetryMaxTimes = 2,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.DmsRocketmqMigrationTaskV2;
import com.pulumi.opentelekomcloud.DmsRocketmqMigrationTaskV2Args;
import com.pulumi.opentelekomcloud.inputs.DmsRocketmqMigrationTaskV2TopicConfigArgs;
import com.pulumi.opentelekomcloud.inputs.DmsRocketmqMigrationTaskV2SubscriptionGroupArgs;
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 config = ctx.config();
final var instanceId = config.get("instanceId");
var test = new DmsRocketmqMigrationTaskV2("test", DmsRocketmqMigrationTaskV2Args.builder()
.instanceId(instanceId)
.name("task_test")
.type("rocketmq")
.overwrite(true)
.topicConfigs(DmsRocketmqMigrationTaskV2TopicConfigArgs.builder()
.topicName("topic_test")
.perm(6.0)
.readQueueNums(3.0)
.writeQueueNums(3.0)
.topicFilterType("SINGLE_TAG")
.build())
.subscriptionGroups(DmsRocketmqMigrationTaskV2SubscriptionGroupArgs.builder()
.groupName("group_test")
.retryMaxTimes(2.0)
.build())
.build());
}
}
configuration:
instanceId:
type: dynamic
resources:
test:
type: opentelekomcloud:DmsRocketmqMigrationTaskV2
properties:
instanceId: ${instanceId}
name: task_test
type: rocketmq
overwrite: true
topicConfigs:
- topicName: topic_test
perm: 6
readQueueNums: 3
writeQueueNums: 3
topicFilterType: SINGLE_TAG
subscriptionGroups:
- groupName: group_test
retryMaxTimes: 2
Example coming soon!
Migrating metadata from RabbitMQ
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const instanceId = config.requireObject<any>("instanceId");
const test = new opentelekomcloud.DmsRocketmqMigrationTaskV2("test", {
instanceId: instanceId,
name: "task_test",
type: "rabbitToRocket",
vhosts: [{
name: "vhost_test",
}],
queues: [{
vhost: "vhost_test",
name: "queue_test",
durable: true,
}],
exchanges: [{
vhost: "vhost_test",
name: "exchange_test",
type: "direct",
durable: true,
}],
bindings: [{
vhost: "vhost_test",
source: "exchange_test",
destination: "queue_test",
destinationType: "queue",
routingKey: "routing_key_test",
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
instance_id = config.require_object("instanceId")
test = opentelekomcloud.DmsRocketmqMigrationTaskV2("test",
instance_id=instance_id,
name="task_test",
type="rabbitToRocket",
vhosts=[{
"name": "vhost_test",
}],
queues=[{
"vhost": "vhost_test",
"name": "queue_test",
"durable": True,
}],
exchanges=[{
"vhost": "vhost_test",
"name": "exchange_test",
"type": "direct",
"durable": True,
}],
bindings=[{
"vhost": "vhost_test",
"source": "exchange_test",
"destination": "queue_test",
"destination_type": "queue",
"routing_key": "routing_key_test",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
instanceId := cfg.RequireObject("instanceId")
_, err := opentelekomcloud.NewDmsRocketmqMigrationTaskV2(ctx, "test", &opentelekomcloud.DmsRocketmqMigrationTaskV2Args{
InstanceId: pulumi.Any(instanceId),
Name: pulumi.String("task_test"),
Type: pulumi.String("rabbitToRocket"),
Vhosts: opentelekomcloud.DmsRocketmqMigrationTaskV2VhostArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2VhostArgs{
Name: pulumi.String("vhost_test"),
},
},
Queues: opentelekomcloud.DmsRocketmqMigrationTaskV2QueueArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2QueueArgs{
Vhost: pulumi.String("vhost_test"),
Name: pulumi.String("queue_test"),
Durable: pulumi.Bool(true),
},
},
Exchanges: opentelekomcloud.DmsRocketmqMigrationTaskV2ExchangeArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2ExchangeArgs{
Vhost: pulumi.String("vhost_test"),
Name: pulumi.String("exchange_test"),
Type: pulumi.String("direct"),
Durable: pulumi.Bool(true),
},
},
Bindings: opentelekomcloud.DmsRocketmqMigrationTaskV2BindingArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2BindingArgs{
Vhost: pulumi.String("vhost_test"),
Source: pulumi.String("exchange_test"),
Destination: pulumi.String("queue_test"),
DestinationType: pulumi.String("queue"),
RoutingKey: pulumi.String("routing_key_test"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var test = new Opentelekomcloud.DmsRocketmqMigrationTaskV2("test", new()
{
InstanceId = instanceId,
Name = "task_test",
Type = "rabbitToRocket",
Vhosts = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2VhostArgs
{
Name = "vhost_test",
},
},
Queues = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2QueueArgs
{
Vhost = "vhost_test",
Name = "queue_test",
Durable = true,
},
},
Exchanges = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2ExchangeArgs
{
Vhost = "vhost_test",
Name = "exchange_test",
Type = "direct",
Durable = true,
},
},
Bindings = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2BindingArgs
{
Vhost = "vhost_test",
Source = "exchange_test",
Destination = "queue_test",
DestinationType = "queue",
RoutingKey = "routing_key_test",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.DmsRocketmqMigrationTaskV2;
import com.pulumi.opentelekomcloud.DmsRocketmqMigrationTaskV2Args;
import com.pulumi.opentelekomcloud.inputs.DmsRocketmqMigrationTaskV2VhostArgs;
import com.pulumi.opentelekomcloud.inputs.DmsRocketmqMigrationTaskV2QueueArgs;
import com.pulumi.opentelekomcloud.inputs.DmsRocketmqMigrationTaskV2ExchangeArgs;
import com.pulumi.opentelekomcloud.inputs.DmsRocketmqMigrationTaskV2BindingArgs;
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 config = ctx.config();
final var instanceId = config.get("instanceId");
var test = new DmsRocketmqMigrationTaskV2("test", DmsRocketmqMigrationTaskV2Args.builder()
.instanceId(instanceId)
.name("task_test")
.type("rabbitToRocket")
.vhosts(DmsRocketmqMigrationTaskV2VhostArgs.builder()
.name("vhost_test")
.build())
.queues(DmsRocketmqMigrationTaskV2QueueArgs.builder()
.vhost("vhost_test")
.name("queue_test")
.durable(true)
.build())
.exchanges(DmsRocketmqMigrationTaskV2ExchangeArgs.builder()
.vhost("vhost_test")
.name("exchange_test")
.type("direct")
.durable(true)
.build())
.bindings(DmsRocketmqMigrationTaskV2BindingArgs.builder()
.vhost("vhost_test")
.source("exchange_test")
.destination("queue_test")
.destinationType("queue")
.routingKey("routing_key_test")
.build())
.build());
}
}
configuration:
instanceId:
type: dynamic
resources:
test:
type: opentelekomcloud:DmsRocketmqMigrationTaskV2
properties:
instanceId: ${instanceId}
name: task_test
type: rabbitToRocket
vhosts:
- name: vhost_test
queues:
- vhost: vhost_test
name: queue_test
durable: true
exchanges:
- vhost: vhost_test
name: exchange_test
type: direct
durable: true
bindings:
- vhost: vhost_test
source: exchange_test
destination: queue_test
destinationType: queue
routingKey: routing_key_test
Example coming soon!
Create DmsRocketmqMigrationTaskV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DmsRocketmqMigrationTaskV2(name: string, args: DmsRocketmqMigrationTaskV2Args, opts?: CustomResourceOptions);@overload
def DmsRocketmqMigrationTaskV2(resource_name: str,
args: DmsRocketmqMigrationTaskV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def DmsRocketmqMigrationTaskV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
type: Optional[str] = None,
bindings: Optional[Sequence[DmsRocketmqMigrationTaskV2BindingArgs]] = None,
dms_rocketmq_migration_task_v2_id: Optional[str] = None,
exchanges: Optional[Sequence[DmsRocketmqMigrationTaskV2ExchangeArgs]] = None,
name: Optional[str] = None,
overwrite: Optional[bool] = None,
queues: Optional[Sequence[DmsRocketmqMigrationTaskV2QueueArgs]] = None,
subscription_groups: Optional[Sequence[DmsRocketmqMigrationTaskV2SubscriptionGroupArgs]] = None,
timeouts: Optional[DmsRocketmqMigrationTaskV2TimeoutsArgs] = None,
topic_configs: Optional[Sequence[DmsRocketmqMigrationTaskV2TopicConfigArgs]] = None,
vhosts: Optional[Sequence[DmsRocketmqMigrationTaskV2VhostArgs]] = None)func NewDmsRocketmqMigrationTaskV2(ctx *Context, name string, args DmsRocketmqMigrationTaskV2Args, opts ...ResourceOption) (*DmsRocketmqMigrationTaskV2, error)public DmsRocketmqMigrationTaskV2(string name, DmsRocketmqMigrationTaskV2Args args, CustomResourceOptions? opts = null)
public DmsRocketmqMigrationTaskV2(String name, DmsRocketmqMigrationTaskV2Args args)
public DmsRocketmqMigrationTaskV2(String name, DmsRocketmqMigrationTaskV2Args args, CustomResourceOptions options)
type: opentelekomcloud:DmsRocketmqMigrationTaskV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "opentelekomcloud_dms_rocketmq_migration_task_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DmsRocketmqMigrationTaskV2Args
- 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 DmsRocketmqMigrationTaskV2Args
- 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 DmsRocketmqMigrationTaskV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DmsRocketmqMigrationTaskV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DmsRocketmqMigrationTaskV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dmsRocketmqMigrationTaskV2Resource = new Opentelekomcloud.DmsRocketmqMigrationTaskV2("dmsRocketmqMigrationTaskV2Resource", new()
{
InstanceId = "string",
Type = "string",
Bindings = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2BindingArgs
{
Destination = "string",
DestinationType = "string",
RoutingKey = "string",
Source = "string",
Vhost = "string",
},
},
DmsRocketmqMigrationTaskV2Id = "string",
Exchanges = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2ExchangeArgs
{
Durable = false,
Name = "string",
Type = "string",
Vhost = "string",
},
},
Name = "string",
Overwrite = false,
Queues = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2QueueArgs
{
Durable = false,
Name = "string",
Vhost = "string",
},
},
SubscriptionGroups = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2SubscriptionGroupArgs
{
GroupName = "string",
ConsumeBroadcastEnable = false,
ConsumeEnable = false,
ConsumeFromMinEnable = false,
NotifyConsumerIdsChangedEnable = false,
RetryMaxTimes = 0.0,
RetryQueueNums = 0.0,
WhichBrokerWhenConsumeSlow = 0.0,
},
},
Timeouts = new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2TimeoutsArgs
{
Create = "string",
},
TopicConfigs = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2TopicConfigArgs
{
TopicName = "string",
Order = false,
Perm = 0.0,
ReadQueueNums = 0.0,
TopicFilterType = "string",
TopicSysFlag = 0.0,
WriteQueueNums = 0.0,
},
},
Vhosts = new[]
{
new Opentelekomcloud.Inputs.DmsRocketmqMigrationTaskV2VhostArgs
{
Name = "string",
},
},
});
example, err := opentelekomcloud.NewDmsRocketmqMigrationTaskV2(ctx, "dmsRocketmqMigrationTaskV2Resource", &opentelekomcloud.DmsRocketmqMigrationTaskV2Args{
InstanceId: pulumi.String("string"),
Type: pulumi.String("string"),
Bindings: opentelekomcloud.DmsRocketmqMigrationTaskV2BindingArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2BindingArgs{
Destination: pulumi.String("string"),
DestinationType: pulumi.String("string"),
RoutingKey: pulumi.String("string"),
Source: pulumi.String("string"),
Vhost: pulumi.String("string"),
},
},
DmsRocketmqMigrationTaskV2Id: pulumi.String("string"),
Exchanges: opentelekomcloud.DmsRocketmqMigrationTaskV2ExchangeArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2ExchangeArgs{
Durable: pulumi.Bool(false),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Vhost: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Overwrite: pulumi.Bool(false),
Queues: opentelekomcloud.DmsRocketmqMigrationTaskV2QueueArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2QueueArgs{
Durable: pulumi.Bool(false),
Name: pulumi.String("string"),
Vhost: pulumi.String("string"),
},
},
SubscriptionGroups: opentelekomcloud.DmsRocketmqMigrationTaskV2SubscriptionGroupArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2SubscriptionGroupArgs{
GroupName: pulumi.String("string"),
ConsumeBroadcastEnable: pulumi.Bool(false),
ConsumeEnable: pulumi.Bool(false),
ConsumeFromMinEnable: pulumi.Bool(false),
NotifyConsumerIdsChangedEnable: pulumi.Bool(false),
RetryMaxTimes: pulumi.Float64(0),
RetryQueueNums: pulumi.Float64(0),
WhichBrokerWhenConsumeSlow: pulumi.Float64(0),
},
},
Timeouts: &opentelekomcloud.DmsRocketmqMigrationTaskV2TimeoutsArgs{
Create: pulumi.String("string"),
},
TopicConfigs: opentelekomcloud.DmsRocketmqMigrationTaskV2TopicConfigArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2TopicConfigArgs{
TopicName: pulumi.String("string"),
Order: pulumi.Bool(false),
Perm: pulumi.Float64(0),
ReadQueueNums: pulumi.Float64(0),
TopicFilterType: pulumi.String("string"),
TopicSysFlag: pulumi.Float64(0),
WriteQueueNums: pulumi.Float64(0),
},
},
Vhosts: opentelekomcloud.DmsRocketmqMigrationTaskV2VhostArray{
&opentelekomcloud.DmsRocketmqMigrationTaskV2VhostArgs{
Name: pulumi.String("string"),
},
},
})
resource "opentelekomcloud_dms_rocketmq_migration_task_v2" "dmsRocketmqMigrationTaskV2Resource" {
lifecycle {
create_before_destroy = true
}
instance_id = "string"
type = "string"
bindings {
destination = "string"
destination_type = "string"
routing_key = "string"
source = "string"
vhost = "string"
}
dms_rocketmq_migration_task_v2_id = "string"
exchanges {
durable = false
name = "string"
type = "string"
vhost = "string"
}
name = "string"
overwrite = false
queues {
durable = false
name = "string"
vhost = "string"
}
subscription_groups {
group_name = "string"
consume_broadcast_enable = false
consume_enable = false
consume_from_min_enable = false
notify_consumer_ids_changed_enable = false
retry_max_times = 0
retry_queue_nums = 0
which_broker_when_consume_slow = 0
}
timeouts = {
create = "string"
}
topic_configs {
topic_name = "string"
order = false
perm = 0
read_queue_nums = 0
topic_filter_type = "string"
topic_sys_flag = 0
write_queue_nums = 0
}
vhosts {
name = "string"
}
}
var dmsRocketmqMigrationTaskV2Resource = new DmsRocketmqMigrationTaskV2("dmsRocketmqMigrationTaskV2Resource", DmsRocketmqMigrationTaskV2Args.builder()
.instanceId("string")
.type("string")
.bindings(DmsRocketmqMigrationTaskV2BindingArgs.builder()
.destination("string")
.destinationType("string")
.routingKey("string")
.source("string")
.vhost("string")
.build())
.dmsRocketmqMigrationTaskV2Id("string")
.exchanges(DmsRocketmqMigrationTaskV2ExchangeArgs.builder()
.durable(false)
.name("string")
.type("string")
.vhost("string")
.build())
.name("string")
.overwrite(false)
.queues(DmsRocketmqMigrationTaskV2QueueArgs.builder()
.durable(false)
.name("string")
.vhost("string")
.build())
.subscriptionGroups(DmsRocketmqMigrationTaskV2SubscriptionGroupArgs.builder()
.groupName("string")
.consumeBroadcastEnable(false)
.consumeEnable(false)
.consumeFromMinEnable(false)
.notifyConsumerIdsChangedEnable(false)
.retryMaxTimes(0.0)
.retryQueueNums(0.0)
.whichBrokerWhenConsumeSlow(0.0)
.build())
.timeouts(DmsRocketmqMigrationTaskV2TimeoutsArgs.builder()
.create("string")
.build())
.topicConfigs(DmsRocketmqMigrationTaskV2TopicConfigArgs.builder()
.topicName("string")
.order(false)
.perm(0.0)
.readQueueNums(0.0)
.topicFilterType("string")
.topicSysFlag(0.0)
.writeQueueNums(0.0)
.build())
.vhosts(DmsRocketmqMigrationTaskV2VhostArgs.builder()
.name("string")
.build())
.build());
dms_rocketmq_migration_task_v2_resource = opentelekomcloud.DmsRocketmqMigrationTaskV2("dmsRocketmqMigrationTaskV2Resource",
instance_id="string",
type="string",
bindings=[{
"destination": "string",
"destination_type": "string",
"routing_key": "string",
"source": "string",
"vhost": "string",
}],
dms_rocketmq_migration_task_v2_id="string",
exchanges=[{
"durable": False,
"name": "string",
"type": "string",
"vhost": "string",
}],
name="string",
overwrite=False,
queues=[{
"durable": False,
"name": "string",
"vhost": "string",
}],
subscription_groups=[{
"group_name": "string",
"consume_broadcast_enable": False,
"consume_enable": False,
"consume_from_min_enable": False,
"notify_consumer_ids_changed_enable": False,
"retry_max_times": float(0),
"retry_queue_nums": float(0),
"which_broker_when_consume_slow": float(0),
}],
timeouts={
"create": "string",
},
topic_configs=[{
"topic_name": "string",
"order": False,
"perm": float(0),
"read_queue_nums": float(0),
"topic_filter_type": "string",
"topic_sys_flag": float(0),
"write_queue_nums": float(0),
}],
vhosts=[{
"name": "string",
}])
const dmsRocketmqMigrationTaskV2Resource = new opentelekomcloud.DmsRocketmqMigrationTaskV2("dmsRocketmqMigrationTaskV2Resource", {
instanceId: "string",
type: "string",
bindings: [{
destination: "string",
destinationType: "string",
routingKey: "string",
source: "string",
vhost: "string",
}],
dmsRocketmqMigrationTaskV2Id: "string",
exchanges: [{
durable: false,
name: "string",
type: "string",
vhost: "string",
}],
name: "string",
overwrite: false,
queues: [{
durable: false,
name: "string",
vhost: "string",
}],
subscriptionGroups: [{
groupName: "string",
consumeBroadcastEnable: false,
consumeEnable: false,
consumeFromMinEnable: false,
notifyConsumerIdsChangedEnable: false,
retryMaxTimes: 0,
retryQueueNums: 0,
whichBrokerWhenConsumeSlow: 0,
}],
timeouts: {
create: "string",
},
topicConfigs: [{
topicName: "string",
order: false,
perm: 0,
readQueueNums: 0,
topicFilterType: "string",
topicSysFlag: 0,
writeQueueNums: 0,
}],
vhosts: [{
name: "string",
}],
});
type: opentelekomcloud:DmsRocketmqMigrationTaskV2
properties:
bindings:
- destination: string
destinationType: string
routingKey: string
source: string
vhost: string
dmsRocketmqMigrationTaskV2Id: string
exchanges:
- durable: false
name: string
type: string
vhost: string
instanceId: string
name: string
overwrite: false
queues:
- durable: false
name: string
vhost: string
subscriptionGroups:
- consumeBroadcastEnable: false
consumeEnable: false
consumeFromMinEnable: false
groupName: string
notifyConsumerIdsChangedEnable: false
retryMaxTimes: 0
retryQueueNums: 0
whichBrokerWhenConsumeSlow: 0
timeouts:
create: string
topicConfigs:
- order: false
perm: 0
readQueueNums: 0
topicFilterType: string
topicName: string
topicSysFlag: 0
writeQueueNums: 0
type: string
vhosts:
- name: string
DmsRocketmqMigrationTaskV2 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 DmsRocketmqMigrationTaskV2 resource accepts the following input properties:
- Instance
Id string - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- Type string
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- Bindings
List<Dms
Rocketmq Migration Task V2Binding> Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- Dms
Rocketmq stringMigration Task V2Id - The resource ID in format
<instance_id>/<task_id>. - Exchanges
List<Dms
Rocketmq Migration Task V2Exchange> - Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- Name string
- Specifies the exchange name.
- Overwrite bool
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- Queues
List<Dms
Rocketmq Migration Task V2Queue> - Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- Subscription
Groups List<DmsRocketmq Migration Task V2Subscription Group> - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- Timeouts
Dms
Rocketmq Migration Task V2Timeouts - Topic
Configs List<DmsRocketmq Migration Task V2Topic Config> - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- Vhosts
List<Dms
Rocketmq Migration Task V2Vhost> - Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- Instance
Id string - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- Type string
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- Bindings
[]Dms
Rocketmq Migration Task V2Binding Args Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- Dms
Rocketmq stringMigration Task V2Id - The resource ID in format
<instance_id>/<task_id>. - Exchanges
[]Dms
Rocketmq Migration Task V2Exchange Args - Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- Name string
- Specifies the exchange name.
- Overwrite bool
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- Queues
[]Dms
Rocketmq Migration Task V2Queue Args - Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- Subscription
Groups []DmsRocketmq Migration Task V2Subscription Group Args - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- Timeouts
Dms
Rocketmq Migration Task V2Timeouts Args - Topic
Configs []DmsRocketmq Migration Task V2Topic Config Args - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- Vhosts
[]Dms
Rocketmq Migration Task V2Vhost Args - Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- instance_
id string - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- type string
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- bindings list(object)
Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- dms_
rocketmq_ stringmigration_ task_ v2_ id - The resource ID in format
<instance_id>/<task_id>. - exchanges list(object)
- Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- name string
- Specifies the exchange name.
- overwrite bool
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- queues list(object)
- Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- subscription_
groups list(object) - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- timeouts object
- topic_
configs list(object) - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- vhosts list(object)
- Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- instance
Id String - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- type String
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- bindings
List<Dms
Rocketmq Migration Task V2Binding> Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- dms
Rocketmq StringMigration Task V2Id - The resource ID in format
<instance_id>/<task_id>. - exchanges
List<Dms
Rocketmq Migration Task V2Exchange> - Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- name String
- Specifies the exchange name.
- overwrite Boolean
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- queues
List<Dms
Rocketmq Migration Task V2Queue> - Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- subscription
Groups List<DmsRocketmq Migration Task V2Subscription Group> - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- timeouts
Dms
Rocketmq Migration Task V2Timeouts - topic
Configs List<DmsRocketmq Migration Task V2Topic Config> - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- vhosts
List<Dms
Rocketmq Migration Task V2Vhost> - Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- instance
Id string - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- type string
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- bindings
Dms
Rocketmq Migration Task V2Binding[] Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- dms
Rocketmq stringMigration Task V2Id - The resource ID in format
<instance_id>/<task_id>. - exchanges
Dms
Rocketmq Migration Task V2Exchange[] - Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- name string
- Specifies the exchange name.
- overwrite boolean
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- queues
Dms
Rocketmq Migration Task V2Queue[] - Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- subscription
Groups DmsRocketmq Migration Task V2Subscription Group[] - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- timeouts
Dms
Rocketmq Migration Task V2Timeouts - topic
Configs DmsRocketmq Migration Task V2Topic Config[] - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- vhosts
Dms
Rocketmq Migration Task V2Vhost[] - Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- instance_
id str - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- type str
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- bindings
Sequence[Dms
Rocketmq Migration Task V2Binding Args] Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- dms_
rocketmq_ strmigration_ task_ v2_ id - The resource ID in format
<instance_id>/<task_id>. - exchanges
Sequence[Dms
Rocketmq Migration Task V2Exchange Args] - Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- name str
- Specifies the exchange name.
- overwrite bool
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- queues
Sequence[Dms
Rocketmq Migration Task V2Queue Args] - Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- subscription_
groups Sequence[DmsRocketmq Migration Task V2Subscription Group Args] - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- timeouts
Dms
Rocketmq Migration Task V2Timeouts Args - topic_
configs Sequence[DmsRocketmq Migration Task V2Topic Config Args] - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- vhosts
Sequence[Dms
Rocketmq Migration Task V2Vhost Args] - Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- instance
Id String - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- type String
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- bindings List<Property Map>
Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- dms
Rocketmq StringMigration Task V2Id - The resource ID in format
<instance_id>/<task_id>. - exchanges List<Property Map>
- Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- name String
- Specifies the exchange name.
- overwrite Boolean
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- queues List<Property Map>
- Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- subscription
Groups List<Property Map> - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- timeouts Property Map
- topic
Configs List<Property Map> - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- vhosts List<Property Map>
- Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DmsRocketmqMigrationTaskV2 resource produces the following output properties:
- id string
- The provider-assigned unique ID for this managed resource.
- start_
date string - Indicates the start time of the migration task.
- status string
- Indicates the status of the migration task. Values: creating, starting, failed, finished.
- id str
- The provider-assigned unique ID for this managed resource.
- start_
date str - Indicates the start time of the migration task.
- status str
- Indicates the status of the migration task. Values: creating, starting, failed, finished.
Look up Existing DmsRocketmqMigrationTaskV2 Resource
Get an existing DmsRocketmqMigrationTaskV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DmsRocketmqMigrationTaskV2State, opts?: CustomResourceOptions): DmsRocketmqMigrationTaskV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bindings: Optional[Sequence[DmsRocketmqMigrationTaskV2BindingArgs]] = None,
dms_rocketmq_migration_task_v2_id: Optional[str] = None,
exchanges: Optional[Sequence[DmsRocketmqMigrationTaskV2ExchangeArgs]] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
overwrite: Optional[bool] = None,
queues: Optional[Sequence[DmsRocketmqMigrationTaskV2QueueArgs]] = None,
start_date: Optional[str] = None,
status: Optional[str] = None,
subscription_groups: Optional[Sequence[DmsRocketmqMigrationTaskV2SubscriptionGroupArgs]] = None,
timeouts: Optional[DmsRocketmqMigrationTaskV2TimeoutsArgs] = None,
topic_configs: Optional[Sequence[DmsRocketmqMigrationTaskV2TopicConfigArgs]] = None,
type: Optional[str] = None,
vhosts: Optional[Sequence[DmsRocketmqMigrationTaskV2VhostArgs]] = None) -> DmsRocketmqMigrationTaskV2func GetDmsRocketmqMigrationTaskV2(ctx *Context, name string, id IDInput, state *DmsRocketmqMigrationTaskV2State, opts ...ResourceOption) (*DmsRocketmqMigrationTaskV2, error)public static DmsRocketmqMigrationTaskV2 Get(string name, Input<string> id, DmsRocketmqMigrationTaskV2State? state, CustomResourceOptions? opts = null)public static DmsRocketmqMigrationTaskV2 get(String name, Output<String> id, DmsRocketmqMigrationTaskV2State state, CustomResourceOptions options)resources: _: type: opentelekomcloud:DmsRocketmqMigrationTaskV2 get: id: ${id}import {
to = opentelekomcloud_dms_rocketmq_migration_task_v2.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bindings
List<Dms
Rocketmq Migration Task V2Binding> Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- Dms
Rocketmq stringMigration Task V2Id - The resource ID in format
<instance_id>/<task_id>. - Exchanges
List<Dms
Rocketmq Migration Task V2Exchange> - Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- Instance
Id string - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- Name string
- Specifies the exchange name.
- Overwrite bool
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- Queues
List<Dms
Rocketmq Migration Task V2Queue> - Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- Start
Date string - Indicates the start time of the migration task.
- Status string
- Indicates the status of the migration task. Values: creating, starting, failed, finished.
- Subscription
Groups List<DmsRocketmq Migration Task V2Subscription Group> - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- Timeouts
Dms
Rocketmq Migration Task V2Timeouts - Topic
Configs List<DmsRocketmq Migration Task V2Topic Config> - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- Type string
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- Vhosts
List<Dms
Rocketmq Migration Task V2Vhost> - Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- Bindings
[]Dms
Rocketmq Migration Task V2Binding Args Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- Dms
Rocketmq stringMigration Task V2Id - The resource ID in format
<instance_id>/<task_id>. - Exchanges
[]Dms
Rocketmq Migration Task V2Exchange Args - Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- Instance
Id string - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- Name string
- Specifies the exchange name.
- Overwrite bool
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- Queues
[]Dms
Rocketmq Migration Task V2Queue Args - Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- Start
Date string - Indicates the start time of the migration task.
- Status string
- Indicates the status of the migration task. Values: creating, starting, failed, finished.
- Subscription
Groups []DmsRocketmq Migration Task V2Subscription Group Args - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- Timeouts
Dms
Rocketmq Migration Task V2Timeouts Args - Topic
Configs []DmsRocketmq Migration Task V2Topic Config Args - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- Type string
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- Vhosts
[]Dms
Rocketmq Migration Task V2Vhost Args - Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- bindings list(object)
Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- dms_
rocketmq_ stringmigration_ task_ v2_ id - The resource ID in format
<instance_id>/<task_id>. - exchanges list(object)
- Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- instance_
id string - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- name string
- Specifies the exchange name.
- overwrite bool
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- queues list(object)
- Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- start_
date string - Indicates the start time of the migration task.
- status string
- Indicates the status of the migration task. Values: creating, starting, failed, finished.
- subscription_
groups list(object) - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- timeouts object
- topic_
configs list(object) - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- type string
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- vhosts list(object)
- Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- bindings
List<Dms
Rocketmq Migration Task V2Binding> Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- dms
Rocketmq StringMigration Task V2Id - The resource ID in format
<instance_id>/<task_id>. - exchanges
List<Dms
Rocketmq Migration Task V2Exchange> - Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- instance
Id String - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- name String
- Specifies the exchange name.
- overwrite Boolean
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- queues
List<Dms
Rocketmq Migration Task V2Queue> - Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- start
Date String - Indicates the start time of the migration task.
- status String
- Indicates the status of the migration task. Values: creating, starting, failed, finished.
- subscription
Groups List<DmsRocketmq Migration Task V2Subscription Group> - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- timeouts
Dms
Rocketmq Migration Task V2Timeouts - topic
Configs List<DmsRocketmq Migration Task V2Topic Config> - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- type String
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- vhosts
List<Dms
Rocketmq Migration Task V2Vhost> - Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- bindings
Dms
Rocketmq Migration Task V2Binding[] Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- dms
Rocketmq stringMigration Task V2Id - The resource ID in format
<instance_id>/<task_id>. - exchanges
Dms
Rocketmq Migration Task V2Exchange[] - Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- instance
Id string - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- name string
- Specifies the exchange name.
- overwrite boolean
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- queues
Dms
Rocketmq Migration Task V2Queue[] - Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- start
Date string - Indicates the start time of the migration task.
- status string
- Indicates the status of the migration task. Values: creating, starting, failed, finished.
- subscription
Groups DmsRocketmq Migration Task V2Subscription Group[] - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- timeouts
Dms
Rocketmq Migration Task V2Timeouts - topic
Configs DmsRocketmq Migration Task V2Topic Config[] - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- type string
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- vhosts
Dms
Rocketmq Migration Task V2Vhost[] - Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- bindings
Sequence[Dms
Rocketmq Migration Task V2Binding Args] Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- dms_
rocketmq_ strmigration_ task_ v2_ id - The resource ID in format
<instance_id>/<task_id>. - exchanges
Sequence[Dms
Rocketmq Migration Task V2Exchange Args] - Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- instance_
id str - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- name str
- Specifies the exchange name.
- overwrite bool
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- queues
Sequence[Dms
Rocketmq Migration Task V2Queue Args] - Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- start_
date str - Indicates the start time of the migration task.
- status str
- Indicates the status of the migration task. Values: creating, starting, failed, finished.
- subscription_
groups Sequence[DmsRocketmq Migration Task V2Subscription Group Args] - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- timeouts
Dms
Rocketmq Migration Task V2Timeouts Args - topic_
configs Sequence[DmsRocketmq Migration Task V2Topic Config Args] - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- type str
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- vhosts
Sequence[Dms
Rocketmq Migration Task V2Vhost Args] - Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
- bindings List<Property Map>
Specifies the binding metadata. Mandatory for rabbitToRocket tasks. The bindings structure is documented below. Changing this creates a new resource.
The
topic_configsblock supports:- dms
Rocketmq StringMigration Task V2Id - The resource ID in format
<instance_id>/<task_id>. - exchanges List<Property Map>
- Specifies the exchange metadata. Mandatory for rabbitToRocket tasks. The exchanges structure is documented below. Changing this creates a new resource.
- instance
Id String - Specifies the ID of the RocketMQ instance. Changing this creates a new resource.
- name String
- Specifies the exchange name.
- overwrite Boolean
- Specifies whether to overwrite configurations of the existing topics and consumer groups with the same name. If false, an error is reported when a topic or group already exists. Defaults to false. Changing this creates a new resource.
- queues List<Property Map>
- Specifies the queue metadata. Mandatory for rabbitToRocket tasks. The queues structure is documented below. Changing this creates a new resource.
- start
Date String - Indicates the start time of the migration task.
- status String
- Indicates the status of the migration task. Values: creating, starting, failed, finished.
- subscription
Groups List<Property Map> - Specifies the consumer group metadata. Mandatory for rocketmq tasks. The subscription_groups structure is documented below. Changing this creates a new resource.
- timeouts Property Map
- topic
Configs List<Property Map> - Specifies the topic metadata. Mandatory for rocketmq tasks. The topic_configs structure is documented below. Changing this creates a new resource.
- type String
- Specifies the exchange type. Value options: topic, direct, fanout, headers.
- vhosts List<Property Map>
- Specifies the virtual host metadata. Mandatory for rabbitToRocket tasks. The vhosts structure is documented below. Changing this creates a new resource.
Supporting Types
DmsRocketmqMigrationTaskV2Binding, DmsRocketmqMigrationTaskV2BindingArgs
- Destination string
- Specifies the message target.
- Destination
Type string - Specifies the target type. Value options: exchange, queue.
- Routing
Key string - Specifies the routing key.
- Source string
- Specifies the message source.
- Vhost string
- Specifies the virtual host name.
- Destination string
- Specifies the message target.
- Destination
Type string - Specifies the target type. Value options: exchange, queue.
- Routing
Key string - Specifies the routing key.
- Source string
- Specifies the message source.
- Vhost string
- Specifies the virtual host name.
- destination string
- Specifies the message target.
- destination_
type string - Specifies the target type. Value options: exchange, queue.
- routing_
key string - Specifies the routing key.
- source string
- Specifies the message source.
- vhost string
- Specifies the virtual host name.
- destination String
- Specifies the message target.
- destination
Type String - Specifies the target type. Value options: exchange, queue.
- routing
Key String - Specifies the routing key.
- source String
- Specifies the message source.
- vhost String
- Specifies the virtual host name.
- destination string
- Specifies the message target.
- destination
Type string - Specifies the target type. Value options: exchange, queue.
- routing
Key string - Specifies the routing key.
- source string
- Specifies the message source.
- vhost string
- Specifies the virtual host name.
- destination str
- Specifies the message target.
- destination_
type str - Specifies the target type. Value options: exchange, queue.
- routing_
key str - Specifies the routing key.
- source str
- Specifies the message source.
- vhost str
- Specifies the virtual host name.
- destination String
- Specifies the message target.
- destination
Type String - Specifies the target type. Value options: exchange, queue.
- routing
Key String - Specifies the routing key.
- source String
- Specifies the message source.
- vhost String
- Specifies the virtual host name.
DmsRocketmqMigrationTaskV2Exchange, DmsRocketmqMigrationTaskV2ExchangeArgs
DmsRocketmqMigrationTaskV2Queue, DmsRocketmqMigrationTaskV2QueueArgs
DmsRocketmqMigrationTaskV2SubscriptionGroup, DmsRocketmqMigrationTaskV2SubscriptionGroupArgs
- Group
Name string - Specifies the consumer group name.
- Consume
Broadcast boolEnable - Specifies whether to allow broadcast. Defaults to false.
- Consume
Enable bool - Specifies whether to enable consumption. Defaults to true.
- Consume
From boolMin Enable - Specifies whether to enable consumption from the earliest offset. Defaults to true.
- Notify
Consumer boolIds Changed Enable - Specifies whether to notify consumer ID changes. Defaults to true.
- Retry
Max doubleTimes - Specifies the maximum number of consumption retries. Defaults to 16.
- Retry
Queue doubleNums - Specifies the number of retry queues. Defaults to 1.
- Which
Broker doubleWhen Consume Slow Specifies the ID of the broker selected for slow consumption. Defaults to 1.
The
vhostsblock supports:
- Group
Name string - Specifies the consumer group name.
- Consume
Broadcast boolEnable - Specifies whether to allow broadcast. Defaults to false.
- Consume
Enable bool - Specifies whether to enable consumption. Defaults to true.
- Consume
From boolMin Enable - Specifies whether to enable consumption from the earliest offset. Defaults to true.
- Notify
Consumer boolIds Changed Enable - Specifies whether to notify consumer ID changes. Defaults to true.
- Retry
Max float64Times - Specifies the maximum number of consumption retries. Defaults to 16.
- Retry
Queue float64Nums - Specifies the number of retry queues. Defaults to 1.
- Which
Broker float64When Consume Slow Specifies the ID of the broker selected for slow consumption. Defaults to 1.
The
vhostsblock supports:
- group_
name string - Specifies the consumer group name.
- consume_
broadcast_ boolenable - Specifies whether to allow broadcast. Defaults to false.
- consume_
enable bool - Specifies whether to enable consumption. Defaults to true.
- consume_
from_ boolmin_ enable - Specifies whether to enable consumption from the earliest offset. Defaults to true.
- notify_
consumer_ boolids_ changed_ enable - Specifies whether to notify consumer ID changes. Defaults to true.
- retry_
max_ numbertimes - Specifies the maximum number of consumption retries. Defaults to 16.
- retry_
queue_ numbernums - Specifies the number of retry queues. Defaults to 1.
- which_
broker_ numberwhen_ consume_ slow Specifies the ID of the broker selected for slow consumption. Defaults to 1.
The
vhostsblock supports:
- group
Name String - Specifies the consumer group name.
- consume
Broadcast BooleanEnable - Specifies whether to allow broadcast. Defaults to false.
- consume
Enable Boolean - Specifies whether to enable consumption. Defaults to true.
- consume
From BooleanMin Enable - Specifies whether to enable consumption from the earliest offset. Defaults to true.
- notify
Consumer BooleanIds Changed Enable - Specifies whether to notify consumer ID changes. Defaults to true.
- retry
Max DoubleTimes - Specifies the maximum number of consumption retries. Defaults to 16.
- retry
Queue DoubleNums - Specifies the number of retry queues. Defaults to 1.
- which
Broker DoubleWhen Consume Slow Specifies the ID of the broker selected for slow consumption. Defaults to 1.
The
vhostsblock supports:
- group
Name string - Specifies the consumer group name.
- consume
Broadcast booleanEnable - Specifies whether to allow broadcast. Defaults to false.
- consume
Enable boolean - Specifies whether to enable consumption. Defaults to true.
- consume
From booleanMin Enable - Specifies whether to enable consumption from the earliest offset. Defaults to true.
- notify
Consumer booleanIds Changed Enable - Specifies whether to notify consumer ID changes. Defaults to true.
- retry
Max numberTimes - Specifies the maximum number of consumption retries. Defaults to 16.
- retry
Queue numberNums - Specifies the number of retry queues. Defaults to 1.
- which
Broker numberWhen Consume Slow Specifies the ID of the broker selected for slow consumption. Defaults to 1.
The
vhostsblock supports:
- group_
name str - Specifies the consumer group name.
- consume_
broadcast_ boolenable - Specifies whether to allow broadcast. Defaults to false.
- consume_
enable bool - Specifies whether to enable consumption. Defaults to true.
- consume_
from_ boolmin_ enable - Specifies whether to enable consumption from the earliest offset. Defaults to true.
- notify_
consumer_ boolids_ changed_ enable - Specifies whether to notify consumer ID changes. Defaults to true.
- retry_
max_ floattimes - Specifies the maximum number of consumption retries. Defaults to 16.
- retry_
queue_ floatnums - Specifies the number of retry queues. Defaults to 1.
- which_
broker_ floatwhen_ consume_ slow Specifies the ID of the broker selected for slow consumption. Defaults to 1.
The
vhostsblock supports:
- group
Name String - Specifies the consumer group name.
- consume
Broadcast BooleanEnable - Specifies whether to allow broadcast. Defaults to false.
- consume
Enable Boolean - Specifies whether to enable consumption. Defaults to true.
- consume
From BooleanMin Enable - Specifies whether to enable consumption from the earliest offset. Defaults to true.
- notify
Consumer BooleanIds Changed Enable - Specifies whether to notify consumer ID changes. Defaults to true.
- retry
Max NumberTimes - Specifies the maximum number of consumption retries. Defaults to 16.
- retry
Queue NumberNums - Specifies the number of retry queues. Defaults to 1.
- which
Broker NumberWhen Consume Slow Specifies the ID of the broker selected for slow consumption. Defaults to 1.
The
vhostsblock supports:
DmsRocketmqMigrationTaskV2Timeouts, DmsRocketmqMigrationTaskV2TimeoutsArgs
- Create string
- Create string
- create string
- create String
- create string
- create str
- create String
DmsRocketmqMigrationTaskV2TopicConfig, DmsRocketmqMigrationTaskV2TopicConfigArgs
- Topic
Name string - Specifies the topic name.
- Order bool
- Specifies whether messages are ordered. Defaults to false.
- Perm double
- Specifies the topic permissions. Defaults to 6.
- Read
Queue doubleNums - Specifies the number of read queues. Defaults to 16.
- Topic
Filter stringType - Specifies the topic filtering type. Value options: SINGLE_TAG, MULTI_TAG.
- Topic
Sys doubleFlag Specifies the topic system flag. Defaults to 0.
The
subscription_groupsblock supports:- Write
Queue doubleNums - Specifies the number of write queues. Defaults to 16.
- Topic
Name string - Specifies the topic name.
- Order bool
- Specifies whether messages are ordered. Defaults to false.
- Perm float64
- Specifies the topic permissions. Defaults to 6.
- Read
Queue float64Nums - Specifies the number of read queues. Defaults to 16.
- Topic
Filter stringType - Specifies the topic filtering type. Value options: SINGLE_TAG, MULTI_TAG.
- Topic
Sys float64Flag Specifies the topic system flag. Defaults to 0.
The
subscription_groupsblock supports:- Write
Queue float64Nums - Specifies the number of write queues. Defaults to 16.
- topic_
name string - Specifies the topic name.
- order bool
- Specifies whether messages are ordered. Defaults to false.
- perm number
- Specifies the topic permissions. Defaults to 6.
- read_
queue_ numbernums - Specifies the number of read queues. Defaults to 16.
- topic_
filter_ stringtype - Specifies the topic filtering type. Value options: SINGLE_TAG, MULTI_TAG.
- topic_
sys_ numberflag Specifies the topic system flag. Defaults to 0.
The
subscription_groupsblock supports:- write_
queue_ numbernums - Specifies the number of write queues. Defaults to 16.
- topic
Name String - Specifies the topic name.
- order Boolean
- Specifies whether messages are ordered. Defaults to false.
- perm Double
- Specifies the topic permissions. Defaults to 6.
- read
Queue DoubleNums - Specifies the number of read queues. Defaults to 16.
- topic
Filter StringType - Specifies the topic filtering type. Value options: SINGLE_TAG, MULTI_TAG.
- topic
Sys DoubleFlag Specifies the topic system flag. Defaults to 0.
The
subscription_groupsblock supports:- write
Queue DoubleNums - Specifies the number of write queues. Defaults to 16.
- topic
Name string - Specifies the topic name.
- order boolean
- Specifies whether messages are ordered. Defaults to false.
- perm number
- Specifies the topic permissions. Defaults to 6.
- read
Queue numberNums - Specifies the number of read queues. Defaults to 16.
- topic
Filter stringType - Specifies the topic filtering type. Value options: SINGLE_TAG, MULTI_TAG.
- topic
Sys numberFlag Specifies the topic system flag. Defaults to 0.
The
subscription_groupsblock supports:- write
Queue numberNums - Specifies the number of write queues. Defaults to 16.
- topic_
name str - Specifies the topic name.
- order bool
- Specifies whether messages are ordered. Defaults to false.
- perm float
- Specifies the topic permissions. Defaults to 6.
- read_
queue_ floatnums - Specifies the number of read queues. Defaults to 16.
- topic_
filter_ strtype - Specifies the topic filtering type. Value options: SINGLE_TAG, MULTI_TAG.
- topic_
sys_ floatflag Specifies the topic system flag. Defaults to 0.
The
subscription_groupsblock supports:- write_
queue_ floatnums - Specifies the number of write queues. Defaults to 16.
- topic
Name String - Specifies the topic name.
- order Boolean
- Specifies whether messages are ordered. Defaults to false.
- perm Number
- Specifies the topic permissions. Defaults to 6.
- read
Queue NumberNums - Specifies the number of read queues. Defaults to 16.
- topic
Filter StringType - Specifies the topic filtering type. Value options: SINGLE_TAG, MULTI_TAG.
- topic
Sys NumberFlag Specifies the topic system flag. Defaults to 0.
The
subscription_groupsblock supports:- write
Queue NumberNums - Specifies the number of write queues. Defaults to 16.
DmsRocketmqMigrationTaskV2Vhost, DmsRocketmqMigrationTaskV2VhostArgs
- Name string
- Specifies the exchange name.
- Name string
- Specifies the exchange name.
- name string
- Specifies the exchange name.
- name String
- Specifies the exchange name.
- name string
- Specifies the exchange name.
- name str
- Specifies the exchange name.
- name String
- Specifies the exchange name.
Import
DMS RocketMQ migration task can be imported using the instance ID and task ID separated by a slash, e.g.
$ pulumi import opentelekomcloud:index/dmsRocketmqMigrationTaskV2:DmsRocketmqMigrationTaskV2 opentelekomcloud_dms_rocketmq_migration_task_v2.test 8d3c7938-dc47-4937-a30f-c80de381c5e3/6cf4dcd3-8471-4139-8b5b-8a3a71f704c7
Note that overwrite and the metadata blocks are not returned by the API, so they are missing in the imported state.
You can ignore changes as below.
hcl
resource “opentelekomcloud_dms_rocketmq_migration_task_v2” “test” {
lifecycle {
ignore_changes = [
overwrite,
topic_configs,
subscription_groups,
vhosts,
queues,
exchanges,
bindings,
]
}
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
published on Friday, Oct 23, 2026 by opentelekomcloud