ServiceTask

class ServiceTask : KotlinCustomResource

A task resource Uses Azure REST API version 2021-06-30. Other available API versions: 2022-03-30-preview, 2023-07-15-preview.

Example Usage

Tasks_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceTask = new AzureNative.DataMigration.ServiceTask("serviceTask", new()
{
GroupName = "DmsSdkRg",
Properties =
{
{ "input", new AzureNative.DataMigration.Inputs.MongoDbConnectionInfoArgs
{
ServerVersion = "NA",
} },
{ "taskType", "Service.Check.OCI" },
},
ServiceName = "DmsSdkService",
TaskName = "DmsSdkTask",
});
});
package main
import (
datamigration "github.com/pulumi/pulumi-azure-native-sdk/datamigration/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datamigration.NewServiceTask(ctx, "serviceTask", &datamigration.ServiceTaskArgs{
GroupName: pulumi.String("DmsSdkRg"),
Properties: interface{}{
Input: &datamigration.MongoDbConnectionInfoArgs{
ServerVersion: "NA",
},
TaskType: pulumi.String("Service.Check.OCI"),
},
ServiceName: pulumi.String("DmsSdkService"),
TaskName: pulumi.String("DmsSdkTask"),
})
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.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.

$ pulumi import azure-native:datamigration:ServiceTask DmsSdkTask /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}

Properties

Link copied to clipboard
val etag: Output<String>?

HTTP strong entity tag value. This is ignored if submitted.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val properties: Output<Any>

Custom task properties

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>