tencentcloud.DlcRenewDataEngineOperation
Explore with Pulumi AI
Provides a resource to create a dlc renew_data_engine
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const renewDataEngine = new tencentcloud.DlcRenewDataEngineOperation("renewDataEngine", {
dataEngineName: "testEngine",
payMode: 1,
renewFlag: 1,
timeSpan: 3600,
timeUnit: "m",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
renew_data_engine = tencentcloud.DlcRenewDataEngineOperation("renewDataEngine",
data_engine_name="testEngine",
pay_mode=1,
renew_flag=1,
time_span=3600,
time_unit="m")
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.NewDlcRenewDataEngineOperation(ctx, "renewDataEngine", &tencentcloud.DlcRenewDataEngineOperationArgs{
DataEngineName: pulumi.String("testEngine"),
PayMode: pulumi.Float64(1),
RenewFlag: pulumi.Float64(1),
TimeSpan: pulumi.Float64(3600),
TimeUnit: pulumi.String("m"),
})
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 renewDataEngine = new Tencentcloud.DlcRenewDataEngineOperation("renewDataEngine", new()
{
DataEngineName = "testEngine",
PayMode = 1,
RenewFlag = 1,
TimeSpan = 3600,
TimeUnit = "m",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DlcRenewDataEngineOperation;
import com.pulumi.tencentcloud.DlcRenewDataEngineOperationArgs;
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 renewDataEngine = new DlcRenewDataEngineOperation("renewDataEngine", DlcRenewDataEngineOperationArgs.builder()
.dataEngineName("testEngine")
.payMode(1)
.renewFlag(1)
.timeSpan(3600)
.timeUnit("m")
.build());
}
}
resources:
renewDataEngine:
type: tencentcloud:DlcRenewDataEngineOperation
properties:
dataEngineName: testEngine
payMode: 1
renewFlag: 1
timeSpan: 3600
timeUnit: m
Create DlcRenewDataEngineOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DlcRenewDataEngineOperation(name: string, args: DlcRenewDataEngineOperationArgs, opts?: CustomResourceOptions);
@overload
def DlcRenewDataEngineOperation(resource_name: str,
args: DlcRenewDataEngineOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DlcRenewDataEngineOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_engine_name: Optional[str] = None,
time_span: Optional[float] = None,
dlc_renew_data_engine_operation_id: Optional[str] = None,
pay_mode: Optional[float] = None,
renew_flag: Optional[float] = None,
time_unit: Optional[str] = None)
func NewDlcRenewDataEngineOperation(ctx *Context, name string, args DlcRenewDataEngineOperationArgs, opts ...ResourceOption) (*DlcRenewDataEngineOperation, error)
public DlcRenewDataEngineOperation(string name, DlcRenewDataEngineOperationArgs args, CustomResourceOptions? opts = null)
public DlcRenewDataEngineOperation(String name, DlcRenewDataEngineOperationArgs args)
public DlcRenewDataEngineOperation(String name, DlcRenewDataEngineOperationArgs args, CustomResourceOptions options)
type: tencentcloud:DlcRenewDataEngineOperation
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 DlcRenewDataEngineOperationArgs
- 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 DlcRenewDataEngineOperationArgs
- 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 DlcRenewDataEngineOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlcRenewDataEngineOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DlcRenewDataEngineOperationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DlcRenewDataEngineOperation 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 DlcRenewDataEngineOperation resource accepts the following input properties:
- Data
Engine stringName - Data engine name.
- Time
Span double - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- Dlc
Renew stringData Engine Operation Id - ID of the resource.
- Pay
Mode double - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- Renew
Flag double - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- Time
Unit string - Engine TimeUnit, prePay: use m(default), postPay: use h.
- Data
Engine stringName - Data engine name.
- Time
Span float64 - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- Dlc
Renew stringData Engine Operation Id - ID of the resource.
- Pay
Mode float64 - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- Renew
Flag float64 - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- Time
Unit string - Engine TimeUnit, prePay: use m(default), postPay: use h.
- data
Engine StringName - Data engine name.
- time
Span Double - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- dlc
Renew StringData Engine Operation Id - ID of the resource.
- pay
Mode Double - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- renew
Flag Double - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- time
Unit String - Engine TimeUnit, prePay: use m(default), postPay: use h.
- data
Engine stringName - Data engine name.
- time
Span number - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- dlc
Renew stringData Engine Operation Id - ID of the resource.
- pay
Mode number - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- renew
Flag number - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- time
Unit string - Engine TimeUnit, prePay: use m(default), postPay: use h.
- data_
engine_ strname - Data engine name.
- time_
span float - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- dlc_
renew_ strdata_ engine_ operation_ id - ID of the resource.
- pay_
mode float - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- renew_
flag float - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- time_
unit str - Engine TimeUnit, prePay: use m(default), postPay: use h.
- data
Engine StringName - Data engine name.
- time
Span Number - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- dlc
Renew StringData Engine Operation Id - ID of the resource.
- pay
Mode Number - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- renew
Flag Number - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- time
Unit String - Engine TimeUnit, prePay: use m(default), postPay: use h.
Outputs
All input properties are implicitly available as output properties. Additionally, the DlcRenewDataEngineOperation 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 DlcRenewDataEngineOperation Resource
Get an existing DlcRenewDataEngineOperation 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?: DlcRenewDataEngineOperationState, opts?: CustomResourceOptions): DlcRenewDataEngineOperation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_engine_name: Optional[str] = None,
dlc_renew_data_engine_operation_id: Optional[str] = None,
pay_mode: Optional[float] = None,
renew_flag: Optional[float] = None,
time_span: Optional[float] = None,
time_unit: Optional[str] = None) -> DlcRenewDataEngineOperation
func GetDlcRenewDataEngineOperation(ctx *Context, name string, id IDInput, state *DlcRenewDataEngineOperationState, opts ...ResourceOption) (*DlcRenewDataEngineOperation, error)
public static DlcRenewDataEngineOperation Get(string name, Input<string> id, DlcRenewDataEngineOperationState? state, CustomResourceOptions? opts = null)
public static DlcRenewDataEngineOperation get(String name, Output<String> id, DlcRenewDataEngineOperationState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DlcRenewDataEngineOperation 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 stringName - Data engine name.
- Dlc
Renew stringData Engine Operation Id - ID of the resource.
- Pay
Mode double - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- Renew
Flag double - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- Time
Span double - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- Time
Unit string - Engine TimeUnit, prePay: use m(default), postPay: use h.
- Data
Engine stringName - Data engine name.
- Dlc
Renew stringData Engine Operation Id - ID of the resource.
- Pay
Mode float64 - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- Renew
Flag float64 - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- Time
Span float64 - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- Time
Unit string - Engine TimeUnit, prePay: use m(default), postPay: use h.
- data
Engine StringName - Data engine name.
- dlc
Renew StringData Engine Operation Id - ID of the resource.
- pay
Mode Double - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- renew
Flag Double - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- time
Span Double - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- time
Unit String - Engine TimeUnit, prePay: use m(default), postPay: use h.
- data
Engine stringName - Data engine name.
- dlc
Renew stringData Engine Operation Id - ID of the resource.
- pay
Mode number - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- renew
Flag number - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- time
Span number - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- time
Unit string - Engine TimeUnit, prePay: use m(default), postPay: use h.
- data_
engine_ strname - Data engine name.
- dlc_
renew_ strdata_ engine_ operation_ id - ID of the resource.
- pay_
mode float - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- renew_
flag float - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- time_
span float - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- time_
unit str - Engine TimeUnit, prePay: use m(default), postPay: use h.
- data
Engine StringName - Data engine name.
- dlc
Renew StringData Engine Operation Id - ID of the resource.
- pay
Mode Number - Engine pay mode type, only support 0: postPay, 1: prePay(default).
- renew
Flag Number - Automatic renewal flag, 0, initial state, automatic renewal is not performed by default. if the user has prepaid non-stop service privileges, automatic renewal will occur. 1: Automatic renewal. 2: make it clear that there will be no automatic renewal. if this parameter is not passed, the default value is 0.
- time
Span Number - Engine TimeSpan, prePay: minimum of 1, representing one month of purchasing resources, with a maximum of 120, default 3600, postPay: fixed fee of 3600.
- time
Unit String - Engine TimeUnit, prePay: use m(default), postPay: use h.
Import
dlc renew_data_engine can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dlcRenewDataEngineOperation:DlcRenewDataEngineOperation renew_data_engine renew_data_engine_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.