Class: AWSCDK::WAFv2::CfnWebACL::MonetizationConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wa_fv2/cfn_web_acl.rb

Overview

Configures monetization for the web ACL or rule group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(crypto_config: nil, currency_mode: nil) ⇒ MonetizationConfigProperty

Returns a new instance of MonetizationConfigProperty.

Parameters:



3743
3744
3745
3746
3747
3748
# File 'wa_fv2/cfn_web_acl.rb', line 3743

def initialize(crypto_config: nil, currency_mode: nil)
  @crypto_config = crypto_config.is_a?(Hash) ? ::AWSCDK::WAFv2::CfnWebACL::CryptoConfigProperty.new(**crypto_config.transform_keys(&:to_sym)) : crypto_config
  Jsii::Type.check_type(@crypto_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193YWZ2Mi5DZm5XZWJBQ0wuQ3J5cHRvQ29uZmlnUHJvcGVydHkifV19fQ==")), "cryptoConfig") unless @crypto_config.nil?
  @currency_mode = currency_mode
  Jsii::Type.check_type(@currency_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "currencyMode") unless @currency_mode.nil?
end

Instance Attribute Details

#crypto_configAWSCDK::IResolvable, ... (readonly)

Configures cryptocurrency payment settings.



3754
3755
3756
# File 'wa_fv2/cfn_web_acl.rb', line 3754

def crypto_config
  @crypto_config
end

#currency_modeString? (readonly)

The currency mode for monetization.

Use REAL for production payments and TEST for testing with testnet currencies.



3761
3762
3763
# File 'wa_fv2/cfn_web_acl.rb', line 3761

def currency_mode
  @currency_mode
end

Class Method Details

.jsii_propertiesObject



3763
3764
3765
3766
3767
3768
# File 'wa_fv2/cfn_web_acl.rb', line 3763

def self.jsii_properties
  {
    :crypto_config => "cryptoConfig",
    :currency_mode => "currencyMode",
  }
end

Instance Method Details

#to_jsiiObject



3770
3771
3772
3773
3774
3775
3776
3777
# File 'wa_fv2/cfn_web_acl.rb', line 3770

def to_jsii
  result = {}
  result.merge!({
    "cryptoConfig" => @crypto_config,
    "currencyMode" => @currency_mode,
  })
  result.compact
end