Data Lake Gen2Path Args
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 areStorage 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());
}
}
Content copied to clipboard
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
Content copied to clipboard
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)