Class: AWSCDK::WAFv2::CfnRuleGroup::PriceProperty

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

Overview

A price configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(amount:, currency:) ⇒ PriceProperty

Returns a new instance of PriceProperty.

Parameters:

  • amount (String)

    The price amount.

  • currency (String)

    The cryptocurrency to use for payment.



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

#amountString (readonly)

The price amount.



2815
2816
2817
# File 'wa_fv2/cfn_rule_group.rb', line 2815

def amount
  @amount
end

#currencyString (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_propertiesObject



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_jsiiObject



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