AutoExportJobArgs

data class AutoExportJobArgs(val adminStatus: Output<Either<String, AutoExportJobAdminStatus>>? = null, val amlFilesystemName: Output<String>? = null, val autoExportJobName: Output<String>? = null, val autoExportPrefixes: Output<List<String>>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val state: Output<Either<String, AutoExportStatusType>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AutoExportJobArgs>

An auto export job instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md Uses Azure REST API version 2024-07-01.

Example Usage

autoExportJobs_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var autoExportJob = new AzureNative.StorageCache.AutoExportJob("autoExportJob", new()
{
AmlFilesystemName = "fs1",
AutoExportJobName = "job1",
AutoExportPrefixes = new[]
{
"/",
},
Location = "eastus",
ResourceGroupName = "scgroup",
Tags =
{
{ "Dept", "ContosoAds" },
},
});
});
package main
import (
storagecache "github.com/pulumi/pulumi-azure-native-sdk/storagecache/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storagecache.NewAutoExportJob(ctx, "autoExportJob", &storagecache.AutoExportJobArgs{
AmlFilesystemName: pulumi.String("fs1"),
AutoExportJobName: pulumi.String("job1"),
AutoExportPrefixes: pulumi.StringArray{
pulumi.String("/"),
},
Location: pulumi.String("eastus"),
ResourceGroupName: pulumi.String("scgroup"),
Tags: pulumi.StringMap{
"Dept": pulumi.String("ContosoAds"),
},
})
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.azurenative.storagecache.AutoExportJob;
import com.pulumi.azurenative.storagecache.AutoExportJobArgs;
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 autoExportJob = new AutoExportJob("autoExportJob", AutoExportJobArgs.builder()
.amlFilesystemName("fs1")
.autoExportJobName("job1")
.autoExportPrefixes("/")
.location("eastus")
.resourceGroupName("scgroup")
.tags(Map.of("Dept", "ContosoAds"))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:storagecache:AutoExportJob job1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoExportJobs/{autoExportJobName}

Constructors

Link copied to clipboard
constructor(adminStatus: Output<Either<String, AutoExportJobAdminStatus>>? = null, amlFilesystemName: Output<String>? = null, autoExportJobName: Output<String>? = null, autoExportPrefixes: Output<List<String>>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, state: Output<Either<String, AutoExportStatusType>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val adminStatus: Output<Either<String, AutoExportJobAdminStatus>>? = null

The administrative status of the auto export job. Possible values: 'Enable', 'Disable'. Passing in a value of 'Disable' will disable the current active auto export job. By default it is set to 'Enable'.

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

Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.

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

Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.

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

An array of blob paths/prefixes that get auto exported to the cluster namespace. It has '/' as the default value. Number of maximum allowed paths for now is 1.

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

The geo-location where the resource lives

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

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val state: Output<Either<String, AutoExportStatusType>>? = null

The operational state of auto export. InProgress indicates the export is running. Disabling indicates the user has requested to disable the export but the disabling is still in progress. Disabled indicates auto export has been disabled. DisableFailed indicates the disabling has failed. Failed means the export was unable to continue, due to a fatal error.

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

Resource tags.

Functions

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