ShareDirectoryArgs

data class ShareDirectoryArgs(val metadata: Output<Map<String, String>>? = null, val name: Output<String>? = null, val shareName: Output<String>? = null, val storageAccountName: Output<String>? = null) : ConvertibleToJava<ShareDirectoryArgs>

Manages a Directory within an Azure Storage File Share.

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.Share;
import com.pulumi.azure.storage.ShareArgs;
import com.pulumi.azure.storage.ShareDirectory;
import com.pulumi.azure.storage.ShareDirectoryArgs;
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")
.build());
var exampleShare = new Share("exampleShare", ShareArgs.builder()
.storageAccountName(exampleAccount.name())
.quota(50)
.build());
var exampleShareDirectory = new ShareDirectory("exampleShareDirectory", ShareDirectoryArgs.builder()
.shareName(exampleShare.name())
.storageAccountName(exampleAccount.name())
.build());
}
}

Import

Directories within an Azure Storage File Share can be imported using the resource id, e.g.

$ pulumi import azure:storage/shareDirectory:ShareDirectory example https://tomdevsa20.file.core.windows.net/share1/directory1

Constructors

Link copied to clipboard
fun ShareDirectoryArgs(metadata: Output<Map<String, String>>? = null, name: Output<String>? = null, shareName: Output<String>? = null, storageAccountName: Output<String>? = null)

Functions

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

Properties

Link copied to clipboard
val metadata: Output<Map<String, String>>? = null

A mapping of metadata to assign to this Directory.

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

The name (or path) of the Directory that should be created within this File Share. Changing this forces a new resource to be created.

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

The name of the File Share where this Directory should be created. Changing this forces a new resource to be created.

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

The name of the Storage Account within which the File Share is located. Changing this forces a new resource to be created.