tencentcloud.DlcUserDataEngineConfig
Explore with Pulumi AI
Provides a resource to create a dlc user_data_engine_config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const userDataEngineConfig = new tencentcloud.DlcUserDataEngineConfig("userDataEngineConfig", {
dataEngineConfigPairs: [{
configItem: "qq",
configValue: "ff",
}],
dataEngineId: "DataEngine-cgkvbas6",
sessionResourceTemplate: {
driverSize: "small",
executorMaxNumbers: 1,
executorNums: 1,
executorSize: "small",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
user_data_engine_config = tencentcloud.DlcUserDataEngineConfig("userDataEngineConfig",
data_engine_config_pairs=[{
"config_item": "qq",
"config_value": "ff",
}],
data_engine_id="DataEngine-cgkvbas6",
session_resource_template={
"driver_size": "small",
"executor_max_numbers": 1,
"executor_nums": 1,
"executor_size": "small",
})
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.NewDlcUserDataEngineConfig(ctx, "userDataEngineConfig", &tencentcloud.DlcUserDataEngineConfigArgs{
DataEngineConfigPairs: tencentcloud.DlcUserDataEngineConfigDataEngineConfigPairArray{
&tencentcloud.DlcUserDataEngineConfigDataEngineConfigPairArgs{
ConfigItem: pulumi.String("qq"),
ConfigValue: pulumi.String("ff"),
},
},
DataEngineId: pulumi.String("DataEngine-cgkvbas6"),
SessionResourceTemplate: &tencentcloud.DlcUserDataEngineConfigSessionResourceTemplateArgs{
DriverSize: pulumi.String("small"),
ExecutorMaxNumbers: pulumi.Float64(1),
ExecutorNums: pulumi.Float64(1),
ExecutorSize: pulumi.String("small"),
},
})
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 userDataEngineConfig = new Tencentcloud.DlcUserDataEngineConfig("userDataEngineConfig", new()
{
DataEngineConfigPairs = new[]
{
new Tencentcloud.Inputs.DlcUserDataEngineConfigDataEngineConfigPairArgs
{
ConfigItem = "qq",
ConfigValue = "ff",
},
},
DataEngineId = "DataEngine-cgkvbas6",
SessionResourceTemplate = new Tencentcloud.Inputs.DlcUserDataEngineConfigSessionResourceTemplateArgs
{
DriverSize = "small",
ExecutorMaxNumbers = 1,
ExecutorNums = 1,
ExecutorSize = "small",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DlcUserDataEngineConfig;
import com.pulumi.tencentcloud.DlcUserDataEngineConfigArgs;
import com.pulumi.tencentcloud.inputs.DlcUserDataEngineConfigDataEngineConfigPairArgs;
import com.pulumi.tencentcloud.inputs.DlcUserDataEngineConfigSessionResourceTemplateArgs;
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 userDataEngineConfig = new DlcUserDataEngineConfig("userDataEngineConfig", DlcUserDataEngineConfigArgs.builder()
.dataEngineConfigPairs(DlcUserDataEngineConfigDataEngineConfigPairArgs.builder()
.configItem("qq")
.configValue("ff")
.build())
.dataEngineId("DataEngine-cgkvbas6")
.sessionResourceTemplate(DlcUserDataEngineConfigSessionResourceTemplateArgs.builder()
.driverSize("small")
.executorMaxNumbers(1)
.executorNums(1)
.executorSize("small")
.build())
.build());
}
}
resources:
userDataEngineConfig:
type: tencentcloud:DlcUserDataEngineConfig
properties:
dataEngineConfigPairs:
- configItem: qq
configValue: ff
dataEngineId: DataEngine-cgkvbas6
sessionResourceTemplate:
driverSize: small
executorMaxNumbers: 1
executorNums: 1
executorSize: small
Create DlcUserDataEngineConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DlcUserDataEngineConfig(name: string, args: DlcUserDataEngineConfigArgs, opts?: CustomResourceOptions);
@overload
def DlcUserDataEngineConfig(resource_name: str,
args: DlcUserDataEngineConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DlcUserDataEngineConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_engine_id: Optional[str] = None,
data_engine_config_pairs: Optional[Sequence[DlcUserDataEngineConfigDataEngineConfigPairArgs]] = None,
dlc_user_data_engine_config_id: Optional[str] = None,
session_resource_template: Optional[DlcUserDataEngineConfigSessionResourceTemplateArgs] = None)
func NewDlcUserDataEngineConfig(ctx *Context, name string, args DlcUserDataEngineConfigArgs, opts ...ResourceOption) (*DlcUserDataEngineConfig, error)
public DlcUserDataEngineConfig(string name, DlcUserDataEngineConfigArgs args, CustomResourceOptions? opts = null)
public DlcUserDataEngineConfig(String name, DlcUserDataEngineConfigArgs args)
public DlcUserDataEngineConfig(String name, DlcUserDataEngineConfigArgs args, CustomResourceOptions options)
type: tencentcloud:DlcUserDataEngineConfig
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 DlcUserDataEngineConfigArgs
- 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 DlcUserDataEngineConfigArgs
- 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 DlcUserDataEngineConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlcUserDataEngineConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DlcUserDataEngineConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DlcUserDataEngineConfig 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 DlcUserDataEngineConfig resource accepts the following input properties:
- Data
Engine stringId - Engine unique id.
- Data
Engine List<DlcConfig Pairs User Data Engine Config Data Engine Config Pair> - Engine configuration items.
- Dlc
User stringData Engine Config Id - ID of the resource.
- Session
Resource DlcTemplate User Data Engine Config Session Resource Template - Job engine resource configuration template.
- Data
Engine stringId - Engine unique id.
- Data
Engine []DlcConfig Pairs User Data Engine Config Data Engine Config Pair Args - Engine configuration items.
- Dlc
User stringData Engine Config Id - ID of the resource.
- Session
Resource DlcTemplate User Data Engine Config Session Resource Template Args - Job engine resource configuration template.
- data
Engine StringId - Engine unique id.
- data
Engine List<DlcConfig Pairs User Data Engine Config Data Engine Config Pair> - Engine configuration items.
- dlc
User StringData Engine Config Id - ID of the resource.
- session
Resource DlcTemplate User Data Engine Config Session Resource Template - Job engine resource configuration template.
- data
Engine stringId - Engine unique id.
- data
Engine DlcConfig Pairs User Data Engine Config Data Engine Config Pair[] - Engine configuration items.
- dlc
User stringData Engine Config Id - ID of the resource.
- session
Resource DlcTemplate User Data Engine Config Session Resource Template - Job engine resource configuration template.
- data_
engine_ strid - Engine unique id.
- data_
engine_ Sequence[Dlcconfig_ pairs User Data Engine Config Data Engine Config Pair Args] - Engine configuration items.
- dlc_
user_ strdata_ engine_ config_ id - ID of the resource.
- session_
resource_ Dlctemplate User Data Engine Config Session Resource Template Args - Job engine resource configuration template.
- data
Engine StringId - Engine unique id.
- data
Engine List<Property Map>Config Pairs - Engine configuration items.
- dlc
User StringData Engine Config Id - ID of the resource.
- session
Resource Property MapTemplate - Job engine resource configuration template.
Outputs
All input properties are implicitly available as output properties. Additionally, the DlcUserDataEngineConfig 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 DlcUserDataEngineConfig Resource
Get an existing DlcUserDataEngineConfig 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?: DlcUserDataEngineConfigState, opts?: CustomResourceOptions): DlcUserDataEngineConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_engine_config_pairs: Optional[Sequence[DlcUserDataEngineConfigDataEngineConfigPairArgs]] = None,
data_engine_id: Optional[str] = None,
dlc_user_data_engine_config_id: Optional[str] = None,
session_resource_template: Optional[DlcUserDataEngineConfigSessionResourceTemplateArgs] = None) -> DlcUserDataEngineConfig
func GetDlcUserDataEngineConfig(ctx *Context, name string, id IDInput, state *DlcUserDataEngineConfigState, opts ...ResourceOption) (*DlcUserDataEngineConfig, error)
public static DlcUserDataEngineConfig Get(string name, Input<string> id, DlcUserDataEngineConfigState? state, CustomResourceOptions? opts = null)
public static DlcUserDataEngineConfig get(String name, Output<String> id, DlcUserDataEngineConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DlcUserDataEngineConfig 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 List<DlcConfig Pairs User Data Engine Config Data Engine Config Pair> - Engine configuration items.
- Data
Engine stringId - Engine unique id.
- Dlc
User stringData Engine Config Id - ID of the resource.
- Session
Resource DlcTemplate User Data Engine Config Session Resource Template - Job engine resource configuration template.
- Data
Engine []DlcConfig Pairs User Data Engine Config Data Engine Config Pair Args - Engine configuration items.
- Data
Engine stringId - Engine unique id.
- Dlc
User stringData Engine Config Id - ID of the resource.
- Session
Resource DlcTemplate User Data Engine Config Session Resource Template Args - Job engine resource configuration template.
- data
Engine List<DlcConfig Pairs User Data Engine Config Data Engine Config Pair> - Engine configuration items.
- data
Engine StringId - Engine unique id.
- dlc
User StringData Engine Config Id - ID of the resource.
- session
Resource DlcTemplate User Data Engine Config Session Resource Template - Job engine resource configuration template.
- data
Engine DlcConfig Pairs User Data Engine Config Data Engine Config Pair[] - Engine configuration items.
- data
Engine stringId - Engine unique id.
- dlc
User stringData Engine Config Id - ID of the resource.
- session
Resource DlcTemplate User Data Engine Config Session Resource Template - Job engine resource configuration template.
- data_
engine_ Sequence[Dlcconfig_ pairs User Data Engine Config Data Engine Config Pair Args] - Engine configuration items.
- data_
engine_ strid - Engine unique id.
- dlc_
user_ strdata_ engine_ config_ id - ID of the resource.
- session_
resource_ Dlctemplate User Data Engine Config Session Resource Template Args - Job engine resource configuration template.
- data
Engine List<Property Map>Config Pairs - Engine configuration items.
- data
Engine StringId - Engine unique id.
- dlc
User StringData Engine Config Id - ID of the resource.
- session
Resource Property MapTemplate - Job engine resource configuration template.
Supporting Types
DlcUserDataEngineConfigDataEngineConfigPair, DlcUserDataEngineConfigDataEngineConfigPairArgs
- Config
Item string - Config key.
- Config
Value string - Config value.
- Config
Item string - Config key.
- Config
Value string - Config value.
- config
Item String - Config key.
- config
Value String - Config value.
- config
Item string - Config key.
- config
Value string - Config value.
- config_
item str - Config key.
- config_
value str - Config value.
- config
Item String - Config key.
- config
Value String - Config value.
DlcUserDataEngineConfigSessionResourceTemplate, DlcUserDataEngineConfigSessionResourceTemplateArgs
- Driver
Size string - Engine driver size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
- Executor
Max doubleNumbers - Specify the executor max number (in a dynamic configuration scenario), the minimum value is 1, and the maximum value is less than the cluster specification (when ExecutorMaxNumbers is less than ExecutorNums, the value is set to ExecutorNums).
- Executor
Nums double - Specify the number of executors. The minimum value is 1 and the maximum value is less than the cluster specification.
- Executor
Size string - Engine executor size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
- Driver
Size string - Engine driver size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
- Executor
Max float64Numbers - Specify the executor max number (in a dynamic configuration scenario), the minimum value is 1, and the maximum value is less than the cluster specification (when ExecutorMaxNumbers is less than ExecutorNums, the value is set to ExecutorNums).
- Executor
Nums float64 - Specify the number of executors. The minimum value is 1 and the maximum value is less than the cluster specification.
- Executor
Size string - Engine executor size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
- driver
Size String - Engine driver size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
- executor
Max DoubleNumbers - Specify the executor max number (in a dynamic configuration scenario), the minimum value is 1, and the maximum value is less than the cluster specification (when ExecutorMaxNumbers is less than ExecutorNums, the value is set to ExecutorNums).
- executor
Nums Double - Specify the number of executors. The minimum value is 1 and the maximum value is less than the cluster specification.
- executor
Size String - Engine executor size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
- driver
Size string - Engine driver size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
- executor
Max numberNumbers - Specify the executor max number (in a dynamic configuration scenario), the minimum value is 1, and the maximum value is less than the cluster specification (when ExecutorMaxNumbers is less than ExecutorNums, the value is set to ExecutorNums).
- executor
Nums number - Specify the number of executors. The minimum value is 1 and the maximum value is less than the cluster specification.
- executor
Size string - Engine executor size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
- driver_
size str - Engine driver size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
- executor_
max_ floatnumbers - Specify the executor max number (in a dynamic configuration scenario), the minimum value is 1, and the maximum value is less than the cluster specification (when ExecutorMaxNumbers is less than ExecutorNums, the value is set to ExecutorNums).
- executor_
nums float - Specify the number of executors. The minimum value is 1 and the maximum value is less than the cluster specification.
- executor_
size str - Engine executor size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
- driver
Size String - Engine driver size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
- executor
Max NumberNumbers - Specify the executor max number (in a dynamic configuration scenario), the minimum value is 1, and the maximum value is less than the cluster specification (when ExecutorMaxNumbers is less than ExecutorNums, the value is set to ExecutorNums).
- executor
Nums Number - Specify the number of executors. The minimum value is 1 and the maximum value is less than the cluster specification.
- executor
Size String - Engine executor size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
Import
dlc user_data_engine_config can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dlcUserDataEngineConfig:DlcUserDataEngineConfig user_data_engine_config user_data_engine_config_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.