![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.operationalinsights.kotlin.MachineGroupArgs.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.operationalinsights.kotlin
import com.pulumi.azurenative.operationalinsights.MachineGroupArgs.builder
import com.pulumi.azurenative.operationalinsights.kotlin.enums.MachineGroupType
import com.pulumi.azurenative.operationalinsights.kotlin.inputs.MachineReferenceWithHintsArgs
import com.pulumi.azurenative.operationalinsights.kotlin.inputs.MachineReferenceWithHintsArgsBuilder
import com.pulumi.core.Either
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A user-defined logical grouping of machines.
* Azure REST API version: 2015-11-01-preview. Prior API version in Azure Native 1.x: 2015-11-01-preview.
* ## Example Usage
* ### SMMachineGroupsUpdatePut
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var machineGroup = new AzureNative.OperationalInsights.MachineGroup("machineGroup", new()
* {
* Count = 1,
* DisplayName = "Foo",
* Kind = "machineGroup",
* MachineGroupName = "ccfbf4bf-dc08-4371-9e9b-00a8d875d45a",
* Machines = new[]
* {
* new AzureNative.OperationalInsights.Inputs.MachineReferenceWithHintsArgs
* {
* Id = "/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-0fe4b501-7ac9-41d7-a4e1-1591a0789519",
* Kind = "ref:machinewithhints",
* },
* },
* ResourceGroupName = "rg-sm",
* WorkspaceName = "D6F79F14-E563-469B-84B5-9286D2803B2F",
* });
* });
* ```
* ```go
* package main
* import (
* operationalinsights "github.com/pulumi/pulumi-azure-native-sdk/operationalinsights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := operationalinsights.NewMachineGroup(ctx, "machineGroup", &operationalinsights.MachineGroupArgs{
* Count: pulumi.Int(1),
* DisplayName: pulumi.String("Foo"),
* Kind: pulumi.String("machineGroup"),
* MachineGroupName: pulumi.String("ccfbf4bf-dc08-4371-9e9b-00a8d875d45a"),
* Machines: operationalinsights.MachineReferenceWithHintsArray{
* &operationalinsights.MachineReferenceWithHintsArgs{
* Id: pulumi.String("/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-0fe4b501-7ac9-41d7-a4e1-1591a0789519"),
* Kind: pulumi.String("ref:machinewithhints"),
* },
* },
* ResourceGroupName: pulumi.String("rg-sm"),
* WorkspaceName: pulumi.String("D6F79F14-E563-469B-84B5-9286D2803B2F"),
* })
* 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.operationalinsights.MachineGroup;
* import com.pulumi.azurenative.operationalinsights.MachineGroupArgs;
* import com.pulumi.azurenative.operationalinsights.inputs.MachineReferenceWithHintsArgs;
* 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 machineGroup = new MachineGroup("machineGroup", MachineGroupArgs.builder()
* .count(1)
* .displayName("Foo")
* .kind("machineGroup")
* .machineGroupName("ccfbf4bf-dc08-4371-9e9b-00a8d875d45a")
* .machines(MachineReferenceWithHintsArgs.builder()
* .id("/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-0fe4b501-7ac9-41d7-a4e1-1591a0789519")
* .kind("ref:machinewithhints")
* .build())
* .resourceGroupName("rg-sm")
* .workspaceName("D6F79F14-E563-469B-84B5-9286D2803B2F")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:operationalinsights:MachineGroup ccfbf4bf-dc08-4371-9e9b-00a8d875d45a /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups/{machineGroupName}
* ```
* @property count Count of machines in this group. The value of count may be bigger than the number of machines in case of the group has been truncated due to exceeding the max number of machines a group can handle.
* @property displayName User defined name for the group
* @property groupType Type of the machine group
* @property kind Additional resource type qualifier.
* Expected value is 'machineGroup'.
* @property machineGroupName Machine Group resource name.
* @property machines References of the machines in this group. The hints within each reference do not represent the current value of the corresponding fields. They are a snapshot created during the last time the machine group was updated.
* @property resourceGroupName Resource group name within the specified subscriptionId.
* @property workspaceName OMS workspace containing the resources of interest.
*/
public data class MachineGroupArgs(
public val count: Output? = null,
public val displayName: Output? = null,
public val groupType: Output>? = null,
public val kind: Output? = null,
public val machineGroupName: Output? = null,
public val machines: Output>? = null,
public val resourceGroupName: Output? = null,
public val workspaceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.operationalinsights.MachineGroupArgs =
com.pulumi.azurenative.operationalinsights.MachineGroupArgs.builder()
.count(count?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.groupType(
groupType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.kind(kind?.applyValue({ args0 -> args0 }))
.machineGroupName(machineGroupName?.applyValue({ args0 -> args0 }))
.machines(
machines?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MachineGroupArgs].
*/
@PulumiTagMarker
public class MachineGroupArgsBuilder internal constructor() {
private var count: Output? = null
private var displayName: Output? = null
private var groupType: Output>? = null
private var kind: Output? = null
private var machineGroupName: Output? = null
private var machines: Output>? = null
private var resourceGroupName: Output? = null
private var workspaceName: Output? = null
/**
* @param value Count of machines in this group. The value of count may be bigger than the number of machines in case of the group has been truncated due to exceeding the max number of machines a group can handle.
*/
@JvmName("jgmrrlocshwfshfw")
public suspend fun count(`value`: Output) {
this.count = value
}
/**
* @param value User defined name for the group
*/
@JvmName("qofggupxoutdonur")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value Type of the machine group
*/
@JvmName("uiugyflfuqdrgqgr")
public suspend fun groupType(`value`: Output>) {
this.groupType = value
}
/**
* @param value Additional resource type qualifier.
* Expected value is 'machineGroup'.
*/
@JvmName("hkngnbbplhuphgvu")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value Machine Group resource name.
*/
@JvmName("uomcsfrocpcebken")
public suspend fun machineGroupName(`value`: Output) {
this.machineGroupName = value
}
/**
* @param value References of the machines in this group. The hints within each reference do not represent the current value of the corresponding fields. They are a snapshot created during the last time the machine group was updated.
*/
@JvmName("fynkkwehvbrpbvnh")
public suspend fun machines(`value`: Output>) {
this.machines = value
}
@JvmName("poehdcinorflfsma")
public suspend fun machines(vararg values: Output) {
this.machines = Output.all(values.asList())
}
/**
* @param values References of the machines in this group. The hints within each reference do not represent the current value of the corresponding fields. They are a snapshot created during the last time the machine group was updated.
*/
@JvmName("agfskpjkptwjwyci")
public suspend fun machines(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy