JobDefinitionArgs

data class JobDefinitionArgs(val customerSecrets: Output<List<CustomerSecretArgs>>? = null, val dataManagerName: Output<String>? = null, val dataServiceInput: Output<Any>? = null, val dataServiceName: Output<String>? = null, val dataSinkId: Output<String>? = null, val dataSourceId: Output<String>? = null, val jobDefinitionName: Output<String>? = null, val lastModifiedTime: Output<String>? = null, val resourceGroupName: Output<String>? = null, val runLocation: Output<RunLocation>? = null, val schedules: Output<List<ScheduleArgs>>? = null, val state: Output<State>? = null, val userConfirmation: Output<UserConfirmation>? = null) : ConvertibleToJava<JobDefinitionArgs>

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/v2"
"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

Link copied to clipboard
constructor(customerSecrets: Output<List<CustomerSecretArgs>>? = null, dataManagerName: Output<String>? = null, dataServiceInput: Output<Any>? = null, dataServiceName: Output<String>? = null, dataSinkId: Output<String>? = null, dataSourceId: Output<String>? = null, jobDefinitionName: Output<String>? = null, lastModifiedTime: Output<String>? = null, resourceGroupName: Output<String>? = null, runLocation: Output<RunLocation>? = null, schedules: Output<List<ScheduleArgs>>? = null, state: Output<State>? = null, userConfirmation: Output<UserConfirmation>? = null)

Properties

Link copied to clipboard

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.

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

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

Link copied to clipboard
val dataServiceInput: Output<Any>? = null

A generic json used differently by each data service type.

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

The data service type of the job definition.

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

Data Sink Id associated to the job definition.

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

Data Source Id associated to the job definition.

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

The job definition name to be created or updated.

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

Last modified time of the job definition.

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

The Resource Group Name

Link copied to clipboard
val runLocation: Output<RunLocation>? = null

This is the preferred geo location for the job to run.

Link copied to clipboard
val schedules: Output<List<ScheduleArgs>>? = null

Schedule for running the job definition

Link copied to clipboard
val state: Output<State>? = null

State of the job definition.

Link copied to clipboard
val userConfirmation: Output<UserConfirmation>? = null

Enum to detect if user confirmation is required. If not passed will default to NotRequired.

Functions

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