1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WedataResource
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.WedataResource

Explore with Pulumi AI

Provides a resource to create a wedata resource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const example = new tencentcloud.WedataResource("example", {
    cosBucketName: "wedata-demo-1314991481",
    cosRegion: "ap-guangzhou",
    fileName: "tf_example",
    filePath: "/datastudio/resource/demo",
    filesSize: "8165",
    projectId: "1612982498218618880",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.WedataResource("example",
    cos_bucket_name="wedata-demo-1314991481",
    cos_region="ap-guangzhou",
    file_name="tf_example",
    file_path="/datastudio/resource/demo",
    files_size="8165",
    project_id="1612982498218618880")
Copy
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.NewWedataResource(ctx, "example", &tencentcloud.WedataResourceArgs{
			CosBucketName: pulumi.String("wedata-demo-1314991481"),
			CosRegion:     pulumi.String("ap-guangzhou"),
			FileName:      pulumi.String("tf_example"),
			FilePath:      pulumi.String("/datastudio/resource/demo"),
			FilesSize:     pulumi.String("8165"),
			ProjectId:     pulumi.String("1612982498218618880"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var example = new Tencentcloud.WedataResource("example", new()
    {
        CosBucketName = "wedata-demo-1314991481",
        CosRegion = "ap-guangzhou",
        FileName = "tf_example",
        FilePath = "/datastudio/resource/demo",
        FilesSize = "8165",
        ProjectId = "1612982498218618880",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WedataResource;
import com.pulumi.tencentcloud.WedataResourceArgs;
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 WedataResource("example", WedataResourceArgs.builder()
            .cosBucketName("wedata-demo-1314991481")
            .cosRegion("ap-guangzhou")
            .fileName("tf_example")
            .filePath("/datastudio/resource/demo")
            .filesSize("8165")
            .projectId("1612982498218618880")
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:WedataResource
    properties:
      cosBucketName: wedata-demo-1314991481
      cosRegion: ap-guangzhou
      fileName: tf_example
      filePath: /datastudio/resource/demo
      filesSize: '8165'
      projectId: '1612982498218618880'
Copy

Create WedataResource Resource

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

Constructor syntax

new WedataResource(name: string, args: WedataResourceArgs, opts?: CustomResourceOptions);
@overload
def WedataResource(resource_name: str,
                   args: WedataResourceArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def WedataResource(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   cos_bucket_name: Optional[str] = None,
                   cos_region: Optional[str] = None,
                   file_name: Optional[str] = None,
                   file_path: Optional[str] = None,
                   files_size: Optional[str] = None,
                   project_id: Optional[str] = None,
                   wedata_resource_id: Optional[str] = None)
func NewWedataResource(ctx *Context, name string, args WedataResourceArgs, opts ...ResourceOption) (*WedataResource, error)
public WedataResource(string name, WedataResourceArgs args, CustomResourceOptions? opts = null)
public WedataResource(String name, WedataResourceArgs args)
public WedataResource(String name, WedataResourceArgs args, CustomResourceOptions options)
type: tencentcloud:WedataResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WedataResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WedataResourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WedataResourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WedataResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WedataResourceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

CosBucketName This property is required. string
Cos bucket name.
CosRegion This property is required. string
Cos bucket region.
FileName This property is required. string
File name.
FilePath This property is required. string
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
FilesSize This property is required. string
File size.
ProjectId This property is required. string
Project ID.
WedataResourceId string
ID of the resource.
CosBucketName This property is required. string
Cos bucket name.
CosRegion This property is required. string
Cos bucket region.
FileName This property is required. string
File name.
FilePath This property is required. string
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
FilesSize This property is required. string
File size.
ProjectId This property is required. string
Project ID.
WedataResourceId string
ID of the resource.
cosBucketName This property is required. String
Cos bucket name.
cosRegion This property is required. String
Cos bucket region.
fileName This property is required. String
File name.
filePath This property is required. String
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
filesSize This property is required. String
File size.
projectId This property is required. String
Project ID.
wedataResourceId String
ID of the resource.
cosBucketName This property is required. string
Cos bucket name.
cosRegion This property is required. string
Cos bucket region.
fileName This property is required. string
File name.
filePath This property is required. string
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
filesSize This property is required. string
File size.
projectId This property is required. string
Project ID.
wedataResourceId string
ID of the resource.
cos_bucket_name This property is required. str
Cos bucket name.
cos_region This property is required. str
Cos bucket region.
file_name This property is required. str
File name.
file_path This property is required. str
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
files_size This property is required. str
File size.
project_id This property is required. str
Project ID.
wedata_resource_id str
ID of the resource.
cosBucketName This property is required. String
Cos bucket name.
cosRegion This property is required. String
Cos bucket region.
fileName This property is required. String
File name.
filePath This property is required. String
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
filesSize This property is required. String
File size.
projectId This property is required. String
Project ID.
wedataResourceId String
ID of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the WedataResource 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 WedataResource Resource

Get an existing WedataResource 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?: WedataResourceState, opts?: CustomResourceOptions): WedataResource
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cos_bucket_name: Optional[str] = None,
        cos_region: Optional[str] = None,
        file_name: Optional[str] = None,
        file_path: Optional[str] = None,
        files_size: Optional[str] = None,
        project_id: Optional[str] = None,
        resource_id: Optional[str] = None,
        wedata_resource_id: Optional[str] = None) -> WedataResource
func GetWedataResource(ctx *Context, name string, id IDInput, state *WedataResourceState, opts ...ResourceOption) (*WedataResource, error)
public static WedataResource Get(string name, Input<string> id, WedataResourceState? state, CustomResourceOptions? opts = null)
public static WedataResource get(String name, Output<String> id, WedataResourceState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:WedataResource    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CosBucketName string
Cos bucket name.
CosRegion string
Cos bucket region.
FileName string
File name.
FilePath string
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
FilesSize string
File size.
ProjectId string
Project ID.
ResourceId string
Resource ID.
WedataResourceId string
ID of the resource.
CosBucketName string
Cos bucket name.
CosRegion string
Cos bucket region.
FileName string
File name.
FilePath string
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
FilesSize string
File size.
ProjectId string
Project ID.
ResourceId string
Resource ID.
WedataResourceId string
ID of the resource.
cosBucketName String
Cos bucket name.
cosRegion String
Cos bucket region.
fileName String
File name.
filePath String
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
filesSize String
File size.
projectId String
Project ID.
resourceId String
Resource ID.
wedataResourceId String
ID of the resource.
cosBucketName string
Cos bucket name.
cosRegion string
Cos bucket region.
fileName string
File name.
filePath string
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
filesSize string
File size.
projectId string
Project ID.
resourceId string
Resource ID.
wedataResourceId string
ID of the resource.
cos_bucket_name str
Cos bucket name.
cos_region str
Cos bucket region.
file_name str
File name.
file_path str
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
files_size str
File size.
project_id str
Project ID.
resource_id str
Resource ID.
wedata_resource_id str
ID of the resource.
cosBucketName String
Cos bucket name.
cosRegion String
Cos bucket region.
fileName String
File name.
filePath String
For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
filesSize String
File size.
projectId String
Project ID.
resourceId String
Resource ID.
wedataResourceId String
ID of the resource.

Import

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

$ pulumi import tencentcloud:index/wedataResource:WedataResource example 1612982498218618880#/datastudio/resource/demo#75431931-7d27-4034-b3de-3dc3348a220e
Copy

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.