Class: AWSCDK::BillingConductor::CfnCustomLineItem::CustomLineItemFlatChargeDetailsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BillingConductor::CfnCustomLineItem::CustomLineItemFlatChargeDetailsProperty
- 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
-
#charge_value ⇒ Numeric
readonly
The custom line item's fixed charge value in USD.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(charge_value:) ⇒ CustomLineItemFlatChargeDetailsProperty
constructor
A new instance of CustomLineItemFlatChargeDetailsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(charge_value:) ⇒ CustomLineItemFlatChargeDetailsProperty
Returns a new instance of CustomLineItemFlatChargeDetailsProperty.
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_value ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |