Class: AWSCDK::WAFv2::CfnWebACL::PriceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wa_fv2/cfn_web_acl.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.



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

#amountString (readonly)

The price amount.



4047
4048
4049
# File 'wa_fv2/cfn_web_acl.rb', line 4047

def amount
  @amount
end

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



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_jsiiObject



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