1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DlcRestartDataEngineOperation
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.DlcRestartDataEngineOperation

Explore with Pulumi AI

Provides a resource to create a dlc restart_data_engine

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const restartDataEngine = new tencentcloud.DlcRestartDataEngineOperation("restartDataEngine", {
    dataEngineId: "DataEngine-g5ds87d8",
    forcedOperation: false,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

restart_data_engine = tencentcloud.DlcRestartDataEngineOperation("restartDataEngine",
    data_engine_id="DataEngine-g5ds87d8",
    forced_operation=False)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewDlcRestartDataEngineOperation(ctx, "restartDataEngine", &tencentcloud.DlcRestartDataEngineOperationArgs{
			DataEngineId:    pulumi.String("DataEngine-g5ds87d8"),
			ForcedOperation: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var restartDataEngine = new Tencentcloud.DlcRestartDataEngineOperation("restartDataEngine", new()
    {
        DataEngineId = "DataEngine-g5ds87d8",
        ForcedOperation = false,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DlcRestartDataEngineOperation;
import com.pulumi.tencentcloud.DlcRestartDataEngineOperationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var restartDataEngine = new DlcRestartDataEngineOperation("restartDataEngine", DlcRestartDataEngineOperationArgs.builder()
            .dataEngineId("DataEngine-g5ds87d8")
            .forcedOperation(false)
            .build());

    }
}
Copy
resources:
  restartDataEngine:
    type: tencentcloud:DlcRestartDataEngineOperation
    properties:
      dataEngineId: DataEngine-g5ds87d8
      forcedOperation: false
Copy

Create DlcRestartDataEngineOperation Resource

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

Constructor syntax

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

@overload
def DlcRestartDataEngineOperation(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  data_engine_id: Optional[str] = None,
                                  dlc_restart_data_engine_operation_id: Optional[str] = None,
                                  forced_operation: Optional[bool] = None)
func NewDlcRestartDataEngineOperation(ctx *Context, name string, args DlcRestartDataEngineOperationArgs, opts ...ResourceOption) (*DlcRestartDataEngineOperation, error)
public DlcRestartDataEngineOperation(string name, DlcRestartDataEngineOperationArgs args, CustomResourceOptions? opts = null)
public DlcRestartDataEngineOperation(String name, DlcRestartDataEngineOperationArgs args)
public DlcRestartDataEngineOperation(String name, DlcRestartDataEngineOperationArgs args, CustomResourceOptions options)
type: tencentcloud:DlcRestartDataEngineOperation
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. DlcRestartDataEngineOperationArgs
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. DlcRestartDataEngineOperationArgs
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. DlcRestartDataEngineOperationArgs
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. DlcRestartDataEngineOperationArgs
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. DlcRestartDataEngineOperationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

DataEngineId This property is required. string
Engine unique id.
DlcRestartDataEngineOperationId string
ID of the resource.
ForcedOperation bool
Whether to force restart and ignore tasks.
DataEngineId This property is required. string
Engine unique id.
DlcRestartDataEngineOperationId string
ID of the resource.
ForcedOperation bool
Whether to force restart and ignore tasks.
dataEngineId This property is required. String
Engine unique id.
dlcRestartDataEngineOperationId String
ID of the resource.
forcedOperation Boolean
Whether to force restart and ignore tasks.
dataEngineId This property is required. string
Engine unique id.
dlcRestartDataEngineOperationId string
ID of the resource.
forcedOperation boolean
Whether to force restart and ignore tasks.
data_engine_id This property is required. str
Engine unique id.
dlc_restart_data_engine_operation_id str
ID of the resource.
forced_operation bool
Whether to force restart and ignore tasks.
dataEngineId This property is required. String
Engine unique id.
dlcRestartDataEngineOperationId String
ID of the resource.
forcedOperation Boolean
Whether to force restart and ignore tasks.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing DlcRestartDataEngineOperation Resource

Get an existing DlcRestartDataEngineOperation 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?: DlcRestartDataEngineOperationState, opts?: CustomResourceOptions): DlcRestartDataEngineOperation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        data_engine_id: Optional[str] = None,
        dlc_restart_data_engine_operation_id: Optional[str] = None,
        forced_operation: Optional[bool] = None) -> DlcRestartDataEngineOperation
func GetDlcRestartDataEngineOperation(ctx *Context, name string, id IDInput, state *DlcRestartDataEngineOperationState, opts ...ResourceOption) (*DlcRestartDataEngineOperation, error)
public static DlcRestartDataEngineOperation Get(string name, Input<string> id, DlcRestartDataEngineOperationState? state, CustomResourceOptions? opts = null)
public static DlcRestartDataEngineOperation get(String name, Output<String> id, DlcRestartDataEngineOperationState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:DlcRestartDataEngineOperation    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.
The following state arguments are supported:
DataEngineId string
Engine unique id.
DlcRestartDataEngineOperationId string
ID of the resource.
ForcedOperation bool
Whether to force restart and ignore tasks.
DataEngineId string
Engine unique id.
DlcRestartDataEngineOperationId string
ID of the resource.
ForcedOperation bool
Whether to force restart and ignore tasks.
dataEngineId String
Engine unique id.
dlcRestartDataEngineOperationId String
ID of the resource.
forcedOperation Boolean
Whether to force restart and ignore tasks.
dataEngineId string
Engine unique id.
dlcRestartDataEngineOperationId string
ID of the resource.
forcedOperation boolean
Whether to force restart and ignore tasks.
data_engine_id str
Engine unique id.
dlc_restart_data_engine_operation_id str
ID of the resource.
forced_operation bool
Whether to force restart and ignore tasks.
dataEngineId String
Engine unique id.
dlcRestartDataEngineOperationId String
ID of the resource.
forcedOperation Boolean
Whether to force restart and ignore tasks.

Package Details

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