/AWS1/CL_WA2MONETIZEACTION¶
Specifies the monetize action settings for a rule. When WAF applies this action, it returns an HTTP 402 Payment Required response containing pricing information that the requesting client uses to complete payment and gain access to the resource. This is a terminating action-if the client does not complete the 402 payment flow, the request is blocked. This action is available only for web ACLs associated with Amazon CloudFront distributions. You must configure a MonetizationConfig on the web ACL or rule group before adding rules that use this action. You cannot use the Monetize action for rate-based rules.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_pricemultiplier TYPE /AWS1/WA2PRICEMULTIPLIER /AWS1/WA2PRICEMULTIPLIER¶
An integer multiplier applied to the base price defined in the web ACL's
MonetizationConfig. The effective price for the request is the base price multiplied by this value. Specify as a string. Valid values: 1 to 100.
Queryable Attributes¶
PriceMultiplier¶
An integer multiplier applied to the base price defined in the web ACL's
MonetizationConfig. The effective price for the request is the base price multiplied by this value. Specify as a string. Valid values: 1 to 100.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PRICEMULTIPLIER() |
Getter for PRICEMULTIPLIER, with configurable default |
ASK_PRICEMULTIPLIER() |
Getter for PRICEMULTIPLIER w/ exceptions if field has no val |
HAS_PRICEMULTIPLIER() |
Determine if PRICEMULTIPLIER has a value |