Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datamigration.kotlin
import com.pulumi.azurenative.datamigration.ServiceArgs.builder
import com.pulumi.azurenative.datamigration.kotlin.inputs.ServiceSkuArgs
import com.pulumi.azurenative.datamigration.kotlin.inputs.ServiceSkuArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A Database Migration Service resource
* Azure REST API version: 2021-06-30. Prior API version in Azure Native 1.x: 2018-04-19.
* Other available API versions: 2022-03-30-preview, 2023-07-15-preview.
* ## Example Usage
* ### Services_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var service = new AzureNative.DataMigration.Service("service", new()
* {
* GroupName = "DmsSdkRg",
* Location = "southcentralus",
* ServiceName = "DmsSdkService",
* Sku = new AzureNative.DataMigration.Inputs.ServiceSkuArgs
* {
* Name = "Basic_1vCore",
* },
* VirtualSubnetId = "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkTestNetwork/providers/Microsoft.Network/virtualNetworks/DmsSdkTestNetwork/subnets/default",
* });
* });
* ```
* ```go
* 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.NewService(ctx, "service", &datamigration.ServiceArgs{
* GroupName: pulumi.String("DmsSdkRg"),
* Location: pulumi.String("southcentralus"),
* ServiceName: pulumi.String("DmsSdkService"),
* Sku: &datamigration.ServiceSkuArgs{
* Name: pulumi.String("Basic_1vCore"),
* },
* VirtualSubnetId: pulumi.String("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkTestNetwork/providers/Microsoft.Network/virtualNetworks/DmsSdkTestNetwork/subnets/default"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.datamigration.Service;
* import com.pulumi.azurenative.datamigration.ServiceArgs;
* import com.pulumi.azurenative.datamigration.inputs.ServiceSkuArgs;
* 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 service = new Service("service", ServiceArgs.builder()
* .groupName("DmsSdkRg")
* .location("southcentralus")
* .serviceName("DmsSdkService")
* .sku(ServiceSkuArgs.builder()
* .name("Basic_1vCore")
* .build())
* .virtualSubnetId("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkTestNetwork/providers/Microsoft.Network/virtualNetworks/DmsSdkTestNetwork/subnets/default")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:datamigration:Service DmsSdkService /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}
* ```
* @property groupName Name of the resource group
* @property kind The resource kind. Only 'vm' (the default) is supported.
* @property location Resource location.
* @property publicKey The public key of the service, used to encrypt secrets sent to the service
* @property serviceName Name of the service
* @property sku Service SKU
* @property tags Resource tags.
* @property virtualNicId The ID of the Microsoft.Network/networkInterfaces resource which the service have
* @property virtualSubnetId The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined
*/
public data class ServiceArgs(
public val groupName: Output? = null,
public val kind: Output? = null,
public val location: Output? = null,
public val publicKey: Output? = null,
public val serviceName: Output? = null,
public val sku: Output? = null,
public val tags: Output