Folder

class Folder : KotlinCustomResource

Provides a Data Works Folder resource. For information about Data Works Folder and how to use it, see What is Folder.

NOTE: Available in v1.131.0+.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.dataworks.Folder("example", {
projectId: "320687",
folderPath: "Business Flow/tfTestAcc/folderDi/tftest1",
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.dataworks.Folder("example",
project_id="320687",
folder_path="Business Flow/tfTestAcc/folderDi/tftest1")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.DataWorks.Folder("example", new()
{
ProjectId = "320687",
FolderPath = "Business Flow/tfTestAcc/folderDi/tftest1",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dataworks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataworks.NewFolder(ctx, "example", &dataworks.FolderArgs{
ProjectId: pulumi.String("320687"),
FolderPath: pulumi.String("Business Flow/tfTestAcc/folderDi/tftest1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dataworks.Folder;
import com.pulumi.alicloud.dataworks.FolderArgs;
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 Folder("example", FolderArgs.builder()
.projectId("320687")
.folderPath("Business Flow/tfTestAcc/folderDi/tftest1")
.build());
}
}
resources:
example:
type: alicloud:dataworks:Folder
properties:
projectId: '320687'
folderPath: Business Flow/tfTestAcc/folderDi/tftest1

Import

Data Works Folder can be imported using the id, e.g.

$ pulumi import alicloud:dataworks/folder:Folder example <folder_id>:<$.ProjectId>

Properties

Link copied to clipboard
val folderId: Output<String>
Link copied to clipboard
val folderPath: Output<String>

Folder Path. The folder path composed with for part: Business Flow/{Business Flow Name}/[folderDi|folderMaxCompute|folderGeneral|folderJdbc|folderUserDefined]/{Directory Name}. The first segment of path must be Business Flow, and sencond segment of path must be a Business Flow Name within the project. The third part of path must be one of those keywords:folderDi|folderMaxCompute|folderGeneral|folderJdbc|folderUserDefined. Then the finial part of folder path can be specified in yourself.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val projectId: Output<String>?

The ID of the project.

Link copied to clipboard
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>