Class: AWSCDK::WAFv2::CfnRuleGroup::PaymentNetworkProperty

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

Overview

Configuration for a single payment network.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(chain:, prices:, wallet_address:) ⇒ PaymentNetworkProperty

Returns a new instance of PaymentNetworkProperty.

Parameters:



2752
2753
2754
2755
2756
2757
2758
2759
# File 'wa_fv2/cfn_rule_group.rb', line 2752

def initialize(chain:, prices:, wallet_address:)
  @chain = chain
  Jsii::Type.check_type(@chain, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "chain")
  @prices = prices
  Jsii::Type.check_type(@prices, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmdjIuQ2ZuUnVsZUdyb3VwLlByaWNlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "prices")
  @wallet_address = wallet_address
  Jsii::Type.check_type(@wallet_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "walletAddress")
end

Instance Attribute Details

#chainString (readonly)

The blockchain chain to use.



2765
2766
2767
# File 'wa_fv2/cfn_rule_group.rb', line 2765

def chain
  @chain
end

#wallet_addressString (readonly)

The wallet address for receiving payments.



2775
2776
2777
# File 'wa_fv2/cfn_rule_group.rb', line 2775

def wallet_address
  @wallet_address
end

Class Method Details

.jsii_propertiesObject



2777
2778
2779
2780
2781
2782
2783
# File 'wa_fv2/cfn_rule_group.rb', line 2777

def self.jsii_properties
  {
    :chain => "chain",
    :prices => "prices",
    :wallet_address => "walletAddress",
  }
end

Instance Method Details

#to_jsiiObject



2785
2786
2787
2788
2789
2790
2791
2792
2793
# File 'wa_fv2/cfn_rule_group.rb', line 2785

def to_jsii
  result = {}
  result.merge!({
    "chain" => @chain,
    "prices" => @prices,
    "walletAddress" => @wallet_address,
  })
  result.compact
end