ArmWebPubSubModelFactory.WebPubSubTrafficThrottleByJwtCustomClaimRule Method

Definition

public static Azure.ResourceManager.WebPubSub.Models.WebPubSubTrafficThrottleByJwtCustomClaimRule WebPubSubTrafficThrottleByJwtCustomClaimRule(string claimName = default, long? maxInboundMessageBytes = default, int? aggregationWindowInSeconds = default);
static member WebPubSubTrafficThrottleByJwtCustomClaimRule : string * Nullable<int64> * Nullable<int> -> Azure.ResourceManager.WebPubSub.Models.WebPubSubTrafficThrottleByJwtCustomClaimRule
Public Shared Function WebPubSubTrafficThrottleByJwtCustomClaimRule (Optional claimName As String = Nothing, Optional maxInboundMessageBytes As Nullable(Of Long) = Nothing, Optional aggregationWindowInSeconds As Nullable(Of Integer) = Nothing) As WebPubSubTrafficThrottleByJwtCustomClaimRule

Parameters

claimName
String

The name of the claim in the JWT token. The message bytes with the same claim value will be aggregated. If the claim is not found in the token, the rule will be skipped.

maxInboundMessageBytes
Nullable<Int64>

Maximum accumulated inbound message bytes allowed for the same JWT signature within a time window. Clients with the same JWT claim will get disconnected if the message bytes exceeds this value. Default value is 1GB.

aggregationWindowInSeconds
Nullable<Int32>

The aggregation window for the message bytes. The message bytes will be aggregated in this window and be reset after the window. Default value is 60 seconds.

Returns

A new WebPubSubTrafficThrottleByJwtCustomClaimRule instance for mocking.

Applies to