ArmWebPubSubModelFactory.WebPubSubThrottleByJwtCustomClaimRule Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.WebPubSub.Models.WebPubSubThrottleByJwtCustomClaimRule WebPubSubThrottleByJwtCustomClaimRule(string claimName = default, int? maxCount = default);
static member WebPubSubThrottleByJwtCustomClaimRule : string * Nullable<int> -> Azure.ResourceManager.WebPubSub.Models.WebPubSubThrottleByJwtCustomClaimRule
Public Shared Function WebPubSubThrottleByJwtCustomClaimRule (Optional claimName As String = Nothing, Optional maxCount As Nullable(Of Integer) = Nothing) As WebPubSubThrottleByJwtCustomClaimRule
Parameters
- claimName
- String
The name of the claim in the JWT token. The client connection with the same claim value will be aggregated. If the claim is not found in the token, the connection will be allowed.
Maximum connection count allowed for the same Jwt claim value. Clients with the same Jwt claim will get rejected if the connection count exceeds this value. Default value is 20.
Returns
A new WebPubSubThrottleByJwtCustomClaimRule instance for mocking.