tencentcloud.DlcDataEngine
Explore with Pulumi AI
Provides a resource to create a DLC data engine
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.DlcDataEngine("example", {
autoResume: false,
cidrBlock: "10.255.0.0/16",
clusterType: "spark_cu",
dataEngineName: "tf-example",
engineExecType: "BATCH",
engineGeneration: "Native",
engineType: "spark",
imageVersionName: "Standard-S 1.1",
maxClusters: 1,
message: "DLC data engine demo.",
minClusters: 1,
mode: 1,
sessionResourceTemplate: {
driverSize: "medium",
executorMaxNumbers: 7,
executorNums: 1,
executorSize: "medium",
},
size: 16,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.DlcDataEngine("example",
auto_resume=False,
cidr_block="10.255.0.0/16",
cluster_type="spark_cu",
data_engine_name="tf-example",
engine_exec_type="BATCH",
engine_generation="Native",
engine_type="spark",
image_version_name="Standard-S 1.1",
max_clusters=1,
message="DLC data engine demo.",
min_clusters=1,
mode=1,
session_resource_template={
"driver_size": "medium",
"executor_max_numbers": 7,
"executor_nums": 1,
"executor_size": "medium",
},
size=16)
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.NewDlcDataEngine(ctx, "example", &tencentcloud.DlcDataEngineArgs{
AutoResume: pulumi.Bool(false),
CidrBlock: pulumi.String("10.255.0.0/16"),
ClusterType: pulumi.String("spark_cu"),
DataEngineName: pulumi.String("tf-example"),
EngineExecType: pulumi.String("BATCH"),
EngineGeneration: pulumi.String("Native"),
EngineType: pulumi.String("spark"),
ImageVersionName: pulumi.String("Standard-S 1.1"),
MaxClusters: pulumi.Float64(1),
Message: pulumi.String("DLC data engine demo."),
MinClusters: pulumi.Float64(1),
Mode: pulumi.Float64(1),
SessionResourceTemplate: &tencentcloud.DlcDataEngineSessionResourceTemplateArgs{
DriverSize: pulumi.String("medium"),
ExecutorMaxNumbers: pulumi.Float64(7),
ExecutorNums: pulumi.Float64(1),
ExecutorSize: pulumi.String("medium"),
},
Size: pulumi.Float64(16),
})
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 example = new Tencentcloud.DlcDataEngine("example", new()
{
AutoResume = false,
CidrBlock = "10.255.0.0/16",
ClusterType = "spark_cu",
DataEngineName = "tf-example",
EngineExecType = "BATCH",
EngineGeneration = "Native",
EngineType = "spark",
ImageVersionName = "Standard-S 1.1",
MaxClusters = 1,
Message = "DLC data engine demo.",
MinClusters = 1,
Mode = 1,
SessionResourceTemplate = new Tencentcloud.Inputs.DlcDataEngineSessionResourceTemplateArgs
{
DriverSize = "medium",
ExecutorMaxNumbers = 7,
ExecutorNums = 1,
ExecutorSize = "medium",
},
Size = 16,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DlcDataEngine;
import com.pulumi.tencentcloud.DlcDataEngineArgs;
import com.pulumi.tencentcloud.inputs.DlcDataEngineSessionResourceTemplateArgs;
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 example = new DlcDataEngine("example", DlcDataEngineArgs.builder()
.autoResume(false)
.cidrBlock("10.255.0.0/16")
.clusterType("spark_cu")
.dataEngineName("tf-example")
.engineExecType("BATCH")
.engineGeneration("Native")
.engineType("spark")
.imageVersionName("Standard-S 1.1")
.maxClusters(1)
.message("DLC data engine demo.")
.minClusters(1)
.mode(1)
.sessionResourceTemplate(DlcDataEngineSessionResourceTemplateArgs.builder()
.driverSize("medium")
.executorMaxNumbers(7)
.executorNums(1)
.executorSize("medium")
.build())
.size(16)
.build());
}
}
resources:
example:
type: tencentcloud:DlcDataEngine
properties:
autoResume: false
cidrBlock: 10.255.0.0/16
clusterType: spark_cu
dataEngineName: tf-example
engineExecType: BATCH
engineGeneration: Native
engineType: spark
imageVersionName: Standard-S 1.1
maxClusters: 1
message: DLC data engine demo.
minClusters: 1
mode: 1
sessionResourceTemplate:
driverSize: medium
executorMaxNumbers: 7
executorNums: 1
executorSize: medium
size: 16
Create DlcDataEngine Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DlcDataEngine(name: string, args: DlcDataEngineArgs, opts?: CustomResourceOptions);
@overload
def DlcDataEngine(resource_name: str,
args: DlcDataEngineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DlcDataEngine(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_type: Optional[str] = None,
mode: Optional[float] = None,
auto_resume: Optional[bool] = None,
engine_type: Optional[str] = None,
data_engine_name: Optional[str] = None,
engine_generation: Optional[str] = None,
auto_suspend: Optional[bool] = None,
crontab_resume_suspend: Optional[float] = None,
crontab_resume_suspend_strategy: Optional[DlcDataEngineCrontabResumeSuspendStrategyArgs] = None,
data_engine_config_pairs: Optional[Sequence[DlcDataEngineDataEngineConfigPairArgs]] = None,
auto_suspend_time: Optional[float] = None,
default_data_engine: Optional[bool] = None,
dlc_data_engine_id: Optional[str] = None,
elastic_limit: Optional[float] = None,
elastic_switch: Optional[bool] = None,
engine_exec_type: Optional[str] = None,
auto_authorization: Optional[bool] = None,
engine_network_id: Optional[str] = None,
cidr_block: Optional[str] = None,
image_version_name: Optional[str] = None,
main_cluster_name: Optional[str] = None,
max_clusters: Optional[float] = None,
max_concurrency: Optional[float] = None,
message: Optional[str] = None,
min_clusters: Optional[float] = None,
auto_renew: Optional[float] = None,
pay_mode: Optional[float] = None,
resource_type: Optional[str] = None,
session_resource_template: Optional[DlcDataEngineSessionResourceTemplateArgs] = None,
size: Optional[float] = None,
time_span: Optional[float] = None,
time_unit: Optional[str] = None,
tolerable_queue_time: Optional[float] = None)
func NewDlcDataEngine(ctx *Context, name string, args DlcDataEngineArgs, opts ...ResourceOption) (*DlcDataEngine, error)
public DlcDataEngine(string name, DlcDataEngineArgs args, CustomResourceOptions? opts = null)
public DlcDataEngine(String name, DlcDataEngineArgs args)
public DlcDataEngine(String name, DlcDataEngineArgs args, CustomResourceOptions options)
type: tencentcloud:DlcDataEngine
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 DlcDataEngineArgs
- 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 DlcDataEngineArgs
- 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 DlcDataEngineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlcDataEngineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DlcDataEngineArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DlcDataEngine 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 DlcDataEngine resource accepts the following input properties:
- Auto
Resume bool - Whether to automatically start the clusters.
- Cluster
Type string - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - Data
Engine stringName - The name of the virtual cluster.
- Engine
Type string - The engine type. Valid values:
spark
andpresto
. - Mode double
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - bool
- Automatic authorization.
- Auto
Renew double - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - Auto
Suspend bool - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - Auto
Suspend doubleTime - The cluster auto-suspension time, which defaults to 10 min.
- Cidr
Block string - The VPC CIDR block.
- Crontab
Resume doubleSuspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - Crontab
Resume DlcSuspend Strategy Data Engine Crontab Resume Suspend Strategy - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- Data
Engine List<DlcConfig Pairs Data Engine Data Engine Config Pair> - The advanced configurations of clusters.
- Default
Data boolEngine - Whether it is the default virtual cluster.
- Dlc
Data stringEngine Id - ID of the resource.
- Elastic
Limit double - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- Elastic
Switch bool - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- Engine
Exec stringType - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - Engine
Generation string - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- Engine
Network stringId - Engine network ID.
- Image
Version stringName - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- Main
Cluster stringName - The primary cluster, which is specified when a failover cluster is created.
- Max
Clusters double - The maximum number of clusters.
- Max
Concurrency double - The max task concurrency of a cluster, which defaults to 5.
- Message string
- The description.
- Min
Clusters double - The minimum number of clusters.
- Pay
Mode double - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - Resource
Type string - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - Session
Resource DlcTemplate Data Engine Session Resource Template - The session resource configuration template for a Spark job cluster.
- Size double
- Cluster size. Required when updating.
- Time
Span double - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- Time
Unit string - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - Tolerable
Queue doubleTime - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
- Auto
Resume bool - Whether to automatically start the clusters.
- Cluster
Type string - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - Data
Engine stringName - The name of the virtual cluster.
- Engine
Type string - The engine type. Valid values:
spark
andpresto
. - Mode float64
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - bool
- Automatic authorization.
- Auto
Renew float64 - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - Auto
Suspend bool - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - Auto
Suspend float64Time - The cluster auto-suspension time, which defaults to 10 min.
- Cidr
Block string - The VPC CIDR block.
- Crontab
Resume float64Suspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - Crontab
Resume DlcSuspend Strategy Data Engine Crontab Resume Suspend Strategy Args - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- Data
Engine []DlcConfig Pairs Data Engine Data Engine Config Pair Args - The advanced configurations of clusters.
- Default
Data boolEngine - Whether it is the default virtual cluster.
- Dlc
Data stringEngine Id - ID of the resource.
- Elastic
Limit float64 - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- Elastic
Switch bool - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- Engine
Exec stringType - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - Engine
Generation string - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- Engine
Network stringId - Engine network ID.
- Image
Version stringName - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- Main
Cluster stringName - The primary cluster, which is specified when a failover cluster is created.
- Max
Clusters float64 - The maximum number of clusters.
- Max
Concurrency float64 - The max task concurrency of a cluster, which defaults to 5.
- Message string
- The description.
- Min
Clusters float64 - The minimum number of clusters.
- Pay
Mode float64 - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - Resource
Type string - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - Session
Resource DlcTemplate Data Engine Session Resource Template Args - The session resource configuration template for a Spark job cluster.
- Size float64
- Cluster size. Required when updating.
- Time
Span float64 - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- Time
Unit string - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - Tolerable
Queue float64Time - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
- auto
Resume Boolean - Whether to automatically start the clusters.
- cluster
Type String - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - data
Engine StringName - The name of the virtual cluster.
- engine
Type String - The engine type. Valid values:
spark
andpresto
. - mode Double
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - Boolean
- Automatic authorization.
- auto
Renew Double - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - auto
Suspend Boolean - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - auto
Suspend DoubleTime - The cluster auto-suspension time, which defaults to 10 min.
- cidr
Block String - The VPC CIDR block.
- crontab
Resume DoubleSuspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - crontab
Resume DlcSuspend Strategy Data Engine Crontab Resume Suspend Strategy - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- data
Engine List<DlcConfig Pairs Data Engine Data Engine Config Pair> - The advanced configurations of clusters.
- default
Data BooleanEngine - Whether it is the default virtual cluster.
- dlc
Data StringEngine Id - ID of the resource.
- elastic
Limit Double - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- elastic
Switch Boolean - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- engine
Exec StringType - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - engine
Generation String - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- engine
Network StringId - Engine network ID.
- image
Version StringName - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- main
Cluster StringName - The primary cluster, which is specified when a failover cluster is created.
- max
Clusters Double - The maximum number of clusters.
- max
Concurrency Double - The max task concurrency of a cluster, which defaults to 5.
- message String
- The description.
- min
Clusters Double - The minimum number of clusters.
- pay
Mode Double - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - resource
Type String - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - session
Resource DlcTemplate Data Engine Session Resource Template - The session resource configuration template for a Spark job cluster.
- size Double
- Cluster size. Required when updating.
- time
Span Double - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- time
Unit String - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - tolerable
Queue DoubleTime - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
- auto
Resume boolean - Whether to automatically start the clusters.
- cluster
Type string - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - data
Engine stringName - The name of the virtual cluster.
- engine
Type string - The engine type. Valid values:
spark
andpresto
. - mode number
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - boolean
- Automatic authorization.
- auto
Renew number - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - auto
Suspend boolean - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - auto
Suspend numberTime - The cluster auto-suspension time, which defaults to 10 min.
- cidr
Block string - The VPC CIDR block.
- crontab
Resume numberSuspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - crontab
Resume DlcSuspend Strategy Data Engine Crontab Resume Suspend Strategy - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- data
Engine DlcConfig Pairs Data Engine Data Engine Config Pair[] - The advanced configurations of clusters.
- default
Data booleanEngine - Whether it is the default virtual cluster.
- dlc
Data stringEngine Id - ID of the resource.
- elastic
Limit number - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- elastic
Switch boolean - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- engine
Exec stringType - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - engine
Generation string - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- engine
Network stringId - Engine network ID.
- image
Version stringName - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- main
Cluster stringName - The primary cluster, which is specified when a failover cluster is created.
- max
Clusters number - The maximum number of clusters.
- max
Concurrency number - The max task concurrency of a cluster, which defaults to 5.
- message string
- The description.
- min
Clusters number - The minimum number of clusters.
- pay
Mode number - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - resource
Type string - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - session
Resource DlcTemplate Data Engine Session Resource Template - The session resource configuration template for a Spark job cluster.
- size number
- Cluster size. Required when updating.
- time
Span number - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- time
Unit string - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - tolerable
Queue numberTime - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
- auto_
resume bool - Whether to automatically start the clusters.
- cluster_
type str - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - data_
engine_ strname - The name of the virtual cluster.
- engine_
type str - The engine type. Valid values:
spark
andpresto
. - mode float
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - bool
- Automatic authorization.
- auto_
renew float - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - auto_
suspend bool - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - auto_
suspend_ floattime - The cluster auto-suspension time, which defaults to 10 min.
- cidr_
block str - The VPC CIDR block.
- crontab_
resume_ floatsuspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - crontab_
resume_ Dlcsuspend_ strategy Data Engine Crontab Resume Suspend Strategy Args - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- data_
engine_ Sequence[Dlcconfig_ pairs Data Engine Data Engine Config Pair Args] - The advanced configurations of clusters.
- default_
data_ boolengine - Whether it is the default virtual cluster.
- dlc_
data_ strengine_ id - ID of the resource.
- elastic_
limit float - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- elastic_
switch bool - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- engine_
exec_ strtype - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - engine_
generation str - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- engine_
network_ strid - Engine network ID.
- image_
version_ strname - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- main_
cluster_ strname - The primary cluster, which is specified when a failover cluster is created.
- max_
clusters float - The maximum number of clusters.
- max_
concurrency float - The max task concurrency of a cluster, which defaults to 5.
- message str
- The description.
- min_
clusters float - The minimum number of clusters.
- pay_
mode float - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - resource_
type str - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - session_
resource_ Dlctemplate Data Engine Session Resource Template Args - The session resource configuration template for a Spark job cluster.
- size float
- Cluster size. Required when updating.
- time_
span float - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- time_
unit str - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - tolerable_
queue_ floattime - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
- auto
Resume Boolean - Whether to automatically start the clusters.
- cluster
Type String - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - data
Engine StringName - The name of the virtual cluster.
- engine
Type String - The engine type. Valid values:
spark
andpresto
. - mode Number
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - Boolean
- Automatic authorization.
- auto
Renew Number - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - auto
Suspend Boolean - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - auto
Suspend NumberTime - The cluster auto-suspension time, which defaults to 10 min.
- cidr
Block String - The VPC CIDR block.
- crontab
Resume NumberSuspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - crontab
Resume Property MapSuspend Strategy - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- data
Engine List<Property Map>Config Pairs - The advanced configurations of clusters.
- default
Data BooleanEngine - Whether it is the default virtual cluster.
- dlc
Data StringEngine Id - ID of the resource.
- elastic
Limit Number - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- elastic
Switch Boolean - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- engine
Exec StringType - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - engine
Generation String - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- engine
Network StringId - Engine network ID.
- image
Version StringName - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- main
Cluster StringName - The primary cluster, which is specified when a failover cluster is created.
- max
Clusters Number - The maximum number of clusters.
- max
Concurrency Number - The max task concurrency of a cluster, which defaults to 5.
- message String
- The description.
- min
Clusters Number - The minimum number of clusters.
- pay
Mode Number - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - resource
Type String - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - session
Resource Property MapTemplate - The session resource configuration template for a Spark job cluster.
- size Number
- Cluster size. Required when updating.
- time
Span Number - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- time
Unit String - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - tolerable
Queue NumberTime - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
Outputs
All input properties are implicitly available as output properties. Additionally, the DlcDataEngine 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 DlcDataEngine Resource
Get an existing DlcDataEngine 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?: DlcDataEngineState, opts?: CustomResourceOptions): DlcDataEngine
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_authorization: Optional[bool] = None,
auto_renew: Optional[float] = None,
auto_resume: Optional[bool] = None,
auto_suspend: Optional[bool] = None,
auto_suspend_time: Optional[float] = None,
cidr_block: Optional[str] = None,
cluster_type: Optional[str] = None,
crontab_resume_suspend: Optional[float] = None,
crontab_resume_suspend_strategy: Optional[DlcDataEngineCrontabResumeSuspendStrategyArgs] = None,
data_engine_config_pairs: Optional[Sequence[DlcDataEngineDataEngineConfigPairArgs]] = None,
data_engine_name: Optional[str] = None,
default_data_engine: Optional[bool] = None,
dlc_data_engine_id: Optional[str] = None,
elastic_limit: Optional[float] = None,
elastic_switch: Optional[bool] = None,
engine_exec_type: Optional[str] = None,
engine_generation: Optional[str] = None,
engine_network_id: Optional[str] = None,
engine_type: Optional[str] = None,
image_version_name: Optional[str] = None,
main_cluster_name: Optional[str] = None,
max_clusters: Optional[float] = None,
max_concurrency: Optional[float] = None,
message: Optional[str] = None,
min_clusters: Optional[float] = None,
mode: Optional[float] = None,
pay_mode: Optional[float] = None,
resource_type: Optional[str] = None,
session_resource_template: Optional[DlcDataEngineSessionResourceTemplateArgs] = None,
size: Optional[float] = None,
time_span: Optional[float] = None,
time_unit: Optional[str] = None,
tolerable_queue_time: Optional[float] = None) -> DlcDataEngine
func GetDlcDataEngine(ctx *Context, name string, id IDInput, state *DlcDataEngineState, opts ...ResourceOption) (*DlcDataEngine, error)
public static DlcDataEngine Get(string name, Input<string> id, DlcDataEngineState? state, CustomResourceOptions? opts = null)
public static DlcDataEngine get(String name, Output<String> id, DlcDataEngineState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DlcDataEngine 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.
- bool
- Automatic authorization.
- Auto
Renew double - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - Auto
Resume bool - Whether to automatically start the clusters.
- Auto
Suspend bool - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - Auto
Suspend doubleTime - The cluster auto-suspension time, which defaults to 10 min.
- Cidr
Block string - The VPC CIDR block.
- Cluster
Type string - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - Crontab
Resume doubleSuspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - Crontab
Resume DlcSuspend Strategy Data Engine Crontab Resume Suspend Strategy - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- Data
Engine List<DlcConfig Pairs Data Engine Data Engine Config Pair> - The advanced configurations of clusters.
- Data
Engine stringName - The name of the virtual cluster.
- Default
Data boolEngine - Whether it is the default virtual cluster.
- Dlc
Data stringEngine Id - ID of the resource.
- Elastic
Limit double - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- Elastic
Switch bool - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- Engine
Exec stringType - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - Engine
Generation string - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- Engine
Network stringId - Engine network ID.
- Engine
Type string - The engine type. Valid values:
spark
andpresto
. - Image
Version stringName - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- Main
Cluster stringName - The primary cluster, which is specified when a failover cluster is created.
- Max
Clusters double - The maximum number of clusters.
- Max
Concurrency double - The max task concurrency of a cluster, which defaults to 5.
- Message string
- The description.
- Min
Clusters double - The minimum number of clusters.
- Mode double
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - Pay
Mode double - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - Resource
Type string - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - Session
Resource DlcTemplate Data Engine Session Resource Template - The session resource configuration template for a Spark job cluster.
- Size double
- Cluster size. Required when updating.
- Time
Span double - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- Time
Unit string - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - Tolerable
Queue doubleTime - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
- bool
- Automatic authorization.
- Auto
Renew float64 - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - Auto
Resume bool - Whether to automatically start the clusters.
- Auto
Suspend bool - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - Auto
Suspend float64Time - The cluster auto-suspension time, which defaults to 10 min.
- Cidr
Block string - The VPC CIDR block.
- Cluster
Type string - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - Crontab
Resume float64Suspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - Crontab
Resume DlcSuspend Strategy Data Engine Crontab Resume Suspend Strategy Args - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- Data
Engine []DlcConfig Pairs Data Engine Data Engine Config Pair Args - The advanced configurations of clusters.
- Data
Engine stringName - The name of the virtual cluster.
- Default
Data boolEngine - Whether it is the default virtual cluster.
- Dlc
Data stringEngine Id - ID of the resource.
- Elastic
Limit float64 - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- Elastic
Switch bool - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- Engine
Exec stringType - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - Engine
Generation string - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- Engine
Network stringId - Engine network ID.
- Engine
Type string - The engine type. Valid values:
spark
andpresto
. - Image
Version stringName - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- Main
Cluster stringName - The primary cluster, which is specified when a failover cluster is created.
- Max
Clusters float64 - The maximum number of clusters.
- Max
Concurrency float64 - The max task concurrency of a cluster, which defaults to 5.
- Message string
- The description.
- Min
Clusters float64 - The minimum number of clusters.
- Mode float64
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - Pay
Mode float64 - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - Resource
Type string - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - Session
Resource DlcTemplate Data Engine Session Resource Template Args - The session resource configuration template for a Spark job cluster.
- Size float64
- Cluster size. Required when updating.
- Time
Span float64 - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- Time
Unit string - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - Tolerable
Queue float64Time - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
- Boolean
- Automatic authorization.
- auto
Renew Double - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - auto
Resume Boolean - Whether to automatically start the clusters.
- auto
Suspend Boolean - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - auto
Suspend DoubleTime - The cluster auto-suspension time, which defaults to 10 min.
- cidr
Block String - The VPC CIDR block.
- cluster
Type String - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - crontab
Resume DoubleSuspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - crontab
Resume DlcSuspend Strategy Data Engine Crontab Resume Suspend Strategy - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- data
Engine List<DlcConfig Pairs Data Engine Data Engine Config Pair> - The advanced configurations of clusters.
- data
Engine StringName - The name of the virtual cluster.
- default
Data BooleanEngine - Whether it is the default virtual cluster.
- dlc
Data StringEngine Id - ID of the resource.
- elastic
Limit Double - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- elastic
Switch Boolean - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- engine
Exec StringType - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - engine
Generation String - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- engine
Network StringId - Engine network ID.
- engine
Type String - The engine type. Valid values:
spark
andpresto
. - image
Version StringName - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- main
Cluster StringName - The primary cluster, which is specified when a failover cluster is created.
- max
Clusters Double - The maximum number of clusters.
- max
Concurrency Double - The max task concurrency of a cluster, which defaults to 5.
- message String
- The description.
- min
Clusters Double - The minimum number of clusters.
- mode Double
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - pay
Mode Double - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - resource
Type String - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - session
Resource DlcTemplate Data Engine Session Resource Template - The session resource configuration template for a Spark job cluster.
- size Double
- Cluster size. Required when updating.
- time
Span Double - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- time
Unit String - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - tolerable
Queue DoubleTime - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
- boolean
- Automatic authorization.
- auto
Renew number - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - auto
Resume boolean - Whether to automatically start the clusters.
- auto
Suspend boolean - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - auto
Suspend numberTime - The cluster auto-suspension time, which defaults to 10 min.
- cidr
Block string - The VPC CIDR block.
- cluster
Type string - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - crontab
Resume numberSuspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - crontab
Resume DlcSuspend Strategy Data Engine Crontab Resume Suspend Strategy - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- data
Engine DlcConfig Pairs Data Engine Data Engine Config Pair[] - The advanced configurations of clusters.
- data
Engine stringName - The name of the virtual cluster.
- default
Data booleanEngine - Whether it is the default virtual cluster.
- dlc
Data stringEngine Id - ID of the resource.
- elastic
Limit number - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- elastic
Switch boolean - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- engine
Exec stringType - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - engine
Generation string - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- engine
Network stringId - Engine network ID.
- engine
Type string - The engine type. Valid values:
spark
andpresto
. - image
Version stringName - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- main
Cluster stringName - The primary cluster, which is specified when a failover cluster is created.
- max
Clusters number - The maximum number of clusters.
- max
Concurrency number - The max task concurrency of a cluster, which defaults to 5.
- message string
- The description.
- min
Clusters number - The minimum number of clusters.
- mode number
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - pay
Mode number - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - resource
Type string - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - session
Resource DlcTemplate Data Engine Session Resource Template - The session resource configuration template for a Spark job cluster.
- size number
- Cluster size. Required when updating.
- time
Span number - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- time
Unit string - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - tolerable
Queue numberTime - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
- bool
- Automatic authorization.
- auto_
renew float - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - auto_
resume bool - Whether to automatically start the clusters.
- auto_
suspend bool - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - auto_
suspend_ floattime - The cluster auto-suspension time, which defaults to 10 min.
- cidr_
block str - The VPC CIDR block.
- cluster_
type str - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - crontab_
resume_ floatsuspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - crontab_
resume_ Dlcsuspend_ strategy Data Engine Crontab Resume Suspend Strategy Args - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- data_
engine_ Sequence[Dlcconfig_ pairs Data Engine Data Engine Config Pair Args] - The advanced configurations of clusters.
- data_
engine_ strname - The name of the virtual cluster.
- default_
data_ boolengine - Whether it is the default virtual cluster.
- dlc_
data_ strengine_ id - ID of the resource.
- elastic_
limit float - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- elastic_
switch bool - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- engine_
exec_ strtype - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - engine_
generation str - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- engine_
network_ strid - Engine network ID.
- engine_
type str - The engine type. Valid values:
spark
andpresto
. - image_
version_ strname - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- main_
cluster_ strname - The primary cluster, which is specified when a failover cluster is created.
- max_
clusters float - The maximum number of clusters.
- max_
concurrency float - The max task concurrency of a cluster, which defaults to 5.
- message str
- The description.
- min_
clusters float - The minimum number of clusters.
- mode float
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - pay_
mode float - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - resource_
type str - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - session_
resource_ Dlctemplate Data Engine Session Resource Template Args - The session resource configuration template for a Spark job cluster.
- size float
- Cluster size. Required when updating.
- time_
span float - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- time_
unit str - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - tolerable_
queue_ floattime - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
- Boolean
- Automatic authorization.
- auto
Renew Number - The auto-renewal status of the resource. For the postpaid mode, no renewal is required, and the value is fixed to
0
. For the prepaid mode, valid values are0
(manual),1
(auto), and2
(no renewal). If this parameter is set to0
for a key account in the prepaid mode, auto-renewal applies. It defaults to0
. - auto
Resume Boolean - Whether to automatically start the clusters.
- auto
Suspend Boolean - Whether to automatically suspend clusters. Valid values:
false
(default, no) andtrue
(yes). - auto
Suspend NumberTime - The cluster auto-suspension time, which defaults to 10 min.
- cidr
Block String - The VPC CIDR block.
- cluster
Type String - The cluster type. Valid values:
spark_private
,presto_private
,presto_cu
, andspark_cu
. - crontab
Resume NumberSuspend - Whether to enable scheduled start and suspension of clusters. Valid values:
0
(disable) and1
(enable). Note: This policy and the auto-suspension policy are mutually exclusive. - crontab
Resume Property MapSuspend Strategy - The complex policy for scheduled start and suspension, including the start/suspension time and suspension policy.
- data
Engine List<Property Map>Config Pairs - The advanced configurations of clusters.
- data
Engine StringName - The name of the virtual cluster.
- default
Data BooleanEngine - Whether it is the default virtual cluster.
- dlc
Data StringEngine Id - ID of the resource.
- elastic
Limit Number - The upper limit (in CUs) for scaling of the monthly subscribed Spark job cluster.
- elastic
Switch Boolean - Whether to enable the scaling feature for a monthly subscribed Spark job cluster.
- engine
Exec StringType - The type of tasks to be executed by the engine, which defaults to SQL. Valid values:
SQL
andBATCH
. - engine
Generation String - Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.
- engine
Network StringId - Engine network ID.
- engine
Type String - The engine type. Valid values:
spark
andpresto
. - image
Version StringName - The version name of cluster image, such as SuperSQL-P 1.1 and SuperSQL-S 3.2. If no value is passed in, a cluster is created using the latest image version.
- main
Cluster StringName - The primary cluster, which is specified when a failover cluster is created.
- max
Clusters Number - The maximum number of clusters.
- max
Concurrency Number - The max task concurrency of a cluster, which defaults to 5.
- message String
- The description.
- min
Clusters Number - The minimum number of clusters.
- mode Number
- The billing mode. Valid values:
0
(shared engine),1
(pay-as-you-go), and2
(monthly subscription). - pay
Mode Number - The pay mode. Valid value:
0
(postpaid, default) and1
(prepaid) (currently not available). - resource
Type String - The resource type. Valid values:
Standard_CU
(standard) andMemory_CU
(memory). - session
Resource Property MapTemplate - The session resource configuration template for a Spark job cluster.
- size Number
- Cluster size. Required when updating.
- time
Span Number - The usage duration of the resource. Postpaid: Fill in 3,600 as a fixed figure; prepaid: fill in a figure equal to or bigger than 1 which means purchasing resources for one month. The maximum figure is not bigger than 120. The default value is 1.
- time
Unit String - The unit of the resource period. Valid values:
s
(default) for the postpaid mode andm
for the prepaid mode. - tolerable
Queue NumberTime - The task queue time limit, which defaults to 0. When the actual queue time exceeds the value set here, scale-out may be triggered. Setting this parameter to 0 represents that scale-out may be triggered immediately after a task queues up.
Supporting Types
DlcDataEngineCrontabResumeSuspendStrategy, DlcDataEngineCrontabResumeSuspendStrategyArgs
- Resume
Time string - Scheduled starting time, such as 8: 00 a.m. on Monday and Wednesday.
- Suspend
Strategy double - The suspension setting. Valid values:
0
(suspension after task end, default) and1
(force suspension). - Suspend
Time string - Scheduled suspension time, such as 8: 00 p.m. on Monday and Wednesday.
- Resume
Time string - Scheduled starting time, such as 8: 00 a.m. on Monday and Wednesday.
- Suspend
Strategy float64 - The suspension setting. Valid values:
0
(suspension after task end, default) and1
(force suspension). - Suspend
Time string - Scheduled suspension time, such as 8: 00 p.m. on Monday and Wednesday.
- resume
Time String - Scheduled starting time, such as 8: 00 a.m. on Monday and Wednesday.
- suspend
Strategy Double - The suspension setting. Valid values:
0
(suspension after task end, default) and1
(force suspension). - suspend
Time String - Scheduled suspension time, such as 8: 00 p.m. on Monday and Wednesday.
- resume
Time string - Scheduled starting time, such as 8: 00 a.m. on Monday and Wednesday.
- suspend
Strategy number - The suspension setting. Valid values:
0
(suspension after task end, default) and1
(force suspension). - suspend
Time string - Scheduled suspension time, such as 8: 00 p.m. on Monday and Wednesday.
- resume_
time str - Scheduled starting time, such as 8: 00 a.m. on Monday and Wednesday.
- suspend_
strategy float - The suspension setting. Valid values:
0
(suspension after task end, default) and1
(force suspension). - suspend_
time str - Scheduled suspension time, such as 8: 00 p.m. on Monday and Wednesday.
- resume
Time String - Scheduled starting time, such as 8: 00 a.m. on Monday and Wednesday.
- suspend
Strategy Number - The suspension setting. Valid values:
0
(suspension after task end, default) and1
(force suspension). - suspend
Time String - Scheduled suspension time, such as 8: 00 p.m. on Monday and Wednesday.
DlcDataEngineDataEngineConfigPair, DlcDataEngineDataEngineConfigPairArgs
- Config
Item string - Configuration items.
- Config
Value string - Configuration value.
- Config
Item string - Configuration items.
- Config
Value string - Configuration value.
- config
Item String - Configuration items.
- config
Value String - Configuration value.
- config
Item string - Configuration items.
- config
Value string - Configuration value.
- config_
item str - Configuration items.
- config_
value str - Configuration value.
- config
Item String - Configuration items.
- config
Value String - Configuration value.
DlcDataEngineSessionResourceTemplate, DlcDataEngineSessionResourceTemplateArgs
- Driver
Size string - The driver size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - Executor
Max doubleNumbers - The maximum executor count (in dynamic mode). The minimum value is 1 and the maximum value is less than the cluster specification. If you set
ExecutorMaxNumbers
to a value smaller than that ofExecutorNums
, the value ofExecutorMaxNumbers
is automatically changed to that ofExecutorNums
. - Executor
Nums double - The executor count. The minimum value is 1 and the maximum value is less than the cluster specification.
- Executor
Size string - The executor size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - Running
Time List<DlcParameters Data Engine Session Resource Template Running Time Parameter> - The running time parameters of the session resource configuration template for a Spark job cluster.
- Driver
Size string - The driver size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - Executor
Max float64Numbers - The maximum executor count (in dynamic mode). The minimum value is 1 and the maximum value is less than the cluster specification. If you set
ExecutorMaxNumbers
to a value smaller than that ofExecutorNums
, the value ofExecutorMaxNumbers
is automatically changed to that ofExecutorNums
. - Executor
Nums float64 - The executor count. The minimum value is 1 and the maximum value is less than the cluster specification.
- Executor
Size string - The executor size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - Running
Time []DlcParameters Data Engine Session Resource Template Running Time Parameter - The running time parameters of the session resource configuration template for a Spark job cluster.
- driver
Size String - The driver size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - executor
Max DoubleNumbers - The maximum executor count (in dynamic mode). The minimum value is 1 and the maximum value is less than the cluster specification. If you set
ExecutorMaxNumbers
to a value smaller than that ofExecutorNums
, the value ofExecutorMaxNumbers
is automatically changed to that ofExecutorNums
. - executor
Nums Double - The executor count. The minimum value is 1 and the maximum value is less than the cluster specification.
- executor
Size String - The executor size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - running
Time List<DlcParameters Data Engine Session Resource Template Running Time Parameter> - The running time parameters of the session resource configuration template for a Spark job cluster.
- driver
Size string - The driver size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - executor
Max numberNumbers - The maximum executor count (in dynamic mode). The minimum value is 1 and the maximum value is less than the cluster specification. If you set
ExecutorMaxNumbers
to a value smaller than that ofExecutorNums
, the value ofExecutorMaxNumbers
is automatically changed to that ofExecutorNums
. - executor
Nums number - The executor count. The minimum value is 1 and the maximum value is less than the cluster specification.
- executor
Size string - The executor size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - running
Time DlcParameters Data Engine Session Resource Template Running Time Parameter[] - The running time parameters of the session resource configuration template for a Spark job cluster.
- driver_
size str - The driver size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - executor_
max_ floatnumbers - The maximum executor count (in dynamic mode). The minimum value is 1 and the maximum value is less than the cluster specification. If you set
ExecutorMaxNumbers
to a value smaller than that ofExecutorNums
, the value ofExecutorMaxNumbers
is automatically changed to that ofExecutorNums
. - executor_
nums float - The executor count. The minimum value is 1 and the maximum value is less than the cluster specification.
- executor_
size str - The executor size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - running_
time_ Sequence[Dlcparameters Data Engine Session Resource Template Running Time Parameter] - The running time parameters of the session resource configuration template for a Spark job cluster.
- driver
Size String - The driver size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - executor
Max NumberNumbers - The maximum executor count (in dynamic mode). The minimum value is 1 and the maximum value is less than the cluster specification. If you set
ExecutorMaxNumbers
to a value smaller than that ofExecutorNums
, the value ofExecutorMaxNumbers
is automatically changed to that ofExecutorNums
. - executor
Nums Number - The executor count. The minimum value is 1 and the maximum value is less than the cluster specification.
- executor
Size String - The executor size. Valid values for the standard resource type:
small
,medium
,large
, andxlarge
. Valid values for the memory resource type:m.small
,m.medium
,m.large
, andm.xlarge
. - running
Time List<Property Map>Parameters - The running time parameters of the session resource configuration template for a Spark job cluster.
DlcDataEngineSessionResourceTemplateRunningTimeParameter, DlcDataEngineSessionResourceTemplateRunningTimeParameterArgs
- Config
Item string - Configuration items.
- Config
Value string - Configuration value.
- Config
Item string - Configuration items.
- Config
Value string - Configuration value.
- config
Item String - Configuration items.
- config
Value String - Configuration value.
- config
Item string - Configuration items.
- config
Value string - Configuration value.
- config_
item str - Configuration items.
- config_
value str - Configuration value.
- config
Item String - Configuration items.
- config
Value String - Configuration value.
Import
DLC data engine can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dlcDataEngine:DlcDataEngine example tf-example#DataEngine-d3gk8r5h
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.