Class: AWSCDK::WAFv2::CfnWebACL::PriceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::PriceProperty
- Defined in:
- wa_fv2/cfn_web_acl.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.
4036 4037 4038 4039 4040 4041 |
# File 'wa_fv2/cfn_web_acl.rb', line 4036 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.
4047 4048 4049 |
# File 'wa_fv2/cfn_web_acl.rb', line 4047 def amount @amount end |
#currency ⇒ String (readonly)
The cryptocurrency to use for payment.
4052 4053 4054 |
# File 'wa_fv2/cfn_web_acl.rb', line 4052 def currency @currency end |
Class Method Details
.jsii_properties ⇒ Object
4054 4055 4056 4057 4058 4059 |
# File 'wa_fv2/cfn_web_acl.rb', line 4054 def self.jsii_properties { :amount => "amount", :currency => "currency", } end |
Instance Method Details
#to_jsii ⇒ Object
4061 4062 4063 4064 4065 4066 4067 4068 |
# File 'wa_fv2/cfn_web_acl.rb', line 4061 def to_jsii result = {} result.merge!({ "amount" => @amount, "currency" => @currency, }) result.compact end |