Job Definition Args
Job Definition. Uses Azure REST API version 2019-06-01. In version 2.x of the Azure Native provider, it used API version 2019-06-01.
Example Usage
JobDefinitions_CreateOrUpdatePUT83
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var jobDefinition = new AzureNative.HybridData.JobDefinition("jobDefinition", new()
{
DataManagerName = "TestAzureSDKOperations",
DataServiceInput = new Dictionary<string, object?>
{
["AzureStorageType"] = "Blob",
["BackupChoice"] = "UseExistingLatest",
["ContainerName"] = "containerfromtest",
["DeviceName"] = "8600-SHG0997877L71FC",
["FileNameFilter"] = "*",
["IsDirectoryMode"] = false,
["RootDirectories"] = new[]
{
"\\",
},
["VolumeNames"] = new[]
{
"TestAutomation",
},
},
DataServiceName = "DataTransformation",
DataSinkId = "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1",
DataSourceId = "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1",
JobDefinitionName = "jobdeffromtestcode1",
ResourceGroupName = "ResourceGroupForSDKTest",
RunLocation = AzureNative.HybridData.RunLocation.Westus,
State = AzureNative.HybridData.State.Enabled,
UserConfirmation = AzureNative.HybridData.UserConfirmation.Required,
});
});
package main
import (
hybriddata "github.com/pulumi/pulumi-azure-native-sdk/hybriddata/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hybriddata.NewJobDefinition(ctx, "jobDefinition", &hybriddata.JobDefinitionArgs{
DataManagerName: pulumi.String("TestAzureSDKOperations"),
DataServiceInput: pulumi.Any(map[string]interface{}{
"AzureStorageType": "Blob",
"BackupChoice": "UseExistingLatest",
"ContainerName": "containerfromtest",
"DeviceName": "8600-SHG0997877L71FC",
"FileNameFilter": "*",
"IsDirectoryMode": false,
"RootDirectories": []string{
"\\",
},
"VolumeNames": []string{
"TestAutomation",
},
}),
DataServiceName: pulumi.String("DataTransformation"),
DataSinkId: pulumi.String("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1"),
DataSourceId: pulumi.String("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1"),
JobDefinitionName: pulumi.String("jobdeffromtestcode1"),
ResourceGroupName: pulumi.String("ResourceGroupForSDKTest"),
RunLocation: hybriddata.RunLocationWestus,
State: hybriddata.StateEnabled,
UserConfirmation: hybriddata.UserConfirmationRequired,
})
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.hybriddata.JobDefinition;
import com.pulumi.azurenative.hybriddata.JobDefinitionArgs;
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 jobDefinition = new JobDefinition("jobDefinition", JobDefinitionArgs.builder()
.dataManagerName("TestAzureSDKOperations")
.dataServiceInput(Map.ofEntries(
Map.entry("AzureStorageType", "Blob"),
Map.entry("BackupChoice", "UseExistingLatest"),
Map.entry("ContainerName", "containerfromtest"),
Map.entry("DeviceName", "8600-SHG0997877L71FC"),
Map.entry("FileNameFilter", "*"),
Map.entry("IsDirectoryMode", false),
Map.entry("RootDirectories", "\\"),
Map.entry("VolumeNames", "TestAutomation")
))
.dataServiceName("DataTransformation")
.dataSinkId("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1")
.dataSourceId("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1")
.jobDefinitionName("jobdeffromtestcode1")
.resourceGroupName("ResourceGroupForSDKTest")
.runLocation("westus")
.state("Enabled")
.userConfirmation("Required")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:hybriddata:JobDefinition jobdeffromtestcode1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
Constructors
Properties
List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys.
The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
A generic json used differently by each data service type.
The data service type of the job definition.
Data Sink Id associated to the job definition.
Data Source Id associated to the job definition.
The job definition name to be created or updated.
Last modified time of the job definition.
The Resource Group Name
This is the preferred geo location for the job to run.
Schedule for running the job definition
Enum to detect if user confirmation is required. If not passed will default to NotRequired.