All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.datamigration.ServiceTask Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show 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.datamigration;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.datamigration.ServiceTaskArgs;
import com.pulumi.azurenative.datamigration.outputs.ConnectToMongoDbTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToSourceMySqlTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToSourceOracleSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToSourcePostgreSqlSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToSourceSqlServerSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToSourceSqlServerTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToTargetAzureDbForMySqlTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToTargetAzureDbForPostgreSqlSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToTargetSqlDbTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToTargetSqlMISyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToTargetSqlMITaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ConnectToTargetSqlSqlDbSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.GetTdeCertificatesSqlTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.GetUserTablesMySqlTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.GetUserTablesOracleTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.GetUserTablesPostgreSqlTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.GetUserTablesSqlSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.GetUserTablesSqlTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateMongoDbTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateMySqlAzureDbForMySqlOfflineTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateMySqlAzureDbForMySqlSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateOracleAzureDbForPostgreSqlSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateSqlServerSqlDbSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateSqlServerSqlDbTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateSqlServerSqlMISyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateSqlServerSqlMITaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateSsisTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.SystemDataResponse;
import com.pulumi.azurenative.datamigration.outputs.ValidateMigrationInputSqlServerSqlDbSyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ValidateMigrationInputSqlServerSqlMISyncTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ValidateMigrationInputSqlServerSqlMITaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ValidateMongoDbTaskPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ValidateOracleAzureDbForPostgreSqlSyncTaskPropertiesResponse;
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;

/**
 * A task resource
 * Azure REST API version: 2021-06-30.
 * 
 * Other available API versions: 2022-03-30-preview, 2023-07-15-preview.
 * 
 * ## Example Usage
 * ### Tasks_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.datamigration.ServiceTask;
 * import com.pulumi.azurenative.datamigration.ServiceTaskArgs;
 * 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 serviceTask = new ServiceTask("serviceTask", ServiceTaskArgs.builder()
 *             .groupName("DmsSdkRg")
 *             .properties(ConnectToMongoDbTaskPropertiesArgs.builder()
 *                 .input(MongoDbConnectionInfoArgs.builder()
 *                     .serverVersion("NA")
 *                     .build())
 *                 .taskType("Service.Check.OCI")
 *                 .build())
 *             .serviceName("DmsSdkService")
 *             .taskName("DmsSdkTask")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:datamigration:ServiceTask DmsSdkTask /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName} * ``` * */ @ResourceType(type="azure-native:datamigration:ServiceTask") public class ServiceTask extends com.pulumi.resources.CustomResource { /** * HTTP strong entity tag value. This is ignored if submitted. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return HTTP strong entity tag value. This is ignored if submitted. * */ public Output> etag() { return Codegen.optional(this.etag); } /** * Resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name. * */ public Output name() { return this.name; } /** * Custom task properties * */ @Export(name="properties", refs={Object.class}, tree="[0]") private Output properties; /** * @return Custom task properties * */ public Output properties() { return this.properties; } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource. * */ public Output systemData() { return this.systemData; } /** * Resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public ServiceTask(java.lang.String name) { this(name, ServiceTaskArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ServiceTask(java.lang.String name, ServiceTaskArgs 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 ServiceTask(java.lang.String name, ServiceTaskArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datamigration:ServiceTask", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ServiceTask(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datamigration:ServiceTask", name, null, makeResourceOptions(options, id), false); } private static ServiceTaskArgs makeArgs(ServiceTaskArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ServiceTaskArgs.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:datamigration/v20180715preview:ServiceTask").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20210630:ServiceTask").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20211030preview:ServiceTask").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20220130preview:ServiceTask").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20220330preview:ServiceTask").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20230715preview:ServiceTask").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 ServiceTask get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ServiceTask(name, id, options); } }