![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.securityinsights.kotlin.WorkspaceManagerGroupArgs.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.securityinsights.kotlin
import com.pulumi.azurenative.securityinsights.WorkspaceManagerGroupArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The workspace manager group
* Azure REST API version: 2023-06-01-preview.
* Other available API versions: 2023-07-01-preview, 2023-08-01-preview, 2023-09-01-preview, 2023-10-01-preview, 2023-12-01-preview, 2024-01-01-preview.
* ## Example Usage
* ### Creates or updates a workspace manager group.
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var workspaceManagerGroup = new AzureNative.SecurityInsights.WorkspaceManagerGroup("workspaceManagerGroup", new()
* {
* Description = "Group of all financial and banking institutions",
* DisplayName = "Banks",
* MemberResourceNames = new[]
* {
* "afbd324f-6c48-459c-8710-8d1e1cd03812",
* "f5fa104e-c0e3-4747-9182-d342dc048a9e",
* },
* ResourceGroupName = "myRg",
* WorkspaceManagerGroupName = "37207a7a-3b8a-438f-a559-c7df400e1b96",
* WorkspaceName = "myWorkspace",
* });
* });
* ```
* ```go
* package main
* import (
* securityinsights "github.com/pulumi/pulumi-azure-native-sdk/securityinsights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := securityinsights.NewWorkspaceManagerGroup(ctx, "workspaceManagerGroup", &securityinsights.WorkspaceManagerGroupArgs{
* Description: pulumi.String("Group of all financial and banking institutions"),
* DisplayName: pulumi.String("Banks"),
* MemberResourceNames: pulumi.StringArray{
* pulumi.String("afbd324f-6c48-459c-8710-8d1e1cd03812"),
* pulumi.String("f5fa104e-c0e3-4747-9182-d342dc048a9e"),
* },
* ResourceGroupName: pulumi.String("myRg"),
* WorkspaceManagerGroupName: pulumi.String("37207a7a-3b8a-438f-a559-c7df400e1b96"),
* WorkspaceName: pulumi.String("myWorkspace"),
* })
* 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.securityinsights.WorkspaceManagerGroup;
* import com.pulumi.azurenative.securityinsights.WorkspaceManagerGroupArgs;
* 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 workspaceManagerGroup = new WorkspaceManagerGroup("workspaceManagerGroup", WorkspaceManagerGroupArgs.builder()
* .description("Group of all financial and banking institutions")
* .displayName("Banks")
* .memberResourceNames(
* "afbd324f-6c48-459c-8710-8d1e1cd03812",
* "f5fa104e-c0e3-4747-9182-d342dc048a9e")
* .resourceGroupName("myRg")
* .workspaceManagerGroupName("37207a7a-3b8a-438f-a559-c7df400e1b96")
* .workspaceName("myWorkspace")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:securityinsights:WorkspaceManagerGroup 37207a7a-3b8a-438f-a559-c7df400e1b96 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/workspaceManagerGroups/{workspaceManagerGroupName}
* ```
* @property description The description of the workspace manager group
* @property displayName The display name of the workspace manager group
* @property memberResourceNames The names of the workspace manager members participating in this group.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property workspaceManagerGroupName The name of the workspace manager group
* @property workspaceName The name of the workspace.
*/
public data class WorkspaceManagerGroupArgs(
public val description: Output? = null,
public val displayName: Output? = null,
public val memberResourceNames: Output>? = null,
public val resourceGroupName: Output? = null,
public val workspaceManagerGroupName: Output? = null,
public val workspaceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.securityinsights.WorkspaceManagerGroupArgs =
com.pulumi.azurenative.securityinsights.WorkspaceManagerGroupArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.memberResourceNames(memberResourceNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.workspaceManagerGroupName(workspaceManagerGroupName?.applyValue({ args0 -> args0 }))
.workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkspaceManagerGroupArgs].
*/
@PulumiTagMarker
public class WorkspaceManagerGroupArgsBuilder internal constructor() {
private var description: Output? = null
private var displayName: Output? = null
private var memberResourceNames: Output>? = null
private var resourceGroupName: Output? = null
private var workspaceManagerGroupName: Output? = null
private var workspaceName: Output? = null
/**
* @param value The description of the workspace manager group
*/
@JvmName("lemlpdubmbfovgei")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The display name of the workspace manager group
*/
@JvmName("ykkvofabtrtyxtmr")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value The names of the workspace manager members participating in this group.
*/
@JvmName("ushtxwyprqxjaxwr")
public suspend fun memberResourceNames(`value`: Output>) {
this.memberResourceNames = value
}
@JvmName("ucmidbpcdoeahbdk")
public suspend fun memberResourceNames(vararg values: Output) {
this.memberResourceNames = Output.all(values.asList())
}
/**
* @param values The names of the workspace manager members participating in this group.
*/
@JvmName("boufxiosbyunerdm")
public suspend fun memberResourceNames(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy