Class: AWSCDK::BillingConductor::CfnCustomLineItem::CustomLineItemFlatChargeDetailsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
billing_conductor/cfn_custom_line_item.rb

Overview

The charge details of a custom line item.

It should contain only one of Flat or Percentage .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(charge_value:) ⇒ CustomLineItemFlatChargeDetailsProperty

Returns a new instance of CustomLineItemFlatChargeDetailsProperty.

Parameters:

  • charge_value (Numeric)

    The custom line item's fixed charge value in USD.



778
779
780
781
# File 'billing_conductor/cfn_custom_line_item.rb', line 778

def initialize(charge_value:)
  @charge_value = charge_value
  Jsii::Type.check_type(@charge_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "chargeValue")
end

Instance Attribute Details

#charge_valueNumeric (readonly)

The custom line item's fixed charge value in USD.



787
788
789
# File 'billing_conductor/cfn_custom_line_item.rb', line 787

def charge_value
  @charge_value
end

Class Method Details

.jsii_propertiesObject



789
790
791
792
793
# File 'billing_conductor/cfn_custom_line_item.rb', line 789

def self.jsii_properties
  {
    :charge_value => "chargeValue",
  }
end

Instance Method Details

#to_jsiiObject



795
796
797
798
799
800
801
# File 'billing_conductor/cfn_custom_line_item.rb', line 795

def to_jsii
  result = {}
  result.merge!({
    "chargeValue" => @charge_value,
  })
  result.compact
end