ApplicationGroupArgs

data class ApplicationGroupArgs(val applicationGroupName: Output<String>? = null, val clientAppGroupIdentifier: Output<String>? = null, val isEnabled: Output<Boolean>? = null, val namespaceName: Output<String>? = null, val policies: Output<List<ThrottlingPolicyArgs>>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<ApplicationGroupArgs>

The Application Group object Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01-preview. Other available API versions: 2022-01-01-preview, 2022-10-01-preview, 2023-01-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native eventhub [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ApplicationGroupCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var applicationGroup = new AzureNative.EventHub.ApplicationGroup("applicationGroup", new()
{
ApplicationGroupName = "appGroup1",
ClientAppGroupIdentifier = "SASKeyName=KeyName",
IsEnabled = true,
NamespaceName = "contoso-ua-test-eh-system-1",
Policies = new[]
{
new AzureNative.EventHub.Inputs.ThrottlingPolicyArgs
{
MetricId = AzureNative.EventHub.MetricId.IncomingMessages,
Name = "ThrottlingPolicy1",
RateLimitThreshold = 7912,
Type = "ThrottlingPolicy",
},
new AzureNative.EventHub.Inputs.ThrottlingPolicyArgs
{
MetricId = AzureNative.EventHub.MetricId.IncomingBytes,
Name = "ThrottlingPolicy2",
RateLimitThreshold = 3951729,
Type = "ThrottlingPolicy",
},
new AzureNative.EventHub.Inputs.ThrottlingPolicyArgs
{
MetricId = AzureNative.EventHub.MetricId.OutgoingBytes,
Name = "ThrottlingPolicy3",
RateLimitThreshold = 245175,
Type = "ThrottlingPolicy",
},
},
ResourceGroupName = "contosotest",
});
});
package main
import (
eventhub "github.com/pulumi/pulumi-azure-native-sdk/eventhub/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventhub.NewApplicationGroup(ctx, "applicationGroup", &eventhub.ApplicationGroupArgs{
ApplicationGroupName: pulumi.String("appGroup1"),
ClientAppGroupIdentifier: pulumi.String("SASKeyName=KeyName"),
IsEnabled: pulumi.Bool(true),
NamespaceName: pulumi.String("contoso-ua-test-eh-system-1"),
Policies: eventhub.ThrottlingPolicyArray{
&eventhub.ThrottlingPolicyArgs{
MetricId: pulumi.String(eventhub.MetricIdIncomingMessages),
Name: pulumi.String("ThrottlingPolicy1"),
RateLimitThreshold: pulumi.Float64(7912),
Type: pulumi.String("ThrottlingPolicy"),
},
&eventhub.ThrottlingPolicyArgs{
MetricId: pulumi.String(eventhub.MetricIdIncomingBytes),
Name: pulumi.String("ThrottlingPolicy2"),
RateLimitThreshold: pulumi.Float64(3951729),
Type: pulumi.String("ThrottlingPolicy"),
},
&eventhub.ThrottlingPolicyArgs{
MetricId: pulumi.String(eventhub.MetricIdOutgoingBytes),
Name: pulumi.String("ThrottlingPolicy3"),
RateLimitThreshold: pulumi.Float64(245175),
Type: pulumi.String("ThrottlingPolicy"),
},
},
ResourceGroupName: pulumi.String("contosotest"),
})
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.eventhub.ApplicationGroup;
import com.pulumi.azurenative.eventhub.ApplicationGroupArgs;
import com.pulumi.azurenative.eventhub.inputs.ThrottlingPolicyArgs;
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 applicationGroup = new ApplicationGroup("applicationGroup", ApplicationGroupArgs.builder()
.applicationGroupName("appGroup1")
.clientAppGroupIdentifier("SASKeyName=KeyName")
.isEnabled(true)
.namespaceName("contoso-ua-test-eh-system-1")
.policies(
ThrottlingPolicyArgs.builder()
.metricId("IncomingMessages")
.name("ThrottlingPolicy1")
.rateLimitThreshold(7912.0)
.type("ThrottlingPolicy")
.build(),
ThrottlingPolicyArgs.builder()
.metricId("IncomingBytes")
.name("ThrottlingPolicy2")
.rateLimitThreshold(3951729.0)
.type("ThrottlingPolicy")
.build(),
ThrottlingPolicyArgs.builder()
.metricId("OutgoingBytes")
.name("ThrottlingPolicy3")
.rateLimitThreshold(245175.0)
.type("ThrottlingPolicy")
.build())
.resourceGroupName("contosotest")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:eventhub:ApplicationGroup appGroup1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/applicationGroups/{applicationGroupName}

Constructors

Link copied to clipboard
constructor(applicationGroupName: Output<String>? = null, clientAppGroupIdentifier: Output<String>? = null, isEnabled: Output<Boolean>? = null, namespaceName: Output<String>? = null, policies: Output<List<ThrottlingPolicyArgs>>? = null, resourceGroupName: Output<String>? = null)

Properties

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

The Application Group name

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

The Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid)

Link copied to clipboard
val isEnabled: Output<Boolean>? = null

Determines if Application Group is allowed to create connection with namespace or not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no new connections will be allowed

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

The Namespace name

Link copied to clipboard
val policies: Output<List<ThrottlingPolicyArgs>>? = null

List of group policies that define the behavior of application group. The policies can support resource governance scenarios such as limiting ingress or egress traffic.

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

Name of the resource group within the azure subscription.

Functions

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