DataLakeGen2PathArgs

data class DataLakeGen2PathArgs(val aces: Output<List<DataLakeGen2PathAceArgs>>? = null, val filesystemName: Output<String>? = null, val group: Output<String>? = null, val owner: Output<String>? = null, val path: Output<String>? = null, val resource: Output<String>? = null, val storageAccountId: Output<String>? = null) : ConvertibleToJava<DataLakeGen2PathArgs>

Manages a Data Lake Gen2 Path in a File System within an Azure Storage Account.

NOTE: This resource requires some Storage specific roles which are not granted by default. Some of the built-ins roles that can be attributed are Storage Account Contributor, Storage Blob Data Owner, Storage Blob Data Contributor, Storage Blob Data Reader.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.DataLakeGen2Filesystem;
import com.pulumi.azure.storage.DataLakeGen2FilesystemArgs;
import com.pulumi.azure.storage.DataLakeGen2Path;
import com.pulumi.azure.storage.DataLakeGen2PathArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.accountKind("StorageV2")
.isHnsEnabled("true")
.build());
var exampleDataLakeGen2Filesystem = new DataLakeGen2Filesystem("exampleDataLakeGen2Filesystem", DataLakeGen2FilesystemArgs.builder()
.storageAccountId(exampleAccount.id())
.build());
var exampleDataLakeGen2Path = new DataLakeGen2Path("exampleDataLakeGen2Path", DataLakeGen2PathArgs.builder()
.path("example")
.filesystemName(exampleDataLakeGen2Filesystem.name())
.storageAccountId(exampleAccount.id())
.resource("directory")
.build());
}
}

Import

Data Lake Gen2 Paths can be imported using the resource id, e.g.

$ pulumi import azure:storage/dataLakeGen2Path:DataLakeGen2Path example https://account1.dfs.core.windows.net/fileSystem1/path

Constructors

Link copied to clipboard
fun DataLakeGen2PathArgs(aces: Output<List<DataLakeGen2PathAceArgs>>? = null, filesystemName: Output<String>? = null, group: Output<String>? = null, owner: Output<String>? = null, path: Output<String>? = null, resource: Output<String>? = null, storageAccountId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): DataLakeGen2PathArgs

Properties

Link copied to clipboard
val aces: Output<List<DataLakeGen2PathAceArgs>>? = null

One or more ace blocks as defined below to specify the entries for the ACL for the path.

Link copied to clipboard
val filesystemName: Output<String>? = null

The name of the Data Lake Gen2 File System which should be created within the Storage Account. Must be unique within the storage account the queue is located. Changing this forces a new resource to be created.

Link copied to clipboard
val group: Output<String>? = null

Specifies the Object ID of the Azure Active Directory Group to make the owning group. Possible values also include $superuser.

Link copied to clipboard
val owner: Output<String>? = null

Specifies the Object ID of the Azure Active Directory User to make the owning user. Possible values also include $superuser.

Link copied to clipboard
val path: Output<String>? = null

The path which should be created within the Data Lake Gen2 File System in the Storage Account. Changing this forces a new resource to be created.

Link copied to clipboard
val resource: Output<String>? = null

Specifies the type for path to create. Currently only directory is supported. Changing this forces a new resource to be created.

Link copied to clipboard
val storageAccountId: Output<String>? = null

Specifies the ID of the Storage Account in which the Data Lake Gen2 File System should exist. Changing this forces a new resource to be created.