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

com.pulumi.azure.systemcenter.kotlin.VirtualMachineManagerVirtualNetworkArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.systemcenter.kotlin

import com.pulumi.azure.systemcenter.VirtualMachineManagerVirtualNetworkArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a System Center Virtual Machine Manager Virtual Network.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleVirtualMachineManagerServer = new azure.systemcenter.VirtualMachineManagerServer("example", {
 *     name: "example-scvmmms",
 *     resourceGroupName: exampleResourceGroup.name,
 *     location: exampleResourceGroup.location,
 *     customLocationId: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
 *     fqdn: "example.labtest",
 *     username: "testUser",
 *     password: "H@Sh1CoR3!",
 * });
 * const example = azure.systemcenter.getVirtualMachineManagerInventoryItemsOutput({
 *     inventoryType: "VirtualNetwork",
 *     systemCenterVirtualMachineManagerServerId: exampleVirtualMachineManagerServer.id,
 * });
 * const exampleVirtualMachineManagerVirtualNetwork = new azure.systemcenter.VirtualMachineManagerVirtualNetwork("example", {
 *     name: "example-scvmmvnet",
 *     resourceGroupName: exampleResourceGroup.name,
 *     location: exampleResourceGroup.location,
 *     customLocationId: exampleVirtualMachineManagerServer.customLocationId,
 *     systemCenterVirtualMachineManagerServerInventoryItemId: example.apply(example => example.inventoryItems?.[0]?.id),
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example_resource_group = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_virtual_machine_manager_server = azure.systemcenter.VirtualMachineManagerServer("example",
 *     name="example-scvmmms",
 *     resource_group_name=example_resource_group.name,
 *     location=example_resource_group.location,
 *     custom_location_id="/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
 *     fqdn="example.labtest",
 *     username="testUser",
 *     password="H@Sh1CoR3!")
 * example = azure.systemcenter.get_virtual_machine_manager_inventory_items_output(inventory_type="VirtualNetwork",
 *     system_center_virtual_machine_manager_server_id=example_virtual_machine_manager_server.id)
 * example_virtual_machine_manager_virtual_network = azure.systemcenter.VirtualMachineManagerVirtualNetwork("example",
 *     name="example-scvmmvnet",
 *     resource_group_name=example_resource_group.name,
 *     location=example_resource_group.location,
 *     custom_location_id=example_virtual_machine_manager_server.custom_location_id,
 *     system_center_virtual_machine_manager_server_inventory_item_id=example.inventory_items[0].id)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleVirtualMachineManagerServer = new Azure.SystemCenter.VirtualMachineManagerServer("example", new()
 *     {
 *         Name = "example-scvmmms",
 *         ResourceGroupName = exampleResourceGroup.Name,
 *         Location = exampleResourceGroup.Location,
 *         CustomLocationId = "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
 *         Fqdn = "example.labtest",
 *         Username = "testUser",
 *         Password = "H@Sh1CoR3!",
 *     });
 *     var example = Azure.SystemCenter.GetVirtualMachineManagerInventoryItems.Invoke(new()
 *     {
 *         InventoryType = "VirtualNetwork",
 *         SystemCenterVirtualMachineManagerServerId = exampleVirtualMachineManagerServer.Id,
 *     });
 *     var exampleVirtualMachineManagerVirtualNetwork = new Azure.SystemCenter.VirtualMachineManagerVirtualNetwork("example", new()
 *     {
 *         Name = "example-scvmmvnet",
 *         ResourceGroupName = exampleResourceGroup.Name,
 *         Location = exampleResourceGroup.Location,
 *         CustomLocationId = exampleVirtualMachineManagerServer.CustomLocationId,
 *         SystemCenterVirtualMachineManagerServerInventoryItemId = example.Apply(getVirtualMachineManagerInventoryItemsResult => getVirtualMachineManagerInventoryItemsResult.InventoryItems[0]?.Id),
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/systemcenter"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleVirtualMachineManagerServer, err := systemcenter.NewVirtualMachineManagerServer(ctx, "example", &systemcenter.VirtualMachineManagerServerArgs{
 * 			Name:              pulumi.String("example-scvmmms"),
 * 			ResourceGroupName: exampleResourceGroup.Name,
 * 			Location:          exampleResourceGroup.Location,
 * 			CustomLocationId:  pulumi.String("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1"),
 * 			Fqdn:              pulumi.String("example.labtest"),
 * 			Username:          pulumi.String("testUser"),
 * 			Password:          pulumi.String("H@Sh1CoR3!"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		example := systemcenter.GetVirtualMachineManagerInventoryItemsOutput(ctx, systemcenter.GetVirtualMachineManagerInventoryItemsOutputArgs{
 * 			InventoryType: pulumi.String("VirtualNetwork"),
 * 			SystemCenterVirtualMachineManagerServerId: exampleVirtualMachineManagerServer.ID(),
 * 		}, nil)
 * 		_, err = systemcenter.NewVirtualMachineManagerVirtualNetwork(ctx, "example", &systemcenter.VirtualMachineManagerVirtualNetworkArgs{
 * 			Name:              pulumi.String("example-scvmmvnet"),
 * 			ResourceGroupName: exampleResourceGroup.Name,
 * 			Location:          exampleResourceGroup.Location,
 * 			CustomLocationId:  exampleVirtualMachineManagerServer.CustomLocationId,
 * 			SystemCenterVirtualMachineManagerServerInventoryItemId: pulumi.String(example.ApplyT(func(example systemcenter.GetVirtualMachineManagerInventoryItemsResult) (*string, error) {
 * 				return &example.InventoryItems[0].Id, nil
 * 			}).(pulumi.StringPtrOutput)),
 * 		})
 * 		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.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.systemcenter.VirtualMachineManagerServer;
 * import com.pulumi.azure.systemcenter.VirtualMachineManagerServerArgs;
 * import com.pulumi.azure.systemcenter.SystemcenterFunctions;
 * import com.pulumi.azure.systemcenter.inputs.GetVirtualMachineManagerInventoryItemsArgs;
 * import com.pulumi.azure.systemcenter.VirtualMachineManagerVirtualNetwork;
 * import com.pulumi.azure.systemcenter.VirtualMachineManagerVirtualNetworkArgs;
 * 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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleVirtualMachineManagerServer = new VirtualMachineManagerServer("exampleVirtualMachineManagerServer", VirtualMachineManagerServerArgs.builder()
 *             .name("example-scvmmms")
 *             .resourceGroupName(exampleResourceGroup.name())
 *             .location(exampleResourceGroup.location())
 *             .customLocationId("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1")
 *             .fqdn("example.labtest")
 *             .username("testUser")
 *             .password("H@Sh1CoR3!")
 *             .build());
 *         final var example = SystemcenterFunctions.getVirtualMachineManagerInventoryItems(GetVirtualMachineManagerInventoryItemsArgs.builder()
 *             .inventoryType("VirtualNetwork")
 *             .systemCenterVirtualMachineManagerServerId(exampleVirtualMachineManagerServer.id())
 *             .build());
 *         var exampleVirtualMachineManagerVirtualNetwork = new VirtualMachineManagerVirtualNetwork("exampleVirtualMachineManagerVirtualNetwork", VirtualMachineManagerVirtualNetworkArgs.builder()
 *             .name("example-scvmmvnet")
 *             .resourceGroupName(exampleResourceGroup.name())
 *             .location(exampleResourceGroup.location())
 *             .customLocationId(exampleVirtualMachineManagerServer.customLocationId())
 *             .systemCenterVirtualMachineManagerServerInventoryItemId(example.applyValue(getVirtualMachineManagerInventoryItemsResult -> getVirtualMachineManagerInventoryItemsResult).applyValue(example -> example.applyValue(getVirtualMachineManagerInventoryItemsResult -> getVirtualMachineManagerInventoryItemsResult.inventoryItems()[0].id())))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   exampleResourceGroup:
 *     type: azure:core:ResourceGroup
 *     name: example
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleVirtualMachineManagerServer:
 *     type: azure:systemcenter:VirtualMachineManagerServer
 *     name: example
 *     properties:
 *       name: example-scvmmms
 *       resourceGroupName: ${exampleResourceGroup.name}
 *       location: ${exampleResourceGroup.location}
 *       customLocationId: /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1
 *       fqdn: example.labtest
 *       username: testUser
 *       password: H@Sh1CoR3!
 *   exampleVirtualMachineManagerVirtualNetwork:
 *     type: azure:systemcenter:VirtualMachineManagerVirtualNetwork
 *     name: example
 *     properties:
 *       name: example-scvmmvnet
 *       resourceGroupName: ${exampleResourceGroup.name}
 *       location: ${exampleResourceGroup.location}
 *       customLocationId: ${exampleVirtualMachineManagerServer.customLocationId}
 *       systemCenterVirtualMachineManagerServerInventoryItemId: ${example.inventoryItems[0].id}
 * variables:
 *   example:
 *     fn::invoke:
 *       Function: azure:systemcenter:getVirtualMachineManagerInventoryItems
 *       Arguments:
 *         inventoryType: VirtualNetwork
 *         systemCenterVirtualMachineManagerServerId: ${exampleVirtualMachineManagerServer.id}
 * ```
 * 
 * ## Import
 * System Center Virtual Machine Manager Virtual Networks can be imported into Terraform using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:systemcenter/virtualMachineManagerVirtualNetwork:VirtualMachineManagerVirtualNetwork example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.ScVmm/virtualNetworks/virtualNetwork1
 * ```
 * @property customLocationId The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Network. Changing this forces a new resource to be created.
 * @property location The Azure Region where the System Center Virtual Machine Manager Virtual Network should exist. Changing this forces a new resource to be created.
 * @property name The name of the System Center Virtual Machine Manager Virtual Network. Changing this forces a new resource to be created.
 * @property resourceGroupName The name of the Resource Group where the System Center Virtual Machine Virtual Network should exist. Changing this forces a new resource to be created.
 * @property systemCenterVirtualMachineManagerServerInventoryItemId The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
 * @property tags A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Network.
 */
public data class VirtualMachineManagerVirtualNetworkArgs(
    public val customLocationId: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val systemCenterVirtualMachineManagerServerInventoryItemId: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.systemcenter.VirtualMachineManagerVirtualNetworkArgs =
        com.pulumi.azure.systemcenter.VirtualMachineManagerVirtualNetworkArgs.builder()
            .customLocationId(customLocationId?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .systemCenterVirtualMachineManagerServerInventoryItemId(
                systemCenterVirtualMachineManagerServerInventoryItemId?.applyValue({ args0 ->
                    args0
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [VirtualMachineManagerVirtualNetworkArgs].
 */
@PulumiTagMarker
public class VirtualMachineManagerVirtualNetworkArgsBuilder internal constructor() {
    private var customLocationId: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var systemCenterVirtualMachineManagerServerInventoryItemId: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Network. Changing this forces a new resource to be created.
     */
    @JvmName("rfmocvmhdgtbeqje")
    public suspend fun customLocationId(`value`: Output) {
        this.customLocationId = value
    }

    /**
     * @param value The Azure Region where the System Center Virtual Machine Manager Virtual Network should exist. Changing this forces a new resource to be created.
     */
    @JvmName("vecqmmvvpdeefxey")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name of the System Center Virtual Machine Manager Virtual Network. Changing this forces a new resource to be created.
     */
    @JvmName("osufaclpfgrdhxey")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the Resource Group where the System Center Virtual Machine Virtual Network should exist. Changing this forces a new resource to be created.
     */
    @JvmName("nytolqtqisupvrgy")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
     */
    @JvmName("smdkbtbhsbfknqip")
    public suspend fun systemCenterVirtualMachineManagerServerInventoryItemId(`value`: Output) {
        this.systemCenterVirtualMachineManagerServerInventoryItemId = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Network.
     */
    @JvmName("tfnxscuylvcymdyu")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Network. Changing this forces a new resource to be created.
     */
    @JvmName("oonwuxbjdgwuwtew")
    public suspend fun customLocationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customLocationId = mapped
    }

    /**
     * @param value The Azure Region where the System Center Virtual Machine Manager Virtual Network should exist. Changing this forces a new resource to be created.
     */
    @JvmName("ffapvcwbxfkabgqg")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name of the System Center Virtual Machine Manager Virtual Network. Changing this forces a new resource to be created.
     */
    @JvmName("qsbefpxsprmhembo")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the Resource Group where the System Center Virtual Machine Virtual Network should exist. Changing this forces a new resource to be created.
     */
    @JvmName("imkhdsgimbqgkics")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
     */
    @JvmName("unjlbmqyhhvorfgq")
    public suspend fun systemCenterVirtualMachineManagerServerInventoryItemId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.systemCenterVirtualMachineManagerServerInventoryItemId = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Network.
     */
    @JvmName("crhrjvesnlqpaqhl")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Network.
     */
    @JvmName("rvbatldkyggpmlbl")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): VirtualMachineManagerVirtualNetworkArgs =
        VirtualMachineManagerVirtualNetworkArgs(
            customLocationId = customLocationId,
            location = location,
            name = name,
            resourceGroupName = resourceGroupName,
            systemCenterVirtualMachineManagerServerInventoryItemId = systemCenterVirtualMachineManagerServerInventoryItemId,
            tags = tags,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy