ClientGroupArgs

data class ClientGroupArgs(val clientGroupName: Output<String>? = null, val description: Output<String>? = null, val namespaceName: Output<String>? = null, val query: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<ClientGroupArgs>

The Client group resource. Uses Azure REST API version 2025-02-15. In version 2.x of the Azure Native provider, it used API version 2023-06-01-preview. Other available API versions: 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native eventgrid [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ClientGroups_CreateOrUpdate

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",
});
});
package main
import (
eventgrid "github.com/pulumi/pulumi-azure-native-sdk/eventgrid/v3"
"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
})
}
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.

$ pulumi import azure-native:eventgrid:ClientGroup exampleClientGroupName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/clientGroups/{clientGroupName}

Constructors

Link copied to clipboard
constructor(clientGroupName: Output<String>? = null, description: Output<String>? = null, namespaceName: Output<String>? = null, query: Output<String>? = null, resourceGroupName: Output<String>? = null)

Properties

Link copied to clipboard
val clientGroupName: Output<String>? = null

The client group name.

Link copied to clipboard
val description: Output<String>? = null

Description for the Client Group resource.

Link copied to clipboard
val namespaceName: Output<String>? = null

Name of the namespace.

Link copied to clipboard
val query: Output<String>? = null

The grouping query for the clients. Example : attributes.keyName IN 'a', 'b', 'c'.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group within the user's subscription.

Functions

Link copied to clipboard
open override fun toJava(): ClientGroupArgs