Class: AWSCDK::WAFv2::CfnRuleGroup::PriceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnRuleGroup::PriceProperty
- Defined in:
- wa_fv2/cfn_rule_group.rb
Overview
A price configuration.
Instance Attribute Summary collapse
-
#amount ⇒ String
readonly
The price amount.
-
#currency ⇒ String
readonly
The cryptocurrency to use for payment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(amount:, currency:) ⇒ PriceProperty
constructor
A new instance of PriceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(amount:, currency:) ⇒ PriceProperty
Returns a new instance of PriceProperty.
2804 2805 2806 2807 2808 2809 |
# File 'wa_fv2/cfn_rule_group.rb', line 2804 def initialize(amount:, currency:) @amount = amount Jsii::Type.check_type(@amount, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "amount") @currency = currency Jsii::Type.check_type(@currency, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "currency") end |
Instance Attribute Details
#amount ⇒ String (readonly)
The price amount.
2815 2816 2817 |
# File 'wa_fv2/cfn_rule_group.rb', line 2815 def amount @amount end |
#currency ⇒ String (readonly)
The cryptocurrency to use for payment.
2820 2821 2822 |
# File 'wa_fv2/cfn_rule_group.rb', line 2820 def currency @currency end |
Class Method Details
.jsii_properties ⇒ Object
2822 2823 2824 2825 2826 2827 |
# File 'wa_fv2/cfn_rule_group.rb', line 2822 def self.jsii_properties { :amount => "amount", :currency => "currency", } end |
Instance Method Details
#to_jsii ⇒ Object
2829 2830 2831 2832 2833 2834 2835 2836 |
# File 'wa_fv2/cfn_rule_group.rb', line 2829 def to_jsii result = {} result.merge!({ "amount" => @amount, "currency" => @currency, }) result.compact end |