MoveCollection

class MoveCollection : KotlinCustomResource

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

Properties

Link copied to clipboard
val etag: Output<String>

The etag of the resource.

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

Defines the MSI properties of the Move Collection.

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

The geo-location where the resource lives.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Defines the move collection properties.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>