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

tencentcloud.WedataScript

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 script

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WedataScript("example", {
        bucketName: "wedata-demo-1257305158",
        fileExtensionType: "sql",
        filePath: "/datastudio/project/tf_example.sql",
        projectId: "1470575647377821696",
        region: "ap-guangzhou",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WedataScript("example",
        bucket_name="wedata-demo-1257305158",
        file_extension_type="sql",
        file_path="/datastudio/project/tf_example.sql",
        project_id="1470575647377821696",
        region="ap-guangzhou")
    
    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.NewWedataScript(ctx, "example", &tencentcloud.WedataScriptArgs{
    			BucketName:        pulumi.String("wedata-demo-1257305158"),
    			FileExtensionType: pulumi.String("sql"),
    			FilePath:          pulumi.String("/datastudio/project/tf_example.sql"),
    			ProjectId:         pulumi.String("1470575647377821696"),
    			Region:            pulumi.String("ap-guangzhou"),
    		})
    		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.WedataScript("example", new()
        {
            BucketName = "wedata-demo-1257305158",
            FileExtensionType = "sql",
            FilePath = "/datastudio/project/tf_example.sql",
            ProjectId = "1470575647377821696",
            Region = "ap-guangzhou",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WedataScript;
    import com.pulumi.tencentcloud.WedataScriptArgs;
    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 WedataScript("example", WedataScriptArgs.builder()
                .bucketName("wedata-demo-1257305158")
                .fileExtensionType("sql")
                .filePath("/datastudio/project/tf_example.sql")
                .projectId("1470575647377821696")
                .region("ap-guangzhou")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WedataScript
        properties:
          bucketName: wedata-demo-1257305158
          fileExtensionType: sql
          filePath: /datastudio/project/tf_example.sql
          projectId: '1470575647377821696'
          region: ap-guangzhou
    

    Create WedataScript Resource

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

    Constructor syntax

    new WedataScript(name: string, args?: WedataScriptArgs, opts?: CustomResourceOptions);
    @overload
    def WedataScript(resource_name: str,
                     args: Optional[WedataScriptArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def WedataScript(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     bucket_name: Optional[str] = None,
                     file_extension_type: Optional[str] = None,
                     file_path: Optional[str] = None,
                     project_id: Optional[str] = None,
                     region: Optional[str] = None,
                     wedata_script_id: Optional[str] = None)
    func NewWedataScript(ctx *Context, name string, args *WedataScriptArgs, opts ...ResourceOption) (*WedataScript, error)
    public WedataScript(string name, WedataScriptArgs? args = null, CustomResourceOptions? opts = null)
    public WedataScript(String name, WedataScriptArgs args)
    public WedataScript(String name, WedataScriptArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WedataScript
    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 WedataScriptArgs
    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 WedataScriptArgs
    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 WedataScriptArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WedataScriptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WedataScriptArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    BucketName string
    Cos bucket name.
    FileExtensionType string
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    FilePath string
    Cos file path:/datastudio/project/projectId/.
    ProjectId string
    Project id.
    Region string
    Cos region.
    WedataScriptId string
    ID of the resource.
    BucketName string
    Cos bucket name.
    FileExtensionType string
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    FilePath string
    Cos file path:/datastudio/project/projectId/.
    ProjectId string
    Project id.
    Region string
    Cos region.
    WedataScriptId string
    ID of the resource.
    bucketName String
    Cos bucket name.
    fileExtensionType String
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    filePath String
    Cos file path:/datastudio/project/projectId/.
    projectId String
    Project id.
    region String
    Cos region.
    wedataScriptId String
    ID of the resource.
    bucketName string
    Cos bucket name.
    fileExtensionType string
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    filePath string
    Cos file path:/datastudio/project/projectId/.
    projectId string
    Project id.
    region string
    Cos region.
    wedataScriptId string
    ID of the resource.
    bucket_name str
    Cos bucket name.
    file_extension_type str
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    file_path str
    Cos file path:/datastudio/project/projectId/.
    project_id str
    Project id.
    region str
    Cos region.
    wedata_script_id str
    ID of the resource.
    bucketName String
    Cos bucket name.
    fileExtensionType String
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    filePath String
    Cos file path:/datastudio/project/projectId/.
    projectId String
    Project id.
    region String
    Cos region.
    wedataScriptId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    Resource ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    Resource ID.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    Resource ID.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceId string
    Resource ID.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_id str
    Resource ID.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    Resource ID.

    Look up Existing WedataScript Resource

    Get an existing WedataScript 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?: WedataScriptState, opts?: CustomResourceOptions): WedataScript
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket_name: Optional[str] = None,
            file_extension_type: Optional[str] = None,
            file_path: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            resource_id: Optional[str] = None,
            wedata_script_id: Optional[str] = None) -> WedataScript
    func GetWedataScript(ctx *Context, name string, id IDInput, state *WedataScriptState, opts ...ResourceOption) (*WedataScript, error)
    public static WedataScript Get(string name, Input<string> id, WedataScriptState? state, CustomResourceOptions? opts = null)
    public static WedataScript get(String name, Output<String> id, WedataScriptState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WedataScript    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:
    BucketName string
    Cos bucket name.
    FileExtensionType string
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    FilePath string
    Cos file path:/datastudio/project/projectId/.
    ProjectId string
    Project id.
    Region string
    Cos region.
    ResourceId string
    Resource ID.
    WedataScriptId string
    ID of the resource.
    BucketName string
    Cos bucket name.
    FileExtensionType string
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    FilePath string
    Cos file path:/datastudio/project/projectId/.
    ProjectId string
    Project id.
    Region string
    Cos region.
    ResourceId string
    Resource ID.
    WedataScriptId string
    ID of the resource.
    bucketName String
    Cos bucket name.
    fileExtensionType String
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    filePath String
    Cos file path:/datastudio/project/projectId/.
    projectId String
    Project id.
    region String
    Cos region.
    resourceId String
    Resource ID.
    wedataScriptId String
    ID of the resource.
    bucketName string
    Cos bucket name.
    fileExtensionType string
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    filePath string
    Cos file path:/datastudio/project/projectId/.
    projectId string
    Project id.
    region string
    Cos region.
    resourceId string
    Resource ID.
    wedataScriptId string
    ID of the resource.
    bucket_name str
    Cos bucket name.
    file_extension_type str
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    file_path str
    Cos file path:/datastudio/project/projectId/.
    project_id str
    Project id.
    region str
    Cos region.
    resource_id str
    Resource ID.
    wedata_script_id str
    ID of the resource.
    bucketName String
    Cos bucket name.
    fileExtensionType String
    File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
    filePath String
    Cos file path:/datastudio/project/projectId/.
    projectId String
    Project id.
    region String
    Cos region.
    resourceId String
    Resource ID.
    wedataScriptId String
    ID of the resource.

    Import

    wedata script can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/wedataScript:WedataScript example 1470575647377821696#/datastudio/project/tf_example.sql#4147824b-7ba2-432b-8a8b-7e747594c926
    

    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