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

tencentcloud.WedataResource

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 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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WedataResource
        properties:
          cosBucketName: wedata-demo-1314991481
          cosRegion: ap-guangzhou
          fileName: tf_example
          filePath: /datastudio/resource/demo
          filesSize: '8165'
          projectId: '1612982498218618880'
    

    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 string
    The unique name of the resource.
    args WedataResourceArgs
    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 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 string
    The unique name of the resource.
    args WedataResourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WedataResourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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 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.
    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.
    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.
    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.
    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.
    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.
    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
    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:
    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
    

    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