Class CfnRuleGroup.MonetizationConfigProperty
Configures monetization for the web ACL or rule group.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRuleGroup.MonetizationConfigProperty : CfnRuleGroup.IMonetizationConfigProperty
Syntax (vb)
Public Class CfnRuleGroup.MonetizationConfigProperty Implements CfnRuleGroup.IMonetizationConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var monetizationConfigProperty = new MonetizationConfigProperty {
CryptoConfig = new CryptoConfigProperty {
PaymentNetworks = new [] { new PaymentNetworkProperty {
Chain = "chain",
Prices = new [] { new PriceProperty {
Amount = "amount",
Currency = "currency"
} },
WalletAddress = "walletAddress"
} }
},
CurrencyMode = "currencyMode"
};
Synopsis
Constructors
| MonetizationConfigProperty() | Configures monetization for the web ACL or rule group. |
Properties
| CryptoConfig | Configures cryptocurrency payment settings. |
| CurrencyMode | The currency mode for monetization. |
Constructors
MonetizationConfigProperty()
Configures monetization for the web ACL or rule group.
public MonetizationConfigProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var monetizationConfigProperty = new MonetizationConfigProperty {
CryptoConfig = new CryptoConfigProperty {
PaymentNetworks = new [] { new PaymentNetworkProperty {
Chain = "chain",
Prices = new [] { new PriceProperty {
Amount = "amount",
Currency = "currency"
} },
WalletAddress = "walletAddress"
} }
},
CurrencyMode = "currencyMode"
};
Properties
CryptoConfig
Configures cryptocurrency payment settings.
public object? CryptoConfig { get; set; }
Property Value
Remarks
CurrencyMode
The currency mode for monetization.
public string? CurrencyMode { get; set; }
Property Value
Remarks
Use REAL for production payments and TEST for testing with testnet currencies.