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 string
- The unique name of the resource.
- args DmsReassignPartitionsV2Args
- 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 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 string
- The unique name of the resource.
- args DmsReassignPartitionsV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DmsReassignPartitionsV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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,
});
example, err := opentelekomcloud.NewDmsReassignPartitionsV2(ctx, "dmsReassignPartitionsV2Resource", &opentelekomcloud.DmsReassignPartitionsV2Args{
InstanceId: pulumi.String("string"),
Reassignments: opentelekomcloud.DmsReassignPartitionsV2ReassignmentArray{
&opentelekomcloud.DmsReassignPartitionsV2ReassignmentArgs{
Topic: pulumi.String("string"),
Assignments: opentelekomcloud.DmsReassignPartitionsV2ReassignmentAssignmentArray{
&opentelekomcloud.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),
})
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());
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)
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,
});
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
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:
- Instance
Id string - Reassignments
List<Dms
Reassign Partitions V2Reassignment> - Dms
Reassign stringPartitions V2Id - Execute
At double - Is
Schedule bool - Throttle double
- Time
Estimate bool
- Instance
Id string - Reassignments
[]Dms
Reassign Partitions V2Reassignment Args - Dms
Reassign stringPartitions V2Id - Execute
At float64 - Is
Schedule bool - Throttle float64
- Time
Estimate bool
- instance
Id String - reassignments
List<Dms
Reassign Partitions V2Reassignment> - dms
Reassign StringPartitions V2Id - execute
At Double - is
Schedule Boolean - throttle Double
- time
Estimate Boolean
- instance
Id string - reassignments
Dms
Reassign Partitions V2Reassignment[] - dms
Reassign stringPartitions V2Id - execute
At number - is
Schedule boolean - throttle number
- time
Estimate boolean
- instance
Id String - reassignments List<Property Map>
- dms
Reassign StringPartitions V2Id - execute
At Number - is
Schedule Boolean - throttle Number
- time
Estimate 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.
- Reassignment
Time double - Region string
- Id string
- The provider-assigned unique ID for this managed resource.
- Reassignment
Time float64 - Region string
- id String
- The provider-assigned unique ID for this managed resource.
- reassignment
Time Double - region String
- id string
- The provider-assigned unique ID for this managed resource.
- reassignment
Time 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.
- reassignment
Time 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
- 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.
- Dms
Reassign stringPartitions V2Id - Execute
At double - Instance
Id string - Is
Schedule bool - Reassignment
Time double - Reassignments
List<Dms
Reassign Partitions V2Reassignment> - Region string
- Throttle double
- Time
Estimate bool
- Dms
Reassign stringPartitions V2Id - Execute
At float64 - Instance
Id string - Is
Schedule bool - Reassignment
Time float64 - Reassignments
[]Dms
Reassign Partitions V2Reassignment Args - Region string
- Throttle float64
- Time
Estimate bool
- dms
Reassign StringPartitions V2Id - execute
At Double - instance
Id String - is
Schedule Boolean - reassignment
Time Double - reassignments
List<Dms
Reassign Partitions V2Reassignment> - region String
- throttle Double
- time
Estimate Boolean
- dms
Reassign stringPartitions V2Id - execute
At number - instance
Id string - is
Schedule boolean - reassignment
Time number - reassignments
Dms
Reassign Partitions V2Reassignment[] - region string
- throttle number
- time
Estimate boolean
- dms
Reassign StringPartitions V2Id - execute
At Number - instance
Id String - is
Schedule Boolean - reassignment
Time Number - reassignments List<Property Map>
- region String
- throttle Number
- time
Estimate Boolean
Supporting Types
DmsReassignPartitionsV2Reassignment, DmsReassignPartitionsV2ReassignmentArgs
- Topic string
- Assignments
List<Dms
Reassign Partitions V2Reassignment Assignment> - Brokers List<double>
- Replication
Factor double
- Topic string
- Assignments
[]Dms
Reassign Partitions V2Reassignment Assignment - Brokers []float64
- Replication
Factor float64
- topic String
- assignments
List<Dms
Reassign Partitions V2Reassignment Assignment> - brokers List<Double>
- replication
Factor Double
- topic string
- assignments
Dms
Reassign Partitions V2Reassignment Assignment[] - brokers number[]
- replication
Factor number
- topic str
- assignments
Sequence[Dms
Reassign Partitions V2Reassignment Assignment] - brokers Sequence[float]
- replication_
factor float
- topic String
- assignments List<Property Map>
- brokers List<Number>
- replication
Factor Number
DmsReassignPartitionsV2ReassignmentAssignment, DmsReassignPartitionsV2ReassignmentAssignmentArgs
- Partition double
- Partition
Brokers List<double>
- Partition float64
- Partition
Brokers []float64
- partition Double
- partition
Brokers List<Double>
- partition number
- partition
Brokers number[]
- partition float
- partition_
brokers Sequence[float]
- partition Number
- partition
Brokers List<Number>
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.