tencentcloud.WedataCodeFolder
Provides a resource to create a WeData code folder
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WedataCodeFolder("example", {
projectId: "2983848457986924544",
folderName: "tf_example",
parentFolderPath: "/",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WedataCodeFolder("example",
project_id="2983848457986924544",
folder_name="tf_example",
parent_folder_path="/")
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.NewWedataCodeFolder(ctx, "example", &tencentcloud.WedataCodeFolderArgs{
ProjectId: pulumi.String("2983848457986924544"),
FolderName: pulumi.String("tf_example"),
ParentFolderPath: pulumi.String("/"),
})
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.WedataCodeFolder("example", new()
{
ProjectId = "2983848457986924544",
FolderName = "tf_example",
ParentFolderPath = "/",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WedataCodeFolder;
import com.pulumi.tencentcloud.WedataCodeFolderArgs;
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 WedataCodeFolder("example", WedataCodeFolderArgs.builder()
.projectId("2983848457986924544")
.folderName("tf_example")
.parentFolderPath("/")
.build());
}
}
resources:
example:
type: tencentcloud:WedataCodeFolder
properties:
projectId: '2983848457986924544'
folderName: tf_example
parentFolderPath: /
Create WedataCodeFolder Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WedataCodeFolder(name: string, args: WedataCodeFolderArgs, opts?: CustomResourceOptions);@overload
def WedataCodeFolder(resource_name: str,
args: WedataCodeFolderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WedataCodeFolder(resource_name: str,
opts: Optional[ResourceOptions] = None,
folder_name: Optional[str] = None,
parent_folder_path: Optional[str] = None,
project_id: Optional[str] = None,
wedata_code_folder_id: Optional[str] = None)func NewWedataCodeFolder(ctx *Context, name string, args WedataCodeFolderArgs, opts ...ResourceOption) (*WedataCodeFolder, error)public WedataCodeFolder(string name, WedataCodeFolderArgs args, CustomResourceOptions? opts = null)
public WedataCodeFolder(String name, WedataCodeFolderArgs args)
public WedataCodeFolder(String name, WedataCodeFolderArgs args, CustomResourceOptions options)
type: tencentcloud:WedataCodeFolder
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 WedataCodeFolderArgs
- 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 WedataCodeFolderArgs
- 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 WedataCodeFolderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WedataCodeFolderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WedataCodeFolderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WedataCodeFolder 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 WedataCodeFolder resource accepts the following input properties:
- Folder
Name string - Folder name.
- Parent
Folder stringPath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- Project
Id string - Project ID.
- Wedata
Code stringFolder Id - ID of the resource.
- Folder
Name string - Folder name.
- Parent
Folder stringPath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- Project
Id string - Project ID.
- Wedata
Code stringFolder Id - ID of the resource.
- folder
Name String - Folder name.
- parent
Folder StringPath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- project
Id String - Project ID.
- wedata
Code StringFolder Id - ID of the resource.
- folder
Name string - Folder name.
- parent
Folder stringPath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- project
Id string - Project ID.
- wedata
Code stringFolder Id - ID of the resource.
- folder_
name str - Folder name.
- parent_
folder_ strpath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- project_
id str - Project ID.
- wedata_
code_ strfolder_ id - ID of the resource.
- folder
Name String - Folder name.
- parent
Folder StringPath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- project
Id String - Project ID.
- wedata
Code StringFolder Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WedataCodeFolder resource produces the following output properties:
- Access
Scope string - Permission range: SHARED, PRIVATE.
- Folder
Id string - Folder ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- Node path.
- Type string
- Type. folder, script.
- Access
Scope string - Permission range: SHARED, PRIVATE.
- Folder
Id string - Folder ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- Node path.
- Type string
- Type. folder, script.
- access
Scope String - Permission range: SHARED, PRIVATE.
- folder
Id String - Folder ID.
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- Node path.
- type String
- Type. folder, script.
- access
Scope string - Permission range: SHARED, PRIVATE.
- folder
Id string - Folder ID.
- id string
- The provider-assigned unique ID for this managed resource.
- path string
- Node path.
- type string
- Type. folder, script.
- access_
scope str - Permission range: SHARED, PRIVATE.
- folder_
id str - Folder ID.
- id str
- The provider-assigned unique ID for this managed resource.
- path str
- Node path.
- type str
- Type. folder, script.
- access
Scope String - Permission range: SHARED, PRIVATE.
- folder
Id String - Folder ID.
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- Node path.
- type String
- Type. folder, script.
Look up Existing WedataCodeFolder Resource
Get an existing WedataCodeFolder 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?: WedataCodeFolderState, opts?: CustomResourceOptions): WedataCodeFolder@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_scope: Optional[str] = None,
folder_id: Optional[str] = None,
folder_name: Optional[str] = None,
parent_folder_path: Optional[str] = None,
path: Optional[str] = None,
project_id: Optional[str] = None,
type: Optional[str] = None,
wedata_code_folder_id: Optional[str] = None) -> WedataCodeFolderfunc GetWedataCodeFolder(ctx *Context, name string, id IDInput, state *WedataCodeFolderState, opts ...ResourceOption) (*WedataCodeFolder, error)public static WedataCodeFolder Get(string name, Input<string> id, WedataCodeFolderState? state, CustomResourceOptions? opts = null)public static WedataCodeFolder get(String name, Output<String> id, WedataCodeFolderState state, CustomResourceOptions options)resources: _: type: tencentcloud:WedataCodeFolder 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.
- Access
Scope string - Permission range: SHARED, PRIVATE.
- Folder
Id string - Folder ID.
- Folder
Name string - Folder name.
- Parent
Folder stringPath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- Path string
- Node path.
- Project
Id string - Project ID.
- Type string
- Type. folder, script.
- Wedata
Code stringFolder Id - ID of the resource.
- Access
Scope string - Permission range: SHARED, PRIVATE.
- Folder
Id string - Folder ID.
- Folder
Name string - Folder name.
- Parent
Folder stringPath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- Path string
- Node path.
- Project
Id string - Project ID.
- Type string
- Type. folder, script.
- Wedata
Code stringFolder Id - ID of the resource.
- access
Scope String - Permission range: SHARED, PRIVATE.
- folder
Id String - Folder ID.
- folder
Name String - Folder name.
- parent
Folder StringPath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- path String
- Node path.
- project
Id String - Project ID.
- type String
- Type. folder, script.
- wedata
Code StringFolder Id - ID of the resource.
- access
Scope string - Permission range: SHARED, PRIVATE.
- folder
Id string - Folder ID.
- folder
Name string - Folder name.
- parent
Folder stringPath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- path string
- Node path.
- project
Id string - Project ID.
- type string
- Type. folder, script.
- wedata
Code stringFolder Id - ID of the resource.
- access_
scope str - Permission range: SHARED, PRIVATE.
- folder_
id str - Folder ID.
- folder_
name str - Folder name.
- parent_
folder_ strpath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- path str
- Node path.
- project_
id str - Project ID.
- type str
- Type. folder, script.
- wedata_
code_ strfolder_ id - ID of the resource.
- access
Scope String - Permission range: SHARED, PRIVATE.
- folder
Id String - Folder ID.
- folder
Name String - Folder name.
- parent
Folder StringPath - Parent folder path, for example /aaa/bbb/ccc, path header must start with a slash, root directory pass /.
- path String
- Node path.
- project
Id String - Project ID.
- type String
- Type. folder, script.
- wedata
Code StringFolder Id - ID of the resource.
Import
WeData code folder can be imported using the projectId#folderId, e.g.
$ pulumi import tencentcloud:index/wedataCodeFolder:WedataCodeFolder example 1470547050521227264#2ee111df-5573-4ac4-9f93-cf9e8e438d80
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
tencentcloudTerraform Provider.
