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,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
restart_data_engine = tencentcloud.DlcRestartDataEngineOperation("restartDataEngine",
data_engine_id="DataEngine-g5ds87d8",
forced_operation=False)
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
})
}
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,
});
});
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());
}
}
resources:
restartDataEngine:
type: tencentcloud:DlcRestartDataEngineOperation
properties:
dataEngineId: DataEngine-g5ds87d8
forcedOperation: false
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 string
- The unique name of the resource.
- args DlcRestartDataEngineOperationArgs
- 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 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 string
- The unique name of the resource.
- args DlcRestartDataEngineOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlcRestartDataEngineOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Data
Engine stringId - Engine unique id.
- Dlc
Restart stringData Engine Operation Id - ID of the resource.
- Forced
Operation bool - Whether to force restart and ignore tasks.
- Data
Engine stringId - Engine unique id.
- Dlc
Restart stringData Engine Operation Id - ID of the resource.
- Forced
Operation bool - Whether to force restart and ignore tasks.
- data
Engine StringId - Engine unique id.
- dlc
Restart StringData Engine Operation Id - ID of the resource.
- forced
Operation Boolean - Whether to force restart and ignore tasks.
- data
Engine stringId - Engine unique id.
- dlc
Restart stringData Engine Operation Id - ID of the resource.
- forced
Operation boolean - Whether to force restart and ignore tasks.
- data_
engine_ strid - Engine unique id.
- dlc_
restart_ strdata_ engine_ operation_ id - ID of the resource.
- forced_
operation bool - Whether to force restart and ignore tasks.
- data
Engine StringId - Engine unique id.
- dlc
Restart StringData Engine Operation Id - ID of the resource.
- forced
Operation 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
- 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.
- Data
Engine stringId - Engine unique id.
- Dlc
Restart stringData Engine Operation Id - ID of the resource.
- Forced
Operation bool - Whether to force restart and ignore tasks.
- Data
Engine stringId - Engine unique id.
- Dlc
Restart stringData Engine Operation Id - ID of the resource.
- Forced
Operation bool - Whether to force restart and ignore tasks.
- data
Engine StringId - Engine unique id.
- dlc
Restart StringData Engine Operation Id - ID of the resource.
- forced
Operation Boolean - Whether to force restart and ignore tasks.
- data
Engine stringId - Engine unique id.
- dlc
Restart stringData Engine Operation Id - ID of the resource.
- forced
Operation boolean - Whether to force restart and ignore tasks.
- data_
engine_ strid - Engine unique id.
- dlc_
restart_ strdata_ engine_ operation_ id - ID of the resource.
- forced_
operation bool - Whether to force restart and ignore tasks.
- data
Engine StringId - Engine unique id.
- dlc
Restart StringData Engine Operation Id - ID of the resource.
- forced
Operation 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.