![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.eventgrid.kotlin.ClientGroupArgs.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.eventgrid.kotlin
import com.pulumi.azurenative.eventgrid.ClientGroupArgs.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.jvm.JvmName
/**
* The Client group resource.
* Azure REST API version: 2023-06-01-preview.
* Other available API versions: 2023-12-15-preview, 2024-06-01-preview.
* ## Example Usage
* ### ClientGroups_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var clientGroup = new AzureNative.EventGrid.ClientGroup("clientGroup", new()
* {
* ClientGroupName = "exampleClientGroupName1",
* Description = "This is a test client group",
* NamespaceName = "exampleNamespaceName1",
* Query = "attributes.b IN ['a', 'b', 'c']",
* ResourceGroupName = "examplerg",
* });
* });
* ```
* ```go
* package main
* import (
* eventgrid "github.com/pulumi/pulumi-azure-native-sdk/eventgrid/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := eventgrid.NewClientGroup(ctx, "clientGroup", &eventgrid.ClientGroupArgs{
* ClientGroupName: pulumi.String("exampleClientGroupName1"),
* Description: pulumi.String("This is a test client group"),
* NamespaceName: pulumi.String("exampleNamespaceName1"),
* Query: pulumi.String("attributes.b IN ['a', 'b', 'c']"),
* ResourceGroupName: pulumi.String("examplerg"),
* })
* 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.eventgrid.ClientGroup;
* import com.pulumi.azurenative.eventgrid.ClientGroupArgs;
* 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 clientGroup = new ClientGroup("clientGroup", ClientGroupArgs.builder()
* .clientGroupName("exampleClientGroupName1")
* .description("This is a test client group")
* .namespaceName("exampleNamespaceName1")
* .query("attributes.b IN ['a', 'b', 'c']")
* .resourceGroupName("examplerg")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:eventgrid:ClientGroup exampleClientGroupName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/clientGroups/{clientGroupName}
* ```
* @property clientGroupName The client group name.
* @property description Description for the Client Group resource.
* @property namespaceName Name of the namespace.
* @property query The grouping query for the clients.
* Example : attributes.keyName IN ['a', 'b', 'c'].
* @property resourceGroupName The name of the resource group within the user's subscription.
*/
public data class ClientGroupArgs(
public val clientGroupName: Output? = null,
public val description: Output? = null,
public val namespaceName: Output? = null,
public val query: Output? = null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.eventgrid.ClientGroupArgs =
com.pulumi.azurenative.eventgrid.ClientGroupArgs.builder()
.clientGroupName(clientGroupName?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.namespaceName(namespaceName?.applyValue({ args0 -> args0 }))
.query(query?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClientGroupArgs].
*/
@PulumiTagMarker
public class ClientGroupArgsBuilder internal constructor() {
private var clientGroupName: Output? = null
private var description: Output? = null
private var namespaceName: Output? = null
private var query: Output? = null
private var resourceGroupName: Output? = null
/**
* @param value The client group name.
*/
@JvmName("ejvksdcqvufwjccn")
public suspend fun clientGroupName(`value`: Output) {
this.clientGroupName = value
}
/**
* @param value Description for the Client Group resource.
*/
@JvmName("rdwhwxbhbishhqvb")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Name of the namespace.
*/
@JvmName("bjwcawuqkxafcfhe")
public suspend fun namespaceName(`value`: Output) {
this.namespaceName = value
}
/**
* @param value The grouping query for the clients.
* Example : attributes.keyName IN ['a', 'b', 'c'].
*/
@JvmName("cxoetfstabfsyvxk")
public suspend fun query(`value`: Output) {
this.query = value
}
/**
* @param value The name of the resource group within the user's subscription.
*/
@JvmName("nvumbmfiqrcetrjq")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The client group name.
*/
@JvmName("kufstsrdyixcdnyn")
public suspend fun clientGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientGroupName = mapped
}
/**
* @param value Description for the Client Group resource.
*/
@JvmName("clbovknybftyhmjx")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Name of the namespace.
*/
@JvmName("mxhlpqolxpiayohy")
public suspend fun namespaceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namespaceName = mapped
}
/**
* @param value The grouping query for the clients.
* Example : attributes.keyName IN ['a', 'b', 'c'].
*/
@JvmName("rwkisljbofjmewjr")
public suspend fun query(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.query = mapped
}
/**
* @param value The name of the resource group within the user's subscription.
*/
@JvmName("mcmsywfrscutpuoj")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): ClientGroupArgs = ClientGroupArgs(
clientGroupName = clientGroupName,
description = description,
namespaceName = namespaceName,
query = query,
resourceGroupName = resourceGroupName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy