ApplicationGroup

class ApplicationGroup : KotlinCustomResource

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/v2"
"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)
.type("ThrottlingPolicy")
.build(),
ThrottlingPolicyArgs.builder()
.metricId("IncomingBytes")
.name("ThrottlingPolicy2")
.rateLimitThreshold(3951729)
.type("ThrottlingPolicy")
.build(),
ThrottlingPolicyArgs.builder()
.metricId("OutgoingBytes")
.name("ThrottlingPolicy3")
.rateLimitThreshold(245175)
.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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isEnabled: Output<Boolean>?

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 location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The system meta data relating to this resource.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"

Link copied to clipboard
val urn: Output<String>