tencentcloud.WedataScript
Explore with Pulumi AI
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:
- Bucket
Name string - Cos bucket name.
- File
Extension stringType - File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
- File
Path string - Cos file path:/datastudio/project/projectId/.
- Project
Id string - Project id.
- Region string
- Cos region.
- Wedata
Script stringId - ID of the resource.
- Bucket
Name string - Cos bucket name.
- File
Extension stringType - File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
- File
Path string - Cos file path:/datastudio/project/projectId/.
- Project
Id string - Project id.
- Region string
- Cos region.
- Wedata
Script stringId - ID of the resource.
- bucket
Name String - Cos bucket name.
- file
Extension StringType - File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
- file
Path String - Cos file path:/datastudio/project/projectId/.
- project
Id String - Project id.
- region String
- Cos region.
- wedata
Script StringId - ID of the resource.
- bucket
Name string - Cos bucket name.
- file
Extension stringType - File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
- file
Path string - Cos file path:/datastudio/project/projectId/.
- project
Id string - Project id.
- region string
- Cos region.
- wedata
Script stringId - ID of the resource.
- bucket_
name str - Cos bucket name.
- file_
extension_ strtype - 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_ strid - ID of the resource.
- bucket
Name String - Cos bucket name.
- file
Extension StringType - File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
- file
Path String - Cos file path:/datastudio/project/projectId/.
- project
Id String - Project id.
- region String
- Cos region.
- wedata
Script StringId - 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.
- Resource
Id string - Resource ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - Resource ID.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - Resource ID.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Id 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.
- resource
Id 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.
- Bucket
Name string - Cos bucket name.
- File
Extension stringType - File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
- File
Path string - Cos file path:/datastudio/project/projectId/.
- Project
Id string - Project id.
- Region string
- Cos region.
- Resource
Id string - Resource ID.
- Wedata
Script stringId - ID of the resource.
- Bucket
Name string - Cos bucket name.
- File
Extension stringType - File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
- File
Path string - Cos file path:/datastudio/project/projectId/.
- Project
Id string - Project id.
- Region string
- Cos region.
- Resource
Id string - Resource ID.
- Wedata
Script stringId - ID of the resource.
- bucket
Name String - Cos bucket name.
- file
Extension StringType - File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
- file
Path String - Cos file path:/datastudio/project/projectId/.
- project
Id String - Project id.
- region String
- Cos region.
- resource
Id String - Resource ID.
- wedata
Script StringId - ID of the resource.
- bucket
Name string - Cos bucket name.
- file
Extension stringType - File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
- file
Path string - Cos file path:/datastudio/project/projectId/.
- project
Id string - Project id.
- region string
- Cos region.
- resource
Id string - Resource ID.
- wedata
Script stringId - ID of the resource.
- bucket_
name str - Cos bucket name.
- file_
extension_ strtype - 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_ strid - ID of the resource.
- bucket
Name String - Cos bucket name.
- file
Extension StringType - File Extension Type:jar, sql, zip, py, sh, txt, di, dg, pyspark, kjb, ktr, csv.
- file
Path String - Cos file path:/datastudio/project/projectId/.
- project
Id String - Project id.
- region String
- Cos region.
- resource
Id String - Resource ID.
- wedata
Script StringId - 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.