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

tencentcloud.WedataFunction

Explore with Pulumi AI

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

    Provides a resource to create a wedata function

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WedataFunction("example", {
        className: "tf_class_example",
        clusterIdentifier: "emr-m6u3qgk0",
        comment: "V1",
        dbName: "tf_db_example",
        description: "description.",
        example: "example info.",
        kind: "ANALYSIS",
        paramDesc: "param info.",
        projectId: "1612982498218618880",
        resourceLists: [{
            id: "5b28bcdf-a0e6-4022-927d-927d399c4593",
            name: "untitled3-1.0-SNAPSHOT.jar",
            path: "/wedata-demo-1314991481/untitled3-1.0-SNAPSHOT.jar",
            type: "cos",
        }],
        returnDesc: "return value info.",
        type: "HIVE",
        usage: "usage info.",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WedataFunction("example",
        class_name="tf_class_example",
        cluster_identifier="emr-m6u3qgk0",
        comment="V1",
        db_name="tf_db_example",
        description="description.",
        example="example info.",
        kind="ANALYSIS",
        param_desc="param info.",
        project_id="1612982498218618880",
        resource_lists=[{
            "id": "5b28bcdf-a0e6-4022-927d-927d399c4593",
            "name": "untitled3-1.0-SNAPSHOT.jar",
            "path": "/wedata-demo-1314991481/untitled3-1.0-SNAPSHOT.jar",
            "type": "cos",
        }],
        return_desc="return value info.",
        type="HIVE",
        usage="usage info.")
    
    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.NewWedataFunction(ctx, "example", &tencentcloud.WedataFunctionArgs{
    			ClassName:         pulumi.String("tf_class_example"),
    			ClusterIdentifier: pulumi.String("emr-m6u3qgk0"),
    			Comment:           pulumi.String("V1"),
    			DbName:            pulumi.String("tf_db_example"),
    			Description:       pulumi.String("description."),
    			Example:           pulumi.String("example info."),
    			Kind:              pulumi.String("ANALYSIS"),
    			ParamDesc:         pulumi.String("param info."),
    			ProjectId:         pulumi.String("1612982498218618880"),
    			ResourceLists: tencentcloud.WedataFunctionResourceListArray{
    				&tencentcloud.WedataFunctionResourceListArgs{
    					Id:   pulumi.String("5b28bcdf-a0e6-4022-927d-927d399c4593"),
    					Name: pulumi.String("untitled3-1.0-SNAPSHOT.jar"),
    					Path: pulumi.String("/wedata-demo-1314991481/untitled3-1.0-SNAPSHOT.jar"),
    					Type: pulumi.String("cos"),
    				},
    			},
    			ReturnDesc: pulumi.String("return value info."),
    			Type:       pulumi.String("HIVE"),
    			Usage:      pulumi.String("usage info."),
    		})
    		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.WedataFunction("example", new()
        {
            ClassName = "tf_class_example",
            ClusterIdentifier = "emr-m6u3qgk0",
            Comment = "V1",
            DbName = "tf_db_example",
            Description = "description.",
            Example = "example info.",
            Kind = "ANALYSIS",
            ParamDesc = "param info.",
            ProjectId = "1612982498218618880",
            ResourceLists = new[]
            {
                new Tencentcloud.Inputs.WedataFunctionResourceListArgs
                {
                    Id = "5b28bcdf-a0e6-4022-927d-927d399c4593",
                    Name = "untitled3-1.0-SNAPSHOT.jar",
                    Path = "/wedata-demo-1314991481/untitled3-1.0-SNAPSHOT.jar",
                    Type = "cos",
                },
            },
            ReturnDesc = "return value info.",
            Type = "HIVE",
            Usage = "usage info.",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WedataFunction;
    import com.pulumi.tencentcloud.WedataFunctionArgs;
    import com.pulumi.tencentcloud.inputs.WedataFunctionResourceListArgs;
    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 WedataFunction("example", WedataFunctionArgs.builder()
                .className("tf_class_example")
                .clusterIdentifier("emr-m6u3qgk0")
                .comment("V1")
                .dbName("tf_db_example")
                .description("description.")
                .example("example info.")
                .kind("ANALYSIS")
                .paramDesc("param info.")
                .projectId("1612982498218618880")
                .resourceLists(WedataFunctionResourceListArgs.builder()
                    .id("5b28bcdf-a0e6-4022-927d-927d399c4593")
                    .name("untitled3-1.0-SNAPSHOT.jar")
                    .path("/wedata-demo-1314991481/untitled3-1.0-SNAPSHOT.jar")
                    .type("cos")
                    .build())
                .returnDesc("return value info.")
                .type("HIVE")
                .usage("usage info.")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WedataFunction
        properties:
          className: tf_class_example
          clusterIdentifier: emr-m6u3qgk0
          comment: V1
          dbName: tf_db_example
          description: description.
          example: example info.
          kind: ANALYSIS
          paramDesc: param info.
          projectId: '1612982498218618880'
          resourceLists:
            - id: 5b28bcdf-a0e6-4022-927d-927d399c4593
              name: untitled3-1.0-SNAPSHOT.jar
              path: /wedata-demo-1314991481/untitled3-1.0-SNAPSHOT.jar
              type: cos
          returnDesc: return value info.
          type: HIVE
          usage: usage info.
    

    Create WedataFunction Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new WedataFunction(name: string, args: WedataFunctionArgs, opts?: CustomResourceOptions);
    @overload
    def WedataFunction(resource_name: str,
                       args: WedataFunctionArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def WedataFunction(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       kind: Optional[str] = None,
                       resource_lists: Optional[Sequence[WedataFunctionResourceListArgs]] = None,
                       comment: Optional[str] = None,
                       db_name: Optional[str] = None,
                       description: Optional[str] = None,
                       example: Optional[str] = None,
                       cluster_identifier: Optional[str] = None,
                       param_desc: Optional[str] = None,
                       class_name: Optional[str] = None,
                       project_id: Optional[str] = None,
                       usage: Optional[str] = None,
                       return_desc: Optional[str] = None,
                       type: Optional[str] = None,
                       name: Optional[str] = None,
                       wedata_function_id: Optional[str] = None)
    func NewWedataFunction(ctx *Context, name string, args WedataFunctionArgs, opts ...ResourceOption) (*WedataFunction, error)
    public WedataFunction(string name, WedataFunctionArgs args, CustomResourceOptions? opts = null)
    public WedataFunction(String name, WedataFunctionArgs args)
    public WedataFunction(String name, WedataFunctionArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WedataFunction
    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 WedataFunctionArgs
    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 WedataFunctionArgs
    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 WedataFunctionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WedataFunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WedataFunctionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    WedataFunction 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 WedataFunction resource accepts the following input properties:

    ClassName string
    Class name of function entry.
    ClusterIdentifier string
    Cluster ID.
    Comment string
    Comment.
    DbName string
    Database name.
    Description string
    Description of the function.
    Example string
    Example of the function.
    Kind string
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    ParamDesc string
    Description of the Parameter.
    ProjectId string
    Project ID.
    ResourceLists List<WedataFunctionResourceList>
    Resource of the function, stored in WeData COS(.jar,...).
    ReturnDesc string
    Description of the Return value.
    Type string
    Function Type, Enum: HIVE, SPARK, DLC.
    Usage string
    Usage of the function.
    Name string
    Function Name.
    WedataFunctionId string
    ID of the resource.
    ClassName string
    Class name of function entry.
    ClusterIdentifier string
    Cluster ID.
    Comment string
    Comment.
    DbName string
    Database name.
    Description string
    Description of the function.
    Example string
    Example of the function.
    Kind string
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    ParamDesc string
    Description of the Parameter.
    ProjectId string
    Project ID.
    ResourceLists []WedataFunctionResourceListArgs
    Resource of the function, stored in WeData COS(.jar,...).
    ReturnDesc string
    Description of the Return value.
    Type string
    Function Type, Enum: HIVE, SPARK, DLC.
    Usage string
    Usage of the function.
    Name string
    Function Name.
    WedataFunctionId string
    ID of the resource.
    className String
    Class name of function entry.
    clusterIdentifier String
    Cluster ID.
    comment String
    Comment.
    dbName String
    Database name.
    description String
    Description of the function.
    example String
    Example of the function.
    kind String
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    paramDesc String
    Description of the Parameter.
    projectId String
    Project ID.
    resourceLists List<WedataFunctionResourceList>
    Resource of the function, stored in WeData COS(.jar,...).
    returnDesc String
    Description of the Return value.
    type String
    Function Type, Enum: HIVE, SPARK, DLC.
    usage String
    Usage of the function.
    name String
    Function Name.
    wedataFunctionId String
    ID of the resource.
    className string
    Class name of function entry.
    clusterIdentifier string
    Cluster ID.
    comment string
    Comment.
    dbName string
    Database name.
    description string
    Description of the function.
    example string
    Example of the function.
    kind string
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    paramDesc string
    Description of the Parameter.
    projectId string
    Project ID.
    resourceLists WedataFunctionResourceList[]
    Resource of the function, stored in WeData COS(.jar,...).
    returnDesc string
    Description of the Return value.
    type string
    Function Type, Enum: HIVE, SPARK, DLC.
    usage string
    Usage of the function.
    name string
    Function Name.
    wedataFunctionId string
    ID of the resource.
    class_name str
    Class name of function entry.
    cluster_identifier str
    Cluster ID.
    comment str
    Comment.
    db_name str
    Database name.
    description str
    Description of the function.
    example str
    Example of the function.
    kind str
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    param_desc str
    Description of the Parameter.
    project_id str
    Project ID.
    resource_lists Sequence[WedataFunctionResourceListArgs]
    Resource of the function, stored in WeData COS(.jar,...).
    return_desc str
    Description of the Return value.
    type str
    Function Type, Enum: HIVE, SPARK, DLC.
    usage str
    Usage of the function.
    name str
    Function Name.
    wedata_function_id str
    ID of the resource.
    className String
    Class name of function entry.
    clusterIdentifier String
    Cluster ID.
    comment String
    Comment.
    dbName String
    Database name.
    description String
    Description of the function.
    example String
    Example of the function.
    kind String
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    paramDesc String
    Description of the Parameter.
    projectId String
    Project ID.
    resourceLists List<Property Map>
    Resource of the function, stored in WeData COS(.jar,...).
    returnDesc String
    Description of the Return value.
    type String
    Function Type, Enum: HIVE, SPARK, DLC.
    usage String
    Usage of the function.
    name String
    Function Name.
    wedataFunctionId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WedataFunction resource produces the following output properties:

    FunctionId string
    Function ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    FunctionId string
    Function ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    functionId String
    Function ID.
    id String
    The provider-assigned unique ID for this managed resource.
    functionId string
    Function ID.
    id string
    The provider-assigned unique ID for this managed resource.
    function_id str
    Function ID.
    id str
    The provider-assigned unique ID for this managed resource.
    functionId String
    Function ID.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing WedataFunction Resource

    Get an existing WedataFunction 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?: WedataFunctionState, opts?: CustomResourceOptions): WedataFunction
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            class_name: Optional[str] = None,
            cluster_identifier: Optional[str] = None,
            comment: Optional[str] = None,
            db_name: Optional[str] = None,
            description: Optional[str] = None,
            example: Optional[str] = None,
            function_id: Optional[str] = None,
            kind: Optional[str] = None,
            name: Optional[str] = None,
            param_desc: Optional[str] = None,
            project_id: Optional[str] = None,
            resource_lists: Optional[Sequence[WedataFunctionResourceListArgs]] = None,
            return_desc: Optional[str] = None,
            type: Optional[str] = None,
            usage: Optional[str] = None,
            wedata_function_id: Optional[str] = None) -> WedataFunction
    func GetWedataFunction(ctx *Context, name string, id IDInput, state *WedataFunctionState, opts ...ResourceOption) (*WedataFunction, error)
    public static WedataFunction Get(string name, Input<string> id, WedataFunctionState? state, CustomResourceOptions? opts = null)
    public static WedataFunction get(String name, Output<String> id, WedataFunctionState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WedataFunction    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:
    ClassName string
    Class name of function entry.
    ClusterIdentifier string
    Cluster ID.
    Comment string
    Comment.
    DbName string
    Database name.
    Description string
    Description of the function.
    Example string
    Example of the function.
    FunctionId string
    Function ID.
    Kind string
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    Name string
    Function Name.
    ParamDesc string
    Description of the Parameter.
    ProjectId string
    Project ID.
    ResourceLists List<WedataFunctionResourceList>
    Resource of the function, stored in WeData COS(.jar,...).
    ReturnDesc string
    Description of the Return value.
    Type string
    Function Type, Enum: HIVE, SPARK, DLC.
    Usage string
    Usage of the function.
    WedataFunctionId string
    ID of the resource.
    ClassName string
    Class name of function entry.
    ClusterIdentifier string
    Cluster ID.
    Comment string
    Comment.
    DbName string
    Database name.
    Description string
    Description of the function.
    Example string
    Example of the function.
    FunctionId string
    Function ID.
    Kind string
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    Name string
    Function Name.
    ParamDesc string
    Description of the Parameter.
    ProjectId string
    Project ID.
    ResourceLists []WedataFunctionResourceListArgs
    Resource of the function, stored in WeData COS(.jar,...).
    ReturnDesc string
    Description of the Return value.
    Type string
    Function Type, Enum: HIVE, SPARK, DLC.
    Usage string
    Usage of the function.
    WedataFunctionId string
    ID of the resource.
    className String
    Class name of function entry.
    clusterIdentifier String
    Cluster ID.
    comment String
    Comment.
    dbName String
    Database name.
    description String
    Description of the function.
    example String
    Example of the function.
    functionId String
    Function ID.
    kind String
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    name String
    Function Name.
    paramDesc String
    Description of the Parameter.
    projectId String
    Project ID.
    resourceLists List<WedataFunctionResourceList>
    Resource of the function, stored in WeData COS(.jar,...).
    returnDesc String
    Description of the Return value.
    type String
    Function Type, Enum: HIVE, SPARK, DLC.
    usage String
    Usage of the function.
    wedataFunctionId String
    ID of the resource.
    className string
    Class name of function entry.
    clusterIdentifier string
    Cluster ID.
    comment string
    Comment.
    dbName string
    Database name.
    description string
    Description of the function.
    example string
    Example of the function.
    functionId string
    Function ID.
    kind string
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    name string
    Function Name.
    paramDesc string
    Description of the Parameter.
    projectId string
    Project ID.
    resourceLists WedataFunctionResourceList[]
    Resource of the function, stored in WeData COS(.jar,...).
    returnDesc string
    Description of the Return value.
    type string
    Function Type, Enum: HIVE, SPARK, DLC.
    usage string
    Usage of the function.
    wedataFunctionId string
    ID of the resource.
    class_name str
    Class name of function entry.
    cluster_identifier str
    Cluster ID.
    comment str
    Comment.
    db_name str
    Database name.
    description str
    Description of the function.
    example str
    Example of the function.
    function_id str
    Function ID.
    kind str
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    name str
    Function Name.
    param_desc str
    Description of the Parameter.
    project_id str
    Project ID.
    resource_lists Sequence[WedataFunctionResourceListArgs]
    Resource of the function, stored in WeData COS(.jar,...).
    return_desc str
    Description of the Return value.
    type str
    Function Type, Enum: HIVE, SPARK, DLC.
    usage str
    Usage of the function.
    wedata_function_id str
    ID of the resource.
    className String
    Class name of function entry.
    clusterIdentifier String
    Cluster ID.
    comment String
    Comment.
    dbName String
    Database name.
    description String
    Description of the function.
    example String
    Example of the function.
    functionId String
    Function ID.
    kind String
    Function Kind, Enum: ANALYSIS, ENCRYPTION, AGGREGATE, LOGIC, DATE_AND_TIME, MATH, CONVERSION, STRING, IP_AND_DOMAIN, WINDOW, OTHER.
    name String
    Function Name.
    paramDesc String
    Description of the Parameter.
    projectId String
    Project ID.
    resourceLists List<Property Map>
    Resource of the function, stored in WeData COS(.jar,...).
    returnDesc String
    Description of the Return value.
    type String
    Function Type, Enum: HIVE, SPARK, DLC.
    usage String
    Usage of the function.
    wedataFunctionId String
    ID of the resource.

    Supporting Types

    WedataFunctionResourceList, WedataFunctionResourceListArgs

    Name string
    Resource Name.
    Path string
    Resource Path.
    Id string
    Resource ID.
    Md5 string
    Resource MD5 Value.
    Type string
    Resource Type.
    Name string
    Resource Name.
    Path string
    Resource Path.
    Id string
    Resource ID.
    Md5 string
    Resource MD5 Value.
    Type string
    Resource Type.
    name String
    Resource Name.
    path String
    Resource Path.
    id String
    Resource ID.
    md5 String
    Resource MD5 Value.
    type String
    Resource Type.
    name string
    Resource Name.
    path string
    Resource Path.
    id string
    Resource ID.
    md5 string
    Resource MD5 Value.
    type string
    Resource Type.
    name str
    Resource Name.
    path str
    Resource Path.
    id str
    Resource ID.
    md5 str
    Resource MD5 Value.
    type str
    Resource Type.
    name String
    Resource Name.
    path String
    Resource Path.
    id String
    Resource ID.
    md5 String
    Resource MD5 Value.
    type String
    Resource Type.

    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