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",
});
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:
- Cos
Bucket stringName - Cos bucket name.
- Cos
Region string - Cos bucket region.
- File
Name string - File name.
- File
Path string - For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
- Files
Size string - File size.
- Project
Id string - Project ID.
- Wedata
Resource stringId - ID of the resource.
- Cos
Bucket stringName - Cos bucket name.
- Cos
Region string - Cos bucket region.
- File
Name string - File name.
- File
Path string - For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
- Files
Size string - File size.
- Project
Id string - Project ID.
- Wedata
Resource stringId - ID of the resource.
- cos
Bucket StringName - Cos bucket name.
- cos
Region String - Cos bucket region.
- file
Name String - File name.
- file
Path String - For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
- files
Size String - File size.
- project
Id String - Project ID.
- wedata
Resource StringId - ID of the resource.
- cos
Bucket stringName - Cos bucket name.
- cos
Region string - Cos bucket region.
- file
Name string - File name.
- file
Path string - For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
- files
Size string - File size.
- project
Id string - Project ID.
- wedata
Resource stringId - ID of the resource.
- cos_
bucket_ strname - 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_ strid - ID of the resource.
- cos
Bucket StringName - Cos bucket name.
- cos
Region String - Cos bucket region.
- file
Name String - File name.
- file
Path String - For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
- files
Size String - File size.
- project
Id String - Project ID.
- wedata
Resource StringId - 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.
- 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 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.
- Cos
Bucket stringName - Cos bucket name.
- Cos
Region string - Cos bucket region.
- File
Name string - File name.
- File
Path string - For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
- Files
Size string - File size.
- Project
Id string - Project ID.
- Resource
Id string - Resource ID.
- Wedata
Resource stringId - ID of the resource.
- Cos
Bucket stringName - Cos bucket name.
- Cos
Region string - Cos bucket region.
- File
Name string - File name.
- File
Path string - For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
- Files
Size string - File size.
- Project
Id string - Project ID.
- Resource
Id string - Resource ID.
- Wedata
Resource stringId - ID of the resource.
- cos
Bucket StringName - Cos bucket name.
- cos
Region String - Cos bucket region.
- file
Name String - File name.
- file
Path String - For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
- files
Size String - File size.
- project
Id String - Project ID.
- resource
Id String - Resource ID.
- wedata
Resource StringId - ID of the resource.
- cos
Bucket stringName - Cos bucket name.
- cos
Region string - Cos bucket region.
- file
Name string - File name.
- file
Path string - For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
- files
Size string - File size.
- project
Id string - Project ID.
- resource
Id string - Resource ID.
- wedata
Resource stringId - ID of the resource.
- cos_
bucket_ strname - 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_ strid - ID of the resource.
- cos
Bucket StringName - Cos bucket name.
- cos
Region String - Cos bucket region.
- file
Name String - File name.
- file
Path String - For file path:/datastudio/resource/projectId/folderName; for folder path:/datastudio/resource/folderName.
- files
Size String - File size.
- project
Id String - Project ID.
- resource
Id String - Resource ID.
- wedata
Resource StringId - 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.