1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DlcUserDataEngineConfig
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.DlcUserDataEngineConfig

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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:

    DataEngineId string
    Engine unique id.
    DataEngineConfigPairs List<DlcUserDataEngineConfigDataEngineConfigPair>
    Engine configuration items.
    DlcUserDataEngineConfigId string
    ID of the resource.
    SessionResourceTemplate DlcUserDataEngineConfigSessionResourceTemplate
    Job engine resource configuration template.
    DataEngineId string
    Engine unique id.
    DataEngineConfigPairs []DlcUserDataEngineConfigDataEngineConfigPairArgs
    Engine configuration items.
    DlcUserDataEngineConfigId string
    ID of the resource.
    SessionResourceTemplate DlcUserDataEngineConfigSessionResourceTemplateArgs
    Job engine resource configuration template.
    dataEngineId String
    Engine unique id.
    dataEngineConfigPairs List<DlcUserDataEngineConfigDataEngineConfigPair>
    Engine configuration items.
    dlcUserDataEngineConfigId String
    ID of the resource.
    sessionResourceTemplate DlcUserDataEngineConfigSessionResourceTemplate
    Job engine resource configuration template.
    dataEngineId string
    Engine unique id.
    dataEngineConfigPairs DlcUserDataEngineConfigDataEngineConfigPair[]
    Engine configuration items.
    dlcUserDataEngineConfigId string
    ID of the resource.
    sessionResourceTemplate DlcUserDataEngineConfigSessionResourceTemplate
    Job engine resource configuration template.
    dataEngineId String
    Engine unique id.
    dataEngineConfigPairs List<Property Map>
    Engine configuration items.
    dlcUserDataEngineConfigId String
    ID of the resource.
    sessionResourceTemplate Property Map
    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.
    The following state arguments are supported:
    DataEngineConfigPairs List<DlcUserDataEngineConfigDataEngineConfigPair>
    Engine configuration items.
    DataEngineId string
    Engine unique id.
    DlcUserDataEngineConfigId string
    ID of the resource.
    SessionResourceTemplate DlcUserDataEngineConfigSessionResourceTemplate
    Job engine resource configuration template.
    DataEngineConfigPairs []DlcUserDataEngineConfigDataEngineConfigPairArgs
    Engine configuration items.
    DataEngineId string
    Engine unique id.
    DlcUserDataEngineConfigId string
    ID of the resource.
    SessionResourceTemplate DlcUserDataEngineConfigSessionResourceTemplateArgs
    Job engine resource configuration template.
    dataEngineConfigPairs List<DlcUserDataEngineConfigDataEngineConfigPair>
    Engine configuration items.
    dataEngineId String
    Engine unique id.
    dlcUserDataEngineConfigId String
    ID of the resource.
    sessionResourceTemplate DlcUserDataEngineConfigSessionResourceTemplate
    Job engine resource configuration template.
    dataEngineConfigPairs DlcUserDataEngineConfigDataEngineConfigPair[]
    Engine configuration items.
    dataEngineId string
    Engine unique id.
    dlcUserDataEngineConfigId string
    ID of the resource.
    sessionResourceTemplate DlcUserDataEngineConfigSessionResourceTemplate
    Job engine resource configuration template.
    dataEngineConfigPairs List<Property Map>
    Engine configuration items.
    dataEngineId String
    Engine unique id.
    dlcUserDataEngineConfigId String
    ID of the resource.
    sessionResourceTemplate Property Map
    Job engine resource configuration template.

    Supporting Types

    DlcUserDataEngineConfigDataEngineConfigPair, DlcUserDataEngineConfigDataEngineConfigPairArgs

    ConfigItem string
    Config key.
    ConfigValue string
    Config value.
    ConfigItem string
    Config key.
    ConfigValue string
    Config value.
    configItem String
    Config key.
    configValue String
    Config value.
    configItem string
    Config key.
    configValue string
    Config value.
    config_item str
    Config key.
    config_value str
    Config value.
    configItem String
    Config key.
    configValue String
    Config value.

    DlcUserDataEngineConfigSessionResourceTemplate, DlcUserDataEngineConfigSessionResourceTemplateArgs

    DriverSize string
    Engine driver size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
    ExecutorMaxNumbers double
    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).
    ExecutorNums double
    Specify the number of executors. The minimum value is 1 and the maximum value is less than the cluster specification.
    ExecutorSize string
    Engine executor size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
    DriverSize string
    Engine driver size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
    ExecutorMaxNumbers float64
    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).
    ExecutorNums float64
    Specify the number of executors. The minimum value is 1 and the maximum value is less than the cluster specification.
    ExecutorSize string
    Engine executor size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
    driverSize String
    Engine driver size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
    executorMaxNumbers Double
    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).
    executorNums Double
    Specify the number of executors. The minimum value is 1 and the maximum value is less than the cluster specification.
    executorSize String
    Engine executor size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
    driverSize string
    Engine driver size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
    executorMaxNumbers number
    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).
    executorNums number
    Specify the number of executors. The minimum value is 1 and the maximum value is less than the cluster specification.
    executorSize 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_numbers float
    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.
    driverSize String
    Engine driver size specification only supports: small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge.
    executorMaxNumbers Number
    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).
    executorNums Number
    Specify the number of executors. The minimum value is 1 and the maximum value is less than the cluster specification.
    executorSize 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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack