ArmWebPubSubModelFactory.WebPubSubTrafficThrottleByJwtCustomClaimRule 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.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.
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.
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.