tencentcloud.WedataFunction
Explore with Pulumi AI
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:
- Class
Name string - Class name of function entry.
- Cluster
Identifier string - Cluster ID.
- Comment string
- Comment.
- Db
Name 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.
- Param
Desc string - Description of the Parameter.
- Project
Id string - Project ID.
- Resource
Lists List<WedataFunction Resource List> - Resource of the function, stored in WeData COS(.jar,...).
- Return
Desc string - Description of the Return value.
- Type string
- Function Type, Enum: HIVE, SPARK, DLC.
- Usage string
- Usage of the function.
- Name string
- Function Name.
- Wedata
Function stringId - ID of the resource.
- Class
Name string - Class name of function entry.
- Cluster
Identifier string - Cluster ID.
- Comment string
- Comment.
- Db
Name 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.
- Param
Desc string - Description of the Parameter.
- Project
Id string - Project ID.
- Resource
Lists []WedataFunction Resource List Args - Resource of the function, stored in WeData COS(.jar,...).
- Return
Desc string - Description of the Return value.
- Type string
- Function Type, Enum: HIVE, SPARK, DLC.
- Usage string
- Usage of the function.
- Name string
- Function Name.
- Wedata
Function stringId - ID of the resource.
- class
Name String - Class name of function entry.
- cluster
Identifier String - Cluster ID.
- comment String
- Comment.
- db
Name 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.
- param
Desc String - Description of the Parameter.
- project
Id String - Project ID.
- resource
Lists List<WedataFunction Resource List> - Resource of the function, stored in WeData COS(.jar,...).
- return
Desc String - Description of the Return value.
- type String
- Function Type, Enum: HIVE, SPARK, DLC.
- usage String
- Usage of the function.
- name String
- Function Name.
- wedata
Function StringId - ID of the resource.
- class
Name string - Class name of function entry.
- cluster
Identifier string - Cluster ID.
- comment string
- Comment.
- db
Name 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.
- param
Desc string - Description of the Parameter.
- project
Id string - Project ID.
- resource
Lists WedataFunction Resource List[] - Resource of the function, stored in WeData COS(.jar,...).
- return
Desc string - Description of the Return value.
- type string
- Function Type, Enum: HIVE, SPARK, DLC.
- usage string
- Usage of the function.
- name string
- Function Name.
- wedata
Function stringId - 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[WedataFunction Resource List Args] - 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_ strid - ID of the resource.
- class
Name String - Class name of function entry.
- cluster
Identifier String - Cluster ID.
- comment String
- Comment.
- db
Name 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.
- param
Desc String - Description of the Parameter.
- project
Id String - Project ID.
- resource
Lists List<Property Map> - Resource of the function, stored in WeData COS(.jar,...).
- return
Desc String - Description of the Return value.
- type String
- Function Type, Enum: HIVE, SPARK, DLC.
- usage String
- Usage of the function.
- name String
- Function Name.
- wedata
Function StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WedataFunction resource produces the following output properties:
- Function
Id string - Function ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Function
Id string - Function ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- function
Id String - Function ID.
- id String
- The provider-assigned unique ID for this managed resource.
- function
Id 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.
- function
Id 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.
- Class
Name string - Class name of function entry.
- Cluster
Identifier string - Cluster ID.
- Comment string
- Comment.
- Db
Name string - Database name.
- Description string
- Description of the function.
- Example string
- Example of the function.
- Function
Id 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.
- Param
Desc string - Description of the Parameter.
- Project
Id string - Project ID.
- Resource
Lists List<WedataFunction Resource List> - Resource of the function, stored in WeData COS(.jar,...).
- Return
Desc string - Description of the Return value.
- Type string
- Function Type, Enum: HIVE, SPARK, DLC.
- Usage string
- Usage of the function.
- Wedata
Function stringId - ID of the resource.
- Class
Name string - Class name of function entry.
- Cluster
Identifier string - Cluster ID.
- Comment string
- Comment.
- Db
Name string - Database name.
- Description string
- Description of the function.
- Example string
- Example of the function.
- Function
Id 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.
- Param
Desc string - Description of the Parameter.
- Project
Id string - Project ID.
- Resource
Lists []WedataFunction Resource List Args - Resource of the function, stored in WeData COS(.jar,...).
- Return
Desc string - Description of the Return value.
- Type string
- Function Type, Enum: HIVE, SPARK, DLC.
- Usage string
- Usage of the function.
- Wedata
Function stringId - ID of the resource.
- class
Name String - Class name of function entry.
- cluster
Identifier String - Cluster ID.
- comment String
- Comment.
- db
Name String - Database name.
- description String
- Description of the function.
- example String
- Example of the function.
- function
Id 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.
- param
Desc String - Description of the Parameter.
- project
Id String - Project ID.
- resource
Lists List<WedataFunction Resource List> - Resource of the function, stored in WeData COS(.jar,...).
- return
Desc String - Description of the Return value.
- type String
- Function Type, Enum: HIVE, SPARK, DLC.
- usage String
- Usage of the function.
- wedata
Function StringId - ID of the resource.
- class
Name string - Class name of function entry.
- cluster
Identifier string - Cluster ID.
- comment string
- Comment.
- db
Name string - Database name.
- description string
- Description of the function.
- example string
- Example of the function.
- function
Id 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.
- param
Desc string - Description of the Parameter.
- project
Id string - Project ID.
- resource
Lists WedataFunction Resource List[] - Resource of the function, stored in WeData COS(.jar,...).
- return
Desc string - Description of the Return value.
- type string
- Function Type, Enum: HIVE, SPARK, DLC.
- usage string
- Usage of the function.
- wedata
Function stringId - 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[WedataFunction Resource List Args] - 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_ strid - ID of the resource.
- class
Name String - Class name of function entry.
- cluster
Identifier String - Cluster ID.
- comment String
- Comment.
- db
Name String - Database name.
- description String
- Description of the function.
- example String
- Example of the function.
- function
Id 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.
- param
Desc String - Description of the Parameter.
- project
Id String - Project ID.
- resource
Lists List<Property Map> - Resource of the function, stored in WeData COS(.jar,...).
- return
Desc String - Description of the Return value.
- type String
- Function Type, Enum: HIVE, SPARK, DLC.
- usage String
- Usage of the function.
- wedata
Function StringId - ID of the resource.
Supporting Types
WedataFunctionResourceList, WedataFunctionResourceListArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.