MoveCollectionArgs

data class MoveCollectionArgs(val identity: Output<IdentityArgs>? = null, val location: Output<String>? = null, val moveCollectionName: Output<String>? = null, val properties: Output<MoveCollectionPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<MoveCollectionArgs>

Define the move collection. API Version: 2021-01-01.

Example Usage

MoveCollections_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var moveCollection = new AzureNative.Migrate.MoveCollection("moveCollection", new()
{
Identity = new AzureNative.Migrate.Inputs.IdentityArgs
{
Type = "SystemAssigned",
},
Location = "eastus2",
MoveCollectionName = "movecollection1",
Properties = new AzureNative.Migrate.Inputs.MoveCollectionPropertiesArgs
{
SourceRegion = "eastus",
TargetRegion = "westus",
},
ResourceGroupName = "rg1",
});
});
package main
import (
migrate "github.com/pulumi/pulumi-azure-native-sdk/migrate"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := migrate.NewMoveCollection(ctx, "moveCollection", &migrate.MoveCollectionArgs{
Identity: &migrate.IdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
Location: pulumi.String("eastus2"),
MoveCollectionName: pulumi.String("movecollection1"),
Properties: &migrate.MoveCollectionPropertiesArgs{
SourceRegion: pulumi.String("eastus"),
TargetRegion: pulumi.String("westus"),
},
ResourceGroupName: pulumi.String("rg1"),
})
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.migrate.MoveCollection;
import com.pulumi.azurenative.migrate.MoveCollectionArgs;
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 moveCollection = new MoveCollection("moveCollection", MoveCollectionArgs.builder()
.identity(Map.of("type", "SystemAssigned"))
.location("eastus2")
.moveCollectionName("movecollection1")
.properties(Map.ofEntries(
Map.entry("sourceRegion", "eastus"),
Map.entry("targetRegion", "westus")
))
.resourceGroupName("rg1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:migrate:MoveCollection movecollection1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1

Constructors

Link copied to clipboard
constructor(identity: Output<IdentityArgs>? = null, location: Output<String>? = null, moveCollectionName: Output<String>? = null, properties: Output<MoveCollectionPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val identity: Output<IdentityArgs>? = null

Defines the MSI properties of the Move Collection.

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

The geo-location where the resource lives.

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

The Move Collection Name.

Link copied to clipboard

Defines the move collection properties.

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

The Resource Group Name.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

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