com.pulumi.azurenative.hybriddata.JobDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.hybriddata;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.hybriddata.JobDefinitionArgs;
import com.pulumi.azurenative.hybriddata.outputs.CustomerSecretResponse;
import com.pulumi.azurenative.hybriddata.outputs.ScheduleResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Job Definition.
* Azure REST API version: 2019-06-01. Prior API version in Azure Native 1.x: 2019-06-01.
*
* ## Example Usage
* ### JobDefinitions_CreateOrUpdatePUT83
*
*
* {@code
* 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.
*
* ```sh
* $ pulumi import azure-native:hybriddata:JobDefinition jobdeffromtestcode1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
* ```
*
*/
@ResourceType(type="azure-native:hybriddata:JobDefinition")
public class JobDefinition extends com.pulumi.resources.CustomResource {
/**
* 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.
*
*/
@Export(name="customerSecrets", refs={List.class,CustomerSecretResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> customerSecrets;
/**
* @return 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.
*
*/
public Output>> customerSecrets() {
return Codegen.optional(this.customerSecrets);
}
/**
* A generic json used differently by each data service type.
*
*/
@Export(name="dataServiceInput", refs={Object.class}, tree="[0]")
private Output* @Nullable */ Object> dataServiceInput;
/**
* @return A generic json used differently by each data service type.
*
*/
public Output> dataServiceInput() {
return Codegen.optional(this.dataServiceInput);
}
/**
* Data Sink Id associated to the job definition.
*
*/
@Export(name="dataSinkId", refs={String.class}, tree="[0]")
private Output dataSinkId;
/**
* @return Data Sink Id associated to the job definition.
*
*/
public Output dataSinkId() {
return this.dataSinkId;
}
/**
* Data Source Id associated to the job definition.
*
*/
@Export(name="dataSourceId", refs={String.class}, tree="[0]")
private Output dataSourceId;
/**
* @return Data Source Id associated to the job definition.
*
*/
public Output dataSourceId() {
return this.dataSourceId;
}
/**
* Last modified time of the job definition.
*
*/
@Export(name="lastModifiedTime", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> lastModifiedTime;
/**
* @return Last modified time of the job definition.
*
*/
public Output> lastModifiedTime() {
return Codegen.optional(this.lastModifiedTime);
}
/**
* Name of the object.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name of the object.
*
*/
public Output name() {
return this.name;
}
/**
* This is the preferred geo location for the job to run.
*
*/
@Export(name="runLocation", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> runLocation;
/**
* @return This is the preferred geo location for the job to run.
*
*/
public Output> runLocation() {
return Codegen.optional(this.runLocation);
}
/**
* Schedule for running the job definition
*
*/
@Export(name="schedules", refs={List.class,ScheduleResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> schedules;
/**
* @return Schedule for running the job definition
*
*/
public Output>> schedules() {
return Codegen.optional(this.schedules);
}
/**
* State of the job definition.
*
*/
@Export(name="state", refs={String.class}, tree="[0]")
private Output state;
/**
* @return State of the job definition.
*
*/
public Output state() {
return this.state;
}
/**
* Type of the object.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Type of the object.
*
*/
public Output type() {
return this.type;
}
/**
* Enum to detect if user confirmation is required. If not passed will default to NotRequired.
*
*/
@Export(name="userConfirmation", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> userConfirmation;
/**
* @return Enum to detect if user confirmation is required. If not passed will default to NotRequired.
*
*/
public Output> userConfirmation() {
return Codegen.optional(this.userConfirmation);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public JobDefinition(java.lang.String name) {
this(name, JobDefinitionArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public JobDefinition(java.lang.String name, JobDefinitionArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public JobDefinition(java.lang.String name, JobDefinitionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:hybriddata:JobDefinition", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private JobDefinition(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:hybriddata:JobDefinition", name, null, makeResourceOptions(options, id), false);
}
private static JobDefinitionArgs makeArgs(JobDefinitionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? JobDefinitionArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:hybriddata/v20160601:JobDefinition").build()),
Output.of(Alias.builder().type("azure-native:hybriddata/v20190601:JobDefinition").build())
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static JobDefinition get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new JobDefinition(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy