Class: AWSCDK::WAFv2::CfnWebACL::PaymentNetworkProperty

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



3984
3985
3986
3987
3988
3989
3990
3991
# File 'wa_fv2/cfn_web_acl.rb', line 3984

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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmdjIuQ2ZuV2ViQUNMLlByaWNlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "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.



3997
3998
3999
# File 'wa_fv2/cfn_web_acl.rb', line 3997

def chain
  @chain
end

#wallet_addressString (readonly)

The wallet address for receiving payments.



4007
4008
4009
# File 'wa_fv2/cfn_web_acl.rb', line 4007

def wallet_address
  @wallet_address
end

Class Method Details

.jsii_propertiesObject



4009
4010
4011
4012
4013
4014
4015
# File 'wa_fv2/cfn_web_acl.rb', line 4009

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

Instance Method Details

#to_jsiiObject



4017
4018
4019
4020
4021
4022
4023
4024
4025
# File 'wa_fv2/cfn_web_acl.rb', line 4017

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