![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.connectedvmwarevsphere.kotlin.ClusterArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.connectedvmwarevsphere.kotlin
import com.pulumi.azurenative.connectedvmwarevsphere.ClusterArgs.builder
import com.pulumi.azurenative.connectedvmwarevsphere.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.connectedvmwarevsphere.kotlin.inputs.ExtendedLocationArgsBuilder
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
/**
* Define the cluster.
* Azure REST API version: 2022-07-15-preview. Prior API version in Azure Native 1.x: 2020-10-01-preview.
* Other available API versions: 2023-03-01-preview, 2023-10-01, 2023-12-01.
* ## Example Usage
* ### CreateCluster
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var cluster = new AzureNative.ConnectedVMwarevSphere.Cluster("cluster", new()
* {
* ClusterName = "HRCluster",
* ExtendedLocation = new AzureNative.ConnectedVMwarevSphere.Inputs.ExtendedLocationArgs
* {
* Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
* Type = "customLocation",
* },
* Location = "East US",
* MoRefId = "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
* ResourceGroupName = "testrg",
* VCenterId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
* });
* });
* ```
* ```go
* package main
* import (
* connectedvmwarevsphere "github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := connectedvmwarevsphere.NewCluster(ctx, "cluster", &connectedvmwarevsphere.ClusterArgs{
* ClusterName: pulumi.String("HRCluster"),
* ExtendedLocation: &connectedvmwarevsphere.ExtendedLocationArgs{
* Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"),
* Type: pulumi.String("customLocation"),
* },
* Location: pulumi.String("East US"),
* MoRefId: pulumi.String("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"),
* ResourceGroupName: pulumi.String("testrg"),
* VCenterId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter"),
* })
* 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.connectedvmwarevsphere.Cluster;
* import com.pulumi.azurenative.connectedvmwarevsphere.ClusterArgs;
* import com.pulumi.azurenative.connectedvmwarevsphere.inputs.ExtendedLocationArgs;
* 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 cluster = new Cluster("cluster", ClusterArgs.builder()
* .clusterName("HRCluster")
* .extendedLocation(ExtendedLocationArgs.builder()
* .name("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso")
* .type("customLocation")
* .build())
* .location("East US")
* .moRefId("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
* .resourceGroupName("testrg")
* .vCenterId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:connectedvmwarevsphere:Cluster HRCluster /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}
* ```
* @property clusterName Name of the cluster.
* @property extendedLocation Gets or sets the extended location.
* @property inventoryItemId Gets or sets the inventory Item ID for the cluster.
* @property kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
* @property location Gets or sets the location.
* @property moRefId Gets or sets the vCenter MoRef (Managed Object Reference) ID for the cluster.
* @property resourceGroupName The Resource Group Name.
* @property tags Gets or sets the Resource tags.
* @property vCenterId Gets or sets the ARM Id of the vCenter resource in which this cluster resides.
*/
public data class ClusterArgs(
public val clusterName: Output? = null,
public val extendedLocation: Output? = null,
public val inventoryItemId: Output? = null,
public val kind: Output? = null,
public val location: Output? = null,
public val moRefId: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy