1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. DmsReassignPartitionsV2
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.DmsReassignPartitionsV2

Explore with Pulumi AI

Create DmsReassignPartitionsV2 Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DmsReassignPartitionsV2(name: string, args: DmsReassignPartitionsV2Args, opts?: CustomResourceOptions);
@overload
def DmsReassignPartitionsV2(resource_name: str,
                            args: DmsReassignPartitionsV2Args,
                            opts: Optional[ResourceOptions] = None)

@overload
def DmsReassignPartitionsV2(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            instance_id: Optional[str] = None,
                            reassignments: Optional[Sequence[DmsReassignPartitionsV2ReassignmentArgs]] = None,
                            dms_reassign_partitions_v2_id: Optional[str] = None,
                            execute_at: Optional[float] = None,
                            is_schedule: Optional[bool] = None,
                            throttle: Optional[float] = None,
                            time_estimate: Optional[bool] = None)
func NewDmsReassignPartitionsV2(ctx *Context, name string, args DmsReassignPartitionsV2Args, opts ...ResourceOption) (*DmsReassignPartitionsV2, error)
public DmsReassignPartitionsV2(string name, DmsReassignPartitionsV2Args args, CustomResourceOptions? opts = null)
public DmsReassignPartitionsV2(String name, DmsReassignPartitionsV2Args args)
public DmsReassignPartitionsV2(String name, DmsReassignPartitionsV2Args args, CustomResourceOptions options)
type: opentelekomcloud:DmsReassignPartitionsV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DmsReassignPartitionsV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DmsReassignPartitionsV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DmsReassignPartitionsV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DmsReassignPartitionsV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DmsReassignPartitionsV2Args
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 dmsReassignPartitionsV2Resource = new Opentelekomcloud.DmsReassignPartitionsV2("dmsReassignPartitionsV2Resource", new()
{
    InstanceId = "string",
    Reassignments = new[]
    {
        new Opentelekomcloud.Inputs.DmsReassignPartitionsV2ReassignmentArgs
        {
            Topic = "string",
            Assignments = new[]
            {
                new Opentelekomcloud.Inputs.DmsReassignPartitionsV2ReassignmentAssignmentArgs
                {
                    Partition = 0,
                    PartitionBrokers = new[]
                    {
                        0,
                    },
                },
            },
            Brokers = new[]
            {
                0,
            },
            ReplicationFactor = 0,
        },
    },
    DmsReassignPartitionsV2Id = "string",
    ExecuteAt = 0,
    IsSchedule = false,
    Throttle = 0,
    TimeEstimate = false,
});
Copy
example, err := opentelekomcloud.NewDmsReassignPartitionsV2(ctx, "dmsReassignPartitionsV2Resource", &opentelekomcloud.DmsReassignPartitionsV2Args{
InstanceId: pulumi.String("string"),
Reassignments: .DmsReassignPartitionsV2ReassignmentArray{
&.DmsReassignPartitionsV2ReassignmentArgs{
Topic: pulumi.String("string"),
Assignments: .DmsReassignPartitionsV2ReassignmentAssignmentArray{
&.DmsReassignPartitionsV2ReassignmentAssignmentArgs{
Partition: pulumi.Float64(0),
PartitionBrokers: pulumi.Float64Array{
pulumi.Float64(0),
},
},
},
Brokers: pulumi.Float64Array{
pulumi.Float64(0),
},
ReplicationFactor: pulumi.Float64(0),
},
},
DmsReassignPartitionsV2Id: pulumi.String("string"),
ExecuteAt: pulumi.Float64(0),
IsSchedule: pulumi.Bool(false),
Throttle: pulumi.Float64(0),
TimeEstimate: pulumi.Bool(false),
})
Copy
var dmsReassignPartitionsV2Resource = new DmsReassignPartitionsV2("dmsReassignPartitionsV2Resource", DmsReassignPartitionsV2Args.builder()
    .instanceId("string")
    .reassignments(DmsReassignPartitionsV2ReassignmentArgs.builder()
        .topic("string")
        .assignments(DmsReassignPartitionsV2ReassignmentAssignmentArgs.builder()
            .partition(0)
            .partitionBrokers(0)
            .build())
        .brokers(0)
        .replicationFactor(0)
        .build())
    .dmsReassignPartitionsV2Id("string")
    .executeAt(0)
    .isSchedule(false)
    .throttle(0)
    .timeEstimate(false)
    .build());
Copy
dms_reassign_partitions_v2_resource = opentelekomcloud.DmsReassignPartitionsV2("dmsReassignPartitionsV2Resource",
    instance_id="string",
    reassignments=[{
        "topic": "string",
        "assignments": [{
            "partition": 0,
            "partition_brokers": [0],
        }],
        "brokers": [0],
        "replication_factor": 0,
    }],
    dms_reassign_partitions_v2_id="string",
    execute_at=0,
    is_schedule=False,
    throttle=0,
    time_estimate=False)
Copy
const dmsReassignPartitionsV2Resource = new opentelekomcloud.DmsReassignPartitionsV2("dmsReassignPartitionsV2Resource", {
    instanceId: "string",
    reassignments: [{
        topic: "string",
        assignments: [{
            partition: 0,
            partitionBrokers: [0],
        }],
        brokers: [0],
        replicationFactor: 0,
    }],
    dmsReassignPartitionsV2Id: "string",
    executeAt: 0,
    isSchedule: false,
    throttle: 0,
    timeEstimate: false,
});
Copy
type: opentelekomcloud:DmsReassignPartitionsV2
properties:
    dmsReassignPartitionsV2Id: string
    executeAt: 0
    instanceId: string
    isSchedule: false
    reassignments:
        - assignments:
            - partition: 0
              partitionBrokers:
                - 0
          brokers:
            - 0
          replicationFactor: 0
          topic: string
    throttle: 0
    timeEstimate: false
Copy

DmsReassignPartitionsV2 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 DmsReassignPartitionsV2 resource accepts the following input properties:

InstanceId This property is required. string
Reassignments This property is required. List<DmsReassignPartitionsV2Reassignment>
DmsReassignPartitionsV2Id string
ExecuteAt double
IsSchedule bool
Throttle double
TimeEstimate bool
InstanceId This property is required. string
Reassignments This property is required. []DmsReassignPartitionsV2ReassignmentArgs
DmsReassignPartitionsV2Id string
ExecuteAt float64
IsSchedule bool
Throttle float64
TimeEstimate bool
instanceId This property is required. String
reassignments This property is required. List<DmsReassignPartitionsV2Reassignment>
dmsReassignPartitionsV2Id String
executeAt Double
isSchedule Boolean
throttle Double
timeEstimate Boolean
instanceId This property is required. string
reassignments This property is required. DmsReassignPartitionsV2Reassignment[]
dmsReassignPartitionsV2Id string
executeAt number
isSchedule boolean
throttle number
timeEstimate boolean
instanceId This property is required. String
reassignments This property is required. List<Property Map>
dmsReassignPartitionsV2Id String
executeAt Number
isSchedule Boolean
throttle Number
timeEstimate Boolean

Outputs

All input properties are implicitly available as output properties. Additionally, the DmsReassignPartitionsV2 resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
ReassignmentTime double
Region string
Id string
The provider-assigned unique ID for this managed resource.
ReassignmentTime float64
Region string
id String
The provider-assigned unique ID for this managed resource.
reassignmentTime Double
region String
id string
The provider-assigned unique ID for this managed resource.
reassignmentTime number
region string
id str
The provider-assigned unique ID for this managed resource.
reassignment_time float
region str
id String
The provider-assigned unique ID for this managed resource.
reassignmentTime Number
region String

Look up Existing DmsReassignPartitionsV2 Resource

Get an existing DmsReassignPartitionsV2 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?: DmsReassignPartitionsV2State, opts?: CustomResourceOptions): DmsReassignPartitionsV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dms_reassign_partitions_v2_id: Optional[str] = None,
        execute_at: Optional[float] = None,
        instance_id: Optional[str] = None,
        is_schedule: Optional[bool] = None,
        reassignment_time: Optional[float] = None,
        reassignments: Optional[Sequence[DmsReassignPartitionsV2ReassignmentArgs]] = None,
        region: Optional[str] = None,
        throttle: Optional[float] = None,
        time_estimate: Optional[bool] = None) -> DmsReassignPartitionsV2
func GetDmsReassignPartitionsV2(ctx *Context, name string, id IDInput, state *DmsReassignPartitionsV2State, opts ...ResourceOption) (*DmsReassignPartitionsV2, error)
public static DmsReassignPartitionsV2 Get(string name, Input<string> id, DmsReassignPartitionsV2State? state, CustomResourceOptions? opts = null)
public static DmsReassignPartitionsV2 get(String name, Output<String> id, DmsReassignPartitionsV2State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:DmsReassignPartitionsV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.

Supporting Types

DmsReassignPartitionsV2Reassignment
, DmsReassignPartitionsV2ReassignmentArgs

topic This property is required. String
assignments List<Property Map>
brokers List<Number>
replicationFactor Number

DmsReassignPartitionsV2ReassignmentAssignment
, DmsReassignPartitionsV2ReassignmentAssignmentArgs

Partition double
PartitionBrokers List<double>
Partition float64
PartitionBrokers []float64
partition Double
partitionBrokers List<Double>
partition float
partition_brokers Sequence[float]
partition Number
partitionBrokers List<Number>

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.